Skip to content

[#256] Match "OpenIDM ready" as a phrase in the Windows start-up check - #257

Merged
vharseko merged 1 commit into
OpenIdentityPlatform:masterfrom
vharseko:fix-windows-openidm-ready-check
Oct 13, 2026
Merged

vharseko merged 1 commit into
OpenIdentityPlatform:masterfrom
vharseko:fix-windows-openidm-ready-check

Conversation

@vharseko

Copy link
Copy Markdown
Member

findstr "OpenIDM ready" without /C: treats the space-separated words as alternatives, so it matched any line containing "OpenIDM" — and openidm0.log.0 always contains the install path. A Windows boot that never logged "OpenIDM ready" therefore passed "Test on Windows" (e.g. windows-latest/27 in run 38152659213).

The check now uses Select-String -SimpleMatch -CaseSensitive, matching the exact phrase like the Unix grep -q. The $LASTEXITCODE comment, whose premise was wrong (the runner already exits with $LASTEXITCODE at the end of every pwsh step), is replaced with the reason findstr is not used.

Fixes #256

…indows start-up check

findstr without /C: treats space-separated words as alternatives, so
`findstr "OpenIDM ready"` matched any line containing "OpenIDM" -- and
openidm0.log.0 always contains the install path -- letting a boot that
never got ready pass. Use Select-String -SimpleMatch -CaseSensitive,
matching the Unix grep, and drop the incorrect $LASTEXITCODE comment.

Fixes OpenIdentityPlatform#256
@vharseko
vharseko requested a review from maximthomas October 13, 2026 08:02
@vharseko vharseko added bug Something isn't working ci CI/CD, build and release workflows labels Oct 13, 2026

@maximthomas maximthomas left a comment

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.

LGTM, thanks!

@vharseko
vharseko merged commit 220b1fe into OpenIdentityPlatform:master Oct 13, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ci CI/CD, build and release workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The new $LASTEXITCODE check in "Test on Windows" cannot catch a missing "OpenIDM ready",

2 participants