Skip to content

tools: use sccache GitHub action - #52839

Merged
nodejs-github-bot merged 3 commits into
nodejs:mainfrom
targos:sccache
May 6, 2024
Merged

tools: use sccache GitHub action#52839
nodejs-github-bot merged 3 commits into
nodejs:mainfrom
targos:sccache

Conversation

@targos

Copy link
Copy Markdown
Member

@targostargos added the wip Issues and PRs that are still a work in progress. label May 5, 2024
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/actions

@nodejs-github-botnodejs-github-bot added the meta Issues and PRs related to the general management of the project. label May 5, 2024
@targos

Copy link
Copy Markdown
MemberAuthor

I'll push the yaml lint fix after the test workflow is finished so we can see if it then uses the cache

@targos

Copy link
Copy Markdown
MemberAuthor

Build time without cache: 1h21m
Build time with cache: 16m

@targostargos removed the wip Issues and PRs that are still a work in progress. label May 5, 2024

@MoLowMoLow 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.

This is incredible. can it be added to other workflows?

Comment thread.github/workflows/test-linux.yml Outdated
Co-authored-by: Moshe Atlow <moshe@atlow.co.il>
@targos

Copy link
Copy Markdown
MemberAuthor

Can it be added to other workflows?

Certainly, but I suggest we start only with one and monitor it for a few days before applying to others.

@targos

Copy link
Copy Markdown
MemberAuthor

I think the third run didn't use the previous cache because of c7e4209. I restarted it.

@targostargos added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 5, 2024
@anonriganonrig added the fast-track PRs that do not need to wait for 48 hours to land. label May 5, 2024
@github-actions

Copy link
Copy Markdown
Contributor

Fast-track has been requested by @anonrig. Please 👍 to approve.

