Skip to content

[CI] Bump test containers to latest - #1299

Merged
kevalmorabia97 merged 2 commits into
mainfrom
kmorabia/bump-ci
Apr 22, 2026
Merged

[CI] Bump test containers to latest#1299
kevalmorabia97 merged 2 commits into
mainfrom
kmorabia/bump-ci

Conversation

@kevalmorabia97

@kevalmorabia97 kevalmorabia97 commented Apr 20, 2026

Copy link
Copy Markdown
Collaborator
  • Use latest containers for testing in CICD

Summary by CodeRabbit

  • Chores

    • Bumped TensorRT-LLM Docker images to 1.3.0rc12 in example and GPU test workflows.
    • Updated PyTorch container image from 26.01 to 26.03 for GPU tests.
    • Captured uv lock upgrade output to a temp file, inlined it into PR bodies, and adjusted workflow heredoc/templating and step behavior.
  • Documentation

    • Clarified an inline comment and simplified a warning message for an ONNX quantization extension.

Signed-off-by: Keval Morabia <28916987+kevalmorabia97@users.noreply.github.com>
@kevalmorabia97
kevalmorabia97 requested review from a team as code owners April 20, 2026 11:17
@kevalmorabia97
kevalmorabia97 requested a review from ajrasane April 20, 2026 11:17
@coderabbitai

coderabbitai Bot commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: f82ed37e-6b87-4a0b-8203-7674f4551dcc

📥 Commits

Reviewing files that changed from the base of the PR and between 23512a7 and 2896e13.

📒 Files selected for processing (1)
  • .github/workflows/bump_uv_lock.yml
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/bump_uv_lock.yml

📝 Walkthrough

Walkthrough

Updated CI workflow YAMLs (Docker image bumps for TensorRT-LLM and PyTorch), refined an inline comment and a warning string in an ONNX quantization extension, and enhanced a bump-uv-lock GitHub Action step to capture uv lock --upgrade output and inline it into the PR body.

Changes

