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

Fix PowerShell Script Issues #76219

Merged
merged 1 commit into from
Dec 2, 2024
Merged

Fix PowerShell Script Issues #76219

merged 1 commit into from
Dec 2, 2024

Conversation

jaredpar
Copy link
Member

@jaredpar jaredpar commented Dec 2, 2024

Ran into issues running PowerShell script issues tonight looking at determinism. After digging down discovered that our scripts didn't run correctly when launching the .cmd files from a pwsh shell. Changed our cmd to avoid this problem.

PowerShell/PowerShell#24630

Ran into issues running PowerShell script issues tonight looking at determinism. After digging down discovered that our scripts didn't run correctly when launching the .cmd files from a pwsh shell. Changed our cmd to avoid this problem.

PowerShell/PowerShell#24630
@jaredpar jaredpar requested a review from a team as a code owner December 2, 2024 05:03
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Infrastructure untriaged Issues and PRs which have not yet been triaged by a lead labels Dec 2, 2024
@jaredpar
Copy link
Member Author

jaredpar commented Dec 2, 2024

@dotnet/roslyn-infrastructure PTAL

@@ -286,8 +287,8 @@ try {

if ($bootstrapDir -eq "") {
Write-Host "Building bootstrap compiler"
$bootstrapDir = Join-Path $ArtifactsDir "bootstrap" "determinism"
& eng/make-bootstrap.ps1 -output $bootstrapDir -ci:$ci
$bootstrapDir = Join-Path $ArtifactsDir (Join-Path "bootstrap" "determinism")
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the motivation/impact of splitting this into multiple calls here?

Copy link
Member Author

Choose a reason for hiding this comment

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

The Join-Path in powershell does not accept arbitrary numbers of arguments, only two. In pwsh it accepts arbitrary.

This went overlooked because this code path doesn't execute in CI as we manually build a bootstrap compiler. It only comes into play when working locally.

@jaredpar jaredpar merged commit bb6bafa into dotnet:main Dec 2, 2024
25 of 28 checks passed
@jaredpar jaredpar deleted the powershell branch December 2, 2024 20:52
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Dec 2, 2024
@dibarbet dibarbet modified the milestones: Next, 17.13 P3 Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure 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.

4 participants