Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions .buildkite/scripts/run-tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,21 @@ $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) {
Write-Host "$version not available in cholocatey, using 1.24.6"
# 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"
Expand All @@ -19,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
}
Expand All @@ -34,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
Expand All @@ -47,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
Expand Down
2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.24.6
1.24.7
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down