Cohort / File(s) Summary
Example & GPU workflow updates
.github/workflows/example_tests.yml, .github/workflows/gpu_tests.yml
Bumped TensorRT-LLM image nvcr.io/nvidia/tensorrt-llm/release:1.3.0rc10...:1.3.0rc12. In gpu_tests.yml also bumped PyTorch image pytorch:26.01-py3pytorch:26.03-py3 and removed an outdated ONNX-extension comment.
bump_uv_lock workflow
.github/workflows/bump_uv_lock.yml
Step now runs uv lock --upgrade with set -o pipefail and `2>&1
ONNX quantization extension
modelopt/onnx/quantization/extensions.py
Reworded inline comment describing cppimport as “not actively maintained” (was “no longer maintained”) and simplified the warning when loading modelopt_round_and_pack_ext; fallback behavior unchanged.

Sequence Diagram(s)

sequenceDiagram
    participant Runner as GitHub Actions Runner
    participant UV as `uv` CLI
    participant FS as Filesystem (/tmp/uv_lock_output.txt)
    participant GH as GitHub API (create PR)

    Runner->>UV: run `uv lock --upgrade` (with pipefail)
    UV->>FS: stream combined stdout/stderr (via `2>&1 | tee`)
    Runner->>FS: read `/tmp/uv_lock_output.txt` into UV_OUTPUT
    Runner->>GH: create PR with body including `<details>` containing UV_OUTPUT
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title '[CI] Bump test containers to latest' accurately summarizes the main change across all modified files—updating Docker and container image versions in CI workflows.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Security Anti-Patterns ✅ Passed No security anti-patterns detected: torch.load with weights_only=False, numpy.load with allow_pickle=True, hardcoded trust_remote_code=True, eval/exec on untrusted input, or # nosec comments not found in Python code.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch kmorabia/bump-ci

Comment @coderabbitai help to get the list of available commands and usage tips.

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.github/workflows/example_tests.yml:
- Line 63: Replace the unavailable container tag
"nvcr.io/nvidia/tensorrt-llm/release:1.3.0rc12" with the public registry tag
"nvcr.io/nvidia/tensorrt-llm/release:1.3.0rc11" in the workflow file; update
both occurrences of the docker_image setting (the string
"nvcr.io/nvidia/tensorrt-llm/release:1.3.0rc12") so the workflow uses 1.3.0rc11
instead of rc12.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 87ffebce-f25d-44dc-96da-2735a7481423

📥 Commits

Reviewing files that changed from the base of the PR and between 010b220 and 407ff6c.

📒 Files selected for processing (3)
  • .github/workflows/example_tests.yml
  • .github/workflows/gpu_tests.yml
  • modelopt/onnx/quantization/extensions.py

Comment thread .github/workflows/example_tests.yml
@github-actions

github-actions Bot commented Apr 20, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-04-22 03:44 UTC

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
.github/workflows/bump_uv_lock.yml (1)

57-74: Use --body-file instead of inline --body for multiline output.

The gh pr create --body-file option is explicitly supported and avoids shell quoting and escaping complexity when embedding multiline command output with variable substitution. Write the PR body to a temporary file first, then pass it via --body-file.

Suggested refactor
-          UV_OUTPUT=$(cat /tmp/uv_lock_output.txt)
-          gh pr create \
-            --title "[chore]: weekly bump of uv.lock on ${BASE} ($(date +%Y-%m-%d))" \
-            --body "$(cat <<EOF
-          ## Summary
-          Automated weekly update of uv.lock file for nSpect Scanning:
-          - \`uv.lock\` — upgraded all transitive dependencies to latest compatible versions
-
-          <details>
-          <summary>uv lock --upgrade output</summary>
-
-          \`\`\`
-          ${UV_OUTPUT}
-          \`\`\`
-
-          </details>
-          EOF
-          )" \
-            --base "$BASE"
+          PR_BODY_FILE=/tmp/pr_body.md
+          cat > "$PR_BODY_FILE" <<'EOF'
+          ## Summary
+          Automated weekly update of uv.lock file for nSpect Scanning:
+          - `uv.lock` — upgraded all transitive dependencies to latest compatible versions
+
+          <details>
+          <summary>uv lock --upgrade output</summary>
+
+          ```
+          EOF
+          cat /tmp/uv_lock_output.txt >> "$PR_BODY_FILE"
+          cat >> "$PR_BODY_FILE" <<'EOF'
+          ```
+
+          </details>
+          EOF
+
+          gh pr create \
+            --title "[chore]: weekly bump of uv.lock on ${BASE} ($(date +%Y-%m-%d))" \
+            --body-file "$PR_BODY_FILE" \
+            --base "$BASE"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/bump_uv_lock.yml around lines 57 - 74, Replace the inline
multiline --body invocation for gh pr create with a temporary PR body file:
create a unique PR_BODY_FILE (e.g., mktemp), write the static header (the "##
Summary" block and details opening), append the contents of
/tmp/uv_lock_output.txt (UV_OUTPUT) into that file, then finish the markdown
footer (closing code block and details), and call gh pr create with --body-file
"$PR_BODY_FILE" (keeping the existing --title and --base); ensure you remove the
inline --body here-doc and clean up the temp file after creating the PR.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.github/workflows/bump_uv_lock.yml:
- Around line 33-34: The step named "Run uv lock upgrade" currently pipes uv
lock --upgrade into tee which can mask failures; modify the step so the shell
enables pipefail before running uv lock --upgrade (for example by invoking the
command under a shell that has set -o pipefail) or otherwise capture and
propagate uv lock --upgrade's exit status to ensure the job fails when uv lock
fails; update the command that invokes uv lock --upgrade 2>&1 | tee
/tmp/uv_lock_output.txt accordingly so the upstream command's exit code is
preserved.

---

Nitpick comments:
In @.github/workflows/bump_uv_lock.yml:
- Around line 57-74: Replace the inline multiline --body invocation for gh pr
create with a temporary PR body file: create a unique PR_BODY_FILE (e.g.,
mktemp), write the static header (the "## Summary" block and details opening),
append the contents of /tmp/uv_lock_output.txt (UV_OUTPUT) into that file, then
finish the markdown footer (closing code block and details), and call gh pr
create with --body-file "$PR_BODY_FILE" (keeping the existing --title and
--base); ensure you remove the inline --body here-doc and clean up the temp file
after creating the PR.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: ac347b03-8938-4ca4-8599-b12ede7a1d15

📥 Commits

Reviewing files that changed from the base of the PR and between 407ff6c and 23512a7.

📒 Files selected for processing (1)
  • .github/workflows/bump_uv_lock.yml

Comment thread .github/workflows/bump_uv_lock.yml Outdated
Signed-off-by: Keval Morabia <28916987+kevalmorabia97@users.noreply.github.com>
@codecov

codecov Bot commented Apr 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.65%. Comparing base (010b220) to head (2896e13).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1299      +/-   ##
==========================================
+ Coverage   75.38%   75.65%   +0.26%     
==========================================
  Files         462      462              
  Lines       49944    49944              
==========================================
+ Hits        37651    37783     +132     
+ Misses      12293    12161     -132     
Flag Coverage Δ
examples 41.55% <ø> (+0.84%) ⬆️
gpu 58.59% <ø> (-0.54%) ⬇️
unit 52.38% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kevalmorabia97
kevalmorabia97 enabled auto-merge (squash) April 20, 2026 17:52
@kevalmorabia97
kevalmorabia97 merged commit 785d3a2 into main Apr 22, 2026
47 checks passed
@kevalmorabia97
kevalmorabia97 deleted the kmorabia/bump-ci branch April 22, 2026 03:44
grzegorz-k-karch pushed a commit that referenced this pull request Apr 28, 2026
- Use latest containers for testing in CICD

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Chores**
* Bumped TensorRT-LLM Docker images to 1.3.0rc12 in example and GPU test
workflows.
  * Updated PyTorch container image from 26.01 to 26.03 for GPU tests.
* Captured uv lock upgrade output to a temp file, inlined it into PR
bodies, and adjusted workflow heredoc/templating and step behavior.

* **Documentation**
* Clarified an inline comment and simplified a warning message for an
ONNX quantization extension.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: Keval Morabia <28916987+kevalmorabia97@users.noreply.github.com>
Signed-off-by: Grzegorz Karch <gkarch@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants