Skip to content

fix(ci): regenerate the plugin prompt and bundled changelog from their sources - #1762

Merged
swati510 merged 1 commit into
mainfrom
fix/ci-plugin-and-changelog-drift
Aug 20, 2026
Merged

swati510 merged 1 commit into
mainfrom
fix/ci-plugin-and-changelog-drift

Conversation

@RaghavChamadiya

Copy link
Copy Markdown
Member

Main has been red since #1755. d439f991 was the last green commit; every run from 68b29bde onward fails the same three tests on all three Python versions.

Two generated artefacts were edited at their output instead of their source, and each has a guard test that catches exactly that.

The plugin prompt

packages/cli/.../codex_prompts/repowise-impacted-tests.md is rendered from plugins/shared/commands/impacted-tests.md by scripts/gen_plugin_content.py. #1755 added call-graph to the generated copy and left the shared source saying import-graph, so test_generated_plugin_file_matches_the_shared_source and test_rendering_is_idempotent both fail.

Fixed at the source and regenerated. That also updates plugins/claude-code/commands/impacted-tests.md, which was missed the same way, and reflows a paragraph the hand-edit had left wrapped mid-sentence.

The bundled changelog

The CLI ships a copy of docs/CHANGELOG.md as package data so repowise whats-new works offline from an installed wheel. #1755 rewrote the entry in docs/ only, so the bundled copy still described the import-graph version of the feature: the superseded 27 ms figure, "which test files import which source files", and "stops accusing files that six tests import". Resynced with the copy test_bundled_changelog_in_sync prescribes.

Worth knowing

The plugin content tests write to the working tree. A failing run leaves the generated file reverted on disk rather than only reporting the drift, so a local pytest can look like it modified a file you never touched.

…r sources

Main has been red since #1755. Two generated artefacts were edited at their
output rather than at their source, and both have a guard test that says so.

`repowise-impacted-tests.md` is rendered from `plugins/shared/` by
`scripts/gen_plugin_content.py`. #1755 added `call-graph` to the generated copy
but left the shared source saying `import-graph`, so the render check found
drift. Fixed at the source and regenerated, which also updates the claude-code
copy that was missed the same way and reflows a paragraph #1755 had hand-wrapped.

The CLI bundles `docs/CHANGELOG.md` as package data so `whats-new` works offline.
#1755 rewrote the entry in `docs/` only, leaving the bundled copy describing the
import-graph version of the feature, including the superseded 27 ms figure and
the "six tests import" wording. Resynced with the copy the test prescribes.

Worth knowing when running these locally: the plugin content tests write to the
working tree, so a failing run leaves the generated file reverted on disk rather
than only reporting drift.
@swati510
swati510 merged commit 197f722 into main Aug 20, 2026
9 checks passed
@swati510
swati510 deleted the fix/ci-plugin-and-changelog-drift branch August 20, 2026 06:02
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.

2 participants