Skip to content

twister: Fix race condition in try_making_symlink #93608

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tpambor
Copy link
Contributor

@tpambor tpambor commented Jul 23, 2025

Replaces the check-then-create pattern for symlinks with opportunistic creation. Instead of checking for existence before creating the symlink, the code now attempts to create it directly and gracefully handles the case where it already exists.

Fixes #93220

Replaces the check-then-create pattern for symlinks with
opportunistic creation. Instead of checking for existence
before creating the symlink, the code now attempts to
create it directly and gracefully handles the case
where it already exists.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
Copy link

Copy link
Contributor

@clamattia clamattia left a comment

Choose a reason for hiding this comment

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

Thank you.

This is critical. It causes about 1 in 3 random CI-pipeline failures in our downstream project.

Please someone else take a look.

@kartben kartben added the backport v4.2-branch Request backport to the v4.2-branch label Jul 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Twister Twister backport v4.2-branch Request backport to the v4.2-branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Twister tests with coverage enabled crash during startup
5 participants