Skip to content

CI: log sccache download retries and bound each attempt - #3706

Open
leofang wants to merge 1 commit into
NVIDIA:mainfrom
leofang:install-sccache-retry-logging
Open

leofang wants to merge 1 commit into
NVIDIA:mainfrom
leofang:install-sccache-retry-logging

Conversation

@leofang

@leofang leofang commented Dec 3, 2026

Copy link
Copy Markdown
Member

Description

Follow-up to #3670, addressing this review. Each failed sccache download attempt is now logged as a ::warning:: with curl's exit code, and the last one fails with an ::error:: and that exit code. Each attempt is bounded by --connect-timeout 30 --max-time 300, so a stalled connection goes back into the retry loop instead of hanging until the job timeout. Both flags work with curl 7.61 in manylinux_2_28, where numba-cuda-mlir runs this action.

Checklist

  • I have read the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

-- Leo's bot

Address the review on NVIDIA#3670: report each failed attempt as a warning
with curl's exit code, fail with an ::error:: and that exit code after
the last attempt, and add --connect-timeout/--max-time so a stalled
connection fails into the retry loop instead of hanging until the job
timeout. Both flags work with curl 7.61 in manylinux_2_28.
@copy-pr-bot

copy-pr-bot Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-actions github-actions Bot added the CI/CD CI/CD infrastructure label Dec 3, 2026
leofang added a commit to leofang/cupy that referenced this pull request Dec 3, 2026
Sync .github/actions/install-sccache/action.yml with
NVIDIA/cuda-python#3706 (4d36d69d359ead5d97eef77c00abf8f3fce1d54e):
log each failed download attempt with curl's exit code, fail with an
::error:: after the last one, and bound each attempt with
--connect-timeout/--max-time.
@coderabbitai

coderabbitai Bot commented Dec 3, 2026

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Bug Fixes
    • Improved reliability when downloading the cache utility by retrying failed downloads up to five times. If all attempts fail, the action reports an error and returns the download command’s exit status.

The sccache download loop now captures curl’s exit status, warns and waits between failed attempts, and reports the URL and final curl status after the fifth failure.

Changes: sccache download retry handling

Layer / File(s) Summary
Download retry and failure handling
.github/actions/install-sccache/action.yml
The loop warns and waits 10 seconds after failures before the fifth attempt. After the fifth failure, it reports the URL and exits with curl’s status.

Change: Bug fix

Merge Risk: Minimal · up to 4d36d

This change improves the diagnostics and retry behavior of the sccache download step in CI. No merge-blocking risk was identified. The PR metadata check (assignee, labels, milestone) needs to be satisfied separately.

Architecture risk: Low · up to 4d36d

The changed surface does not map to a changed system, dependency edge, entrypoint, or external dependency.

Changed areas: None identified.

Finishing Touches

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 09703c9 and 4d36d69.

Files selected for processing: 1

  • .github/actions/install-sccache/action.yml

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

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI/CD CI/CD infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant