Skip to content

fix(ci): let the e2e failure reporter find its own repository - #858

Merged
bpalermo merged 1 commit into
mainfrom
fix/e2e-report-failure-gh-repo
Sep 20, 2026
Merged

bpalermo merged 1 commit into
mainfrom
fix/e2e-report-failure-gh-repo

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

The silence, not the failure

The nightly e2e workflow has failed on every scheduled run since 2026-09-13 — eight consecutive nights. Nobody was told, because the job that exists to tell us was failing too.

report-failure calls gh issue list/comment/create but deliberately does not check out the repo, since it only touches the API. gh infers the target repository from git remotes, so with no checkout every call died at:

failed to run git: fatal: not a git repository (or any of the parent directories): .git
##[error]Process completed with exit code 1.

GH_REPO: ${{ github.repository }} names it explicitly, which is cheaper than adding a checkout this job has no other use for.

Why it was never caught

The job is if: failure() && github.event_name == 'schedule', so it had never run until the first nightly failure on 2026-09-13. Its first execution was also its first failure, and it has failed identically every night since.

That is the uncomfortable part: this was found by a human noticing the workflow was red, not by the mechanism built to say so. A reporter that only runs on failure is only ever exercised in the case you cannot afford it to be broken.

Scope

This fixes the reporting, not the underlying e2e failure. mesh-http, gateway-http and uds are still failing (build, waypoint and replicator pass) and are being investigated separately — the first failing run followed the Gateway API v1.6.1 → v1.6.2 bump in #751, which is the leading suspect but not yet confirmed.

Verification

Cannot be verified before merge: the job only runs on schedule and only on failure, so no PR run exercises it. Since e2e is currently failing nightly, the next scheduled run after merge will exercise it — and should file the issue that eight nights should already have filed. If it does not, that is a second bug and this PR did not fix it.

🤖 Generated with Claude Code

`report-failure` calls `gh issue list/comment/create` but deliberately does
not check out the repo, since it only touches the API. `gh` infers the
target repository from git remotes, so with no checkout every call died at

    failed to run git: fatal: not a git repository

and the job whose entire purpose is to announce a failing nightly announced
nothing. `GH_REPO` names the repository explicitly, which is cheaper than
adding a checkout this job has no other use for.

The job only runs on failure, so it was never exercised until the first
nightly failure on 2026-09-13 — and then failed on every run since. Eight
consecutive e2e failures went unreported, which is why this was found by
someone noticing the workflow was red rather than by the mechanism built to
say so.

Co-Authored-By: Claude Opus 5 <[email protected]>
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