-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[HOLD for payment 2024-06-06] [$250] preDeploy.yml
should not skip on default branch if another run is queued
#41936
Comments
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rayane-djouah ( |
Triggered auto assignment to @bfitzexpensify ( |
preDeploy.yml
should not skip on default branch if another run is queuedpreDeploy.yml
should not skip on default branch if another run is queued
Job added to Upwork: https://www.upwork.com/jobs/~013f9368ae63177d49 |
Current assignee @rayane-djouah is eligible for the External assigner, not assigning anyone new. |
Proposal: |
📣 @amgenene! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?As of now, Existing code:
We don't want to cancel the older runs for main. What changes do you think we should make in order to solve the problem?We should add a condition to make cancellation happen only for non-main branches.
If it's not the main branch, then older runs would cancel. Else, they will not. |
Edit: the proposal will not work correctly based on the github doc Looking for better proposals. |
Current assignee @blimpich is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
@rayane-djouah @blimpich , I think @ShridharGoel's proposal is not correct, and I am writing a proposal. What Based on github doc here
|
Yeah, That makes sense @badeggg. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Do not skip workflow on main branch What is the root cause of that problem?We have several concurrency config like this, which will skip concurrent workflows. We care two of them in this issue. What changes do you think we should make in order to solve the problem?We should change this to:
Similar change need be applied to here What alternative solutions did you explore? (Optional)N/A |
Little explanation about my proposal.
|
I have updated my proposal and explanation:
|
Current assignee @blimpich is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
I have made pr |
@rayane-djouah @badeggg #42134 just got merged. Since this can only really be tested in production, can you please test to make sure that this works by confirming that (A) PR builds aren't effected by this change and (B) builds that would have been skipped without this change are not being skipped? |
Looks fine. Evidence for (A) PR builds aren't effected by this change:lint:typecheck:test:e2ePerformanceTestsThe trigger condition for this workflow is relatively rare met, manually trigger or call from another workflow. Only Evidence for (B) builds that would have been skipped without this change are not being skipped:Those three commits were pushed almost the same time(less than 1 second), and there is no typecheck/lint/test/e2ePerformanceTests job skip. |
Fantastic! Thank you @badeggg for the QA. Very happy with this 🥳 |
preDeploy.yml
should not skip on default branch if another run is queuedpreDeploy.yml
should not skip on default branch if another run is queued
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.77-11 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-06-06. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Triggered auto assignment to @garrettmknight ( |
Adding a BZ buddy for payment/regression test update - I will be OOO until June 11th |
This doesn't need a BZ checklist as it's a Github action improvement |
All paid out, closing! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Issue reported by: @blimpich
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1715015588472179?thread_ts=1713554811.796439&cid=C01GTK53T8Q
cc: @rayane-djouah
Action Performed:
Expected Result:
Both runs should run to completion
Actual Result:
The first run is skipped/cancelled.
Screenshots/Videos
Example of skipped job
Go to https://github.com/Expensify/App/actions/workflows/preDeploy.yml and you will find many examples of skipped jobs by just looking through the recent merges.
Further context:
This was caused by this PR. We don't want to revert this PR because it saves resources on builds for pull requests, we just don't want it to apply to when we're merging into main.
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: