Skip to content

upgrade template to v8.3.1 and fix linters#191

Merged
louiswesterheide merged 10 commits intomainfrom
feature/updateDependencies
Mar 5, 2026
Merged

upgrade template to v8.3.1 and fix linters#191
louiswesterheide merged 10 commits intomainfrom
feature/updateDependencies

Conversation

@msaipraneeth
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 4, 2026

Coverage

Coverage Report
File Stmts Miss Cover Missing
init.py 0 0 100%
constants.py 24 0 100%
kafka_handlers.py 197 15 92% 74 103 126 189 195-196 232 246 296-298 310 388-389 394
utils.py 205 54 74% 80 98 112 155-162 164-168 170-173 180 196-197 252 289 322-323 328-332 352-355 364-366 368-371 373-377 379 381 388 390-392
workflow/init.py 0 0 100%
workflow/consumer.py 86 8 91% 175 206-208 212-214 231
workflow/producer.py 68 5 93% 176 207-209 225
TOTAL 580 82 86%  

Tests Skipped Failures Errors Time
20 0 💤 0 ❌ 0 🔥 5147.796 ⏱

- Treat _QUEUE_FULL as a clean stop signal in poll() instead of raising
  KafkaException, so the streaming generators terminate normally and the
  closing ] / </KafkaMessages> tags are always emitted and the offset is
  committed for successfully consumed messages
- Restructure JSON _aggregate_data() to compute each chunk before yielding
  so a failed message never leaves a dangling comma in the output
- Wrap get_entities() loop in try/finally to guarantee the consumer is
  always closed even when an exception propagates
Assign msg.error() to a local variable so mypy can narrow the type
from KafkaError | None to KafkaError within the if-block.
Replace hardcoded relative paths (tests/sample-test.*) with
Path(FIXTURES_DIR / ...) so tests work regardless of the working
directory. Add FIXTURES_DIR to tests/utils.py and fix the
security_protocol default value in get_kafka_config().
@louiswesterheide louiswesterheide merged commit 65b66f6 into main Mar 5, 2026
2 checks passed
@louiswesterheide louiswesterheide deleted the feature/updateDependencies branch March 5, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants