Skip to content

fix: resolve CI and nightly pipeline failures - #8

Merged
gmalbert merged 3 commits into
mainfrom
fix/ci-and-nightly-pipeline-failures
Jul 25, 2026
Merged

fix: resolve CI and nightly pipeline failures#8
gmalbert merged 3 commits into
mainfrom
fix/ci-and-nightly-pipeline-failures

Conversation

@gmalbert

Copy link
Copy Markdown
Owner
  • Add missing python-dotenv to nightly.yml pip dependencies
  • Disable the_hundred, t20_blast, sa20 (broken Cricsheet CSV URLs)
  • Fix ruff violations in fetch_data.py (E402, I001, UP017, F841, F541)
  • Align test_identity.py with identity.py implementation (method names, signatures)
  • Align test_model_validation.py with model_validation.py (ModelMetadata param, return types)

gmalbert and others added 3 commits July 25, 2026 09:30
- Add missing python-dotenv to nightly.yml pip dependencies
- Disable the_hundred, t20_blast, sa20 (broken Cricsheet CSV URLs)
- Fix ruff violations in fetch_data.py (E402, I001, UP017, F841, F541)
- Align test_identity.py with identity.py implementation (method names, signatures)
- Align test_model_validation.py with model_validation.py (ModelMetadata param, return types)

Co-authored-by: CommandCodeBot <[email protected]>
The fix commit changed timezone.utc to datetime.UTC but accidentally
removed timezone from the import statement, and UTC is not accessible
as a class attribute of datetime.datetime. This caused both the
integration test and unit tests to fail with AttributeError.

Restore timezone import and use timezone.utc consistently.

Co-authored-by: CommandCodeBot <[email protected]>
… test

The test_pipeline_writes_match_intelligence_caches test monkeypatches
run_pipeline.CACHE_DIR but the PipelineRun class in run_manager.py uses
its own separate CACHE_DIR and RUNS_DIR module-level constants. When
promote_to_production() copies outputs, they go to the real cache
directory instead of the temp directory, causing assertions on
tmp_path/rivalries.json to fail.

Patch run_manager.CACHE_DIR and RUNS_DIR so pipeline outputs land
in the test temp path.

Co-authored-by: CommandCodeBot <[email protected]>
@gmalbert
gmalbert merged commit a43ee29 into main Jul 25, 2026
6 checks passed
@gmalbert
gmalbert deleted the fix/ci-and-nightly-pipeline-failures branch July 25, 2026 13:58
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