Skip to content

Commit

Permalink
win-test failure: updated artifact path
Browse files Browse the repository at this point in the history
  • Loading branch information
oakrizan committed Jan 10, 2024
1 parent 3a73ac8 commit 5014f3c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .buildkite/filebeat/filebeat-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ steps:
image:
- "${IMAGE_WIN_2016}"
- "${IMAGE_WIN_2022}"
artifact_paths: "filebeat/build/logs/docker_corrupted.log"
# artifact_paths: "filebeat/tests/files/logs/docker_corrupted.log"

- group: "Extended Testing"
key: "extended-tests"
Expand Down Expand Up @@ -100,7 +100,7 @@ steps:
machine_type: "n2-standard-8"
disk_size: 200
disk_type: "pd-ssd"
artifact_paths: "filebeat/build/logs/docker_corrupted.log"
# artifact_paths: "filebeat/tests/files/logs/docker_corrupted.log"

- group: "Packaging"
key: "packaging"
Expand Down
3 changes: 0 additions & 3 deletions .buildkite/filebeat/scripts/arm-tests.sh

This file was deleted.

22 changes: 17 additions & 5 deletions .buildkite/filebeat/scripts/unit-tests-win.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,33 @@ function installGoDependencies() {
}
}

fixCRLF
function findLog() {
$mainDir = Get-Location
$logFilename = "docker_corrupted.log"
$file = Get-ChildItem -Path $mainDir -Filter $logFilename -Recurse -File | Select-Object -First 1

Write-Host ":: LOG FILE PATH :: $($file.FullName)"
# buildkite-agent meta-data set CORRUPTED_LOG_FILEPATH $($file.FullName)
}


#fixCRLF

$ErrorActionPreference = "Continue" # set +e

Set-Location -Path filebeat
New-Item -ItemType Directory -Force -Path "build"
withGolang
installGoDependencies

$oldUmask = $ExecutionContext.SessionState.LanguageMode
$ExecutionContext.SessionState.LanguageMode = "NoLanguage"
$ExecutionContext.SessionState.LanguageMode = $oldUmask
#
#$oldUmask = $ExecutionContext.SessionState.LanguageMode
#$ExecutionContext.SessionState.LanguageMode = "NoLanguage"
#$ExecutionContext.SessionState.LanguageMode = $oldUmask

mage build unitTest

#findLog

$EXITCODE=$LASTEXITCODE
$ErrorActionPreference = "Stop"

Expand Down

0 comments on commit 5014f3c

Please sign in to comment.