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

Exclude VS-related packages on non-Windows #72470

Merged
merged 4 commits into from
Mar 13, 2024

Conversation

mmitche
Copy link
Member

@mmitche mmitche commented Mar 8, 2024

If Roslyn.sln is built on Unix with --ci and --configuration Release, the build will fail in this target, as some files aren't avaialable. These files aren't available because some dependent project functionality doesn't run if VS SDK tooling isn't available. Conditionalize to windows.

@mmitche mmitche requested a review from a team as a code owner March 8, 2024 23:49
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Infrastructure untriaged Issues and PRs which have not yet been triaged by a lead labels Mar 8, 2024
@dotnet-policy-service dotnet-policy-service bot added the Community The pull request was submitted by a contributor who is not a Microsoft employee. label Mar 8, 2024
@mmitche
Copy link
Member Author

mmitche commented Mar 8, 2024

@jaredpar I don't love this fix, but it should work. It's generally trying to get to the heart of "is vs tooling avaialble and associated targets are running", There is another property for this VSToolsPath, but it's defined internally in the VS SDK packages so I didn't like using it here.

@jaredpar
Copy link
Member

Could we instead just exclude those projects when building in Linux? I'm happy to disable a bit of the repo in that case because the build just doesn't make sense.

@mmitche
Copy link
Member Author

mmitche commented Mar 11, 2024

Could we instead just exclude those projects when building in Linux? I'm happy to disable a bit of the repo in that case because the build just doesn't make sense.

Yeah, let's do that. Do you have a preference on how that's done? Solution filter for roslyn.sln (Roslyn-Unix.slnf?) or a few projects with ExcludeFromBuild conditioned on OS?

@mmitche mmitche requested a review from a team as a code owner March 12, 2024 16:50
@mmitche mmitche changed the title Don't run _CopyPackagesToInsert on non-Windows Exclude VS-related packages on non-Windows Mar 12, 2024
@mmitche
Copy link
Member Author

mmitche commented Mar 12, 2024

/azp run

Copy link

Commenter does not have sufficient privileges for PR 72470 in repo dotnet/roslyn

@mmitche mmitche closed this Mar 12, 2024
@mmitche mmitche reopened this Mar 12, 2024
Set static graph restore to true on non-windows to align with windows scripting.
@mmitche mmitche closed this Mar 12, 2024
@mmitche mmitche reopened this Mar 12, 2024
@mmitche
Copy link
Member Author

mmitche commented Mar 12, 2024

I had to turn static graph on for non-Windows to get this to work properly. Because of (it appears) some manual imports of arcade Sdk props files, the target _IsProjectrestoreSupported doesn't get created as an empty target when a build is excluded. This is fine for static graph restore, but bad for non-static restores.

@mmitche
Copy link
Member Author

mmitche commented Mar 12, 2024

Oh good gracious. Prebuilts?

@mmitche
Copy link
Member Author

mmitche commented Mar 13, 2024

Timeouts are unrelated to the non-windows infra changes and showing up in other jobs.

@mmitche mmitche merged commit f087922 into dotnet:main Mar 13, 2024
25 of 30 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Mar 13, 2024
@RikkiGibson RikkiGibson modified the milestones: Next, 17.10 P3 Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure Community The pull request was submitted by a contributor who is not a Microsoft employee. untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants