Skip to content

[TRTLLMINF-350][fix] overwrite wget output on download retries - #22554

Closed
hanjingtian wants to merge 1 commit into
NVIDIA:mainfrom
hanjingtian:TRTLLMINF-350-wget-overwrite-retry
Closed

hanjingtian wants to merge 1 commit into
NVIDIA:mainfrom
hanjingtian:TRTLLMINF-350-wget-overwrite-retry

Conversation

@hanjingtian

@hanjingtian hanjingtian commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Addresses TRTLLMINF-350.

A retried wget invocation without an explicit output file can leave the first partial download in place and save the successful retry as filename.1. Subsequent installation or extraction still reads the original, incomplete file.

Specify -O at the three remaining retried download sites in L0_Test.groovy:

  • Package-sanity wheel download: overwrite the wheel basename in the current directory.
  • Package-sanity Linux archive: overwrite the exact filename consumed by tar.
  • CUDA keyring: overwrite the exact .deb filename consumed by dpkg.

The package-sanity caller is currently commented out; the CUDA keyring path remains active. The CBTS download already specifies -O and is unchanged. Retry counts and downstream commands are unchanged.

This PR contains only the three download-command changes, with no dispatcher or interruption-policy changes.

Test Coverage

  • 12 existing pipeline source-contract tests passed locally.
  • Temporary Groovy checks evaluate the actual package-sanity method and CUDA-keyring command across 10 scenarios, validating 16 rendered download commands and their Bash syntax. Coverage includes nested wheel paths, a directory containing spaces, dependency reinstallation on/off, both CPU architectures, and both Ubuntu variants.
  • The command-rendering check fails against the pre-fix source.
  • The complete Groovy source parsed at the CONVERSION phase; applicable pre-commit, whitespace, and DCO checks passed.
  • These are local command-generation checks, not real interrupted-download or Jenkins integration tests. GNU wget is unavailable on the validation host. No bot CI trigger was posted for this PR.

PR Checklist

  • CI-only change; no new dependencies, public API, ownership, or architecture changes.
  • Reviewer assessment and Jenkins validation remain pending.

Dev Engineer Review

  • jenkins/L0_Test.groovy changes three wget calls to pass an explicit -O output filename. Each retry now overwrites the earlier partial file instead of saving a new filename.1.
  • The wheel download in runPackageSanityCheck uses the last path segment of wheel_path as the output name. The URL is wrapped in single quotes. A URL that contains a single quote would break this command.
  • The Linux package download in runPackageSanityCheck uses linuxPkgName as the output name. The following tar -zvxf ${linuxPkgName} step still reads that same file.
  • The CUDA keyring download is in launchTestJobs, not in runPackageSanityCheck. It hardcodes -O cuda-keyring_1.1-1_all.deb. This name matches the URL basename and the following dpkg -i command.
  • No other logic, retry counts, or downstream commands changed.

QA Engineer Review

No test changes.

Per-File QA Perspective

  • jenkins/L0_Test.groovy: Downloads in the package-sanity flow and the CUDA keyring setup now save under fixed local names. QA should confirm that a retried download replaces the partial file and that tar and dpkg still find the expected files. The package-sanity caller is reported as commented out, so that path is not exercised in CI.

@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Three downloads in runPackageSanityCheck now pass explicit output filenames to wget.

Changes

Download filename handling

Layer / File(s) Summary
Set download output filenames
jenkins/L0_Test.groovy
The wheel download uses the artifact basename. The Linux package and CUDA keyring downloads use their expected filenames.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix

Merge Risk: Minimal · up to efdfc

Retried downloads now overwrite the same output file instead of saving a successful retry as filename.1, so a partial first download no longer breaks the later steps. The change is small and localized, and no merge-blocking risk was found. Resolve the PR checklist item and run Jenkins validation as usual.

Architecture risk: Low · up to efdfc

The change affects 1 system.

Changed systems: jenkins

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — jenkins (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in jenkins/L0_Test.groovy: The wheel download now saves to the wheel artifact’s basename instead of relying on wget’s default filename.
  • observed — Modified behavior in jenkins/L0_Test.groovy: The Linux package download now explicitly saves as linuxPkgName rather than relying on wget’s default filename.
  • observed — Modified behavior in jenkins/L0_Test.groovy: The CUDA keyring download now explicitly saves as cuda-keyring_1.1-1_all.deb rather than relying on wget’s default filename.
Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: explicit wget output overwrite (-O) on download retries, matching the three download sites in L0_Test.groovy. It follows the repository format with a Jira ticket and t…
Description check Passed The description covers the problem, the three changed download sites, what was left unchanged, test coverage (local command-generation checks, with the limits stated), and a checklist. It follows the …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: explicit wget output overwrite (-O) on download retries, matching the three download sites in L0_Test.groovy. It follows the repository format with a Jira ticket and the [fix] type. It is specific and accurate to the changeset.

Full details: Description check

Explanation

The description covers the problem, the three changed download sites, what was left unchanged, test coverage (local command-generation checks, with the limits stated), and a checklist. It follows the template's Description, Test Coverage, and PR Checklist sections. It omits the template's ticket-format title guidance, which the title already satisfies. The PR Checklist is a short summary, not a full item-by-item review, but the required information is present.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
Fix failing CI checks

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 0f4c114 and efdfc55.

Files selected for processing: 1

  • jenkins/L0_Test.groovy

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review.

@hanjingtian

Copy link
Copy Markdown
Collaborator Author

Superseded by #22560. Both fixes are consolidated there at the request of the author.

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.

1 participant