Repository navigation
ci: extend the skill-harness workflow; fix pnpm 11 frozen installs - #36
Merged
Merged
Conversation
Member
Author
|
Drift the workflow now enforces on every PR/push (these guards existed but only ran if someone ran pnpm test locally):
Drift the PR adds new guards for:
What it does not guard:
|
Collaborator
|
the skill harness is now run on every merge to main and PRs after #50 |
pnpm 11 no longer reads the `pnpm` key in package.json, so the esbuild override that lived there was silently ignored and `pnpm install --frozen-lockfile` refused the committed lockfile. Move the override to skill-harness/pnpm-workspace.yaml, which is where pnpm 11 looks for it. While there, declare `allowBuilds: esbuild: false`. esbuild's postinstall is only a fallback for platforms without a prebuilt optional dependency; on every platform we run on the binary comes from the optional package, so the build script is not needed and the install stays free of arbitrary postinstall execution. Pin the toolchain in package.json so CI and local runs agree: `packageManager: pnpm@11.18.0` (read by pnpm/action-setup) and `engines.node: 24` (read by actions/setup-node). Add a `typecheck` script (`tsc --noEmit`) so CI can run it by name. The lockfile is unchanged: a frozen install accepts it byte-for-byte once the override is read from the right place. Closes #30 Signed-off-by: Otto van der Schaaf <otto@dtwo.ai>
Extend the `skill-harness` job that #50 added to .github/workflows/test.yml rather than adding a second workflow. Changes relative to that version: - The pnpm and Node versions are read from skill-harness/package.json (`packageManager`, `engines.node`) instead of being hard-coded in the workflow, so a local run and CI use the same toolchain. - The schema digest `--check` runs first, as its own named step. The generator imports only node: builtins, so it runs on the runner's default Node and reports a stale digest even if the install fails. - A lockfile-stability guard (`git diff --exit-code` on the lockfile and workspace file) runs after the install, even if the install failed: a frozen install must not want to rewrite either file, and pnpm 11 rewrites pnpm-workspace.yaml on some failed installs. - `pnpm typecheck` (`tsc --noEmit`) runs alongside the tests and biome. The checks after install are gated on the install step rather than on the previous step, so one run reports every failure. - Hardening: checkout does not persist credentials, a newer push to a PR cancels that PR's older run (every other run gets its own concurrency group, so nothing is cancelled or queued), and the job has a 10 minute timeout. - .github/dependabot.yml keeps the action SHA pins current and bumps the harness npm dependencies in one weekly PR. The live bench (`pnpm bench`) is still not run: it calls a model API and needs credentials. Closes #33 Signed-off-by: Otto van der Schaaf <otto@dtwo.ai>
The `skill-harness` workflow now also runs the schema-digest `--check` as its first step, a lockfile-stability guard, and `pnpm typecheck`, and reads its pnpm and Node versions from skill-harness/package.json. Update CLAUDE.md and both READMEs to say so, list `pnpm typecheck` with the other offline commands, and note that the live bench is not run in CI. Signed-off-by: Otto van der Schaaf <otto@dtwo.ai>
oschaaf
force-pushed
the
ci/skill-harness-workflow
branch
from
October 22, 2026 15:23
e2d68c2 to
839a6c3
Compare
Member
Author
|
Thanks, rebased on top of #50. The standalone workflow is dropped; this now extends |
nicobatalla
approved these changes
Oct 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Rebase of this PR after #50, which added
.github/workflows/test.yml. The standaloneskill-harness.ymlworkflow from the original version is dropped; its remaining value now extends the #50 workflow in place.What this PR still adds on top of main:
pnpm install --frozen-lockfilefails on main under pnpm 11 withERR_PNPM_LOCKFILE_CONFIG_MISMATCH, because pnpm 11 ignores thepnpm.overrideskey in package.json. The esbuild override moves toskill-harness/pnpm-workspace.yaml, withallowBuilds: esbuild: false. The lockfile is unchanged. CI only passes today because it pins pnpm 10.packageManager: pnpm@11.18.0andengines.node: 24are the single source for both local runs and the workflow (package_json_file,node-version-file).pnpm typecheckscript (tsc --noEmit), run in CI.node scripts/generate-schema-digest.mjs --checkruns first, as a named step, on the runner's default Node, so a stale digest is reported even if install fails.git diff --exit-codeon the lockfile andpnpm-workspace.yaml, run even if the install failed (a backstop: pnpm 11 rewritespnpm-workspace.yamlon some failed installs, and this shows what it wanted to change). Test, biome and typecheck are gated on the install step so one run reports every failure.persist-credentials: false, concurrency (PR runs share a group per ref so a newer push cancels the older run; every other run, i.e. push to main or manual dispatch, gets its own group so nothing is cancelled or queued), 10 minute timeout.plugin.jsonbump: nothing distributed changes.The live bench is still not run in CI (needs API credentials).
Follow-up, unchanged from the original description:
scripts/generate-schema-digest.mjsis not covered by biome.Verification
From a clean clone of the branch, in workflow order, under pnpm 11.18.0 / Node 24.18.1 with
CI=true:node scripts/generate-schema-digest.mjs --check: in syncpnpm install --frozen-lockfile: cleangit diff --exit-code -- skill-harness/pnpm-lock.yaml skill-harness/pnpm-workspace.yaml: no diffpnpm test: 181/181pnpm biome:check: cleanpnpm typecheck: cleanactionlint .github/workflows/test.yml: cleangit status --porcelainempty afterwardsMutation probes (fresh
node_modules): removingallowBuildsfails withERR_PNPM_IGNORED_BUILDS; deletingpnpm-workspace.yamlfails withERR_PNPM_LOCKFILE_CONFIG_MISMATCH.Closes #30. Closes #33.
The first dependabot PR will show whether dependabot handles pnpm 11's
pnpm-workspace.yamloverrides; nothing to do until then.