Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Re-enable experimental support for esbuild#28856

Merged
umpox merged 8 commits intomainfrom
tr/enable-esbuild
Dec 13, 2021
Merged

Re-enable experimental support for esbuild#28856
umpox merged 8 commits intomainfrom
tr/enable-esbuild

Conversation

@umpox
Copy link
Copy Markdown
Contributor

@umpox umpox commented Dec 10, 2021

Problem

esbuild was removed in this PR: https://github.com/sourcegraph/sourcegraph/pull/28784 as it caused yarn install commands to hang in CI.

Solution

I thought this would be related to postinstall as the dependency installed fine, it would only hang when building the dependencies at the final step of the command. This is quite difficult to debug as it only happens in CI (and will poison an agent if occurs), and yarn doesn't seem to output logs from postinstall commands.

Upgrading esbuild should fix this, as it appears to have been a known bug that was recently fixed: evanw/esbuild#1621. Esbuild would try to fetch from the NPM registry directly which has been reported to hang in some environments.

I have tested this by repeating the yarn install commands directly on a buildkite agent. Once I was confident that it did not cause the issue, I started (through normal CI) 50 runs of yarn install across different agents to double check - there were no failures.

Closes https://github.com/sourcegraph/sourcegraph/issues/28785

@cla-bot cla-bot bot added the cla-signed label Dec 10, 2021
@github-actions github-actions bot added the frontend-platform Issues related to our frontend platform, owned collectively by our frontend crew. label Dec 10, 2021
@umpox umpox marked this pull request as ready for review December 13, 2021 11:04
@umpox umpox requested review from a team December 13, 2021 11:05
@umpox umpox merged commit 6d80c2f into main Dec 13, 2021
@umpox umpox deleted the tr/enable-esbuild branch December 13, 2021 11:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed frontend-platform Issues related to our frontend platform, owned collectively by our frontend crew.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Re-enable esbuild support

2 participants