Skip to content

Conversation

@dustymabe
Copy link
Member

There is a race condition that occurs for
/dev/virtio-ports/com.coreos.ignition.journal and it's hard to
track down. In this case we are just detecting a failure anyway.

If we can find the original search failure term after the timeout
happens let's consider that success too.

See coreos/fedora-coreos-tracker#2019
for more context.

We don't need the message about creating the filesystem to show
up in our kola logs.
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request aims to improve test reliability by checking console logs for expected errors even in timeout scenarios, which is a good approach for handling race conditions. The refactoring of the console checking logic into a helper function is a positive change for code clarity and reuse. However, I've identified a critical bug in the new timeout handling logic where the original search pattern is incorrectly overwritten, leading to the wrong error message being checked. I've provided a code suggestion to correct this. The other changes, such as reducing a timeout and cleaning up command execution, are reasonable.

There is a race condition that occurs for
/dev/virtio-ports/com.coreos.ignition.journal and it's hard to
track down. In this case we are just detecting a failure anyway.

If we can find the original search failure term after the timeout
happens let's consider that success too.

See coreos/fedora-coreos-tracker#2019
for more context.
All of these tests run within 15 seconds today. Let's drop the timeout
to one minute, which will enable to detect failures quicker and also
allow us to fallback to the new "best effort" console check in the
timeout path quicker.
Copy link
Contributor

@prestist prestist left a comment

Choose a reason for hiding this comment

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

These changes make sense to me LGTM!

@prestist
Copy link
Contributor

/retest

@dustymabe dustymabe merged commit eef1c19 into coreos:main Nov 14, 2025
6 checks passed
@dustymabe dustymabe deleted the dusty-kola-failure-try-again branch November 14, 2025 21:37
dustymabe added a commit to dustymabe/fedora-coreos-config that referenced this pull request Nov 17, 2025
We've decided to just work around the race condition in
coreos/coreos-assembler#4371 so we
shouldn't see this failure any longer.

Closes coreos/fedora-coreos-tracker#2019
dustymabe added a commit to coreos/fedora-coreos-config that referenced this pull request Nov 17, 2025
We've decided to just work around the race condition in
coreos/coreos-assembler#4371 so we
shouldn't see this failure any longer.

Closes coreos/fedora-coreos-tracker#2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants