Repository navigation
Switches to nightly build for Docker builds and multi-version docs - #5970
Conversation
There was a problem hiding this comment.
🤖 Isaac Lab Review Bot
Summary
This PR moves Docker image builds and multi-version documentation deploys from trigger-on-every-push to a nightly schedule (cron at 0 3 * * * UTC). It introduces:
- A shared CI config file (
.github/workflows/config.yaml) centralizing image names/tags. - Modifications to the docs workflow to trigger multi-version builds only on
schedule/workflow_dispatch(instead of on every push tomain/develop/release/). - A new
publish-images.yamlworkflow for nightly Docker builds with multiarch support, proper tagging, and concurrency control.
Findings
-
Base branch mismatch: The PR metadata shows
baseRefName: "main"but the task description saysBase: develop. The PR body and code logic both referencedevelopas the nightly source branch. This appears intentional — merging tomainwhile the nightly crons check outdevelop. -
config.yamlusesnvcr.io/nvidian/(internal NGC org): The image references (nvcr.io/nvidian/isaac-simandnvcr.io/nvidian/isaac-lab) point to NVIDIA internal registries. This is fine for an internal CI setup but worth noting — external contributors won't be able to pull these images. -
Docs deploy condition change: The old condition deployed on pushes to
main/develop/release/*. The new condition only deploys onscheduleorworkflow_dispatch. This means pushing tomain(e.g., a hotfix) will no longer auto-deploy docs — a manualworkflow_dispatchwould be needed. Confirm this is the intended trade-off. -
Docker login secret interpolation: In
publish-images.yamllinedocker login -u \$oauthtoken -p ${{ env.NGC_API_KEY }} nvcr.io— the${{ env.NGC_API_KEY }}is interpolated directly into the shell command. While it works, using--password-stdin(e.g.,echo "$NGC_API_KEY" | docker login --username \$oauthtoken --password-stdin nvcr.io) is generally recommended to avoid the credential appearing in process listings. -
Cron timing: Both
docs.yamlandpublish-images.yamlshare the same cron (0 3 * * *). If they share self-hosted runners, they could compete for resources. Consider staggering them (e.g., docs at0 3 * * *and images at0 5 * * *). -
No
workflow_dispatchinputs onpublish-images.yaml: The workflow allows manual dispatch but has no inputs to select a branch. Thereflogic defaults to the checked-out branch for non-schedule events, which means the caller must manually select the branch in the GitHub UI "Run workflow" dropdown. This works but adding explicit inputs could improve UX.
Verdict
Minor suggestions — no blocking issues found. The overall approach is sound and well-structured. Items 3–5 are worth confirming with the team but are not blockers.
Update (53019b3): Single file changed (.github/workflows/publish-images.yaml). Key improvements:
- ✅ Finding #6 resolved:
workflow_dispatchnow accepts abranchinput parameter — much better UX for manual triggers. - New
resolve-branchesjob builds a JSON matrix of branches to publish (develop + main + configurable release branches fromCRON_RELEASE_BRANCHESenv). - Docker builds now run as a matrix strategy — parallel builds per branch with per-branch concurrency groups. Clean design.
CRON_RELEASE_BRANCHESenv var acts as single source of truth for active release branches (currentlyrelease/3.0.0-beta2).
New observation: The resolve-branches job uses xargs -n1 to split CSV release branches — this will silently produce no output if CRON_RELEASE_BRANCHES is empty (due to || true), but develop and main are always prepended so it's safe. No new issues found.
Update (de689da): Previous concerns all addressed. No new issues in this commit.
Changes reviewed:
CRON_RELEASE_BRANCHES→CRON_BRANCHES(now includesdevelopdirectly in the env var, removing hardcoded prepend logic)resolve-branchessimplified to a single CSV-split path for both schedule and manual triggersmainexplicitly excluded from nightly publish (deferred topostmerge-ci.ymlon push) — clean separation of concerns- Immutable tags now use full SHA (
latest-develop-<full-sha>) instead ofrun_number-short_sha— better traceability - Added skip guard:
docker manifest inspectchecks if the commit was already published, avoiding redundant builds
Previous findings status:
- ✅ Finding #4 (NGC
--password-stdin): Fixed - ✅ Finding #6 (
workflow_dispatchinput): Fixed (previous commit) - ✅ Inline P1 (stale
github.sha): Fixed — now usesgit rev-parse HEAD - ✅ Inline P1/Security (NGC key in shell): Fixed — uses
--password-stdin - ℹ️ Inline P2 (docs deploy lag): Accepted by team as intentional
Update (24fa749): Minor timing adjustment only — no structural changes.
Changes reviewed:
.github/workflows/docs.yaml: Cron schedule shifted from0 3 * * *to0 2 * * *(6pm PST / 7pm PDT instead of 7pm PST / 8pm PDT).github/workflows/publish-images.yaml: Same cron schedule shift (0 3→0 2)
Assessment: Both workflows now trigger one hour earlier. This also resolves Finding #5 (resource competition between docs and images sharing the same cron time) — wait, they still share the same time (0 2), so that observation remains valid. No new issues introduced. Trivial change.
All previous findings status unchanged.
Greptile SummaryThis PR moves multi-version doc builds and Docker image publishing off per-push branch triggers onto a nightly schedule (
Confidence Score: 3/5Two real defects in the new publish-images workflow should be addressed before the nightly cron fires in production. The new publish-images.yaml workflow has two concrete defects: immutable Docker tags will silently embed the wrong commit SHA (default branch HEAD instead of the checked-out develop commit), making build provenance tracing unreliable, and the NGC registry credential is interpolated into the shell command rather than passed via stdin, exposing it in the process list on every nightly run. .github/workflows/publish-images.yaml — both the SHA capture logic and the NGC login step need attention before nightly runs produce misleadingly tagged images.
|
| Filename | Overview |
|---|---|
| .github/workflows/publish-images.yaml | New workflow for nightly Docker image publishing; contains a SHA mismatch bug where scheduled builds tag images with main's commit SHA instead of the checked-out develop SHA, and the NGC API key is interpolated directly into the shell command rather than passed via --password-stdin. |
| .github/workflows/docs.yaml | Multi-version doc build/deploy shifted from per-push branch triggers to nightly schedule + workflow_dispatch; main and release pushes no longer immediately redeploy docs (up to 24h lag), which is intentional but worth documenting. |
| .github/workflows/config.yaml | New shared config file externalizing NGC image names and tags; straightforward and correct. |
Sequence Diagram
sequenceDiagram
participant Cron as Nightly Cron (03:00 UTC)
participant WD as workflow_dispatch
participant Push as Branch Push
participant Docs as docs.yaml
participant Pub as publish-images.yaml
Cron->>Docs: trigger (schedule)
Docs->>Docs: "doc-build-type trigger-deploy=true"
Docs->>Docs: build-multi-docs (checkout develop)
Docs->>Docs: deploy-docs to gh-pages
Cron->>Pub: trigger (schedule)
Pub->>Pub: config job (load config.yaml)
Pub->>Pub: "build-and-push (checkout develop, SHA=main HEAD)"
Pub->>Pub: tag latest-develop + latest-develop-run-sha
Pub->>Pub: docker push to NGC registry
WD->>Docs: trigger (workflow_dispatch)
Docs->>Docs: "doc-build-type trigger-deploy=true"
Docs->>Docs: build-multi-docs (checkout current ref)
Docs->>Docs: deploy-docs to gh-pages
WD->>Pub: trigger (workflow_dispatch, any branch)
Pub->>Pub: build-and-push (checkout selected ref)
Pub->>Pub: tag based on branch (main/release/develop)
Pub->>Pub: docker push to NGC registry
Push->>Docs: trigger (push to main/develop/release)
Docs->>Docs: "doc-build-type trigger-deploy=false"
Docs->>Docs: build-latest-docs (single-version artifact only, no deploy)
Reviews (1): Last reviewed commit: "Matrix for nightly Docker images for dev..." | Re-trigger Greptile
…hes (#5971) # Description !!merge #5970 first then #5971!! Push events to `develop` / `release/*` no longer run the expensive multi-version docs deploy or publish Docker images. Both are now owned by the nightly cron registered on `main` (#5970). This eliminates redundant, resource-heavy work on every integration push while preserving fast per-push/PR validation. ## 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 `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
…hes (isaac-sim#5971) # Description !!merge isaac-sim#5970 first then isaac-sim#5971!! Push events to `develop` / `release/*` no longer run the expensive multi-version docs deploy or publish Docker images. Both are now owned by the nightly cron registered on `main` (isaac-sim#5970). This eliminates redundant, resource-heavy work on every integration push while preserving fast per-push/PR validation. ## 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 `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
…saac-sim#5970) # Description !!merge isaac-sim#5970 first then isaac-sim#5971!! Defer the multi-version sphinx-multiversion docs build off every push and onto a nightly schedule from develop. Defer develop Docker builds to nightly schedule. ## 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 `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
Description
!!merge #5970 first then #5971!!
Defer the multi-version sphinx-multiversion docs build off every push and onto a nightly schedule from develop.
Defer develop Docker builds to nightly schedule.
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there