Skip to content

CI: Enable proxy cache in test and build-docs pipelines - #872

Merged
leofang merged 4 commits into
mainfrom
copilot/fix-812
Aug 21, 2025
Merged

CI: Enable proxy cache in test and build-docs pipelines#872
leofang merged 4 commits into
mainfrom
copilot/fix-812

Conversation

CopilotAI commented Aug 20, 2025

Copy link
Copy Markdown
Contributor

This PR adds the setup-proxy-cache step to test workflows and the build-docs workflow as a follow-up to PR #555, which originally added proxy caching to build workflows. The proxy cache improves Python package download times during testing and documentation builds by caching packages closer to the runners.

Changes Made

Added the setup-proxy-cache step to workflows:

  • .github/workflows/test-wheel-linux.yml - Added proxy cache setup (Linux-only, no conditional logic needed)
  • .github/workflows/test-wheel-windows.yml - Added TODO comment for future Windows runner support
  • .github/workflows/build-docs.yml - Added proxy cache setup to speed up conda/pip package downloads

The implementation follows the exact same pattern established in PR #555:

- name: Setup proxy cacheuses: nv-gha-runners/setup-proxy-cache@maincontinue-on-error: true

Key Features

  • Consistent with build workflows: Uses identical action reference and error handling
  • Proper placement: Added after checkout but before any dependency installation steps
  • Platform-aware: Linux workflows use proxy cache, Windows workflow includes TODO for future support
  • Fail-safe: Uses continue-on-error: true to ensure cache failures don't break pipelines
  • Documentation builds: Speeds up conda environment setup and package installations

Benefits

  • Faster test execution due to reduced Python package download times
  • Improved reliability for test pipelines that download lots of wheels
  • Faster documentation builds with reduced conda package download times
  • Consistent caching strategy across build, test, and documentation workflows

Fixes#812.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@copy-pr-bot

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.

Co-authored-by: leofang <5534781+leofang@users.noreply.github.com>
CopilotAI changed the title [WIP] CI: Enable the proxy cache in test pipelinesCI: Enable proxy cache in test pipelinesAug 20, 2025
CopilotAI requested a review from leofangAugust 20, 2025 18:58
Comment thread.github/workflows/test-wheel-linux.yml Outdated
Comment thread.github/workflows/test-wheel-windows.yml Outdated
@github-project-automationgithub-project-automationBot moved this from Todo to In Progress in CCCLAug 20, 2025
@leofang

Copy link
Copy Markdown
Member

/ok to test 6325eb8

@leofang
leofang marked this pull request as ready for review August 20, 2025 19:48
@leofangleofang added the CI/CD CI/CD infrastructure label Aug 20, 2025
@github-actions

This comment has been minimized.

@leofangleofang left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot looking good! Could you please also add the same action to this workflow .github/workflows/build-docs.yml? There's a TODO on caching which would become obsolete if we set up the proxy.

Comment thread.github/workflows/test-wheel-windows.yml
…ix formatting
Co-authored-by: leofang <5534781+leofang@users.noreply.github.com>

CopilotAI commented Aug 20, 2025

Copy link
Copy Markdown
ContributorAuthor

@copilot looking good! Could you please also add the same action to this workflow .github/workflows/build-docs.yml? There's a TODO on caching which would become obsolete if we set up the proxy.

Added the setup-proxy-cache action to build-docs.yml workflow and removed the obsolete TODO about conda caching since the proxy cache addresses package download performance. 77d14da

CopilotAI changed the title CI: Enable proxy cache in test pipelinesCI: Enable proxy cache in test and build-docs pipelinesAug 20, 2025
CopilotAI requested a review from leofangAugust 20, 2025 22:04
@leofang

Copy link
Copy Markdown
Member

/ok to test 77d14da

@leofangleofang added enhancement Any code-related improvements P1 Medium priority - Should do labels Aug 20, 2025
@leofangleofang added this to the cuda.core beta 7 milestone Aug 20, 2025
@leofang
leofang enabled auto-merge (squash) August 20, 2025 22:10
@leofang
leofang requested a review from cryosAugust 20, 2025 22:42
# TODO: cache conda env to speed up the workflow once conda-incubator/setup-miniconda#267
# is resolved
- name: Setup proxy cache
uses: nv-gha-runners/setup-proxy-cache@main

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we pin this to a specific commit?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, sorry Keith, I set automerge so did not get a chance to reply before merging. I think the bot just followed what Marcus did earlier. It seems everyone pins at main too: https://github.com/search?q=setup-proxy-cache+language%3Ayaml+NOT+is%3Afork&type=code

fetch-depth: 0

- name: Setup proxy cache
uses: nv-gha-runners/setup-proxy-cache@main

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@leofang
leofang merged commit 51ec60b into mainAug 21, 2025
95 of 96 checks passed
@leofang
leofang deleted the copilot/fix-812 branch August 21, 2025 01:13
@github-project-automationgithub-project-automationBot moved this from In Progress to Done in CCCLAug 21, 2025
@github-actions

Copy link
Copy Markdown
Doc Preview CI
Preview removed because the pull request was closed or merged.

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

Labels

CI/CDCI/CD infrastructureenhancementAny code-related improvementsP1Medium priority - Should do

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

CI: Enable the proxy cache in test pipelines

3 participants

@leofang@kkraus14