NO-JIRA: Handle wrapped ENOTSUP error#2311
Conversation
system.Lsetxattr wraps syscall errors in XattrError, so comparing the result with == against syscall.ENOTSUP and ErrNotSupportedPlatform never matched, causing layer extraction to fail on filesystems that do not support xattrs instead of silently skipping them. Replace both == comparisons with errors.Is. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Caution Review failedAn error occurred during the review process. Please try again later. Walkthrough
ChangesXattr error handling
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Tools execution failed with the following error: Failed to run tools: 13 INTERNAL: Received RST_STREAM with code 2 (Internal server error) Comment |
|
/retest |
|
Thank you |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ardaguclu, rh-roman The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
1 similar comment
|
/retest |
|
Failure is unrelated and supposed to be fixed by #2315 |
|
@ardaguclu: Overrode contexts on behalf of ardaguclu: ci/prow/okd-scos-images DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@rh-roman: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/verified by CI |
|
@rh-roman: This PR has been marked as verified by DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@rh-roman: This pull request explicitly references no jira issue. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
system.Lsetxattr wraps syscall errors in XattrError, so comparing the
result with == against syscall.ENOTSUP and ErrNotSupportedPlatform never
matched, causing layer extraction to fail on filesystems that do not
support xattrs instead of silently skipping them.
Replace both == comparisons with errors.Is.
Co-Authored-By: Claude Sonnet 4.6
Summary by CodeRabbit