Skip to content

Comments

Backport(v6): msi: use CloudFlare R2 first#963

Merged
Watson1978 merged 1 commit intofluent-package-v6from
backport-pkgsize
Feb 16, 2026
Merged

Backport(v6): msi: use CloudFlare R2 first#963
Watson1978 merged 1 commit intofluent-package-v6from
backport-pkgsize

Conversation

@kenhys
Copy link
Contributor

@kenhys kenhys commented Feb 16, 2026

backport #948, #962

@kenhys kenhys added this to the v6.0.2 milestone Feb 16, 2026
@kenhys kenhys requested review from Watson1978 February 16, 2026 07:11
@kenhys kenhys mentioned this pull request Feb 16, 2026
@Watson1978
Copy link
Contributor

Looks for me that this PR does not have the changes in #962

backport #948, #962

Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
@kenhys
Copy link
Contributor Author

kenhys commented Feb 16, 2026

@Watson1978

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

Copy link
Contributor

@Watson1978 Watson1978 left a comment

Choose a reason for hiding this comment

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

👍🏻

@Watson1978 Watson1978 merged commit 732579b into fluent-package-v6 Feb 16, 2026
300 of 301 checks passed
@Watson1978 Watson1978 deleted the backport-pkgsize branch February 16, 2026 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants