Skip to content

Eliminate test-run warnings - #41

Merged
MartinKalema merged 1 commit into
mainfrom
fix/deprecation-warnings
Jul 6, 2026
Merged

Eliminate test-run warnings#41
MartinKalema merged 1 commit into
mainfrom
fix/deprecation-warnings

Conversation

@MartinKalema

Copy link
Copy Markdown
Owner

Summary

CI's 101 warnings, triaged:

  • 100 from etcd3's generated protobuf code + protobuf internals — third-party, unmaintained upstream (the reason for our protobuf<4 pin). Not actionable here: filtered per-module in pytest config, with the reasoning documented next to the filter.
  • 5 genuinely ours: deprecated datetime.utcnow() in json_logger.py and health_routes.py — replaced with timezone-aware datetime.now(timezone.utc), output formats preserved (trailing Z in log timestamps kept).

Result: 157 passed, zero warnings. The point isn't cosmetic — with a silent baseline, the next deprecation in our code is a visible signal instead of drowning at line 102.

Of the 101 deprecation warnings in CI, 100 came from the unmaintained
etcd3 library's generated protobuf code (the reason for the protobuf<4
pin) and protobuf itself — not actionable here, now filtered per-module
in pytest config with the reasoning documented. The remaining five were
ours: datetime.utcnow() (deprecated in 3.12) in the JSON logger and the
health endpoints, replaced with timezone-aware datetime.now(timezone.utc)
preserving the existing timestamp formats.

Test runs now emit zero warnings, so a new deprecation in our own code
is a visible signal instead of line 102 of noise.
@MartinKalema
MartinKalema merged commit a371932 into main Jul 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant