Skip to content

Allow croniter 6 and 7 - #88

Merged
wbarnha merged 2 commits into
faust-streaming:masterfrom
itzzdev09:allow-croniter-7
Nov 26, 2026
Merged

wbarnha merged 2 commits into
faust-streaming:masterfrom
itzzdev09:allow-croniter-7

Conversation

@itzzdev09

Copy link
Copy Markdown

Note: Before submitting this pull request, please review our contributing
guidelines
.

Description

pyproject.toml pins croniter>=2.0.0,<6.0.0, which excludes croniter 6.x and 7.0.0 (released 2026-11-09), so mode-streaming can't be installed next to anything that needs a newer croniter.

mode only calls croniter(cron_format, start_time=now).get_next(float) in mode/utils/cron.py. The range is now >=2.0.0,<8.0.0. tests/unit/utils/test_cron.py passes on Python 3.12 with croniter 6.0.0 and with 7.0.0.

croniter 7.0 changes how a few expressions are read (for example a step starting at the field maximum, like 59/15). secs_for_next passes the user's expression straight through, so those expressions get croniter's new meaning; nothing in mode builds such expressions itself.

@wbarnha

wbarnha commented Nov 23, 2026

Copy link
Copy Markdown
Member

Thank you for the PR!

E   AttributeError: 'FixtureManager' object has no attribute '_arg2fixturedefs'. Did you mean: '_arg2node2fixturedefs'?

Well, that's a new one. 🫠

@wbarnha

wbarnha commented Nov 23, 2026

Copy link
Copy Markdown
Member

Neat, it's not just us! pytest-dev/pytest-bdd#850

@itzzdev09

itzzdev09 commented Nov 25, 2026 •

Copy link
Copy Markdown
Author

The failure comes from the pytest-asyncio==0.21.1 pin: it still reads FixtureManager._arg2fixturedefs, which pytest 9.2.0 removed, so master will hit it on its next run too. Happy to open a separate PR that caps pytest<9.2 or bumps pytest-asyncio, if that helps.

@wbarnha

wbarnha commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

The failure comes from the pytest-asyncio==0.21.1 pin: it still reads FixtureManager._arg2fixturedefs, which pytest 9.2.0 removed, so master will hit it on its next run too. Happy to open a separate PR that caps pytest<9.2 or bumps pytest-asyncio, if that helps.

Thanks for looking into this! If you could open a separate PR, I'd be grateful since I'm quite busy with code review. I think pytest<9.2 is the solution for now based on the thread I found. I don't know if pytest-asyncio being bumped would be the right move because I would expect a similar issue to reappear.

@itzzdev09

Copy link
Copy Markdown
Author

Opened #89 for the pytest 9.2 failure: it moves to pytest-asyncio 1.x and updates the tests that used the removed event_loop fixture. Once that's merged, this branch should go green on a rerun.

@codecov

codecov Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.78%. Comparing base (5994429) to head (a6aebf9).
⚠️ Report is 95 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #88      +/-   ##
==========================================
- Coverage   94.86%   94.78%   -0.08%     
==========================================
  Files          28       28              
  Lines        4031     4142     +111     
  Branches      449      455       +6     
==========================================
+ Hits         3824     3926     +102     
+ Misses        188      152      -36     
- Partials       19       64      +45     

☔ View full report in Codecov by Harness.
📢 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.

@wbarnha
wbarnha merged commit 5ec3cd4 into faust-streaming:master Nov 26, 2026
13 of 14 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.

2 participants