chore: upgrade to Vitest 5.1 and align with j4k-align 18.3.1 #19
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/vitest-5-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Upgrades the tests to Vitest 5.1 and brings the repository to j4k-align 18.3.1.
vitest(and@vitest/coverage-v8where present) moves to^5.1.0. The tests needed no changes.test:affectedscript runspnpm run test --since-last-run: the same suite astest, limited to files affected by changes since the last run.fixup!,squash!andamend!commits; the local hook still accepts them.The commit hook ran the full local checks on both commits, and
j4k-alignaudits clean.Review
01M6PB8GJ22V6NGPAXG9RGDHZF— head864612513dd42175af71927879e122741ddd87f5Review — j4k-oss/askpplx @
8401e464bdScope: diff against base tree
79e3d6fe572eReview finished: 6 succeeded, 0 failed, 4 skipped by dispatch
Triage: settled
Facts: current review-wide projection
Computed under:
Findings (1)
medium — The baked-Node check is pasted byte-for-byte into three workflows, so this change had to edit all three copies the same way
01M6PBB6NQ6CAF550C82777YBX.forgejo/workflows/checks.yml(snippet)01M6PBBTZCV9Y92KJK0SWARW87· valid: Grounded excerpt (exact match) confirms the step header and REQUIRED_NODE_VERSION_FILE env in checks.yml. The reviewer gives a specific trace: the 22-line step appears in checks.yml 184-205, dedupe-check.yml 82-103, and release.yml 128-149, diff across them prints nothing, and this change made the same three edits (shell: bash, removal of the REQUIRED_NODE_VERSION either-or branch, regex replacing the case glob) in each copy. That is internally consistent and shows the APoSD Repetition red flag (a nontrivial block repeated) and Information Leakage (one policy, covering exact-version format, tool-cache path, and remediation text, encoded in three modules). The cost already lands on present code because this diff had to edit all three copies in lockstep, so the claim is in scope and medium fits. The secondary point also holds as stated: after the change the env var no longer selects a mode, and the step names '.node-version' separately from setup-node's node-version-file, with nothing tying them together. Remaining uncertainty: the remediation text mentions j4k-align. If these workflows are rendered from an alignment template, the dedup belongs in that template rather than here. The batch gives no evidence of that, and it would move where the fix goes, not whether the defect exists. The proposed remedy (a shared script under scripts/, like scripts/check-msg.sh, or a composite action that takes the version file as input) is proportionate.Other claims
Coverage
Coverage pass: 01M6PB8GJ6C7JJ6AA34N6XTSPB
Accounting: complete (all slots terminal; see slot results for failures)
Slot health: healthy
@ -182,26 +182,18 @@ jobs:uses: pnpm/action-setup@v5- name: Require the job image's baked Nodeshell: bashenv:REQUIRED_NODE_VERSION_FILE: ".node-version"medium — The baked-Node check is pasted byte-for-byte into three workflows, so this change had to edit all three copies the same way
lens
aposd-plain· armdefault· tally 1 valid / 0 invalid / 0 uncertainclaim
01M6PBB6NQ6CAF550C82777YBXof review01M6PB8GJ22V6NGPAXG9RGDHZFNot a defect in this PR. These workflows are rendered by j4k-align, and
j4k-align --fixoverwrites hand edits, so the three copies can't drift apart here. The step's script has one source,src/template-scripts/baked-node-check-script.ts, which every template inserts with{{templateScript "baked-node-version-file-check" 10}}. The Align audit reports any rendered copy that differs from it.REQUIRED_NODE_VERSION_FILEandpinaren't leftovers: the same script also runs in inline-version mode (REQUIRED_NODE_VERSION) in the credential-contract workflow.src/workflow-baked-node.test.tschecks, for every template, that the guard's env names the same input as thesetup-nodestep after it.