Skip to content

test(metadata): unblock 4 stale assertions after the budget-friendly trims#576

Merged
NagyVikt merged 1 commit into
mainfrom
agent/claude/fix-metadata-test-stale-assertions-2026-05-14-02-09
May 14, 2026
Merged

test(metadata): unblock 4 stale assertions after the budget-friendly trims#576
NagyVikt merged 1 commit into
mainfrom
agent/claude/fix-metadata-test-stale-assertions-2026-05-14-02-09

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Summary

Resolves the 4 long-standing test/metadata.test.js failures that predated this PR. Three were stale assertions drifting away from intentional repo changes; one was a legitimately missing release-notes entry.

Test plan

  • node --test test/metadata.test.js27/27 passing (was 21/25 before this PR)
  • Full npm test sweep — running in background; expect 0 new failures since the only files touched are README.md and test/metadata.test.js

🤖 Generated with Claude Code

…trims

The four metadata.test.js failures predated this PR — three are stale
assertions that drifted out of sync with intentional repo changes, one
is a legitimately missing release-notes entry for v7.0.43.

- Add `### v7.0.43` release-notes section covering the
  budget-friendly CI templates, gx ci-init, gx budget, label-based
  opt-in, and the pre-flight gate in gx branch finish.
- Loosen the cosign-installer assertion from `# v4.1.1` to `# v4.1.\d+`
  so a patch bump (already present at v4.1.2) doesn't break the gate;
  major/minor bumps still do.
- Split the "About copy + problem-solution visuals" test into two:
  - keep enforcing the problem/solution image links in README
  - retire the README->about_description.txt link assertion that
    PR #564 obsoleted; package.json description must still match
    about_description.txt
- Split the "CI and CodeQL workflows run on PRs" test into two:
  - keep the CI-on-PR check (still required)
  - replace the CodeQL-on-PR check with a schedule + workflow_dispatch
    + "no pull_request trigger" check matching the post-PR-#571 reality

Verification: `node --test test/metadata.test.js` now reports 27/27
passing (was 21/25 before this PR).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@NagyVikt NagyVikt merged commit afc3428 into main May 14, 2026
1 of 2 checks passed
@NagyVikt NagyVikt deleted the agent/claude/fix-metadata-test-stale-assertions-2026-05-14-02-09 branch May 14, 2026 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant