Skip to content

Switches to nightly build for Docker builds and multi-version docs - #5970

Merged
ooctipus merged 4 commits into
isaac-sim:mainfrom
nvsekkin:esekkin/nightly-crons-main
Jun 10, 2026
Merged

ooctipus merged 4 commits into
isaac-sim:mainfrom
nvsekkin:esekkin/nightly-crons-main

Conversation

@nvsekkin

@nvsekkin nvsekkin commented Jun 4, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • 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
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

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

🤖 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:

  1. A shared CI config file (.github/workflows/config.yaml) centralizing image names/tags.
  2. Modifications to the docs workflow to trigger multi-version builds only on schedule/workflow_dispatch (instead of on every push to main/develop/release/).
  3. A new publish-images.yaml workflow for nightly Docker builds with multiarch support, proper tagging, and concurrency control.

Findings

  1. Base branch mismatch: The PR metadata shows baseRefName: "main" but the task description says Base: develop. The PR body and code logic both reference develop as the nightly source branch. This appears intentional — merging to main while the nightly crons check out develop.

  2. config.yaml uses nvcr.io/nvidian/ (internal NGC org): The image references (nvcr.io/nvidian/isaac-sim and nvcr.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.

  3. Docs deploy condition change: The old condition deployed on pushes to main/develop/release/*. The new condition only deploys on schedule or workflow_dispatch. This means pushing to main (e.g., a hotfix) will no longer auto-deploy docs — a manual workflow_dispatch would be needed. Confirm this is the intended trade-off.

  4. Docker login secret interpolation: In publish-images.yaml line docker 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.

  5. Cron timing: Both docs.yaml and publish-images.yaml share the same cron (0 3 * * *). If they share self-hosted runners, they could compete for resources. Consider staggering them (e.g., docs at 0 3 * * * and images at 0 5 * * *).

  6. No workflow_dispatch inputs on publish-images.yaml: The workflow allows manual dispatch but has no inputs to select a branch. The ref logic 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_dispatch now accepts a branch input parameter — much better UX for manual triggers.
  • New resolve-branches job builds a JSON matrix of branches to publish (develop + main + configurable release branches from CRON_RELEASE_BRANCHES env).
  • Docker builds now run as a matrix strategy — parallel builds per branch with per-branch concurrency groups. Clean design.
  • CRON_RELEASE_BRANCHES env var acts as single source of truth for active release branches (currently release/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 includes develop directly in the env var, removing hardcoded prepend logic)
  • resolve-branches simplified to a single CSV-split path for both schedule and manual triggers
  • main explicitly excluded from nightly publish (deferred to postmerge-ci.yml on push) — clean separation of concerns
  • Immutable tags now use full SHA (latest-develop-<full-sha>) instead of run_number-short_sha — better traceability
  • Added skip guard: docker manifest inspect checks if the commit was already published, avoiding redundant builds

Previous findings status:

  • ✅ Finding #4 (NGC --password-stdin): Fixed
  • ✅ Finding #6 (workflow_dispatch input): Fixed (previous commit)
  • ✅ Inline P1 (stale github.sha): Fixed — now uses git 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 from 0 3 * * * to 0 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-apps

greptile-apps Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR moves multi-version doc builds and Docker image publishing off per-push branch triggers onto a nightly schedule (0 3 * * * UTC), reducing redundant CI work on develop and release/** branches. A new shared config.yaml centralizes NGC image names and tags, and a new publish-images.yaml workflow handles nightly Docker builds from the develop tip with optional manual dispatch for main/release images.

  • Docs workflow: trigger-deploy now fires only on schedule/workflow_dispatch; branch pushes (including main) produce a single-version artifact only \u2014 multi-version deployment is deferred to the next nightly run (up to 24 h delay after a release merge).
  • Publish-images workflow: Correctly checks out develop on scheduled runs but uses github.sha (which reflects the default branch, typically main) for the immutable Docker tag, so the SHA stub in latest-develop-<run>-<sha> will not match the code that was actually built.
  • NGC login: The API key is interpolated directly into the shell command via ${{ env.NGC_API_KEY }} rather than passed via --password-stdin, exposing it in the runner process list.

Confidence Score: 3/5

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

Security Review

  • Credential in process list (.github/workflows/publish-images.yaml, Login to NGC step): ${{ env.NGC_API_KEY }} is evaluated at workflow parse time and the literal secret value is written into the shell script. For the duration of the docker login call the credential is visible in the runner's process table and can be surfaced by any debug tooling (e.g. set -x). Replacing the inline interpolation with echo \"$NGC_API_KEY\" | docker login -u '$oauthtoken' --password-stdin nvcr.io eliminates the exposure.

Important Files Changed

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

Reviews (1): Last reviewed commit: "Matrix for nightly Docker images for dev..." | Re-trigger Greptile

Comment thread .github/workflows/publish-images.yaml Resolved
Comment thread .github/workflows/publish-images.yaml Resolved
Comment thread .github/workflows/docs.yaml Resolved
Comment thread .github/workflows/config.yaml Resolved
Comment thread .github/workflows/publish-images.yaml Resolved
@nvsekkin
nvsekkin requested a review from kellyguo11 June 9, 2026 04:49
Comment thread .github/workflows/config.yaml Resolved
Comment thread .github/workflows/publish-images.yaml Resolved
Comment thread .github/workflows/publish-images.yaml Resolved
@ooctipus ooctipus changed the title Switch to nightly build for Docker builds and multi-version docs Switches to nightly build for Docker builds and multi-version docs Jun 10, 2026
@ooctipus
ooctipus merged commit f58361c into isaac-sim:main Jun 10, 2026
10 checks passed
nvsekkin added a commit that referenced this pull request Jun 10, 2026
…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
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
…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
Du-322 pushed a commit to StanleyChueh/IsaacLab that referenced this pull request Aug 11, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants