Skip to content

[ci] Cache playwright in run_devtools_e2e_tests#34320

Merged
poteto merged 1 commit intomainfrom
pr34320
Aug 27, 2025
Merged

[ci] Cache playwright in run_devtools_e2e_tests#34320
poteto merged 1 commit intomainfrom
pr34320

Conversation

@poteto
Copy link
Contributor

@poteto poteto commented Aug 27, 2025

I happened to notice that I forgot to cache playwright in run_devtools_e2e_tests, so it would try to install it every time which can randomly take a while to complete (I'm not sure why it's not deterministic, but the dependencies appear to be installed inconsistently across multiple workflows).

This PR adds the same cache we use for other steps that use playwright, which should shave off some time from this workflow when the cache is warm.

Additionally I omitted the standalone install-deps command as it appears to be redundant and adds a lot of extra time to CI, due to the fact that it installs many unrelated dependencies.


Stack created with Sapling. Best reviewed with ReviewStack.

@meta-cla meta-cla bot added the CLA Signed label Aug 27, 2025
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Aug 27, 2025
@react-sizebot
Copy link

react-sizebot commented Aug 27, 2025

Comparing: b870042...1bdaaaa

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.js = 6.68 kB 6.68 kB = 1.83 kB 1.83 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 530.31 kB 530.31 kB = 93.39 kB 93.39 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB = 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 655.96 kB 655.96 kB = 115.31 kB 115.31 kB
facebook-www/ReactDOM-prod.classic.js = 675.73 kB 675.73 kB = 118.54 kB 118.54 kB
facebook-www/ReactDOM-prod.modern.js = 666.15 kB 666.15 kB = 116.87 kB 116.86 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 1bdaaaa

I happened to notice that I forgot to cache playwright in run_devtools_e2e_tests, so it would try to install it every time which can randomly take a while to complete (I'm not sure why it's not deterministic, but the dependencies appear to be installed inconsistently across multiple workflows).

This PR adds the same cache we use for other steps that use playwright, which should shave off some time from this workflow when the cache is warm.

Additionally I omitted the standalone install-deps command as it appears to be redundant and adds a lot of extra time to CI, due to the fact that it installs many unrelated dependencies.
@poteto poteto merged commit 0a1f1fc into main Aug 27, 2025
242 checks passed
@poteto poteto deleted the pr34320 branch August 27, 2025 18:37
github-actions bot pushed a commit to code/lib-react that referenced this pull request Aug 31, 2025
I happened to notice that I forgot to cache playwright in
run_devtools_e2e_tests, so it would try to install it every time which
can randomly take a while to complete (I'm not sure why it's not
deterministic, but the dependencies appear to be installed
inconsistently across multiple workflows).

This PR adds the same cache we use for other steps that use playwright,
which should shave off some time from this workflow when the cache is
warm.

Additionally I omitted the standalone install-deps command as it appears
to be redundant and adds a lot of extra time to CI, due to the fact that
it installs many unrelated dependencies.

---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/34320).
* facebook#34321
* __->__ facebook#34320

DiffTrain build for [0a1f1fc](facebook@0a1f1fc)
github-actions bot pushed a commit to code/lib-react that referenced this pull request Aug 31, 2025
I happened to notice that I forgot to cache playwright in
run_devtools_e2e_tests, so it would try to install it every time which
can randomly take a while to complete (I'm not sure why it's not
deterministic, but the dependencies appear to be installed
inconsistently across multiple workflows).

This PR adds the same cache we use for other steps that use playwright,
which should shave off some time from this workflow when the cache is
warm.

Additionally I omitted the standalone install-deps command as it appears
to be redundant and adds a lot of extra time to CI, due to the fact that
it installs many unrelated dependencies.

---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/34320).
* facebook#34321
* __->__ facebook#34320

DiffTrain build for [0a1f1fc](facebook@0a1f1fc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants