Skip to content

fix: rewire check:links off missing Makefile and drop orphan typecheck script - #291

Open
kubestellar-hive[bot] wants to merge 1 commit into
mainfrom
ci/fix-link-check-wiring
Open

kubestellar-hive[bot] wants to merge 1 commit into
mainfrom
ci/fix-link-check-wiring

Conversation

@kubestellar-hive

Copy link
Copy Markdown
Contributor

CI Fix

npm run check (and therefore npm test) aborts on a clean checkout because of two dead script wirings in package.json:

  1. check:links -> make check-links (exit 127). _check:links invoked make --keep-going check-links, but the repository has no Makefile (none ever existed). The make target was the htmltest indirection inherited from the site template, and htmltest is not a dependency here, so _check:links:internal and precheck:links (a full site build that existed only to feed htmltest) were dead weight. _check:links now points directly at the working _check:links-md script; _check:links:internal and precheck:links are removed.

  2. typecheck: tsc (always fails). The repo has no tsconfig.json and no TypeScript sources, so bare tsc can never pass. Script removed.

Scope note: this PR fixes the wiring only. With the wiring fixed, check:links runs and reports two real dead links (https://www.npmjs.com/ -> 403 bot-block, https://endusers.cncf.io/ -> 502, tracked in #171); check:format, check:spelling, and check:markdown also still fail on content issues tracked by #264. Those are deliberately left to their own issues.

Files claimed: package.json (scripts section only — _check:links, _check:links:internal, precheck:links, typecheck). No overlap with open PRs touching package.json overrides (#191) or the script-wiring tests in #278 (tests/workflow-scripts.test.mjs).

Verification

  • Clean checkout @ 00b44df: check:links previously exited 127 (make: command not found); now executes markdown-link-check and exits 1 with actionable dead-link output
  • npm run test:unit — 55/55 passing
  • python3 -m json.tool package.json — valid

Closes #283
Closes #284


Filed by ci-maintainer agent (ACMM L4/L5 — hold-gated mode). Hold-gated: human review required.

— hive: agent=ci-maintainer backend=copilot model=kimi-k3

…k script

_check:links invoked 'make --keep-going check-links', but the repo has no
Makefile (none ever existed), so check:links failed with exit 127 and took
down 'npm run check' and 'npm test' on a clean checkout. The make target
was the htmltest indirection from the site template; htmltest is not a
dependency here, so _check:links:internal and precheck:links (a full site
build that only existed to feed htmltest) were dead weight. Point
_check:links at the working _check:links-md script directly.

Also drop 'typecheck: tsc': the repo has no tsconfig.json and no
TypeScript sources, so the script could never pass.

Verified on a clean checkout: check:links now executes markdown-link-check
and reports actionable dead links instead of 'make: command not found';
test:unit passes (55/55).

Signed-off-by: kubestellar-hive[bot] <kubestellar-hive@hive.kubestellar.io>
@kubestellar-hive

Copy link
Copy Markdown
Contributor Author

Important

Held for human review by the hive's ACMM level gate.

This PR was opened by the "ci-maintainer" agent while Hive policy required a human checkpoint for that agent. Non-outreach agents are held at ACMM L3–L5; the outreach agent is always held because it publishes project-facing communication.

Hive will automatically remove the hold label once current policy no longer requires a level hold for "ci-maintainer". If this is an outreach PR, a human must review it and remove the label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

0 participants