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

Update build to use a local package cache from a submodule and build offline #53975

Merged
merged 4 commits into from
Feb 13, 2024

Conversation

wtgodbe
Copy link
Member

@wtgodbe wtgodbe commented Feb 12, 2024

Replaces https://github.com/dotnet/aspnetcore/pull/53524/files to fix a casing issue with the submodule. Should fix #53710.

@wtgodbe wtgodbe requested review from a team as code owners February 12, 2024 21:16
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Feb 12, 2024
@@ -15,9 +15,14 @@
<PackageVersion>$(VersionPrefix)$(VersionSuffix)</PackageVersion>
</PropertyGroup>

<Target Name="Restore">
<Target Name="_VerifyNPMCache">
Copy link
Member Author

Choose a reason for hiding this comment

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

@javiercn is this the right time to call npm cache verify (before Restore)?

Copy link
Member

Choose a reason for hiding this comment

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

Yep

@MichaelSimons
Copy link
Member

Wanted to get your thoughts on if this warrants validating in the VMR prior to merging? I would like to avoid surprises, regressing SB CI, and/or blocking the sdk->installer dependency flow.

@wtgodbe
Copy link
Member Author

wtgodbe commented Feb 12, 2024

Wanted to get your thoughts on if this warrants validating in the VMR prior to merging? I would like to avoid surprises, regressing SB CI, and/or blocking the sdk->installer dependency flow.

I think that's a good idea. How can I help get that done?

Copy link
Member

@javiercn javiercn left a comment

Choose a reason for hiding this comment

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

We also need to remove the checked in JS files, don't we?

@wtgodbe
Copy link
Member Author

wtgodbe commented Feb 12, 2024

We also need to remove the checked in JS files, don't we?

Good point, doing that now

@wtgodbe wtgodbe requested a review from a team as a code owner February 12, 2024 22:37
@javiercn
Copy link
Member

@wtgodbe I'm merging this as I'm doing npm dependency updates as part of build ops and I don't want to create conflicts for you.

@javiercn javiercn merged commit 9861fa6 into main Feb 13, 2024
27 checks passed
@javiercn javiercn deleted the wtgodbe/Node-Externals branch February 13, 2024 08:16
@dotnet-policy-service dotnet-policy-service bot added this to the 9.0-preview2 milestone Feb 13, 2024
@MichaelSimons
Copy link
Member

Wanted to get your thoughts on if this warrants validating in the VMR prior to merging? I would like to avoid surprises, regressing SB CI, and/or blocking the sdk->installer dependency flow.

I think that's a good idea. How can I help get that done?

I see this is already merged but for future reference, you can either create a git patch with your changes and apply it to the vmr or use this vmr-sync script. In this particular case involving the submodule, the vmr-sync would be the recommended approach. Once the changes are applied, I would recommend just opening a draft PR and let the CI run to validate. If you would like to build locally, the build instructions are in the VMR's readme

@MichaelSimons
Copy link
Member

It would still be good to validate this IMO to ensure this does not block the sdk->installer dependency flow or regress source-build.

@MichaelSimons
Copy link
Member

It would still be good to validate this IMO to ensure this does not block the sdk->installer dependency flow or regress source-build.

On another look, this won't affect source-build because BuildNodeJS is not set to true in SB. Is enabling this in source-build on someone's radar/tracked in an issue?

@mthalman
Copy link
Member

This seems to be causing a failure: dotnet/installer#18641 (comment)

@wtgodbe
Copy link
Member Author

wtgodbe commented Feb 13, 2024

Responded here: dotnet/installer#18641 (comment)

@wtgodbe
Copy link
Member Author

wtgodbe commented Feb 14, 2024

On another look, this won't affect source-build because BuildNodeJS is not set to true in SB. Is enabling this in source-build on someone's radar/tracked in an issue?

It's already enabled in this repo's source-build leg. I'm enabling it in Installer in dotnet/installer#18641

@MichaelSimons
Copy link
Member

This appears to have regressed all of the offline source-build legs in CI - dotnet/source-build#4129

@javiercn
Copy link
Member

@MichaelSimons The error seems to be caused by a component that is likely not needed and that we can avoid using. Is there a way to setup an environment variable in source build?

We probably just need to set PUPPETEER_SKIP_DOWNLOAD=1 but I don't know if that's done here or in the source build config/definition.

@javiercn
Copy link
Member

#54036

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle 3rd party NPM dependencies in source-build
4 participants