Skip to content

Conversation

profnandaa
Copy link
Collaborator

Still investigating testCachedMounts, skipping for now to avoid blocking the CI.

ref: #5906

Still investigating `testCachedMounts`, skipping for
now to avoid blocking the CI.

ref: moby#5906

Signed-off-by: Anthony Nandaa <profnandaa@gmail.com>
@profnandaa profnandaa marked this pull request as draft May 19, 2025 16:34
@profnandaa
Copy link
Collaborator Author

profnandaa commented May 19, 2025

Taking it back to draft, since the fix could be found sooner. Testing a few more scenarios now.

@profnandaa profnandaa marked this pull request as ready for review May 19, 2025 20:18
@tonistiigi tonistiigi merged commit 3a8422b into moby:master May 19, 2025
112 checks passed
@profnandaa profnandaa deleted the fix-skip-flaky-test branch May 19, 2025 20:33
profnandaa added a commit to profnandaa/buildkit that referenced this pull request May 20, 2025
Fixes moby#5906, reverts moby#5980

Occasionally, the privilege disabling deffered call
is executed before some kernel-side operations are complete.
We therefore end up with some access denied errors
in `prepareDigest` -> `os.Open()`.

Fix this by taking the call closer to where the
privileged operation takes place, but outside the recursion
for optimal calls.

Signed-off-by: Anthony Nandaa <profnandaa@gmail.com>
profnandaa added a commit to profnandaa/buildkit that referenced this pull request May 23, 2025
Fixes moby#5906, reverts moby#5980

Previously, due to lack of a sync mechanism, we'd end up
with some race condition (occassionally) due to one deferred
disableProcessPrivileges call happening before the rest
complete.

Fix this by introducing a mutex to coordinate the enabling
and disabling of the privileges.

Signed-off-by: Anthony Nandaa <profnandaa@gmail.com>
profnandaa added a commit to profnandaa/buildkit that referenced this pull request May 23, 2025
Fixes moby#5906, reverts moby#5980

Previously, due to lack of a sync mechanism, we'd end up
with some race condition (occassionally) due to one deferred
disableProcessPrivileges call happening before the rest
complete.

Fix this by introducing a mutex to coordinate the enabling
and disabling of the privileges.

Signed-off-by: Anthony Nandaa <profnandaa@gmail.com>
profnandaa added a commit to profnandaa/buildkit that referenced this pull request May 23, 2025
Fixes moby#5906, reverts moby#5980

Previously, due to lack of a sync mechanism, we'd end up
with some race condition (occassionally) due to one deferred
disableProcessPrivileges call happening before the rest
complete.

Fix this by introducing a mutex to coordinate the enabling
and disabling of the privileges.

Signed-off-by: Anthony Nandaa <profnandaa@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants