-
Notifications
You must be signed in to change notification settings - Fork 47.4k
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
Skip empty sync commits (both repos) #29707
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Comparing: d77dd31...554476c Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: Expand to show
|
id: get_last_version | ||
run: | | ||
VERSION_CLASSIC=$(cat ./compiled/facebook-www/VERSION_CLASSIC) | ||
VERSION_MODERN=$(cat ./compiled/facebook-www/VERSION_MODERN) |
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.
Maybe add a safety check here to make sure the version number is well formed.
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.
Hm, not sure about that, it would be nice to change the format without breaking the sync.
git status | ||
echo "Status to check" | ||
git status --porcelain | grep -qv '/REVISION$' | ||
if git status --porcelain | grep -qv '/REVISION'; then |
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.
How come you have $
above but not here?
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.
The www file is REVISION
or REVISION_TRANSFORMS
but the fbsource one is just REVISION
bcfb223
to
16e34dd
Compare
Ah crap, I meant to merge the other diff. @yungsters I think I addressed everything in your review, but if you want to review the new changes here I can submit a PR with more changes. |
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.
Requires #29706
The strategy here is to:
This means that: