Repository navigation
[Backport release/3.0.0] Fix nightly changelog compilation - #8696
kellyguo11 merged 1 commit into
Conversation
|
run-ci |
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryFixes nightly changelog compilation and rollback on the release branch.
No actionable issues were found. Tests were inspected but not run during this review. Reviews (1) · Last reviewed commit: "Fix nightly changelog rollback" · Reviewed by Greptile |
There was a problem hiding this comment.
Isaac Lab Review Bot
Needs attention: Style consistency (2). Other reviewed categories look good.
- PR description: The description accurately maps the uv pin, HEAD-based rollback discovery, and rollback coverage to the diff; validation is specific, and no performance evidence is needed.
- Design and architecture: Architecture looks good.
- Scope and over-engineering: No over-engineering issues.
- API: API changes look good.
- Compatibility and deprecation: No breaking changes identified.
- Implementation: Implementation looks good.
- Style consistency: The added HEAD filter lacks the brief constraint rationale needed to explain why direct checkout is unsafe; add one concise comment and correct the misleading test ID.
- Test quality: Test quality looks good.
Minor fixes needed. Posted 2 inline findings.
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 · Style Consistency — Explain the HEAD-existence filter
Why outputs are filtered is non-obvious: git checkout HEAD -- aborts for paths absent from HEAD, such as release packages without changelog.d. Add a one-line comment stating that constraint, as sync_lock does for UV_FROZEN.
| (lock(), lock(header="version = 1\nrevision = 3\n"), False), | ||
| (lock() + ROOT.format("0.1.0"), lock(pkg="1.0.1") + ROOT.format("0.2.0"), False), # only versions move | ||
| (lock(), lock(pkg="1.0.1"), True), | ||
| (lock(), lock(header="version = 1\nrevision = 3\n"), False, True), |
There was a problem hiding this comment.
🟡 Warning · Style Consistency — Parametrize ID hides new condition
This row now also covers rollback for a package without changelog.d, but keeps the ID "re-serialized", so a failure reports only the lock condition. Rename the ID to name both conditions.
# Description Restore nightly changelog compilation on `develop`. The matching `release/3.0.0` fix is in #8696 because automatic release backports are disabled. 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 branch - Separate `release/3.0.0` PR: #8696 ## Screenshots Not applicable. ## Validation - `tools/changelog/test/test_cli.py`: 18 passed - Full repository pre-commit suite: passed - Real `tools/changelog/cli.py compile` with uv 0.13.1 on `develop`: passed; eight pending package releases compiled - Applied the commit to `release/3.0.0` without conflicts; focused tests passed and the real compiler produced 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`
…9344) ## Summary `release/3.0.0` pins uv 0.12.9 in its Docker images and workflows, but its `uv.lock` was last written by uv 0.13.1. The nightly changelog compile re-locks after a version bump and rejects any other lockfile change, so the next version bump on this branch fails once #9343 pins the nightly to 0.12.9. This PR re-locks the branch with uv 0.12.9; no package version changes. # Description Part of NVBug 7139341, together with #9343 (`main`). 1. **Cause.** The backport of #8584 (#8592) wrote `uv.lock` with uv 0.13.1, so the lock is at `revision = 5`, while the branch's other uv pins are 0.12.9, which writes revision 3. The scheduled nightly compiles `main`, `release/3.1.0` and `release/3.0.0` with one uv from `main`'s workflow. That uv is now 0.12.9 (#9343), and with it the compile on this branch rewrites the lock format and refuses the result. 2. **Fix.** Re-lock with uv 0.12.9 (`uv lock --upgrade-package isaaclab`). Only the lock revision changes, and open3d's dependency list drops `ipywidgets`, as uv 0.12.9 writes it on `main` and `release/3.1.0`: a default `uv sync` then installs 191 instead of 207 packages, without `ipywidgets` and its dependencies, which only the `mimic` extra requires. Open3D's Jupyter web visualizer needs it; Isaac Lab code does not import it outside `isaaclab_mimic`. Also pin this branch's own nightly workflow to 0.12.9. 3. **Test.** On this branch plus one changelog fragment, with uv 0.12.9: `python3 tools/changelog/cli.py compile` fails before this change (`uv lock changed more than package versions`) and passes after it, with only version lines moving in `uv.lock`. `uv lock --check` passes. Merge order: before the next backport that brings a changelog fragment to `release/3.0.0`; the branch has none pending today. Suggested reviewer: kellyguo11 (#8592, #8696). ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Release backport - [ ] <!-- backport-active-release --> Backport this pull request to the active release branch after it merges into `main` Not applicable: this PR targets `release/3.0.0`. ## 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 the lockfile and a CI pin 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 nightly compile was run before and after - [x] No changelog fragment: no source package changes - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
Description
Apply the nightly changelog compilation fix directly to
release/3.0.0because automatic release backports are disabled. This is the release-branch companion to #8695.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 backport
This PR targets
release/3.0.0directly.Screenshots
Not applicable.
Validation
uv lock --checkwith uv 0.13.1: passedtools/changelog/test/test_cli.py: 18 passedrelease/3.0.0: passedtools/changelog/cli.py compileon this base and patch: passed, producing the expectedisaaclab 28.0.0,isaaclab_physx 8.0.0,isaaclab_rl 1.5.1, andisaaclab_tasks 25.2.0releasesChecklist
CONTRIBUTORS.md