Skip to content

docs: document how to filter irrelevant fork-CI failures - #3

Merged
fengmk2 merged 7 commits into
mainfrom
docs/filter-irrelevant-ci-failures
Aug 14, 2026
Merged

fengmk2 merged 7 commits into
mainfrom
docs/filter-irrelevant-ci-failures

Conversation

@fengmk2

@fengmk2 fengmk2 commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Triage from the v0.2.9 release smoke test (50 fork PRs across the catalog).

Most red checks in a full-catalog run say nothing about the release, and re-triaging them each cycle is wasted effort. This records the recurring causes in TESTING.md and the per-repo cases in ecosystem.json notes.

New TESTING.md section: filtering irrelevant fork-CI failures

Six buckets, with the concrete error strings to grep for:

  1. Registry-bridge fetch flakes. The important one: @voidzero-dev/vite-plus-<platform> is an optional dependency, so when its tarball download exhausts pnpm's retries the install still reports success and the job dies later with Cannot find native binding. That reads like the addon was never published. In the v0.2.9 run this accounted for 8 of the failures; all of them passed on re-run.
  2. Preview-build artifacts that cannot occur for a real npm release.
  3. Fork infrastructure: missing GitHub Apps, secrets, third-party service auth.
  4. Project policy checks a bot PR can never satisfy (required labels, commitlint on the long test subject, knip).
  5. Project-side breakage exposed by regenerating the lockfile (undeclared deps that only ever resolved through hoisting).
  6. Stale pins. A fork several releases behind does not test the release under review.

It also documents the isolated-VP_HOME control, including the gotcha that it must run from inside the project directory or vp resolves the local packages/cli/dist instead of the pinned release.

New section: making a fork's CI usable (both test-branch only)

  • Forks with no pull_request CI report "no checks" and prove nothing. Add an ecosystem-ci build workflow running vp run build. Applied to redis-me, which now reports a passing build.
  • Forks on third-party runners queue forever because the labels only resolve for the upstream org. Includes the Blacksmith label mapping and the warning that runner-specific actions need more than a label swap. Applied to vize, whose jobs now execute.

ecosystem.json: notes added for 21 repos covering the above.

Running the full catalog for a release produces many red checks that say
nothing about the release. Record the recurring causes so the next
release manager does not re-triage them from scratch:

- registry-bridge fetch flakes, including the optional-dependency case
  where a skipped platform binding surfaces later as a misleading
  'Cannot find native binding'
- preview-build artifacts that cannot occur for a real npm release
- fork infrastructure gaps (missing apps, secrets, third-party auth)
- project policy checks a bot PR can never satisfy
- project-side breakage exposed by regenerating the lockfile
- stale pins, which do not test the release under review

Also document the two fixes that make a fork's CI usable at all, both
test-branch only: adding a build workflow when the fork has no
pull_request CI, and mapping third-party runner labels to GitHub-hosted
ones. Record the known per-repo cases in ecosystem.json notes.
Comment thread TESTING.md Resolved
…ilure

The 'Cannot find native binding' message reads like the platform package
was never published, but it is Node reporting the package is absent from
node_modules; nothing in it checks the registry. NAPI's loader also
appends generic npm optional-dependency boilerplate that points readers
at a packaging explanation. Say so explicitly and show what True/False
from the packument check actually means.
Re-running the filter over a full catalog left two failures unclassified
that both belong to existing buckets:

- bucket 5 listed only the ESM phrasing (Cannot find package 'X'), so a
  CJS 'Cannot find module esbuild' fell through. Grep for both, and note
  the importer can be a third-party package rather than project code.
- bucket 4 did not mention branch-name policy jobs, even though the
  fork-PR section already documents the per-project rename.
