-
Notifications
You must be signed in to change notification settings - Fork 0
fix(distribution): align Windows installer with R2 #285
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
05543b1
fix(distribution): use R2 in Windows installer
Teakowa 30b1e03
test(distribution): model R2 paths for Windows installer
Teakowa dcdd669
fix(distribution): read R2 latest version as plain text
Teakowa 3eeae34
test(distribution): treat latest pointer as plain text
Teakowa e9fb2f4
fix(distribution): decode R2 latest version text on Windows
Teakowa f10c5c8
fix(distribution): require HTTP/2 on Windows downloads
Teakowa ad7e121
fix(distribution): use BITS for Windows downloads
Teakowa 9f41bd4
test(distribution): smoke Windows installs from R2
Teakowa 20361ef
fix(distribution): require HTTP/2 for Windows downloads
Teakowa 71c81e0
fix(distribution): namespace Wright R2 artifacts
Teakowa 5cce6e5
fix(distribution): parse Windows installer errors
Teakowa 9d462a7
Merge branch 'main' into codex/issue-284-windows-r2-installer
Teakowa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| $ErrorActionPreference = "Stop" | ||
| $Root = Split-Path -Parent $PSScriptRoot | ||
| $Installer = Join-Path $Root "install.ps1" | ||
| $Work = Join-Path ([IO.Path]::GetTempPath()) ("wright-install-r2-test-" + [Guid]::NewGuid().ToString("N")) | ||
| $InstallDir = Join-Path $Work "bin" | ||
|
|
||
| function Fail([string]$Message) { | ||
| throw "FAIL: $Message" | ||
| } | ||
|
|
||
| try { | ||
| & $Installer -InstallDir $InstallDir | ||
| $ExpectedExecutables = @("wright.exe", "wright-lsp.exe") | ||
| if ($ExpectedExecutables.Count -ne 2 -or | ||
| $ExpectedExecutables[0] -ne "wright.exe" -or | ||
| $ExpectedExecutables[1] -ne "wright-lsp.exe") { | ||
| Fail "production R2 smoke must cover wright.exe and wright-lsp.exe" | ||
| } | ||
| foreach ($Name in $ExpectedExecutables) { | ||
| $Executable = Join-Path $InstallDir $Name | ||
| if (-not (Test-Path -LiteralPath $Executable -PathType Leaf)) { | ||
| Fail "production R2 install did not install $Name" | ||
| } | ||
| & $Executable --version | Out-Null | ||
| if ($LASTEXITCODE -ne 0) { | ||
| Fail "production R2 install smoke failed for $Name" | ||
| } | ||
| } | ||
| Write-Host "PASS: production R2 install and native smoke check" | ||
| } finally { | ||
| if (Test-Path -LiteralPath $Work) { | ||
| Remove-Item -LiteralPath $Work -Recurse -Force -ErrorAction SilentlyContinue | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.