-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[GHA] fix code nightly job #20239
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
[GHA] fix code nightly job #20239
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general looks great, left a couple of comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Next Wednesday we get rid of the old Dockerfile and only have this one, correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought we should pause release of 1.94 because WebView is broken
| ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 | ||
| ENV ELECTRON_SKIP_BINARY_DOWNLOAD=1 | ||
| ENV VSCODE_ARCH=x64 | ||
| ENV NPM_REGISTRY=https://registry.npmjs.org |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When we use NPM exclusively, is this still necessary?
| # See License.AGPL.txt in the project root for license information. | ||
| FROM gitpod/openvscode-server-linux-build-agent:focal-x64 as code_builder | ||
|
|
||
| ENV TRIGGER_REBUILD 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this syntax also works, just struck me when reading
| ENV TRIGGER_REBUILD 1 | |
| ENV TRIGGER_REBUILD=1 |
| RUN if dpkg --compare-versions "$CODE_VERSION" "ge" "1.90"; then \ | ||
| NODE_VERSION=20; \ | ||
| else \ | ||
| NODE_VERSION=18; \ | ||
| fi && \ | ||
| echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_VERSION.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need VS Code 1.90 logic?
| # Disable v8 cache used by yarn v1.x, refs https://github.com/nodejs/node/issues/51555 | ||
| ENV DISABLE_V8_COMPILE_CACHE=1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since it's yarn-specific, we don't need it anymore?
|
@filiptronicek most of the comments are nit fixing (not harmful), I would like to merge this first because verify will take us another 1 hour. (like the yarn env one) Thanks you for your review 🚀 ! |
Totally, I don't want to keep these long-term, but we can change when we eventually move this nightly workflow to stable. |
Description
Related Issue(s)
Fixes ENT-787
How to test
latesteditorsTest with Lates VS Code Browser
1.94.0Gitpod:prefixed commands (F1)curl lama.sh | shandgp preview $(gp url 8080)ENT-836Documentation
Preview status
Gitpod was successfully deployed to your preview environment.
Build Options
Build
Run the build with werft instead of GHA
Run Leeway with
--dont-testPublish
Installer
Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
If enabled this will build
install/previewIf enabled this will create the environment on GCE infra
Saves cost. Untick this only if you're really sure you need a non-preemtible machine.
Valid options are
all,workspace,webapp,ide,jetbrains,vscode,ssh. If enabled,with-previewandwith-large-vmwill be enabled./hold