vize cannot produce a usable release signal. Its workflows target
Blacksmith runners that never resolve on a fork, e2e.yml uses
useblacksmith/* actions that a label swap cannot fix, the app-readiness
E2E matrix stays red, and upstream moves fast enough that a fork synced
at the start of a release is stale before the PR finishes.

Adds an 'Excluded repos' table so the next person does not re-add it,
and points the remove-a-repo step at it.
None of the three can produce a usable release signal:

- cnpmcore installs with utoo, which ignores the bridge registry, so
  every job fails on a 404 that cannot happen for a real npm release
- mlx-node's failing jobs are cargo tests that never touch vite-plus
- tech-interview-handbook fails on a Docusaurus webpack schema error
  with no passing checks to offset it

Also record the checks we deliberately ignore on repos we keep
(pkg-pr-new publish jobs, credentialed Docker pushes, third-party
benchmark uploads), note which dotabod-backend jobs are ignorable and
that its test job is the real signal, and fix two harness footguns that
caused red checks by themselves: a commit subject over commitlint's
72-character limit, and stale bases on long sweeps.
This was referenced Aug 12, 2026
…r precedence

Two rules from scoring a full catalog run:

- Four classes of failing check count as passing rather than merely
  being ignorable: pkg-pr-new publish jobs, commitlint on the test
  commit's own subject, third-party benchmark/coverage uploads, and
  Docker image build/push jobs. A fork whose only red checks are these
  is a pass. Applying this moved 6 forks from failing to passing.
  Everything else still needs a look, including PR-label gates,
  branch-name policy, knip/check-overrides and plain repo-token jobs.

- Classify by the most specific cause, not the first pattern that
  matches. Job logs routinely mention commitlint or knip in a step name
  while failing for another reason, so testing policy patterns first
  misfiles real findings as noise: it hid a newer-oxlint failure and two
  project type-error failures behind a 'policy' label. Documents a
  working precedence order, and warns that a repo with several red
  checks usually has several distinct causes, so read each failing
  job's own log rather than only the first.
This document is read by release managers and by coding agents, and
ambiguity in it has a real cost: a misread sentence sends a test PR to
an upstream repo or misfiles a real finding as noise.

Applies ASD-STE100 discipline throughout: active voice, one instruction
per sentence, no ellipsis, sentences under 25 words, and buried lists
turned into real lists (the preview-build artifacts, the fork
infrastructure cases, the policy checks, and the three fields to set
when adding a repo).

Removes specific ambiguities, including 'Close and reopen each PR to
force it' (what does 'it' force), 'rename the branch to satisfy it'
(satisfy what), 'fail on formatting the upgrade introduces' (dropped
relative pronoun), and 'sync' used for both a git fast-forward and
manifest agreement.

Every command, YAML block, table row, and error string is unchanged;
two commands move out of prose into fenced blocks.
@fengmk2
fengmk2 merged commit eed938e into main Aug 14, 2026
@fengmk2
fengmk2 deleted the docs/filter-irrelevant-ci-failures branch August 14, 2026 09:17
fengmk2 added a commit to voidzero-dev/vite-plus that referenced this pull request Aug 16, 2026
…kill (#2429)

Step 9 of the release-manager skill, from running the full ecosystem-ci
catalog for v0.2.9. Written generically, with no versions or project
names.

- Registry-bridge fetch flakes get their own triage bucket, placed
first. Platform bindings are optionalDependencies, so a dropped tarball
fetch leaves a "successful" install that dies later with `Cannot find
native binding`. That reads like an unpublished package; it is not. Adds
the packument check and the re-run command.
- Weight forks by their actual prior pin, read from the upgrade commit
rather than `HEAD`. A fork several releases behind tests a multi-release
jump, not the release under review.
- Run the isolated-home control from inside the project directory, or
`vp` delegates to the checkout's `packages/cli/dist` and the comparison
is void.
- `vp upgrade` reports a false pass when a control home is still on
`PATH` or exported via `VP_HOME`. Adds a clean-environment check.
- Kill the whole process tree on driver timeout: an orphaned `pnpm
install` holds the store lock and the next project looks hung.
- Two fork-CI blockers are worth fixing rather than reporting, both
test-branch only: no `pull_request` trigger, and third-party runner
labels.

Catalog-side counterpart: vite-plus-ecosystem-ci/.github#3.

Draft for review.
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