Backport(v6): msi: use CloudFlare R2 first#963
Merged
Watson1978 merged 1 commit intofluent-package-v6from Feb 16, 2026
Merged
Conversation
Draft
Contributor
|
Looks for me that this PR does not have the changes in #962 |
8e0cce5 to
a1f2b5b
Compare
Contributor
Author
|
Thanks, picked it and applied. Now synced. In LTS branch, it is appropriate to refer lts/6/windows/ for example. diff -u ../f-p-b.master/fluent-package/msi/pkgsize-test.ps1 fluent-package/msi/pkgsize-test.ps1
--- ../f-p-b.master/fluent-package/msi/pkgsize-test.ps1 2026-02-16 16:27:32.116720286 +0900
+++ fluent-package/msi/pkgsize-test.ps1 2026-02-16 16:26:03.769583640 +0900
@@ -9,19 +9,19 @@
try {
"Previous version from git: {0}" -F $previous_version | Write-Host
$previous_msi_name = "fluent-package-${previous_version}-x64.msi"
- $response = Invoke-WebRequest -UseBasicParsing -Uri "${base_uri}/${major_version}/windows/${previous_msi_name}" -OutFile $previous_msi_name -PassThru
+ $response = Invoke-WebRequest -UseBasicParsing -Uri "${base_uri}/lts/${major_version}/windows/${previous_msi_name}" -OutFile $previous_msi_name -PassThru
}
catch {
$heroku_uri = 'https://td-agent-package-browser.herokuapp.com'
Write-Host "An exception was caught: $($_.Exception.Message). Try to find previous version in ${heroku_uri} instead"
"Checking package major version: {0}" -F $major_version | Write-Host
"Checking {0}/{1}/windows" -F $heroku_uri, $major_version | Write-Host
- $msi_links = (Invoke-WebRequest -UseBasicParsing -Uri "${heroku_uri}/${major_version}/windows").Links.href | Where-Object {$_ -like "*.msi"}
+ $msi_links = (Invoke-WebRequest -UseBasicParsing -Uri "${heroku_uri}/lts/${major_version}/windows").Links.href | Where-Object {$_ -like "*.msi"}
$msi_versions = $($msi_links | Select-String '(\d+\.\d+\.\d+)' | ForEach-Object { $_.Matches[0].Groups[1].Value }) | Sort-Object {[version] $_}
$previous_version = $msi_versions | Select-Object -Last 1
"Previous version from {0}: {1}" -F ${heroku_uri}, $previous_version | Write-Host
$previous_msi_name = "fluent-package-${previous_version}-x64.msi"
- $response = Invoke-WebRequest -UseBasicParsing -Uri "${base_uri}/${major_version}/windows/${previous_msi_name}" -OutFile $previous_msi_name -PassThru
+ $response = Invoke-WebRequest -UseBasicParsing -Uri "${base_uri}/lts/${major_version}/windows/${previous_msi_name}" -OutFile $previous_msi_name -PassThru
}
$msi = (Get-Item "fluent-package\\msi\\repositories\\fluent-package-*.msi") | Sort-Object -Descending { $_.LastWriteTime } | Select-Object -First 1 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
backport #948, #962