Skip to content

[CI] Output version strings to file for sync #29706

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

Closed
wants to merge 2 commits into from

Conversation

rickhanlonii
Copy link
Member

@rickhanlonii rickhanlonii commented Jun 1, 2024

Updates the build script to output VERSION files for the fb files.

With these files, we can update the commit_artifacts job to do the following steps:

  • Get last versions
    • Checkout builds/facebook-www
    • Read the last sync'd www VERSION
    • Checkout builds/facebook-fbsource
    • Read the last sync'd rn VERSION
  • Download build
    • Checkout out main and sync new build
  • Get the current versions
    • Read the current sync'd ww VERSION
    • Read the current sync'd rn VERSION
  • For each sync of www/rn
    • Replace the current version with last version
      • sed/{new version string}/{old version string}
    • Check for changes
      • Run git status,
    • If there are no changes skip sync
    • Otherwise, replace the last version with current
      • sed/{old version string}/{new version string}
    • Commit to branch

Copy link

vercel bot commented Jun 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 2, 2024 2:38pm

@react-sizebot
Copy link

react-sizebot commented Jun 1, 2024

Comparing: d77dd31...c642599

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.66 kB 6.66 kB = 1.82 kB 1.82 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 496.48 kB 496.48 kB = 88.87 kB 88.87 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.67 kB 6.67 kB = 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 501.30 kB 501.30 kB = 89.56 kB 89.56 kB
facebook-www/ReactDOM-prod.classic.js = 593.97 kB 593.97 kB = 104.48 kB 104.48 kB
facebook-www/ReactDOM-prod.modern.js = 570.35 kB 570.35 kB = 100.89 kB 100.89 kB
test_utils/ReactAllWarnings.js Deleted 63.65 kB 0.00 kB Deleted 15.90 kB 0.00 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
test_utils/ReactAllWarnings.js Deleted 63.65 kB 0.00 kB Deleted 15.90 kB 0.00 kB

Generated by 🚫 dangerJS against c642599

@yungsters
Copy link
Contributor

Maybe update the PR summary to also include the fbsource build.

@rickhanlonii
Copy link
Member Author

@yungsters dang you're fast, updated!

rickhanlonii added a commit that referenced this pull request Jun 3, 2024
Requires #29706

The strategy here is to:
- Checkout the builds/facebook-www branch
- Read the current sync'd VERSION
- Checkout out main and sync new build
- sed/{new version string}/{old version string}
- Run git status, skip sync if clean
- Otherwise, sed/{old version string}/{new version string} and push
commit

This means that:
- We're using the real version strings from the builds
- We are checking the last commit on the branch for the real last
version
- We're skipping any commits that won't result in changes
- ???
- Profit!
@rickhanlonii
Copy link
Member Author

Merged in #29707 (I meant to merge this first, ooops)

github-actions bot pushed a commit that referenced this pull request Jun 3, 2024
Requires #29706

The strategy here is to:
- Checkout the builds/facebook-www branch
- Read the current sync'd VERSION
- Checkout out main and sync new build
- sed/{new version string}/{old version string}
- Run git status, skip sync if clean
- Otherwise, sed/{old version string}/{new version string} and push
commit

This means that:
- We're using the real version strings from the builds
- We are checking the last commit on the branch for the real last
version
- We're skipping any commits that won't result in changes
- ???
- Profit!

DiffTrain build for commit 5ad2c37.
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.

4 participants