Skip to content

build: always repackage electron from oss entry scripts - #292770

Merged
Robo (deepak1556) merged 2 commits into
mainfrom
robo/fix_oss_packaging
Feb 4, 2026
Merged

build: always repackage electron from oss entry scripts#292770
Robo (deepak1556) merged 2 commits into
mainfrom
robo/fix_oss_packaging

Conversation

@deepak1556

Copy link
Copy Markdown
Collaborator

Follow-up to #291948

Users having cached version of .build/electron will fail to pick up the renamed executable. Also, the downloads for a version are already cached, it isn't required to cache the packaging.

@deepak1556 Robo (deepak1556) added this to the February 2026 milestone Feb 4, 2026
@deepak1556 Robo (deepak1556) self-assigned this Feb 4, 2026
Copilot AI review requested due to automatic review settings February 4, 2026 05:41
@deepak1556
Robo (deepak1556) enabled auto-merge (squash) February 4, 2026 05:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the version caching mechanism for Electron packaging to ensure users always get the latest renamed executable. This is a follow-up to PR #291948 which renamed the product executable on macOS.

Changes:

  • Removed version checking logic that prevented repackaging when the cached version matched the current version
  • Simplified the main function to always remove and repackage Electron

@deepak1556

Copy link
Copy Markdown
Collaborator Author

Failing remote smoketests are crashing with this change, looking into it

@deepak1556

Copy link
Copy Markdown
Collaborator Author

Ah the issue was that the failing smoketests trigger our prelaunch task which repackage electron, the oss app was repackaged while it was running leading to SIGTRAP in https://github.com/electron/electron/blob/51a9101c3de7794baad9c35cce57adecf9ea3ad3/shell/browser/electron_browser_client.cc#L496-L510

The version check was preventing these unnecessary and harmful redownloads..

@deepak1556 Robo (deepak1556) changed the title build: always repackage electron build: always repackage electron from oss entry scripts Feb 4, 2026
@deepak1556
Robo (deepak1556) force-pushed the robo/fix_oss_packaging branch 2 times, most recently from 68759b0 to b8a24a7 Compare February 4, 2026 08:43
@deepak1556
Robo (deepak1556) marked this pull request as draft February 4, 2026 08:50
auto-merge was automatically disabled February 4, 2026 08:50

Pull request was converted to draft

@deepak1556

Copy link
Copy Markdown
Collaborator Author

Turns out the redownload during remote tests was happening because of the test-resolver extension launching

node build/lib/preLaunch.ts

@deepak1556
Robo (deepak1556) marked this pull request as ready for review February 4, 2026 09:54
@deepak1556
Robo (deepak1556) enabled auto-merge (squash) February 4, 2026 09:54
@deepak1556
Robo (deepak1556) merged commit fef6f5a into main Feb 4, 2026
22 checks passed
@deepak1556
Robo (deepak1556) deleted the robo/fix_oss_packaging branch February 4, 2026 10:00
Alex Ross (alexr00) added a commit that referenced this pull request Feb 4, 2026
Robo (deepak1556) pushed a commit that referenced this pull request Feb 4, 2026
#292770)" (#292812)

Revert "build: always repackage electron from oss entry scripts (#292770)"

This reverts commit fef6f5a.
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Mar 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants