Skip to content

Test windows in CI - #603

Open
mgaffigan wants to merge 8 commits into
OpenIntegrationEngine:mainfrom
mgaffigan:feat/ci-windows
Open

mgaffigan wants to merge 8 commits into
OpenIntegrationEngine:mainfrom
mgaffigan:feat/ci-windows

Conversation

@mgaffigan

Copy link
Copy Markdown
Contributor

Related #602 and #244

Fixes some windows build issues, makes sure we get notices in CI for future issues.

Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
Config files only keep the first occurrence of each property.  Keep the
first occurrence commented so appending to the end of the file will have
an effect.

Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Test Results

  308 files  +162    308 suites  +162   6m 31s ⏱️ + 2m 26s
1 044 tests + 53  1 041 ✅ + 50   3 💤 +3  0 ❌ ±0 
2 300 runs  +991  2 290 ✅ +987  10 💤 +4  0 ❌ ±0 

Results for commit 7e06415. ± Comparison against base commit 89c8f99.

♻️ This comment has been updated with latest results.

Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
@mgaffigan
mgaffigan marked this pull request as ready for review November 25, 2026 18:18
$testExit = $LASTEXITCODE
Stop-Job $server
"::group::Server output"
Receive-Job $server 2>&1 | Out-String

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The pwsh shell in Actions prepends $ErrorActionPreference = 'stop' to the script. If the server job wrote anything to stderr, Receive-Job re-emits it as an error record, which then becomes terminating: the step exits 1 before exit $testExit, the ::endgroup:: is never printed, and the server's stdout is dropped too. So a green smoke run can turn the job red as soon as the JVM or a library logs a warning to stderr (it didn't happen in this run only because nothing went to stderr).

Minimal repro (pwsh 7.7):

$ErrorActionPreference = 'stop'
$server = & { sh -c 'echo out; echo err >&2' } &
Start-Sleep 2
Stop-Job $server
Receive-Job $server 2>&1 | Out-String   # throws, exit code 1
exit 0

Letting errors through here fixes it:

Suggested change
Receive-Job $server 2>&1 | Out-String
Receive-Job $server -ErrorAction Continue 2>&1 | Out-String
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants