Repository navigation
Closed
Description
Chore Type
CI / Build change
Description
The nightly CI schedule (cron: '0 4 * * *') added in #461 rebuilds the container image from dev and runs all test suites daily. In practice this generates noise rather than signal.
Why the current approach fails
- Image tests assert on specific package versions and file checksums that are only valid at release time. A freshly built image pulls the latest upstream packages (e.g.
just 1.49.0vs expected1.48.x), causing test failures that are not bugs — they are expected drift. - The failing nightly run (#482) demonstrates this: 2 failures from version drift and CHANGELOG checksum mismatch, both non-actionable until the next release.
- Integration tests and project checks do not regress without code changes — there is nothing new to catch between PRs.
- Cost: ~7 min of CI time daily (~210 min/month) plus notification fatigue.
Options evaluated
| Option | Description | Verdict |
|---|---|---|
| A. Status quo (full nightly CI) | Rebuild image from dev, run all suites |
High noise from version drift. Failures are not actionable. Not recommended. |
| B. Nightly tests against published image | Pull :latest from GHCR, run test suite |
Tests already passed at release. No code changed, so functional tests will not suddenly fail. Very low value-add. Not recommended. |
| C. Security-only nightly | Remove schedule from ci.yml; keep security-scan.yml as-is |
Catches the one thing that actually changes overnight (new CVE publications). Already implemented, green, cheap. Recommended. |
Why Option C is sufficient
security-scan.ymlalready runs nightly at 05:00 UTC — pulls:latestfrom GHCR, runs Trivy, generates SBOM, uploads SARIF, auto-creates issues on fixable HIGH/CRITICAL findings.codeql.ymlandscorecard.ymlrun weekly for source-level security.- Python security (Bandit + Safety) runs on every PR — new advisories are caught when the next PR opens.
- Build breakage from upstream is caught at PR time, which is when it becomes actionable anyway.
Acceptance Criteria
- Remove
scheduletrigger fromci.yml - Remove the
schedule-specific checkout ref logic (github.event_name == 'schedule' && 'dev') from all jobs - Update
ci.ymlheader comments to remove nightly references - Verify
security-scan.ymlcontinues running nightly unchanged - Verify PR-triggered and manual-dispatch CI behavior is unchanged
Implementation Notes
- In
ci.yml: remove lines 39-41 (scheduletrigger) and the ternaryref: ${{ github.event_name == 'schedule' && 'dev' || github.ref }}in checkout steps (lines 69, 123, 151, 188, 206, 266) — simplify to just${{ github.ref }}(or remove therefkey entirely sincegithub.refis the default). - No changes needed to
security-scan.yml,codeql.yml, orscorecard.yml.
Related Issues
Reverses the nightly CI portion of #461. The security scan portion of #461 (security-scan.yml upgrade to nightly) remains unchanged and is working well.
Priority
Medium
Changelog Category
No changelog needed
Additional Context
- Failing run: https://github.com/vig-os/devcontainer/actions/runs/24066340992
- Nightly history: 2/5 recent scheduled CI runs failed from upstream drift (Apr 6-7), while
security-scan.ymlhas been green for 5+ consecutive runs.
Activity
chore(ci): remove scheduled CI from ci.yml
docs(ci): note removal of nightly CI schedule
chore(ci): remove scheduled full CI from ci.yml (#493)
chore: release 0.3.2 (#122)
chore: release 0.3.2 (#486)