Skip to content

Conversation

@stormslowly
Copy link
Contributor

@stormslowly stormslowly commented Nov 12, 2025

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

  • Tests updated (or not required).
  • Documentation updated (or not required).

@netlify
Copy link

netlify bot commented Nov 12, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 0534803
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/6914bf92b525830008e0aba1

@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Nov 12, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 12, 2025

📦 Binary Size-limit

Comparing 0534803 to chore(ci): revert cache action version (#12170) by pshu

🙈 Size remains the same at 48.10MB

@codspeed-hq
Copy link

codspeed-hq bot commented Nov 12, 2025

CodSpeed Performance Report

Merging #12171 will not alter performance

Comparing chore/fix_artifacts (0534803) with main (f404ee1)1

Summary

✅ 17 untouched

Footnotes

  1. No successful run was found on main (74ea720) during the generation of this report, so f404ee1 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@stormslowly stormslowly marked this pull request as ready for review November 13, 2025 02:50
Copilot AI review requested due to automatic review settings November 13, 2025 02:50
@stormslowly stormslowly requested a review from hardfist November 13, 2025 02:51
Copy link
Contributor

Copilot AI left a 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.

@stormslowly stormslowly enabled auto-merge (squash) November 13, 2025 03:09
@stormslowly stormslowly disabled auto-merge November 13, 2025 03:10
@stormslowly stormslowly changed the title chore: use actions/artficats chore(ci): fix artifacts slow download Nov 13, 2025
@stormslowly stormslowly merged commit 15354e6 into main Nov 13, 2025
108 of 110 checks passed
@stormslowly stormslowly deleted the chore/fix_artifacts branch November 13, 2025 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants