Skip to content

[CHORE] Remove scheduled CI build+test from ci.yml #492

Closed

Description

@c-vigo

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.0 vs expected 1.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.yml already runs nightly at 05:00 UTC — pulls :latest from GHCR, runs Trivy, generates SBOM, uploads SARIF, auto-creates issues on fixable HIGH/CRITICAL findings.
  • codeql.yml and scorecard.yml run 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 schedule trigger from ci.yml
  • Remove the schedule-specific checkout ref logic (github.event_name == 'schedule' && 'dev') from all jobs
  • Update ci.yml header comments to remove nightly references
  • Verify security-scan.yml continues running nightly unchanged
  • Verify PR-triggered and manual-dispatch CI behavior is unchanged

Implementation Notes

  • In ci.yml: remove lines 39-41 (schedule trigger) and the ternary ref: ${{ github.event_name == 'schedule' && 'dev' || github.ref }} in checkout steps (lines 69, 123, 151, 188, 206, 266) — simplify to just ${{ github.ref }} (or remove the ref key entirely since github.ref is the default).
  • No changes needed to security-scan.yml, codeql.yml, or scorecard.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

Activity

  1. added
    chore
    area:ci
    on Apr 7, 2026
  2. self-assigned this
    on Apr 7, 2026
  3. added a commit that references this issue on Apr 7, 2026
  4. added a commit that references this issue on Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:cichore

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions