Skip to content

fix: depend on faststream's git main for the real tombstone fix#16

Merged
aradng merged 2 commits into
mainfrom
feat/faststream-git-main-dep
Jul 13, 2026
Merged

fix: depend on faststream's git main for the real tombstone fix#16
aradng merged 2 commits into
mainfrom
feat/faststream-git-main-dep

Conversation

@aradng

@aradng aradng commented Jul 13, 2026

Copy link
Copy Markdown
Owner

0.4.48 worked around the tombstone bug with a runtime monkeypatch (patching AsyncConfluentFastProducerImpl.publish() in place) because the actual fix - ag2ai/faststream#2932 - wasn't released yet. It's merged to main now, just not in a PyPI release.

Points the kafka extra at faststream's git main directly instead of waiting for a release, and deletes the monkeypatch entirely - nothing left to patch, the real fix is what's installed.

Bumps to 0.4.49.

Note: there's a second, independent fix still pending upstream (ag2ai/faststream#2933, consumer-side - lets Optional[Model] = None resolve correctly for a real tombstone instead of crash-looping on required fields). Once that merges too, this can bump again with no further changes needed here.

Test plan

  • Full tests/kafka/ suite passes (18/18) against the git-sourced faststream, no monkeypatch.
  • Confirmed the installed package actually contains the fix (cmd.body is None present in the installed producer.py), not a stale cached version.
  • ruff clean.

aradng and others added 2 commits July 13, 2026 21:02
ag2ai/faststream#2932 (the actual upstream fix for publish(None, ...)
not sending a real Kafka null value) is merged to main but not yet in a
PyPI release. Point the kafka extra at git+https://github.com/ag2ai/
faststream.git@main instead of waiting, and drop the runtime monkeypatch
in depends.py entirely - the real fix now lives upstream, so there's
nothing left to patch.

Bumps to 0.4.49.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Tracking main means the resolved commit silently drifts on every
poetry lock, and this is production infra - reproducible builds matter
more than always-latest. Pin to 9d54a6d8, the commit that includes
ag2ai/faststream#2932, and re-lock explicitly when it's time to move
(e.g. once #2933 merges too).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@aradng aradng merged commit c317310 into main Jul 13, 2026
6 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