Skip to content
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-03-13] [$500] Upgrade Electron package to latest version #35600

Closed
blimpich opened this issue Feb 1, 2024 · 31 comments
Closed
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@blimpich
Copy link
Contributor

blimpich commented Feb 1, 2024

Problem

Electron is a core part of our app and we are currently several major versions behind. We should be up to date in order to gain the benefit of up-to-date security patches and also added functionality. One example is that #34829 will be partially fixed when this Electron issue gets closed, but only if we are on the most recent version.

Solution

Upgrade to the most recent stable version of Electron. As of the time of writing this issue that is major version 28 but major version 29 should become the new latest stable version sometime in February. Keep that in mind as this issue progresses.

Note: for testing make sure to test the electron auto updater

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01411beff5fb7fab7c
  • Upwork Job ID: 1753189399602946048
  • Last Price Increase: 2024-02-15
  • Automatic offers:
    • jeremy-croff | Contributor | 0
@blimpich blimpich added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 1, 2024
@blimpich blimpich self-assigned this Feb 1, 2024
Copy link

melvin-bot bot commented Feb 1, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01411beff5fb7fab7c

@melvin-bot melvin-bot bot changed the title Upgrade Electron package to latest version [$500] Upgrade Electron package to latest version Feb 1, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 1, 2024
Copy link

melvin-bot bot commented Feb 1, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane (External)

Copy link

melvin-bot bot commented Feb 1, 2024

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

@jeremy-croff
Copy link
Contributor

jeremy-croff commented Feb 2, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

Need to update electron

What is the root cause of that problem?

Visibility bug will improve our user experience on electron

What changes do you think we should make in order to solve the problem?

We should wait for the next major version to get released around feb 20th. Only then upgrade to that electron version with the steps documented in https://github.com/Expensify/App/blob/4f103255b77271d60666d39a0670104d113c44b5/desktop/README.md#testing-electron-auto-update.

I did a spot check against https://www.electronjs.org/docs/latest/breaking-changes make sure we don't have any larger migration changes needed. As all the deprecated and breaking changes are not used in our app yet.

What alternative solutions did you explore? (Optional)

Copy link

melvin-bot bot commented Feb 5, 2024

@blimpich, @rushatgabhane, @MitchExpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!

@rushatgabhane
Copy link
Member

@blimpich based on #35600 (comment) should this be weekly?

@melvin-bot melvin-bot bot removed the Overdue label Feb 5, 2024
@blimpich
Copy link
Contributor Author

blimpich commented Feb 5, 2024

We don't need to wait for the upstream fix in my opinion. Once we are updated to the latest major version there will be little risk in bumping the minor version needed to make use of that upstream Electron PR. This can be done in parallel. And actually I'd prefer that this be done in parallel so that we can sort out any issues / regression that bumping the major version might cause now rather than later.

However, after thinking about it, I would like this upgrade to be done once the latest Electron major version is released on February 20th. So lets table this issue until then. Hopefully the upstream issue is fixed by then and we get two birds with one stone.

@blimpich blimpich added Weekly KSv2 and removed Daily KSv2 labels Feb 5, 2024
@blimpich
Copy link
Contributor Author

blimpich commented Feb 6, 2024

Upstream issue is officially fixed 🎉 electron/electron#38955 (comment)

@jeremy-croff
Copy link
Contributor

Let's see if it's just a minor version bump. Would you like a proposal for that too?

@blimpich
Copy link
Contributor Author

blimpich commented Feb 7, 2024

@jeremy-croff Not sure if I understand, do you mean one proposal for the major version upgrade and one proposal for the minor version upgrade? If so, no, just the major. Or really simply the latest version once 29 is released.

Copy link

melvin-bot bot commented Feb 8, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@MitchExpensify
Copy link
Contributor

What is our next step here? Is this still a problem or was it resolved here: electron/electron#38955 (comment)?

@blimpich
Copy link
Contributor Author

@MitchExpensify we're waiting till February 20th, which is when the newest stable version of Electron should be released according to this.

@jeremy-croff
Copy link
Contributor

@blimpich @MitchExpensify There's some turbulence with the expected fix. Latest is that the occlusion fix got reverted:
electron/electron#41311
And there's a new draft open for the feature.

@MitchExpensify
Copy link
Contributor

Thanks for the update

Copy link

melvin-bot bot commented Feb 15, 2024

@blimpich @rushatgabhane @MitchExpensify this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@melvin-bot melvin-bot bot removed the Weekly KSv2 label Feb 15, 2024
@melvin-bot melvin-bot bot added the Daily KSv2 label Feb 15, 2024
Copy link

melvin-bot bot commented Feb 15, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Feb 19, 2024
@blimpich
Copy link
Contributor Author

Not overdue. Tomorrow the newest version of electron comes out and then we can start the upgrade.

@melvin-bot melvin-bot bot removed the Overdue label Feb 19, 2024
@blimpich
Copy link
Contributor Author

29 is out, lets get started on this.

Screenshot 2024-02-20 at 9 38 33 AM

@blimpich
Copy link
Contributor Author

@jeremy-croff @rushatgabhane are you both still good to work on this?

@jeremy-croff
Copy link
Contributor

@jeremy-croff @rushatgabhane are you both still good to work on this?

Can start today

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 20, 2024
Copy link

melvin-bot bot commented Feb 20, 2024

📣 @jeremy-croff 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Feb 21, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Mar 6, 2024
@melvin-bot melvin-bot bot changed the title [$500] Upgrade Electron package to latest version [HOLD for payment 2024-03-13] [$500] Upgrade Electron package to latest version Mar 6, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Mar 6, 2024
Copy link

melvin-bot bot commented Mar 6, 2024

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

Copy link

melvin-bot bot commented Mar 6, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.47-10 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-03-13. 🎊

For reference, here are some details about the assignees on this issue:

This comment was marked as resolved.

@MitchExpensify
Copy link
Contributor

Reminder set to pay

@rushatgabhane
Copy link
Member

@MitchExpensify checklist not applicable because this isn't a bug / feature

@MitchExpensify
Copy link
Contributor

Payment summary:

@rushatgabhane
Copy link
Member

@MitchExpensify
Copy link
Contributor

Contract ended and paid @jeremy-croff

@JmillsExpensify
Copy link

$500 approved for @rushatgabhane based on summary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
None yet
Development

No branches or pull requests

5 participants