Skip to content

fix(repo): regenerate package-lock.json without start-core's phantom cbor-web - #4697

Merged
Dominion5254 merged 1 commit into
masterfrom
ci/lockfile-start-core-cbor
Nov 12, 2026
Merged

Dominion5254 merged 1 commit into
masterfrom
ci/lockfile-start-core-cbor

Conversation

@Dominion5254

Copy link
Copy Markdown
Member

#4674 committed a package-lock.json whose shared-libs/ts-modules/start-core/dist entry lists cbor-web, which start-core's package.json does not declare. Builds rebuild start-core's dist/package.json and then run the root package-lock.json recipe (npm --prefix . i), and npm drops that line. The tree is dirty by the time check-git-hash.sh stamps the build, so every start-wrt CI build since #4674 identifies itself as <hash>-modified. That includes the 1.4.0 re-cut from 35a38d8, which boots as Booted v1.4.0 (35a38d80f-modified). The installed package set is unchanged: cbor-web stays installed through the root package.json. Only the build's identity is wrong.

This regenerates the lockfile with make package-lock.json (Node 24.17.0, npm 11.13.0, the versions CI uses). The result is the single-line removal and is byte-identical to the lockfile before #4674 (blob c97a54863).

Verification

On 887ec11, against master df138b5 as the control. Each run used a clean checkout of the commit, deleted start-core's dist/ so it rebuilt as in CI, ran CI's build up to the Rust stage (make projects/start-wrt/web/dist/startwrt/browser/immutable-assets.txt), then ran check-git-hash.sh with GIT_BRANCH_AS_HASH=0:

master df138b5 this branch 887ec11
npm --prefix . i ran yes yes
Tracked files changed by the build package-lock.json none
Stamped hash df138b5ec…-modified 887ec1118…

The stamp is taken before the Rust and OpenWrt stages, so those stages cannot add or remove the suffix. npx prettier --check package-lock.json passes.

…cbor-web

#4674 committed a lockfile whose shared-libs/ts-modules/start-core/dist
entry lists cbor-web, which start-core's package.json does not declare.
Builds regenerate start-core's dist/package.json and then run the root
package-lock.json recipe (`npm --prefix . i`), which drops the line. The
tree is then dirty when check-git-hash.sh stamps the build, so every
start-wrt CI build since #4674 identifies itself as `<hash>-modified`,
including the 1.4.0 re-cut from 35a38d8.

Regenerated with `make package-lock.json` (Node 24.17.0, npm 11.13.0,
the versions CI uses). The result is byte-identical to the lockfile
before #4674.
@Dominion5254 Dominion5254 added the repo Repository maintenance label Nov 12, 2026

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved at 887ec11. The single-line removal aligns the root lockfile's local start-core dependency metadata with its source manifest, which the existing build copies into dist/package.json. This prevents npm from dirtying the tracked lockfile and falsely marking a clean build's identity as modified. The root still declares and locks cbor-web; installed package versions remain unchanged. No build or hash-stamping logic changes. The branch merges cleanly with current master.

Implementation diff: +0 / −0 lines in 0 files (excludes lockfiles, tests, docs, release notes, and changelog).

Verification: The author records clean-checkout frontend builds on master df138b5 and this head, rebuilding start-core first: master changes the lockfile and stamps -modified, while this head leaves tracked files unchanged and stamps the clean hash. The author also records a passing lockfile formatting check. I inspected the diff, manifests, generation recipes and stamping callers without running builds or tests. Current CI Prettier and Conflict Markers pass; binary/deb builds, automated tests, formatting/lockfiles, generated artifacts, dependency licenses and changelog checks remain pending. The full OpenWrt image and deploy jobs are skipped, so there is no end-to-end firmware build evidence on this PR.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-white

Copy link
Copy Markdown
Member

Final approval noted. No changes requested; my approval remains unchanged. The PR is mergeable, with binary/deb builds, automated tests and generated-artifact checks still running.

@Dominion5254
Dominion5254 merged commit 42b4581 into master Nov 12, 2026
18 checks passed
@Dominion5254
Dominion5254 deleted the ci/lockfile-start-core-cbor branch November 12, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

repo Repository maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants