Skip to content

[HOLD for payment 2023-04-28] [Performance] [$1000] Run some GitHub actions only when required  #17562

Closed

Description

@rushatgabhane

What performance issue do we need to solve?

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

Activity

  1. MelvinBot commented on Apr 18, 2023

    @MelvinBot
    Contributor

    Triggered auto assignment to @aldo-expensify (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

  2. rushatgabhane commented on Apr 18, 2023

    @rushatgabhane
    MemberAuthor

    @Prince-Mendiratta agreed to fix this

  3. Prince-Mendiratta commented on Apr 18, 2023

    @Prince-Mendiratta
    Contributor

    Thank you @rushatgabhane! I'll send in a PR in an hour or two after testing fully.

  4. changed the title [-][Performance] Skip GitHub actions [/-] [+][Performance] Run some GitHub actions only when required [/+] on Apr 18, 2023
  5. added
    Bug
    on Apr 18, 2023
  6. MelvinBot commented on Apr 18, 2023

    @MelvinBot
    Contributor

    Triggered auto assignment to @puneetlath (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  7. MelvinBot commented on Apr 18, 2023

    @MelvinBot
    Contributor

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  8. mountiny commented on Apr 18, 2023

    @mountiny
    Contributor

    @aldo-expensify going to take this over if that works as I was involved in the thread.

  9. 5 remaining items

  10. added
    Awaiting Payment
    on Apr 21, 2023
  11. 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
  12. removed
    Reviewing
    on Apr 21, 2023
  13. MelvinBot commented on Apr 21, 2023

    @MelvinBot
    Contributor

    Reviewing label has been removed, please complete the "BugZero Checklist".

  14. MelvinBot commented on Apr 21, 2023

    @MelvinBot
    Contributor

    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:

    • Merged PR within 3 business days of assignment - 50% bonus
    • Merged PR more than 9 business days after assignment - 50% penalty
  15. MelvinBot commented on Apr 21, 2023

    @MelvinBot
    Contributor

    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
  16. puneetlath commented on Apr 21, 2023

    @puneetlath
    Contributor

    Not really a bug, more of an improvement. So I don't think the checklist is necessary here.

  17. puneetlath commented on Apr 21, 2023

    @puneetlath
    Contributor

    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!

  18. Prince-Mendiratta commented on Apr 21, 2023

    @Prince-Mendiratta
    Contributor

    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.
  19. mountiny commented on Apr 21, 2023

    @mountiny
    Contributor

    @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.

  20. 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
  21. MelvinBot commented on Apr 24, 2023

    @MelvinBot
    Contributor

    ⚠️ Could not update price automatically because there is no linked Upwork Job ID. The BZ team member will need to update the price manually in Upwork.

  22. puneetlath commented on Apr 24, 2023

    @puneetlath
    Contributor
  23. puneetlath commented on Apr 28, 2023

    @puneetlath
    Contributor

    All paid!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugEngineeringWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions