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

Adding V8 engine to webassembly container in order to run trimming tests #409

Merged
merged 1 commit into from
Feb 17, 2021

Conversation

joperezr
Copy link
Member

cc: @safern @mthalman @akoeplinger @MichaelSimons

Contributes to dotnet/runtime#39274

dotnet/runtime trimming tests are executing during build-time (not executed in Helix) and today we are not running them on the wasm vertical due to the fact that our webassembly build container doesn't have v8 installed in order to be able to execute webassmebly app bundles. This PR will add the v8 engine to the webassembly container, and a subsequent PR in dotnet/runtime will use this new container to add a wasm leg for our trimming tests.

Copy link
Member

@safern safern left a comment

Choose a reason for hiding this comment

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

LGTM


# Install V8 Engine to be able to execute Trimming Tests
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - \
&& apt install -y nodejs \
Copy link
Member

Choose a reason for hiding this comment

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

Installing nodejs shouldn't be necessary. It's already installed in the base image at

Copy link
Member Author

Choose a reason for hiding this comment

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

True but for v8 engine we will need npm 10+ which will only be available after the previouse curl command. After running that, the apt install nodejs will install the new npm which will be able to install the v8 engine. With the nodejs that is preinstalled in the container we can't install v8.

Copy link
Member

Choose a reason for hiding this comment

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

@joperezr we don't need to install v8 from npm/jsvu, for the helix queue we just download the binary from blob storage: https://dev.azure.com/dnceng/internal/_git/dotnet-helix-machines?path=%2Fartifacts%2Flinux-v8-engine%2Flinux-v8-engine.sh&_a=contents&version=GBmaster

@mthalman mthalman merged commit 6f4d99e into dotnet:master Feb 17, 2021
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