Repository navigation
fix: wire scheduler workflow to script, add archive tests, switch to UTC - #1
Merged
Merged
Conversation
- Replace three inline Python blocks in scheduler.yml with calls to scripts/scheduler.py evaluate/success/failure, eliminating ~150 lines of duplicated logic that was disconnected from the tested code path - Remove hardcoded Europe/Berlin timezone; scheduler now runs in UTC (GitHub Actions native timezone) — no configuration required - Update scheduler.py docstring to document UTC default and TZ override - Extract FEEDS_DIR/RUNS_DIR/ARCHIVE_DIR as module-level constants in archive_month.py to enable test isolation via monkeypatching - Add tests/test_archive.py with 12 test cases covering build_summary, load_run_logs, load_json, and main() end-to-end - Note UTC scheduler in README at-a-glance section
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scheduler.ymlwith calls toscripts/scheduler.py evaluate/success/failure, eliminating ~150 lines of duplicated logic that was disconnected from the tested code pathEurope/Berlintimezone; scheduler now runs in UTC (GitHub Actions native timezone) — no configuration required for userstests/test_archive.pywith 12 test cases coveringbuild_summary,load_run_logs,load_json, andmain()end-to-end — previouslyarchive_month.pyhad zero test coverageTesting
pytest tests/ -v)ruff checkcleanworkflow_dispatchrun ontest/scheduler-wiringbranch inswarmnoise-collector(private fork with real secrets): completed successfully in 15m24s