Skip to content

fix: wire scheduler workflow to script, add archive tests, switch to UTC - #1

Merged
fabs-net merged 1 commit into
mainfrom
fix/scheduler-wiring-and-archive-tests
May 15, 2026
Merged

fabs-net merged 1 commit into
mainfrom
fix/scheduler-wiring-and-archive-tests

Conversation

@fabs-net

Copy link
Copy Markdown
Owner

Summary

  • Replaces 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
  • Removes hardcoded Europe/Berlin timezone; scheduler now runs in UTC (GitHub Actions native timezone) — no configuration required for users
  • Adds tests/test_archive.py with 12 test cases covering build_summary, load_run_logs, load_json, and main() end-to-end — previously archive_month.py had zero test coverage

Testing

  • 73/73 tests pass locally (pytest tests/ -v)
  • ruff check clean
  • Live workflow_dispatch run on test/scheduler-wiring branch in swarmnoise-collector (private fork with real secrets): completed successfully in 15m24s

- 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
@fabs-net
fabs-net merged commit c7b1ba1 into main May 15, 2026
3 checks passed
@fabs-net
fabs-net deleted the fix/scheduler-wiring-and-archive-tests branch May 15, 2026 14:26
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