Repository navigation
[Changelog] Reject malformed CHANGELOG.rst at PR time and seed isaaclab_ppisp - #5831
Conversation
Greptile SummaryThis PR fixes a nightly compile regression by seeding
Confidence Score: 4/5Safe to merge; all correctness-critical changes are well-tested and consistent with the compile path. The CHANGELOG.rst fix and the shared-regex refactor are straightforward and regression-tested. The two workflow comments are non-blocking quality suggestions — an unpinned pytest version and a step-ordering nuance that could suppress test output when the fragments check fails first. Neither affects correctness of the gate itself. .github/workflows/changelog-check.yml — the pytest step ordering and version pin are worth a quick look before merge. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[PR opened / synchronised] --> B[Verify changelog fragments\ncli.py check BASE_REF]
B --> C{Fragments valid?}
C -- "invalid_fragments or missing" --> FAIL1[❌ Emit ::error:: annotations\nreturn 1]
C -- "malformed_headers found" --> FAIL2[❌ Emit ::error:: with seed template\nreturn 1]
C -- All OK --> PASS1[✓ All modified packages have valid fragments]
PASS1 --> D[Detect changelog tool source changes]
D --> E{tools/changelog/ touched?}
E -- No --> SKIP[Skip pytest — no overhead]
E -- Yes --> F[pip install pytest]
F --> G[pytest tools/changelog/test/ -q]
G --> H{86 tests pass?}
H -- No --> FAIL3[❌ cli.py regression caught]
H -- Yes --> PASS2[✓ cli.py gate green]
Reviews (1): Last reviewed commit: "Fix isaaclab_ppisp CHANGELOG.rst stub an..." | Re-trigger Greptile |
The isaaclab_ppisp package shipped with a 20-byte CHANGELOG.rst (``Changelog\n---------\n``) that has no blank line after the underline. The nightly compile's header regex needs that blank line as an insertion anchor, so the next run (isaac-sim#5748 + accumulated minor fragments) raised ``Could not locate changelog header`` and skipped the commit/push step. Seed isaaclab_ppisp's CHANGELOG.rst with a real 0.1.0 entry so the header has a stable anchor that pre-commit's end-of-file fixer cannot strip away. Hoist the compile-time header regex into ``CHANGELOG_HEADER_RE`` so the producer (write_changelog_entry) and the new gate share one source of truth. Extend ``cmd_check`` to walk Package.discover() and emit ``::error::`` on any managed CHANGELOG.rst that fails the same regex compile uses. The PR-time gate now mirrors the compile-time precondition, so a future PR adding a malformed stub is blocked at review. Wire ``tools/changelog/test/`` into the changelog-check workflow with a path filter, so cli.py refactors are gated by the existing unit-test suite (86 tests, ~0.2s) only when the tool itself changes. Add three regression tests covering minimum-stub acceptance, unterminated-stub rejection, and a Package.discover() walk over every managed package on disk.
b6363ed to
c7c5dd5
Compare
| - name: Run changelog tool unit tests | ||
| # Gates tools/changelog/cli.py itself: regression tests for the | ||
| # filename rules, fragment parsing, CHANGELOG_HEADER_RE invariant, | ||
| # and cmd_check / cmd_compile orchestration. Without this a cli.py | ||
| # refactor could silently break the gate above. | ||
| if: steps.tool_diff.outputs.changed == 'true' | ||
| run: python3 -m pytest tools/changelog/test/ -q |
There was a problem hiding this comment.
The
Run changelog tool unit tests step will be silently skipped whenever Verify changelog fragments fails, because the implicit if: success() condition also gates this step. This is exactly the scenario where these tests are most valuable: a PR that modifies cli.py in a way that breaks fragment validation would never have its unit tests run, giving the developer no pytest output to diagnose the failure. Adding always() lets the tests run even when the earlier step fails.
| - name: Run changelog tool unit tests | |
| # Gates tools/changelog/cli.py itself: regression tests for the | |
| # filename rules, fragment parsing, CHANGELOG_HEADER_RE invariant, | |
| # and cmd_check / cmd_compile orchestration. Without this a cli.py | |
| # refactor could silently break the gate above. | |
| if: steps.tool_diff.outputs.changed == 'true' | |
| run: python3 -m pytest tools/changelog/test/ -q | |
| - name: Run changelog tool unit tests | |
| # Gates tools/changelog/cli.py itself: regression tests for the | |
| # filename rules, fragment parsing, CHANGELOG_HEADER_RE invariant, | |
| # and cmd_check / cmd_compile orchestration. Without this a cli.py | |
| # refactor could silently break the gate above. | |
| if: always() && steps.tool_diff.outputs.changed == 'true' | |
| run: python3 -m pytest tools/changelog/test/ -q |
| - name: Install pytest | ||
| if: steps.tool_diff.outputs.changed == 'true' | ||
| run: pip install pytest |
There was a problem hiding this comment.
pip install pytest installs the latest available version without any pin, making the step non-deterministic across runs. A breaking pytest release could produce a spurious CI failure unrelated to the PR under review. A minimum version constraint keeps it flexible while bounding the failure surface.
| - name: Install pytest | |
| if: steps.tool_diff.outputs.changed == 'true' | |
| run: pip install pytest | |
| - name: Install pytest | |
| if: steps.tool_diff.outputs.changed == 'true' | |
| run: pip install "pytest>=7,<9" |
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
There was a problem hiding this comment.
Code Review Summary
Verdict: ✅ No blocking issues found
This PR implements a well-designed fix for the nightly compile failure caused by the malformed isaaclab_ppisp CHANGELOG.rst stub. The changes shift error detection from nightly compile time to PR gate time — a solid "shift left" improvement.
What This PR Does Well
-
Single Source of Truth —
CHANGELOG_HEADER_REis hoisted to module level and shared betweenwrite_changelog_entry(production) andcmd_check(validation). This makes drift between gate and compile structurally impossible. -
Actionable Error Messages — The
::error::output includes the exact seed template contributors should copy, reducing friction for fixing malformed files. -
Excellent Regression Tests — Three targeted tests lock down:
- The minimum valid header shape
- The exact 20-byte malformed shape that caused the nightly failure
- A Package.discover() walk that will catch any future malformed file at PR time
-
Smart CI Optimization — Path-filtered pytest execution avoids overhead on fragment-only PRs while still gating cli.py refactors.
🔵 Suggestions (Non-Blocking)
- Consider a
cmd_checkintegration test — While the regex matching is thoroughly tested, there's no explicit test forcmd_checkemitting the::error::output when encountering a malformed header. The existingtest_every_managed_package_has_parseable_changelog_headertest validates the real source tree, but a unit test with a mock malformed package would make the gate behavior more explicit. This is a nice-to-have for future hardening.
Files Reviewed
| File | Assessment |
|---|---|
.github/workflows/changelog-check.yml |
✅ Clean path-filtered pytest integration |
source/isaaclab_ppisp/docs/CHANGELOG.rst |
✅ Proper 0.1.0 seed entry |
source/isaaclab_ppisp/changelog.d/jichuanh-ppisp-changelog-stub.skip |
✅ Correct skip marker |
tools/changelog/cli.py |
✅ Well-factored header validation |
tools/changelog/test/test_validate.py |
✅ Excellent regression coverage |
Automated review by isaaclab-review-bot • b6363ed
There was a problem hiding this comment.
Code Review Summary
Verdict: ✅ No blocking issues found
This PR implements an excellent "shift left" fix for the nightly compile failure caused by the malformed isaaclab_ppisp CHANGELOG.rst stub. The approach of catching malformed headers at PR gate time rather than nightly compile time is sound engineering.
Highlights
-
Single Source of Truth —
CHANGELOG_HEADER_REis hoisted to module level and shared betweenwrite_changelog_entry(production) andcmd_check(validation), making drift structurally impossible. -
Actionable Error Messages — The
::error::output includes the exact seed template contributors should copy, which significantly reduces friction. -
Targeted Regression Tests — Three new tests lock down the minimum valid header shape, the exact malformed shape that caused the failure, and a
Package.discover()walk over all managed packages. -
Smart CI Optimization — Path-filtered pytest execution avoids overhead on fragment-only PRs while gating cli.py refactors appropriately.
🔵 Suggestions (Non-Blocking)
1. Consider adding --quiet to pytest pip install
In .github/workflows/changelog-check.yml, the pip install pytest command outputs verbose installation logs. Adding --quiet or -q would reduce log noise:
- pip install pytest
+ pip install --quiet pytest2. The underline length isn't validated
The regex -+ accepts any number of dashes (even just ---). While this is likely intentional for flexibility, RST convention typically expects the underline to be at least as long as the heading text (9 characters for "Changelog"). This is a minor style consideration, not a correctness issue.
Files Reviewed
| File | Assessment |
|---|---|
.github/workflows/changelog-check.yml |
✅ Clean path-filtered pytest integration |
source/isaaclab_ppisp/docs/CHANGELOG.rst |
✅ Proper 0.1.0 seed entry |
source/isaaclab_ppisp/changelog.d/jichuanh-ppisp-changelog-stub.skip |
✅ Correct skip marker |
tools/changelog/cli.py |
✅ Well-factored header validation with single source of truth |
tools/changelog/test/test_validate.py |
✅ Excellent regression coverage |
Automated review by isaaclab-review-bot
Update (commit 67c7be0): Reviewed the new commit which adds excellent resilience improvements:
✅ Self-healing in write_changelog_entry — automatically fixes CHANGELOG.rst stubs missing the trailing blank line (the isaaclab_ppisp shape)
✅ Per-package isolation in cmd_compile — one package's failure no longer aborts the batch; healthy packages still ship
✅ Nightly workflow hardening — continue-on-error: true + always() + failure re-propagation ensures partial success is committed while still failing the job for visibility
✅ Comprehensive tests — test_write_changelog_entry_self_heals_missing_blank_line, test_write_changelog_entry_self_heal_is_noop_on_well_formed, and test_cmd_compile_continues_after_per_package_failure
Previous suggestions status:
- P2 suggestions from initial review (
always()on pytest step, pinned pytest version) remain open but are non-blocking style preferences
No new issues found. This commit significantly improves the robustness of the changelog infrastructure.
Update (commit ccd3934): Reviewed incremental changes. This commit strengthens test coverage:
✅ New test test_compile_failure_preserves_fragments_and_version — locks down the "fail before any write" guarantee, ensuring fragments and versions are preserved when compile raises
✅ Enhanced assertions in test_cmd_compile_continues_after_per_package_failure — now verifies both that good packages delete their fragments AND that bad packages preserve theirs
No new issues. Tests are well-documented and precisely target the per-package isolation guarantees.
Layered defense per @jichuanh: structural fix first, gate as backup,
isolation for the cases neither catches.
write_changelog_entry now self-heals a `Changelog\n---+\n` stub by
inserting the missing trailing blank line in-memory before the regex
search. The 20-byte ppisp shape would have compiled cleanly without
human intervention; existing well-formed files are unaffected (negative
lookahead in the regex).
cmd_compile no longer aborts on the first failing package. The loop
collects (name, reason) failures and continues, so a malformed file in
one package no longer discards every other package's successful compile.
Final exit code is non-zero only when failures is non-empty, with a
summary line naming the affected packages.
nightly-changelog.yml's compile step gets `continue-on-error: true` and
the commit/push step's guard becomes `if: ${{ always() && !inputs.dry_run }}`
so partial-success batches still write to the target branch. A trailing
step re-asserts the failure exit code so the job tile stays red.
Three regression tests:
- write_changelog_entry self-heals the 20-byte stub on first compile.
- Self-heal is a no-op on well-formed files (idempotence).
- cmd_compile continues after one package raises, the healthy package
ships, the failure is named in the summary.
Update the existing parseable-header test to apply the same self-heal
normalization, so it accepts self-healable shapes and only rejects
truly broken files.
Adds two assertions that per-package isolation does not silently lose work on a failed package: - test_compile_failure_preserves_fragments_and_version — pkg.compile() against an unrecoverable CHANGELOG.rst raises and leaves fragment, extension.toml version, and CHANGELOG.rst untouched on disk. - test_cmd_compile_continues_after_per_package_failure now also asserts the bad package's fragment is still present after the batch exits; the next compile gets another try against the same fragment once the human fixes the malformed file.
…nt training fixes from develop (#5855) # Description Cherry pick fixes from the develop branch: - #5805 - #5786 - #5787 - #5793 - #5831 - #5853 - #5841 - #5843 --------- Signed-off-by: sameerchavan0027 <[email protected]> Co-authored-by: Antoine RICHARD <[email protected]> Co-authored-by: hujc <[email protected]> Co-authored-by: sameerchavan0027 <[email protected]> Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Cherry-picks the workflow tolerance piece from isaac-sim#5831 onto main so the scheduled cron (which only reads main's copy of nightly-changelog.yml) actually gets the partial-success behavior, instead of leaving it dead code on develop and release. Compile step gains ``id: compile`` + ``continue-on-error: true`` so a single package's malformed CHANGELOG.rst no longer short-circuits the entire matrix entry. Commit/push gate becomes ``always() && !inputs.dry_run`` so successful packages still ship their CHANGELOG.rst / extension.toml / deleted-fragment writes even when one package raised during compile. Trailing Re-propagate failure step re-asserts the non-zero exit so the job tile stays red and the maintainer notices.
…failure tolerance (#5859) ## 1. Summary - Restores the scheduled nightly changelog cron after two failures on the develop and release/3.0.0-beta2 matrix entries this morning (https://github.com/isaac-sim/IsaacLab/actions/runs/26621920244). - Two commits, both edit ``.github/workflows/nightly-changelog.yml`` on main (the cron-host copy is the only one the schedule reads). - 1 file changed, 30 insertions, 2 deletions. ## 2. Background The cron at 06:27 UTC on 2026-05-29 short-circuited both matrix entries: 1. develop matrix exited 128 in the commit/push step with ``error: cannot pull with rebase: You have unstaged changes``. ``tools/changelog/cli.py``'s ``Package.write_version`` bumps both ``config/extension.toml`` AND ``pyproject.toml`` when a ``[project]`` block exists. #5785 added ``[project] version`` lines to every managed package's pyproject.toml — activating a write path in cli.py that the workflow's commit step never staged. The unstaged pyproject changes made ``git pull --rebase`` refuse. 2. release/3.0.0-beta2 matrix exited 1 with ``remote: error: GH013: Repository rule violations``. The isaaclab-bot App isn't on ruleset 16056339's bypass-actor list for ``refs/heads/release/*``. Orthogonal to this PR — repo-admin bypass-list edit handled separately. This PR addresses failure 1. It also bundles the workflow tolerance piece from #5831, which was previously merged onto develop's copy of the file but never reached main — so the cron has been running without the partial-success guarantees #5831 was meant to provide. ## 3. Commits ### 3.1 Tolerate per-package compile failures (cherry-pick of #5831 workflow piece) - ``id: compile`` + ``continue-on-error: true`` on the Compile step. - Commit/push gate becomes ``if: ${{ always() && !inputs.dry_run }}`` so successful packages still ship when one package raised. - Trailing ``Re-propagate compile failure`` step re-asserts the non-zero exit so the job tile stays red. #5831 wedged this on develop's copy of the workflow file, but the cron only reads main's copy, so the partial-success behavior was dead code until this commit. ### 3.2 Stage pyproject.toml in the auto-commit - Adds ``source/*/pyproject.toml`` to the existing ``git add`` glob. - Five-line comment naming the failure mode for future maintainers. The downstream ``Bumped packages`` loop explicitly filters ``source/*/config/extension.toml``, so the new staged paths don't affect commit-body composition. ## 4. Why both on main, not develop / release The scheduled cron only registers on the default branch and only reads main's copy of ``nightly-changelog.yml``. Develop and release/3.0.0-beta2 each carry their own copies of the workflow, but those copies are consumed only via manual ``workflow_dispatch`` (and even then, only if the maintainer picks that branch in the "Use workflow from" dropdown). Bug fixes to the cron behavior have to land on main to actually take effect. ## 5. Verification - ``./isaaclab.sh -f`` clean. - Logic check: with the glob fix, compile's write to pyproject.toml gets staged; the staged-diff check ``git diff --staged --quiet`` correctly reports work pending; commit composes; the existing ``git pull --rebase`` runs against a clean working tree. - Runtime confirmation deferred to the next scheduled run (2026-05-30 06:27 UTC) or a manual ``workflow_dispatch`` against a sacrificial branch (see Test plan). ## 6. Out of scope - release/3.0.0-beta2 bypass-actor on ruleset 16056339 — repo-admin UI edit, not a code change. - The auto-bump / GitRepo / AutoBumpRun refactor that would move the entire commit/push/rebase lifecycle into cli.py and make the workflow's git-add glob obsolete — sequel PR, design discussed in the iteration thread. ## 7. Test plan - [x] ``./isaaclab.sh -f`` clean. - [x] Authorship audit: both commits authored by jichuanh. - [ ] Optional pre-merge: ``workflow_dispatch`` against a throwaway target branch (cut from develop, single trivial fragment) to confirm end-to-end compile → stage → commit → rebase → push. - [ ] Post-merge: next scheduled cron green for the develop matrix entry.
…failure tolerance (isaac-sim#5859) ## 1. Summary - Restores the scheduled nightly changelog cron after two failures on the develop and release/3.0.0-beta2 matrix entries this morning (https://github.com/isaac-sim/IsaacLab/actions/runs/26621920244). - Two commits, both edit ``.github/workflows/nightly-changelog.yml`` on main (the cron-host copy is the only one the schedule reads). - 1 file changed, 30 insertions, 2 deletions. ## 2. Background The cron at 06:27 UTC on 2026-05-29 short-circuited both matrix entries: 1. develop matrix exited 128 in the commit/push step with ``error: cannot pull with rebase: You have unstaged changes``. ``tools/changelog/cli.py``'s ``Package.write_version`` bumps both ``config/extension.toml`` AND ``pyproject.toml`` when a ``[project]`` block exists. isaac-sim#5785 added ``[project] version`` lines to every managed package's pyproject.toml — activating a write path in cli.py that the workflow's commit step never staged. The unstaged pyproject changes made ``git pull --rebase`` refuse. 2. release/3.0.0-beta2 matrix exited 1 with ``remote: error: GH013: Repository rule violations``. The isaaclab-bot App isn't on ruleset 16056339's bypass-actor list for ``refs/heads/release/*``. Orthogonal to this PR — repo-admin bypass-list edit handled separately. This PR addresses failure 1. It also bundles the workflow tolerance piece from isaac-sim#5831, which was previously merged onto develop's copy of the file but never reached main — so the cron has been running without the partial-success guarantees isaac-sim#5831 was meant to provide. ## 3. Commits ### 3.1 Tolerate per-package compile failures (cherry-pick of isaac-sim#5831 workflow piece) - ``id: compile`` + ``continue-on-error: true`` on the Compile step. - Commit/push gate becomes ``if: ${{ always() && !inputs.dry_run }}`` so successful packages still ship when one package raised. - Trailing ``Re-propagate compile failure`` step re-asserts the non-zero exit so the job tile stays red. isaac-sim#5831 wedged this on develop's copy of the workflow file, but the cron only reads main's copy, so the partial-success behavior was dead code until this commit. ### 3.2 Stage pyproject.toml in the auto-commit - Adds ``source/*/pyproject.toml`` to the existing ``git add`` glob. - Five-line comment naming the failure mode for future maintainers. The downstream ``Bumped packages`` loop explicitly filters ``source/*/config/extension.toml``, so the new staged paths don't affect commit-body composition. ## 4. Why both on main, not develop / release The scheduled cron only registers on the default branch and only reads main's copy of ``nightly-changelog.yml``. Develop and release/3.0.0-beta2 each carry their own copies of the workflow, but those copies are consumed only via manual ``workflow_dispatch`` (and even then, only if the maintainer picks that branch in the "Use workflow from" dropdown). Bug fixes to the cron behavior have to land on main to actually take effect. ## 5. Verification - ``./isaaclab.sh -f`` clean. - Logic check: with the glob fix, compile's write to pyproject.toml gets staged; the staged-diff check ``git diff --staged --quiet`` correctly reports work pending; commit composes; the existing ``git pull --rebase`` runs against a clean working tree. - Runtime confirmation deferred to the next scheduled run (2026-05-30 06:27 UTC) or a manual ``workflow_dispatch`` against a sacrificial branch (see Test plan). ## 6. Out of scope - release/3.0.0-beta2 bypass-actor on ruleset 16056339 — repo-admin UI edit, not a code change. - The auto-bump / GitRepo / AutoBumpRun refactor that would move the entire commit/push/rebase lifecycle into cli.py and make the workflow's git-add glob obsolete — sequel PR, design discussed in the iteration thread. ## 7. Test plan - [x] ``./isaaclab.sh -f`` clean. - [x] Authorship audit: both commits authored by jichuanh. - [ ] Optional pre-merge: ``workflow_dispatch`` against a throwaway target branch (cut from develop, single trivial fragment) to confirm end-to-end compile → stage → commit → rebase → push. - [ ] Post-merge: next scheduled cron green for the develop matrix entry.
1. Summary
source/isaaclab_ppisp/docs/CHANGELOG.rstwith a real0.1.0entry.cmd_compile(one bad package no longer kills the batch) + workflow tolerance (commit/push still runs on partial success).2. Background
The
isaaclab_ppisppackage landed via #5499 (directory) + #5748 (CHANGELOG.rst + extension.toml) with the file containing exactly 20 bytes:The compile-time regex in
Package.write_changelog_entryrequires a blank line after the underline as an anchor for the prepend:The stub satisfies header + underline but not the trailing blank line. The PR gate only inspected fragment-diff content, so the malformed target file slipped through. When the next
nicolasm-ppisp-*.minor.rstfragments accumulated and the nightly compile tried to prepend, the regex match failed,cmd_compileexited non-zero on the first package error, and the workflow's commit/push step was skipped under defaultif: success()— every successfully-compiled package's writes were discarded with the failing one.3. Changes
3.1 Seed entry for
isaaclab_ppispsource/isaaclab_ppisp/docs/CHANGELOG.rstcarries a real0.1.0 (2026-05-20)Added section. Pre-commit's end-of-file fixer strips trailing blank lines, so a content-bearing seed is the only stable shape — relying on a bareChangelog\n---------\n\nwould lose the blank line on the next PR that touches the file.3.2 Single source of truth for the header regex
Hoisted to module level in
tools/changelog/cli.py. The producer (write_changelog_entry) and the gate (cmd_check) share the same compiled regex object — drift between gate and compile is structurally impossible.3.3 Self-healing compile
write_changelog_entrynow normalizes the file in-memory before the regex search:Matches "header + dashes + one newline NOT followed by another newline" and inserts the missing
\n. Idempotent on well-formed files via the negative lookahead. The compile writes the normalized text back to disk, so a malformed file becomes canonical on first compile. The original ppisp 20-byte stub would have self-healed silently without this PR.3.4 PR-gate header walk
cmd_checkwalksPackage.discover()and applies the same self-heal normalization, then assertsCHANGELOG_HEADER_REmatches. The narrow "missing blank line" case passes silently (the system will auto-fix). Genuinely broken shapes — noChangelogline, no underline, wrong underline char, leading whitespace, misspelled header — fail with an::error::annotation listing the offending file and the seed-template snippet contributors should copy.3.5 Per-package isolation in
cmd_compileThe compile loop replaces fail-fast
return 1withfailures.append + continue. A package whose CHANGELOG.rst raises is skipped; the rest of the batch continues. Exit code is non-zero only if any package failed, with a summary block naming each failure. Defense-in-depth for failure modes the PR gate doesn't catch: version mismatch betweenextension.tomlandpyproject.toml, filesystem permission errors, direct pushes bypassing the PR gate, future failure modes added toPackage.compile.3.6 Workflow tolerance for partial success
.github/workflows/nightly-changelog.yml:continue-on-error: trueand a step id.if: ${{ !inputs.dry_run }}toif: ${{ always() && !inputs.dry_run }}. Successful packages' on-disk writes are committed and pushed even when compile reported partial failure.if: ${{ steps.compile.outcome == 'failure' }}re-asserts non-zero so the job tile stays red and the maintainer is notified.3.7 Per-PR pytest gate, path-filtered
.github/workflows/changelog-check.ymlrunspytest tools/changelog/test/ -qonly when the PR touchestools/changelog/**(inlinegit diffcheck, no third-party action). PRs that only add fragments undersource/<pkg>/changelog.d/skip the pytest step at zero overhead.3.8 Regression coverage
Six new tests in
tools/changelog/test/test_validate.py:test_changelog_header_re_accepts_minimum_stub— locks the minimum-valid shape.test_changelog_header_re_rejects_unterminated_stub— exact 20-byte ppisp shape rejected by the raw regex.test_every_managed_package_has_parseable_changelog_header— walks every managed package on disk, applies self-heal, asserts the regex matches.test_write_changelog_entry_self_heals_missing_blank_line— compile against the 20-byte stub produces a well-formed file.test_write_changelog_entry_self_heal_is_noop_on_well_formed— well-formed files are unchanged (idempotence).test_cmd_compile_continues_after_per_package_failure— one bad package, one good; good ships, bad is named in the summary, exit code 1.4. Verification
pytest tools/changelog/test/— 89 passed (was 83; +6)../isaaclab.sh -f— pre-commit clean.CHANGELOG.rst(no header at all),cli.py check developemits::error::Malformed CHANGELOG.rst …. With the 20-byte self-healable stub,cli.py checkpasses (compile would auto-fix).cmd_compile --all, good package wrote its CHANGELOG.rst and deleted fragments, bad package was named in the failure summary, exit 1.5. Out of scope / follow-ups
release/3.0.0-beta2(carries the same 20-byte stub). Follow-up after this lands on develop.6. Test plan
pytest tools/changelog/test/— 89/89 pass../isaaclab.sh -f— pre-commit clean.