GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix agent CLI lock validation for edge updates · nikzlabs/shipit@18e97fe

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • ci.yml
    • release.yml
  • docker/agent-cli
    • package-lock.json
  • docs/141-cli-version-strategy
    • checklist.md
    • plan.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/ci.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/ci.yml
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ jobs:
131131
key: node-modules-ubuntu24-node24-${{ hashFiles('package-lock.json') }}
132132
- if: steps.node-modules-cache.outputs.cache-hit != 'true'
133133
run: npm ci
134+
# The production images install this nested manifest with npm ci. Run its
135+
# lockfile validation here too, but skip extraction of the large platform
136+
# binaries: a split upstream publish can otherwise leave Renovate's lock
137+
# missing optional platform records and fail only during deployment.
138+
- run: npm ci --ignore-scripts --dry-run
139+
working-directory: docker/agent-cli
134140
- run: npm run lint
135141
- run: npm run typecheck
136142
- run: npm run check-deps
Collapse file

‎.github/workflows/release.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/release.yml
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ jobs:
145145
node-version: 24
146146
cache: npm
147147
- run: npm ci
148+
# Keep the nested production-image lock validation in sync with ci.yml.
149+
- run: npm ci --ignore-scripts --dry-run
150+
working-directory: docker/agent-cli
148151
- run: npm run lint
149152
- run: npm run typecheck
150153
- run: npm run check-deps
Collapse file

‎docker/agent-cli/package-lock.json‎

Copy file name to clipboardExpand all lines: docker/agent-cli/package-lock.json
+45Lines changed: 45 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎docs/141-cli-version-strategy/checklist.md‎

Copy file name to clipboardExpand all lines: docs/141-cli-version-strategy/checklist.md
+4Lines changed: 4 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ Tracks the four-axis rollout from `plan.md`. Order follows the plan's
3434
`@playwright/mcp` need no scripts. Browsers are still fetched explicitly
3535
via `playwright install-deps` / `playwright-mcp install-browser` (worker
3636
images only). Verified end-to-end on x86_64.
37+
- [x] Validate `docker/agent-cli/` in CI and release gates with the production
38+
`npm ci --ignore-scripts` command in dry-run mode. This catches missing
39+
optional platform records before a deployment while avoiding large binary
40+
extraction in the merge gate.
3741
- [ ] (Higher effort, optional) provenance / SBOM verification + image scan.
3842

3943
> Note: with `npm ci` driving freshness deterministically, the per-package
Collapse file

‎docs/141-cli-version-strategy/plan.md‎

Copy file name to clipboardExpand all lines: docs/141-cli-version-strategy/plan.md
+12Lines changed: 12 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ issue: planning#63
88
> integrity-pinned lockfile (`docker/agent-cli/`) via `npm ci --ignore-scripts`
99
> (+ `npm rebuild @anthropic-ai/claude-code` for its required native-binary
1010
> postinstall), and the `NPM_GLOBALS_REBUILD` deploy-time cache-bust is gone.
11+
> CI and release gates run the same nested `npm ci` lock validation in dry-run
12+
> mode, so an incomplete optional-platform graph fails before the production
13+
> image build.
1114
> Axis 1/C's config has landed too: `renovate.json` (scoped to
1215
> `docker/agent-cli/**`, `minimumReleaseAge: "7 days"`) opens the grouped bump
1316
> PRs — auto-merge stays off until the Axis-3 contract test is the required
@@ -210,6 +213,15 @@ risk:
210213
`npm ci`. Reproducible, integrity-checked, and the natural surface for the
211214
auto-bump tool. Lets us **drop the `NPM_GLOBALS_REBUILD=$(date +%s)`
212215
cache-buster** — the lockfile now controls freshness deterministically.
216+
CI and release gates run `npm ci --ignore-scripts --dry-run` from
217+
`docker/agent-cli/` under Node 24. This exercises npm's production lockfile
218+
validation without downloading and extracting the large platform binaries.
219+
It catches an incomplete lock graph when an upstream package publishes its
220+
optional platform packages at different times. Renovate can retain the
221+
early registry snapshot even after the cooldown; when this check fails on a
222+
bump, regenerate the nested lock with `npm install --package-lock-only
223+
--ignore-scripts --prefix docker/agent-cli` after every platform package is
224+
available.
213225
5. **Provenance / SBOM (higher effort, diminishing returns).** Verify npm
214226
provenance attestations where available; scan the resulting image.
215227

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.