@MoLowMoLow added the commit-queue Add this label to land a pull request using GitHub Actions. label May 6, 2024
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label May 6, 2024
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator
Commit Queue failed
- Loading data for nodejs/node/pull/52839
✔ Done loading data for nodejs/node/pull/52839
----------------------------------- PR info ------------------------------------
Title tools: use sccache GitHub action (#52839)
Author Michaël Zasso (@targos)
Branch targos:sccache -> nodejs:main
Labels meta, fast-track, author ready
Commits 3
- tools: use sccache GitHub action
- lint
- Update .github/workflows/test-linux.yml
Committers 2
- Michaël Zasso - GitHub PR-URL: https://github.com/nodejs/node/pull/52839
Refs: https://github.com/Mozilla-Actions/sccache-action
Reviewed-By: Moshe Atlow Reviewed-By: Yagiz Nizipli Reviewed-By: Benjamin Gruenbaum Reviewed-By: Marco Ippolito Reviewed-By: Luigi Pinca ------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/52839
Refs: https://github.com/Mozilla-Actions/sccache-action
Reviewed-By: Moshe Atlow Reviewed-By: Yagiz Nizipli Reviewed-By: Benjamin Gruenbaum Reviewed-By: Marco Ippolito Reviewed-By: Luigi Pinca --------------------------------------------------------------------------------
ℹ This PR was created on Sun, 05 May 2024 11:45:39 GMT
✔ Approvals: 5
✔ - Moshe Atlow (@MoLow) (TSC): https://github.com/nodejs/node/pull/52839#pullrequestreview-2039719111
✔ - Yagiz Nizipli (@anonrig) (TSC): https://github.com/nodejs/node/pull/52839#pullrequestreview-2039729543
✔ - Benjamin Gruenbaum (@benjamingr) (TSC): https://github.com/nodejs/node/pull/52839#pullrequestreview-2039764491
✔ - Marco Ippolito (@marco-ippolito): https://github.com/nodejs/node/pull/52839#pullrequestreview-2039767711
✔ - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/52839#pullrequestreview-2039778872
ℹ This PR is being fast-tracked
✔ Last GitHub CI successful
ℹ Green GitHub CI is sufficient
--------------------------------------------------------------------------------
✔ No git cherry-pick in progress
✔ No git am in progress
✔ No git rebase in progress
--------------------------------------------------------------------------------
- Bringing origin/main up to date...
From https://github.com/nodejs/node
* branch main -> FETCH_HEAD
✔ origin/main is now up-to-date
- Downloading patch for 52839
From https://github.com/nodejs/node
* branch refs/pull/52839/merge -> FETCH_HEAD
✔ Fetched commits as e5a76f16e11b..4961c7af469f
--------------------------------------------------------------------------------
[main 6db8a08c4c] tools: use sccache GitHub action
Author: Michaël Zasso Date: Sun May 5 13:45:10 2024 +0200
1 file changed, 8 insertions(+)
[main 2426339528] lint
Author: Michaël Zasso Date: Sun May 5 16:35:16 2024 +0200
1 file changed, 2 insertions(+), 2 deletions(-)
[main 9cf34aa272] Update .github/workflows/test-linux.yml
Author: Michaël Zasso Date: Sun May 5 17:12:07 2024 +0200
1 file changed, 1 insertion(+), 1 deletion(-)
✔ Patches applied
There are 3 commits in the PR. Attempting autorebase.
Rebasing (2/6)

Executing: git node land --amend --yes
⚠ Found Refs: https://github.com/Mozilla-Actions/sccache-action, skipping..
--------------------------------- New Message ----------------------------------
tools: use sccache GitHub action

Refs: https://github.com/Mozilla-Actions/sccache-action
PR-URL: #52839
Reviewed-By: Moshe Atlow moshe@atlow.co.il
Reviewed-By: Yagiz Nizipli yagiz.nizipli@sentry.io
Reviewed-By: Benjamin Gruenbaum benjamingr@gmail.com
Reviewed-By: Marco Ippolito marcoippolito54@gmail.com
Reviewed-By: Luigi Pinca luigipinca@gmail.com

[detached HEAD 8e3719a7f6] tools: use sccache GitHub action
Author: Michaël Zasso targos@protonmail.com
Date: Sun May 5 13:45:10 2024 +0200
1 file changed, 8 insertions(+)
Rebasing (3/6)
Rebasing (4/6)

Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
lint

PR-URL: #52839
Refs: https://github.com/Mozilla-Actions/sccache-action
Reviewed-By: Moshe Atlow moshe@atlow.co.il
Reviewed-By: Yagiz Nizipli yagiz.nizipli@sentry.io
Reviewed-By: Benjamin Gruenbaum benjamingr@gmail.com
Reviewed-By: Marco Ippolito marcoippolito54@gmail.com
Reviewed-By: Luigi Pinca luigipinca@gmail.com

[detached HEAD 180a5a3c93] lint
Author: Michaël Zasso targos@protonmail.com
Date: Sun May 5 16:35:16 2024 +0200
1 file changed, 2 insertions(+), 2 deletions(-)
Rebasing (5/6)
Rebasing (6/6)

Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
Update .github/workflows/test-linux.yml

Co-authored-by: Moshe Atlow moshe@atlow.co.il
PR-URL: #52839
Refs: https://github.com/Mozilla-Actions/sccache-action
Reviewed-By: Moshe Atlow moshe@atlow.co.il
Reviewed-By: Yagiz Nizipli yagiz.nizipli@sentry.io
Reviewed-By: Benjamin Gruenbaum benjamingr@gmail.com
Reviewed-By: Marco Ippolito marcoippolito54@gmail.com
Reviewed-By: Luigi Pinca luigipinca@gmail.com

[detached HEAD 5587cfb240] Update .github/workflows/test-linux.yml
Author: Michaël Zasso targos@protonmail.com
Date: Sun May 5 17:12:07 2024 +0200
1 file changed, 1 insertion(+), 1 deletion(-)

Successfully rebased and updated refs/heads/main.

ℹ Add commit-queue-squash label to land the PR as one commit, or commit-queue-rebase to land as separate commits.

https://github.com/nodejs/node/actions/runs/8965783780

@nodejs-github-botnodejs-github-bot added the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label May 6, 2024
@MoLowMoLow added commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. and removed commit-queue-failed An error occurred while landing this pull request using GitHub Actions. labels May 6, 2024
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label May 6, 2024
@nodejs-github-bot
nodejs-github-bot merged commit bbace72 into nodejs:mainMay 6, 2024
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in bbace72

@targos
targos deleted the sccache branch May 6, 2024 08:27
targos added a commit that referenced this pull request May 8, 2024
Refs: https://github.com/Mozilla-Actions/sccache-action
PR-URL: #52839
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
@targostargos mentioned this pull request May 13, 2024
@MoLow

Copy link
Copy Markdown
Member

@targos WDYT abod expanding this to other workflows now that is seems to work nicely?

@targos

Copy link
Copy Markdown
MemberAuthor

SGTM

marco-ippolito pushed a commit that referenced this pull request Jun 17, 2024
Refs: https://github.com/Mozilla-Actions/sccache-action
PR-URL: #52839
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
@marco-ippolitomarco-ippolito mentioned this pull request Jun 17, 2024
soophoo pushed a commit to soophoo/node that referenced this pull request Jun 20, 2024
Refs: https://github.com/Mozilla-Actions/sccache-action
PR-URL: nodejs#52839
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.commit-queue-squashAdd this label to instruct the Commit Queue to squash all the PR commits into the first one.fast-trackPRs that do not need to wait for 48 hours to land.metaIssues and PRs related to the general management of the project.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@targos@nodejs-github-bot@MoLow@benjamingr@lpinca@anonrig@marco-ippolito