-
-
Notifications
You must be signed in to change notification settings - Fork 746
chore(ci): fix artifacts slow download #12171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for rspack canceled.
|
📦 Binary Size-limit
🙈 Size remains the same at 48.10MB |
CodSpeed Performance ReportMerging #12171 will not alter performanceComparing Summary
Footnotes |
6c5a4fc to
0534803
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR modifies the artifact upload/download GitHub Actions to improve performance for self-hosted runners by uploading artifacts to both local storage and GitHub storage, enabling fast local access while maintaining artifact transparency.
- Modified artifact upload action to always upload to GitHub (removing conditional) and reordered steps to upload to local storage first on self-hosted runners
- Updated artifact download action to simplify conditionals based only on runner environment type
- Updated commit hashes for lynx-infra custom actions with improved documentation links
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/actions/artifact/upload/action.yml | Reordered upload steps (local first, then GitHub) and removed conditional from GitHub upload to ensure all artifacts are uploaded to GitHub for transparency |
| .github/actions/artifact/download/action.yml | Simplified download conditionals to only check runner environment type, removing support for the force-use-github parameter |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
Fix the slow downloading problem in the self-hosted runners.
solution
Upload artifacts to both self-hosted storage and GitHub storage.
And then download from the nearest storage. So we can benefit from both high net speed and artifact transparency.
After this PR, the duration of downloading the largest artifact will be restored to seconds from an hour.
Related links
Checklist