Skip to content

ci(e2e): auto-file an issue when the nightly run fails - #591

Merged
bpalermo merged 1 commit into
mainfrom
ci/e2e-report-failure
Jul 25, 2026
Merged

bpalermo merged 1 commit into
mainfrom
ci/e2e-report-failure

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

The nightly e2e sat red for three consecutive nights (07-23..07-25) before it was noticed. A scheduled run that fails notifies nobody and leaves no artifact, so a genuine regression — the mesh-DNS decoupling breaking the multi-cluster harnesses (#589) — stayed invisible until found by chance. That silence is a bigger problem than the bug itself.

Change

A report-failure job that opens (or comments on) a single rolling issue naming the failed jobs and linking the run.

Design choices

  • Scoped to schedule. PR runs already surface failures in the PR; auto-filing those would be pure noise.
  • One rolling issue, not one per night. Three duplicate issues is precisely how people learn to ignore them — the failure mode this exists to prevent.
  • Dedupe by title, not label, so the job never depends on a repo label existing (and can't fail on label creation).
  • issues: write scoped to this job, rather than widening the workflow's top-level contents: read.

Verified locally: the awk extraction of failed jobs from the needs.*.result context, and the gh issue list --search 'in:title ...' dedupe query (returns empty cleanly via // empty). YAML parses and the job graph is correct.

Refs #589.

🤖 Generated with Claude Code

The suite sat red for three consecutive nights (07-23..07-25) before anyone
noticed. A scheduled run that fails notifies nobody and leaves no artifact,
so a real regression -- the mesh-DNS decoupling breaking the multi-cluster
harnesses (#589) -- stayed invisible until it was found by chance.

Adds a report-failure job that opens, or comments on, a single rolling issue
naming the failed jobs and linking the run.

Two deliberate choices: it is scoped to `schedule`, because PR runs already
surface failures in the PR and auto-filing those would be noise; and it
reuses one open issue rather than filing per night, since three duplicate
issues is exactly how people learn to ignore them -- the failure mode this
is meant to prevent. Dedupe is by title rather than label so the job never
depends on a label existing. `issues: write` is scoped to this job instead
of widening the workflow's top-level `contents: read`.

Refs #589.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01EioJVuoepwStjHoRLB52WR
@bpalermo
bpalermo merged commit e6ac8fe into main Jul 25, 2026
15 checks passed
@bpalermo
bpalermo deleted the ci/e2e-report-failure branch July 25, 2026 20:04
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