Skip to content

fix: bump python version to 3.14#46

Merged
3asm merged 3 commits into
mainfrom
fix/bump_version
Apr 28, 2026
Merged

fix: bump python version to 3.14#46
3asm merged 3 commits into
mainfrom
fix/bump_version

Conversation

@mouadostor
Copy link
Copy Markdown
Contributor

@mouadostor mouadostor commented Apr 23, 2026

Changes

  • bump python version to 3.14
  • fix failing test

Issue

  1. test was using requests_mock to pretend the queues were empty. However, requests_mock only patches the memory of the parent test process. Because Python 3.14 on Linux uses spawn by default for multiprocessing (which creates a completely fresh Python interpreter), the child process did not inherit the mock.
  2. it attempted a real HTTP request to http://localhost:15672/api/queues/%2F
  3. While the child process was sleeping for 2 seconds, parent test process hit its 1-second timeout limit
  4. The TimeoutError caused agent to emit a "timeout" message before the "done" message. This resulted in the agent emitting 4 messages in total, instead of the 2 messages your test expected.

Fix

make the tests robust, predictable, and isolated from OS process quirks, we changed the testing strategy entirely:
Instead of trying to mock HTTP requests across process boundaries, we mocked multiprocessing.Process directly.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.77%. Comparing base (79fd284) to head (c479863).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #46      +/-   ##
==========================================
+ Coverage   72.62%   72.77%   +0.15%     
==========================================
  Files           6        6              
  Lines         179      180       +1     
==========================================
+ Hits          130      131       +1     
  Misses         49       49              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mouadostor mouadostor marked this pull request as ready for review April 28, 2026 14:44
Copy link
Copy Markdown

@zoulatizakaria zoulatizakaria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@3asm 3asm merged commit 3c96ed4 into main Apr 28, 2026
7 checks passed
@3asm 3asm deleted the fix/bump_version branch April 28, 2026 16:00
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.

4 participants