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

Remove DEBUG env var from Connect macOS dronegen #18899

Merged
merged 3 commits into from
Nov 30, 2022

Conversation

ravicious
Copy link
Member

@ravicious ravicious commented Nov 30, 2022

It was added in an effort to debug flaky Connect builds (#15836).

However, we discovered that the v11.1.0 macOS version of Connect stopped working. This was likely due to upgrade of electron-builder which recently updated its process of building native deps
(electron-userland/electron-builder#7196).

In the Node.js ecosystem, the DEBUG env var is typically used to control which packages emit debug messages [1]. However, after the update of electron-builder, the env var also changed the behavior of one of the packages responsible for building the apps.

This was confirmed by inspecting file tree between different app bundles and running the build locally with DEBUG set to electron-*.

[1] https://www.npmjs.com/package/debug


Although we did run a CI build after upgrading electron-builder to test if everything is working, we didn't actually execute the artifact built by drone, so we missed the fact that the build was broken.

It was added in effort to debug flaky Connect builds (#15836).

However, we discovered that the v11.1.0 macOS version of Connect stopped
working. This was likely due to upgrade of electron-builder which recently
updated its process of building native deps
(electron-userland/electron-builder#7196).

In the Node.js ecosystem, the DEBUG env var is typically used to control
which packages emit debug messages [1]. However, after the update of
electron-builder, the env var also changed the behavior of one of the
packages responsible for building the apps.

This was confirmed by inspecting file tree between different app bundles
and running the build locally with DEBUG set to electron-*.

[1] https://www.npmjs.com/package/debug
@ravicious
Copy link
Member Author

@gzdunek @avatus I'm not backporting this to v10 because the electron-builder version used by v10 is not affected.

@ravicious ravicious enabled auto-merge (squash) November 30, 2022 11:42
@ravicious
Copy link
Member Author

ravicious commented Nov 30, 2022

Running a v11 drone build with this change included to be double sure that it fixes the problem.

https://drone.platform.teleport.sh/gravitational/teleport/18079/26/1

@ravicious
Copy link
Member Author

idk if it's our macOS builder or Apple servers but notarizing the app bundles is super slow today. I'm yet to make a dev build because the notarization jobs time out after 1 hour.

Since we're fairly confident that this is going to fix the problem and we reproduced the issue locally, I'm thinking of merging this straight away. Thoughts? @gzdunek @avatus

@avatus
Copy link
Contributor

avatus commented Nov 30, 2022

I say ship it!

@gzdunek
Copy link
Contributor

gzdunek commented Nov 30, 2022

There is an issue on the apple side https://developer.apple.com/system-status/

Since we're fairly confident that this is going to fix the problem and we reproduced the issue locally, I'm thinking of merging this straight away.

I agree, let's merge :)

@ravicious ravicious merged commit 726330f into master Nov 30, 2022
@github-actions
Copy link

@ravicious See the table below for backport results.

Branch Result
branch/v11 Failed

@ravicious ravicious deleted the ravicious/remove-electron-debug branch November 30, 2022 17:03
ravicious added a commit that referenced this pull request Nov 30, 2022
It was added in effort to debug flaky Connect builds (#15836).

However, we discovered that the v11.1.0 macOS version of Connect stopped
working. This was likely due to upgrade of electron-builder which recently
updated its process of building native deps
(electron-userland/electron-builder#7196).

In the Node.js ecosystem, the DEBUG env var is typically used to control
which packages emit debug messages [1]. However, after the update of
electron-builder, the env var also changed the behavior of one of the
packages responsible for building the apps.

This was confirmed by inspecting file tree between different app bundles
and running the build locally with DEBUG set to electron-*.

[1] https://www.npmjs.com/package/debug
@ravicious
Copy link
Member Author

I downloaded 11.1.1-dev.ravicious.3 and I can confirm that it works.

ravicious added a commit that referenced this pull request Nov 30, 2022
It was added in effort to debug flaky Connect builds (#15836).

However, we discovered that the v11.1.0 macOS version of Connect stopped
working. This was likely due to upgrade of electron-builder which recently
updated its process of building native deps
(electron-userland/electron-builder#7196).

In the Node.js ecosystem, the DEBUG env var is typically used to control
which packages emit debug messages [1]. However, after the update of
electron-builder, the env var also changed the behavior of one of the
packages responsible for building the apps.

This was confirmed by inspecting file tree between different app bundles
and running the build locally with DEBUG set to electron-*.

[1] https://www.npmjs.com/package/debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants