From da1df57c702b7d0a9fa482bb766bd843f5981fb8 Mon Sep 17 00:00:00 2001 From: Mario Rodriguez Molins Date: Thu, 11 Sep 2025 16:51:19 +0200 Subject: [PATCH 1/5] Update go runtime 1.24.7 --- .go-version | 2 +- go.mod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.go-version b/.go-version index 7a429d68a..8407e2600 100644 --- a/.go-version +++ b/.go-version @@ -1 +1 @@ -1.24.6 +1.24.7 diff --git a/go.mod b/go.mod index c71460d6a..379c7ff6b 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,7 @@ module github.com/elastic/package-registry go 1.24.0 -toolchain go1.24.6 +toolchain go1.24.7 require ( cloud.google.com/go/storage v1.56.1 From ca810c0f4b22f0a2279d37e1bdeb8020147d892a Mon Sep 17 00:00:00 2001 From: Mario Rodriguez Molins Date: Thu, 11 Sep 2025 16:53:28 +0200 Subject: [PATCH 2/5] Add changelog entry --- CHANGELOG.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d9c0234e..fbf600a91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,13 +10,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Bugfixes +* Update Go runtime to 1.24.7. [#1425](https://github.com/elastic/package-registry/pull/1425) + ### Added * Added "ingestion_method" mapping to data_streams to provide a high-level understanding of data collection in order to support downstream documentation. [#1402](https://github.com/elastic/package-registry/pull/1402) * Add data_streams to search policy_templates. [#1408](https://github.com/elastic/package-registry/pull/1408) * Added Security Subcategory "misconfiguration_workflow" and "vulnerability_workflow" [#1414](https://github.com/elastic/package-registry/pull/1414) * Add "opentelemetry" category for packages related to OpenTelemetry. [#1415](https://github.com/elastic/package-registry/pull/1415) -* Added APM information (trace.id, transaction.id, service.name, service.version, service.environment) to the logs in order to correlate signals in kibana [#1413]https://github.com/elastic/package-registry/pull/1413 +* Added APM information (trace.id, transaction.id, service.name, service.version, service.environment) to the logs in order to correlate signals in Kibana. [#1413](https://github.com/elastic/package-registry/pull/1413) ### Deprecated From 01af05cc271f900afc1fa62deee7a05d60fc690e Mon Sep 17 00:00:00 2001 From: Mario Rodriguez Molins Date: Thu, 11 Sep 2025 17:05:26 +0200 Subject: [PATCH 3/5] Workaround to install latest golang available for 1.24 --- .buildkite/scripts/run-tests.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.buildkite/scripts/run-tests.ps1 b/.buildkite/scripts/run-tests.ps1 index a881644bc..4d8659dbd 100644 --- a/.buildkite/scripts/run-tests.ps1 +++ b/.buildkite/scripts/run-tests.ps1 @@ -10,6 +10,11 @@ function fixCRLF { function withGolang($version) { Write-Host "-- Install golang --" + $latest_1_24_versions = '1.24.7', '1.24.8' + if ($version -in $latest_1_24_versions) { + # latest Golang version available for 1.24.x + $version = '1.24.6' + } choco install -y golang --version $version $env:ChocolateyInstall = Convert-Path "$((Get-Command choco).Path)\..\.." Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" From 454495672ad12dcaaa9527e5d5961392655551c6 Mon Sep 17 00:00:00 2001 From: Mario Rodriguez Molins Date: Thu, 11 Sep 2025 17:15:27 +0200 Subject: [PATCH 4/5] Change array syntax --- .buildkite/scripts/run-tests.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.buildkite/scripts/run-tests.ps1 b/.buildkite/scripts/run-tests.ps1 index 4d8659dbd..434254478 100644 --- a/.buildkite/scripts/run-tests.ps1 +++ b/.buildkite/scripts/run-tests.ps1 @@ -10,8 +10,10 @@ function fixCRLF { function withGolang($version) { Write-Host "-- Install golang --" - $latest_1_24_versions = '1.24.7', '1.24.8' + $latest_1_24_versions = @('1.24.7') + # not all latest Golang versions of 1.24.x are available since 1.25.0 is released if ($version -in $latest_1_24_versions) { + Write-Host "$version not available in cholocatey, using 1.24.6" # latest Golang version available for 1.24.x $version = '1.24.6' } From 06d14068feeba721d53f6a7a02ab5ade1ea129c5 Mon Sep 17 00:00:00 2001 From: Mario Rodriguez Molins Date: Thu, 11 Sep 2025 17:20:45 +0200 Subject: [PATCH 5/5] Set buildkite collapsed sections --- .buildkite/scripts/run-tests.ps1 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.buildkite/scripts/run-tests.ps1 b/.buildkite/scripts/run-tests.ps1 index 434254478..e3dc361ef 100644 --- a/.buildkite/scripts/run-tests.ps1 +++ b/.buildkite/scripts/run-tests.ps1 @@ -2,14 +2,14 @@ $ErrorActionPreference = "Stop" # set -e # Forcing to checkout again all the files with a correct autocrlf. # Doing this here because we cannot set git clone options before. function fixCRLF { - Write-Host "-- Fixing CRLF in git checkout --" + Write-Host "--- Fixing CRLF in git checkout" git config core.autocrlf input git rm --quiet --cached -r . git reset --quiet --hard } function withGolang($version) { - Write-Host "-- Install golang --" + Write-Host "--- Install golang" $latest_1_24_versions = @('1.24.7') # not all latest Golang versions of 1.24.x are available since 1.25.0 is released if ($version -in $latest_1_24_versions) { @@ -26,12 +26,12 @@ function withGolang($version) { } function withGoJUnitReport { - Write-Host "-- Install go-junit-report --" + Write-Host "--- Install go-junit-report" go install github.com/jstemmer/go-junit-report/v2@latest } function withMage($version) { - Write-Host "-- Install Mage --" + Write-Host "--- Install Mage" go mod download -x go install github.com/magefile/mage@v$version } @@ -41,6 +41,7 @@ withGolang $env:SETUP_GOLANG_VERSION withMage $env:SETUP_MAGE_VERSION withGoJUnitReport +Write-Host "--- Run Unit tests" $ErrorActionPreference = "Continue" # set +e mage -debug test > test-report.txt $EXITCODE=$LASTEXITCODE @@ -54,6 +55,7 @@ foreach ($line in $contest) { Write-Host $changed } +Write-Host "--- Create Junit report for junit annotation plugin" Get-Content test-report.txt | go-junit-report > "unicode-tests-report-win.xml" Get-Content unicode-tests-report-win.xml -Encoding Unicode | Set-Content -Encoding UTF8 tests-report-win.xml Remove-Item unicode-tests-report-win.xml, test-report.txt