Repository navigation
[CI] Fix nightly changelog compilation - #8695
Conversation
[High impact] The PR appears safe to merge; no actionable defects were found. SummaryFixes nightly changelog compilation and rollback.
No actionable issues were found. Tests were not run during this review. Reviews (1) · Last reviewed commit: "Fix nightly changelog rollback" · Reviewed by Greptile |
|
run-ci |
There was a problem hiding this comment.
Isaac Lab Review Bot
Needs attention: Scope and over-engineering (1). Other reviewed categories look good.
- PR description: The title and body match the uv pin, HEAD-based rollback filtering, staged-deletion restoration, and focused validation; no performance claim or material hot-path change needs benchmark evidence.
- Design and architecture: Architecture looks good.
- Scope and over-engineering: Minimal implementation: keep the uv pin in
.github/workflows/nightly-changelog.yml, rollback handling intools/changelog/cli.py, and regression coverage intools/changelog/test/test_cli.py; no source modules were added. Collapse the three per-outputls-treesubprocesses into one call, then retain checkout and cleanup as the essential flow. Scope is cohesive; no split recommended. - API: API changes look good.
- Compatibility and deprecation: No breaking changes identified.
- Implementation: Implementation looks good.
- Style consistency: Style consistency looks good.
- Test quality: Test quality looks good.
Minor fixes needed. Posted 1 inline finding.
Automated review; human maintainers own approval decisions.
| def restore(pkg: Path) -> None: | ||
| """Roll ``pkg``'s compile outputs back to ``HEAD``.""" | ||
| run("git", "checkout", "HEAD", "--", *outputs(pkg)) | ||
| tracked = [path for path in outputs(pkg) if run("git", "ls-tree", "-r", "--name-only", "HEAD", "--", path).strip()] |
There was a problem hiding this comment.
🟡 Warning · Scope Complexity — Collapse per-path ls-tree calls
git ls-tree -r --name-only HEAD -- accepts every output pathspec and silently ignores unmatched ones, so one call returns the same tracked file list. The comprehension starts three subprocesses per package for no behavior change.
# Description Apply the nightly changelog compilation fix directly to `release/3.0.0` because automatic release backports are disabled. This is the release-branch companion to #8695. The workflow was writing `uv.lock` with uv 0.12.9 after the lockfile had been generated by uv 0.13.1, so a package version bump reserialized more than local versions and the compiler rejected it. Its rollback then failed for release-managed packages without `changelog.d`, and could leave staged Towncrier fragment deletions behind. This change: - pins the lockfile-writing nightly job to uv 0.13.1; - discovers rollback paths from `HEAD`, allowing absent fragment directories and restoring staged fragment deletions; - extends the existing compiler rollback coverage with both regressions. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Release backport This PR targets `release/3.0.0` directly. ## Screenshots Not applicable. ## Validation - `uv lock --check` with uv 0.13.1: passed - `tools/changelog/test/test_cli.py`: 18 passed - Full repository pre-commit suite against `release/3.0.0`: passed - Real `tools/changelog/cli.py compile` on this base and patch: passed, producing the expected `isaaclab 28.0.0`, `isaaclab_physx 8.0.0`, `isaaclab_rl 1.5.1`, and `isaaclab_tasks 25.2.0` releases ## Checklist - [x] I have read and understood the contribution guidelines - [x] I have run the pre-commit checks - [x] Documentation changes are not required - [x] My changes generate no new warnings - [x] I have validated the changed behavior with focused coverage and applied the test-audit criteria - [x] A package changelog fragment is not required because this changes only CI and tooling - [x] My name already exists in `CONTRIBUTORS.md`
… in pre-commit (#9343) ## Summary The nightly changelog compile has failed every night since 2026-11-20. It runs uv 0.13.1, while `uv.lock` and every other uv pin in the repository use uv 0.12.9. This PR pins the nightly to 0.12.9 and adds a pre-commit check that keeps every uv pin and the lockfile format on one version. # Description Fixes NVBug 7139341 1. **Cause.** After bumping package versions, `tools/changelog/cli.py compile` runs `uv lock` and rejects any lockfile change other than version lines. uv 0.13.1 rewrites a lock written by uv 0.12.9: `revision = 3` becomes `5` and the open3d dependency list changes, so the compile fails. #8695 pinned the nightly to 0.13.1 while the lock was at revision 5. Since then, contributors on different uv versions have flipped the lock between revisions 3 and 5 six times, most recently back to 3 in #9193. 2. **Fix.** Pin the nightly to 0.12.9, the version of the Docker images, the other workflows and the current `uv.lock`. Add a `check-uv-version` pre-commit hook (`tools/pre_commit/check_uv_version.py`): every uv image and `setup-uv` version must name one version, and `uv.lock` must carry the revision that version writes. `uv lock --check` accepts a lock written by either version, so it cannot catch this drift. 3. **Test.** With uv 0.12.9, `python3 tools/changelog/cli.py compile` passes on `main` (6b20eac) and `release/3.1.0` (31b11f2): 16 packages bump and `uv.lock` changes only version lines. The hook passes on this branch and fails on `main` (two uv versions), on a revision-5 lock, and with one Dockerfile at 0.13.1. The scheduled nightly also compiles `release/3.0.0`, whose lock is still at revision 5: #9344 re-locks it with uv 0.12.9 and should merge before the next changelog fragment reaches that branch. Suggested reviewer: kellyguo11 (#8695). ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `main` ## Screenshots Not applicable. ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `uv run isaaclab --format` - [x] No documentation change is needed: only CI and pre-commit change - [x] My changes generate no new warnings - [x] I have validated the changed behavior with focused coverage and applied the [test-audit criteria](https://github.com/isaac-sim/IsaacLab/blob/HEAD/skills/developer/test-audit/SKILL.md) to any test changes: no test changes; the hook was run against passing and failing pin sets - [x] No changelog fragment: no source package changes - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
… in pre-commit (#9343) ## Summary The nightly changelog compile has failed every night since 2026-11-20. It runs uv 0.13.1, while `uv.lock` and every other uv pin in the repository use uv 0.12.9. This PR pins the nightly to 0.12.9 and adds a pre-commit check that keeps every uv pin and the lockfile format on one version. # Description Fixes NVBug 7139341 1. **Cause.** After bumping package versions, `tools/changelog/cli.py compile` runs `uv lock` and rejects any lockfile change other than version lines. uv 0.13.1 rewrites a lock written by uv 0.12.9: `revision = 3` becomes `5` and the open3d dependency list changes, so the compile fails. #8695 pinned the nightly to 0.13.1 while the lock was at revision 5. Since then, contributors on different uv versions have flipped the lock between revisions 3 and 5 six times, most recently back to 3 in #9193. 2. **Fix.** Pin the nightly to 0.12.9, the version of the Docker images, the other workflows and the current `uv.lock`. Add a `check-uv-version` pre-commit hook (`tools/pre_commit/check_uv_version.py`): every uv image and `setup-uv` version must name one version, and `uv.lock` must carry the revision that version writes. `uv lock --check` accepts a lock written by either version, so it cannot catch this drift. 3. **Test.** With uv 0.12.9, `python3 tools/changelog/cli.py compile` passes on `main` (6b20eac) and `release/3.1.0` (31b11f2): 16 packages bump and `uv.lock` changes only version lines. The hook passes on this branch and fails on `main` (two uv versions), on a revision-5 lock, and with one Dockerfile at 0.13.1. The scheduled nightly also compiles `release/3.0.0`, whose lock is still at revision 5: #9344 re-locks it with uv 0.12.9 and should merge before the next changelog fragment reaches that branch. Suggested reviewer: kellyguo11 (#8695). ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Release backport - [x] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `main` ## Screenshots Not applicable. ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `uv run isaaclab --format` - [x] No documentation change is needed: only CI and pre-commit change - [x] My changes generate no new warnings - [x] I have validated the changed behavior with focused coverage and applied the [test-audit criteria](https://github.com/isaac-sim/IsaacLab/blob/HEAD/skills/developer/test-audit/SKILL.md) to any test changes: no test changes; the hook was run against passing and failing pin sets - [x] No changelog fragment: no source package changes - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there (cherry picked from commit 87d5f53)
Description
Restore nightly changelog compilation on
develop. The matchingrelease/3.0.0fix is in #8696 because automatic release backports are disabled.The workflow was writing
uv.lockwith uv 0.12.9 after the lockfile had been generated by uv 0.13.1, so a package version bump reserialized more than local versions and the compiler rejected it. Its rollback then failed for release-managed packages withoutchangelog.d, and could leave staged Towncrier fragment deletions behind.This change:
HEAD, allowing absent fragment directories and restoring staged fragment deletions;Type of change
Release branch
release/3.0.0PR: [Backport release/3.0.0] Fix nightly changelog compilation #8696Screenshots
Not applicable.
Validation
tools/changelog/test/test_cli.py: 18 passedtools/changelog/cli.py compilewith uv 0.13.1 ondevelop: passed; eight pending package releases compiledrelease/3.0.0without conflicts; focused tests passed and the real compiler produced the expectedisaaclab 28.0.0,isaaclab_physx 8.0.0,isaaclab_rl 1.5.1, andisaaclab_tasks 25.2.0releasesChecklist
CONTRIBUTORS.md