Skip to content

[Changelog] Reject malformed CHANGELOG.rst at PR time and seed isaaclab_ppisp - #5831

Merged
kellyguo11 merged 3 commits into
isaac-sim:developfrom
hujc7:jichuanh/ppisp-changelog-stub
May 29, 2026
Merged

kellyguo11 merged 3 commits into
isaac-sim:developfrom
hujc7:jichuanh/ppisp-changelog-stub

Conversation

@hujc7

@hujc7 hujc7 commented May 28, 2026 •

Copy link
Copy Markdown
Collaborator

1. Summary

2. Background

The isaaclab_ppisp package landed via #5499 (directory) + #5748 (CHANGELOG.rst + extension.toml) with the file containing exactly 20 bytes:

Changelog
---------

The compile-time regex in Package.write_changelog_entry requires a blank line after the underline as an anchor for the prepend:

re.search(r"^Changelog\n-+\s*\n\s*\n", text, re.MULTILINE)

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.rst fragments accumulated and the nightly compile tried to prepend, the regex match failed, cmd_compile exited non-zero on the first package error, and the workflow's commit/push step was skipped under default if: success() — every successfully-compiled package's writes were discarded with the failing one.

3. Changes

3.1 Seed entry for isaaclab_ppisp

source/isaaclab_ppisp/docs/CHANGELOG.rst carries a real 0.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 bare Changelog\n---------\n\n would lose the blank line on the next PR that touches the file.

3.2 Single source of truth for the header regex

CHANGELOG_HEADER_RE = re.compile(r"^Changelog\n-+\s*\n\s*\n", re.MULTILINE)

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_entry now normalizes the file in-memory before the regex search:

text = re.sub(r"^(Changelog\n-+)\n(?!\n)", r"\1\n\n", text, count=1, flags=re.MULTILINE)

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_check walks Package.discover() and applies the same self-heal normalization, then asserts CHANGELOG_HEADER_RE matches. The narrow "missing blank line" case passes silently (the system will auto-fix). Genuinely broken shapes — no Changelog line, 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_compile

The compile loop replaces fail-fast return 1 with failures.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 between extension.toml and pyproject.toml, filesystem permission errors, direct pushes bypassing the PR gate, future failure modes added to Package.compile.

3.6 Workflow tolerance for partial success

.github/workflows/nightly-changelog.yml:

  • Compile step gets continue-on-error: true and a step id.
  • Commit/push step guard changes from if: ${{ !inputs.dry_run }} to if: ${{ always() && !inputs.dry_run }}. Successful packages' on-disk writes are committed and pushed even when compile reported partial failure.
  • Trailing step 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.yml runs pytest tools/changelog/test/ -q only when the PR touches tools/changelog/** (inline git diff check, no third-party action). PRs that only add fragments under source/<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.
  • Self-heal verified: re-introduced the 20-byte stub, ran a synthetic compile, on-disk file came back canonical with the new entry on top.
  • Gate path verified: with a genuinely broken CHANGELOG.rst (no header at all), cli.py check develop emits ::error::Malformed CHANGELOG.rst …. With the 20-byte self-healable stub, cli.py check passes (compile would auto-fix).
  • Per-package isolation verified: synthetic two-package fixture with one broken, ran 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

  • Cherry-pick to 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.
  • Regression verified by reverting the seed.
  • CI green on this PR.

@github-actions github-actions Bot added isaac-lab Related to Isaac Lab team infrastructure labels May 28, 2026
@greptile-apps

greptile-apps Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes a nightly compile regression by seeding source/isaaclab_ppisp/docs/CHANGELOG.rst with a valid 0.1.0 entry (adding the required blank line after the underline) and mirrors the compile-time header invariant into the PR gate so malformed stubs are caught before they can wedge another nightly run.

  • tools/changelog/cli.py: Hoists CHANGELOG_HEADER_RE to module scope so cmd_check (the PR gate) and Package.write_changelog_entry (the nightly compile) share one compiled regex — structural drift between the two is now impossible. cmd_check now walks all managed packages and emits a ::error:: annotation with a seed template for any file whose header fails the regex.
  • .github/workflows/changelog-check.yml: Adds a path-filtered conditional step that runs pytest tools/changelog/test/ only when tools/changelog/ is touched, gating cli.py refactors without overhead on fragment-only PRs.
  • tools/changelog/test/test_validate.py: Adds three regression tests — unit tests for the minimum-valid and unterminated-stub shapes, plus a live filesystem integration test (test_every_managed_package_has_parseable_changelog_header) that would have caught the #5748 stub at PR time.

Confidence Score: 4/5

Safe 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

Filename Overview
.github/workflows/changelog-check.yml Adds conditional pytest step for tools/changelog/ changes; minor concerns around step ordering and unpinned pytest dependency.
tools/changelog/cli.py Hoists CHANGELOG_HEADER_RE to module scope and adds malformed-header gate to cmd_check; logic is correct and consistent with the compile path.
tools/changelog/test/test_validate.py Adds 3 targeted regression tests for CHANGELOG_HEADER_RE and a live filesystem integration test; all tests are well-scoped.
source/isaaclab_ppisp/docs/CHANGELOG.rst Seeds the previously malformed 20-byte stub with a valid 0.1.0 entry, providing the blank-line anchor the compile regex requires.
source/isaaclab_ppisp/changelog.d/jichuanh-ppisp-changelog-stub.skip Empty .skip file satisfying the PR-gate fragment requirement for isaaclab_ppisp; no issues.

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]
Loading

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.
@hujc7
hujc7 force-pushed the jichuanh/ppisp-changelog-stub branch from b6363ed to c7c5dd5 Compare May 28, 2026 07:41
Comment thread .github/workflows/changelog-check.yml Outdated
Comment on lines +67 to +73
- 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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 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.

Suggested change
- 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

Comment thread .github/workflows/changelog-check.yml Outdated
Comment on lines +63 to +65
- name: Install pytest
if: steps.tool_diff.outputs.changed == 'true'
run: pip install pytest

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 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.

Suggested change
- 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!

@isaaclab-review-bot isaaclab-review-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

  1. Single Source of Truth — CHANGELOG_HEADER_RE is hoisted to module level and shared between write_changelog_entry (production) and cmd_check (validation). This makes drift between gate and compile structurally impossible.

  2. Actionable Error Messages — The ::error:: output includes the exact seed template contributors should copy, reducing friction for fixing malformed files.

  3. 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
  4. Smart CI Optimization — Path-filtered pytest execution avoids overhead on fragment-only PRs while still gating cli.py refactors.


🔵 Suggestions (Non-Blocking)

  1. Consider a cmd_check integration test — While the regex matching is thoroughly tested, there's no explicit test for cmd_check emitting the ::error:: output when encountering a malformed header. The existing test_every_managed_package_has_parseable_changelog_header test 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

@isaaclab-review-bot isaaclab-review-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

  1. Single Source of Truth — CHANGELOG_HEADER_RE is hoisted to module level and shared between write_changelog_entry (production) and cmd_check (validation), making drift structurally impossible.

  2. Actionable Error Messages — The ::error:: output includes the exact seed template contributors should copy, which significantly reduces friction.

  3. 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.

  4. 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 pytest
2. 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.

hujc7 added 2 commits May 28, 2026 07:55
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.
@kellyguo11
kellyguo11 merged commit 118d13d into isaac-sim:develop May 29, 2026
37 checks passed
kellyguo11 added a commit that referenced this pull request May 29, 2026
…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>
hujc7 added a commit to hujc7/IsaacLab that referenced this pull request May 29, 2026
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.
hujc7 added a commit that referenced this pull request Jun 2, 2026
…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.
Du-322 pushed a commit to StanleyChueh/IsaacLab that referenced this pull request Aug 11, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants