-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
(fixes:#19994)prevent redundant translation sync runs and enforce 30-minute delay #20004
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
(fixes:#19994)prevent redundant translation sync runs and enforce 30-minute delay #20004
Conversation
david-allison
left a comment
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.
This doesn't wait 30 minutes after the last call, this waits an additional 30 minutes.
oh! you are right,I’ll update the workflow to calculate the remaining wait time based on the last run and only delay when necessary. |
sanjaysargam
left a comment
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.
squash commits into one
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - uses: actions/checkout@v4 |
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.
why?
| shell: bash | ||
|
|
||
| - uses: actions/setup-node@v6 | ||
| - uses: actions/setup-node@v4 |
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.
why?
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.
these were changed because actions/checkout@v6 and actions/setup-node@v6 don’t exist and would fail at runtime. I switched them to @v4, which is the latest stable and supported version
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.
these were changed because actions/checkout@v6 and actions/setup-node@v6 don’t exist and would fail at runtime.
? source
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.
these were changed because actions/checkout@v6 and actions/setup-node@v6 don’t exist and would fail at runtime.
? source
https://github.com/actions/checkout/releases
https://github.com/actions/setup-node/releases
There is no published v6 release for either action, so using @v6 would fail at runtime. I switched them to @v4, which is the latest supported version.
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.
They exist?
https://github.com/actions/checkout/releases/tag/v6.0.0
https://github.com/actions/setup-node/releases/tag/v6.0.0
In addition: CI was working before this change using v6
This was done by dependabot:
- Add concurrency control to prevent overlapping runs - Cancel in-progress runs when new one is triggered - Enforce minimum 30-minute gap between syncs (not fixed delay) - Check last commit time on i18n_sync branch - Calculate remaining wait time dynamically - Proceed immediately if >= 30 minutes have passed - Add defensive guard against negative sleep values - Improve log clarity by showing elapsed time in seconds - Update timeout from 20 to 50 minutes - Fix action versions to v4 (checkout and setup-node)
1e3561d to
9f8b36d
Compare
|
I don't have confidence in this change given #20004 (comment) |
no worries if you think so I can revert these changes back! |
Purpose / Description
This PR adds two key improvements:-
Fixes
Sync translationsaction to run 30 minutes after the last one. #19994Approach
Updated timeout-minutes from 20 to 50 to accommodate the delay
Fixed action versions: actions/checkout@v4 and actions/setup-node@v4
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration (SDK version(s), emulator or physical, etc)
Learning (optional, can help others)
Describe the research stage
Links to blog posts, patterns, libraries or addons used to solve this problem
Checklist
Please, go through these checks before submitting the PR.