M25: Add Nightly schedule Trigger (cron: '0 4 * * *') to e2e-containers.yml¶
- Task ID:
M25 - Priority:
P2(Master Rank#14, Track B — Simple Fixes, Docs & CI Hygiene) - Status:
Done - Dependencies:
M8 - Target Repository:
/Users/ivan/Project/3t.tools.intellij/verityredteam-free(verity-redteam-core) - GitHub Project #5: Verity RedTeam Free Task Board
1. Context & Problem Statement¶
.github/workflows/e2e-containers.yml currently runs only on workflow_dispatch, version tag pushes (v*), and pull requests touching src/**, README.md, or tests/e2e_containers/**. It has no scheduled execution.
The container E2E suite installs upstream artifacts at runtime:
- PyPI packages resolved by uv sync --extra dev / wheel installation.
- mcp-remote@0.1.15 via npx.
- DVMCP.
- Docker base images.
Without a nightly run, upstream drift or yanked package versions can break the ground-zero install path between releases. .github/workflows/full-tests.yml already has a nightly schedule at cron: '0 3 * * *'; e2e-containers.yml should run at cron: '0 4 * * *' so the heavier container suite executes after the full test suite and still every night.
2. Requirements & Target Files¶
- Workflow Trigger: Add to
.github/workflows/e2e-containers.yml: - Preserve Existing Triggers: Keep
workflow_dispatch,push: tags: - "v*", and the existingpull_requestpath filters unchanged. - Offset From Full Tests: Use
0 4 * * *(one hour afterfull-tests.ymlat0 3 * * *) to avoid runner contention and catch daily upstream drift in PyPI packages,mcp-remote@0.1.15, DVMCP, and Docker base images. - Workflow Hygiene Test: Add
tests/unit/test_workflow_hygiene.pycoverage that loads.github/workflows/e2e-containers.ymlwithyaml.safe_loadand asserts the0 4 * * *schedule exists alongsideworkflow_dispatch, tag pushes, andpull_request. - Container E2E Acceptance Run: The scheduled job must continue to run
bash ./tests/e2e_containers/run_e2e.shwithINSTALL_SOURCE=wheel.
3. Automated Tests to Verify (tests/unit/test_workflow_hygiene.py)¶
test_e2e_containers_has_nightly_schedule:yaml.safe_load()the workflow and asserton.schedulecontains{"cron": "0 4 * * *"}.test_e2e_containers_preserves_existing_triggers: assertworkflow_dispatch,push.tags == ["v*"], andpull_request.pathsare present.test_schedule_offset_differs_from_full_tests: parse both workflows and asserte2e-containers.ymluses0 4 * * *whilefull-tests.ymluses0 3 * * *.test_e2e_containers_runs_container_suite: assert the workflow still invokesbash ./tests/e2e_containers/run_e2e.shwithINSTALL_SOURCE: wheel.
4. Acceptance Scenario: Nightly Container E2E Verification¶
- Open a pull request containing the workflow change and confirm
e2e-containersstill runs through its existingpull_requesttrigger. - Use
workflow_dispatchto confirm manual execution remains available. - Confirm GitHub Actions registers the workflow with a nightly
scheduleentry at0 4 * * *. - Wait for or simulate the scheduled run and confirm
INSTALL_SOURCE=wheel bash ./tests/e2e_containers/run_e2e.shcompletes successfully. - Assertions: the YAML parse test passes;
workflow_dispatch, tagv*, andpull_requesttriggers remain intact; the scheduled container verification runs nightly and fails loudly on upstream drift.
5. Verification Commands¶
cd /Users/ivan/Project/3t.tools.intellij/verityredteam-free
uv run pytest tests/unit/test_workflow_hygiene.py -v
uv run ruff check src tests
INSTALL_SOURCE=wheel ./tests/e2e_containers/run_e2e.sh
6. Acceptance Criteria¶
- [ ]
.github/workflows/e2e-containers.ymlincludesschedule: - cron: '0 4 * * *'. - [ ] Existing
workflow_dispatch, tagv*, andpull_requesttriggers are preserved. - [ ]
tests/unit/test_workflow_hygiene.pyparses the workflow withyaml.safe_loadand verifies the cron plus existing triggers. - [ ] Scheduled runs execute the container E2E suite with
INSTALL_SOURCE=wheeland pass. - [ ]
uv run pytest tests/unit/test_workflow_hygiene.py -v,uv run ruff check src tests, andINSTALL_SOURCE=wheel ./tests/e2e_containers/run_e2e.shpass cleanly.