You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2023-04-28] [Performance] [$1000] Run some GitHub actions only when required #17562
Coming over from this slack thread, Whenever a new PR is created, amongst others, the Validate Github Actions and Verify Podfile are run every time, even when not required, increasing the time taken before all actions are marked as ✅.
What is the impact of this on end-users?
This does not affect the end users but improves the time period for Github Actions.
List any benchmarks that show the severity of the issue
The Validate Github Actions takes around 4-5 mins on an average to complete and the Verify Podfile action takes around 10-15 mins to complete and are run each time a PR has a commit pushed.
Proposed solution (if any)
To fix this issue, we need to add condition such that these workflows are only triggered when the .github/ directory is modified and package.json / package-lock.json / ios/ are modified respectively for each action.
List any benchmarks after implementing the changes to show impacts of the proposed solution (if any)
The actions would not be run on PRs not affecting the linked files, decreasing the time required to get approval from all actions.
Platforms:
Which of our officially supported platforms is this issue occurring on?
N/A, this is for development
changed the title [-][Performance] Run some GitHub actions only when required [/-][+][HOLD for payment 2023-04-28] [Performance] Run some GitHub actions only when required [/+]on Apr 21, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.3-2 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 2023-04-28. 🎊
After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
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:
[@puneetlath / @mountiny] The PR that introduced the bug has been identified. Link to the PR: n/a
[@puneetlath / @mountiny] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: n/a
[@puneetlath / @mountiny] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: n/a
[@puneetlath] Determine if we should create a regression test for this bug. n/a
[@Prince-Mendiratta] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again. n/a
[@puneetlath] Link the GH issue for creating/updating the regression test once above steps have been agreed upon: n/a
Hi @puneetlath! Coming over from here I'm not sure if this qualifies for any payments. I'll defer to @rushatgabhane, @mountiny and you for the final call on this.
Not really a bug, more of an improvement. So I don't think the checklist is necessary here.
Maybe we can add a new item to the PR author checklist?
If a new GH Action was added, I made sure to optimize the GH action to run only when required.
changed the title [-][HOLD for payment 2023-04-28] [Performance] Run some GitHub actions only when required [/-][+][HOLD for payment 2023-04-28] [Performance] [$1000] Run some GitHub actions only when required [/+]on Apr 24, 2023
Activity
MelvinBot commentedon Apr 18, 2023
Triggered auto assignment to @aldo-expensify (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.rushatgabhane commentedon Apr 18, 2023
@Prince-Mendiratta agreed to fix this
Prince-Mendiratta commentedon Apr 18, 2023
Thank you @rushatgabhane! I'll send in a PR in an hour or two after testing fully.
[-][Performance] Skip GitHub actions [/-][+][Performance] Run some GitHub actions only when required [/+]MelvinBot commentedon Apr 18, 2023
Triggered auto assignment to @puneetlath (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.MelvinBot commentedon Apr 18, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)mountiny commentedon Apr 18, 2023
@aldo-expensify going to take this over if that works as I was involved in the thread.
5 remaining items
[-][Performance] Run some GitHub actions only when required [/-][+][HOLD for payment 2023-04-28] [Performance] Run some GitHub actions only when required [/+]MelvinBot commentedon Apr 21, 2023
Reviewinglabel has been removed, please complete the "BugZero Checklist".MelvinBot commentedon Apr 21, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.3-2 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 2023-04-28. 🎊
After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
MelvinBot commentedon Apr 21, 2023
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:
puneetlath commentedon Apr 21, 2023
Not really a bug, more of an improvement. So I don't think the checklist is necessary here.
puneetlath commentedon Apr 21, 2023
I believe only @Prince-Mendiratta will need to be paid out for this one for completing the PR. No bug report or C+ here. Let me know if that's wrong!
Prince-Mendiratta commentedon Apr 21, 2023
Hi @puneetlath! Coming over from here I'm not sure if this qualifies for any payments. I'll defer to @rushatgabhane, @mountiny and you for the final call on this.
Maybe we can add a new item to the PR author checklist?
mountiny commentedon Apr 21, 2023
@Prince-Mendiratta I think we can issue a payment of $250 this is a nice improvement and we appreciate the involvement of the community ❤️
I feel like add new Github actions so rarely that I would say we dont have to add it to the checklist.
[-][HOLD for payment 2023-04-28] [Performance] Run some GitHub actions only when required [/-][+][HOLD for payment 2023-04-28] [Performance] [$1000] Run some GitHub actions only when required [/+]MelvinBot commentedon Apr 24, 2023
puneetlath commentedon Apr 24, 2023
@Prince-Mendiratta sent you an offer: https://www.upwork.com/nx/wm/pre-hire/c/8577561/offer/24258442
puneetlath commentedon Apr 28, 2023
All paid!