Skip to content

Conversation

@octo-sts
Copy link
Contributor

@octo-sts octo-sts bot commented Dec 28, 2025

Commit: 430e67f0170075903632bd6e73ffe7f65e3c6de5

Note: If you need to make manual changes to this PR, apply the skip:staging-update-bot label so the reconciler won't overwrite them.

@octo-sts octo-sts bot added automated pr py3-auditwheel request-version-update request for a newer version of a package labels Dec 28, 2025
@octo-sts
Copy link
Contributor Author

octo-sts bot commented Dec 28, 2025

🩹 Build Failed: Patch Application Failed

Failed to run command "/bin/sh -c 'set -e \n[ -d ''/home/build'' ] || mkdir -p ''/home/build''\ncd ''/home/build''\nseries='''\nif [ -z $series ]; then\n\tif [ -n '\597.patch'' ]; then\n\t\tseries=$(mktemp)\n\t\techo '\597.patch'' | awk '{ for(i = 1; i <= NF; i++) { print $i; } }'' >$series\n\telse\n\t\techo "ERROR: Neither patches or series was set."\n\t\texit 1\n\tfi\nfi\ngrep -v -E '^(#|$)'' $series | (while read patchfile; do\n\tpatch ''-p1'' --fuzz=2 --verbose <$patchfile\ndone)\n\nexit 0'": Process exited with status 1

Build Details

Category Details
Build System Melange
Failure Point patch step - applying patches to py3-auditwheel package

Root Cause Analysis 🔍

Multiple patch hunks failed to apply during the patch step. Specifically, 2 out of 2 hunks failed in the first patch for tests/integration/test_bundled_wheels.py, and 2 out of 3 hunks failed in the third patch. The patches appear to be incompatible with the current source code version, likely due to changes in the target files that make the patch context no longer match.


🔍 Build failure fix suggestions

Found similar build failures that have been fixed in the past and analyzed them to suggest a fix:

Similar PRs with fixes

Suggested Changes

File: py3-auditwheel.yaml

  • removal (patch step)
    Original:
  - uses: patch
    with:
      patches: 597.patch

Content:

Remove the entire patch step since the patch is no longer compatible with the current source version

File: py3-auditwheel/597.patch

  • file_deletion
    Content:
Delete the 597.patch file as it's no longer needed and incompatible with the current source code
Click to expand fix analysis

Analysis

All three similar build failures show a consistent pattern: patches that were previously needed (specifically gh-135462.patch and related security patches) are now failing to apply because they have already been incorporated into newer versions of the upstream source code. The fix pattern in all cases is to remove the problematic patches from the patches list and delete the corresponding patch files, often accompanied by version updates that include the fixes natively.

Click to expand fix explanation

Explanation

The current build failure shows that 2 out of 2 hunks failed in the first patch for tests/integration/test_bundled_wheels.py, and 2 out of 3 hunks failed in another patch. This is identical to the pattern seen in the similar fixes where patches became incompatible with newer source versions. The py3-auditwheel package is at version 6.5.1, and the upstream changelog shows various bug fixes and improvements. It's highly likely that the changes in 597.patch have already been incorporated into the upstream source code, making the patch obsolete and causing conflicts when applied. By removing the patch step entirely, the build will proceed with the clean upstream source code that already contains the necessary fixes.

Click to expand alternative approaches

Alternative Approaches

  • Update the patch to match the current source code structure, but this requires manual inspection of the changes and is more error-prone
  • Check if the patch addresses a security issue that still needs to be applied and create a new patch if necessary
  • Investigate whether the functionality provided by the patch is still needed or has been superseded by upstream changes

Was this comment helpful? Please use 👍 or 👎 reactions on this comment.

@octo-sts octo-sts bot added the ai/skip-comment Stop AI from commenting on PR label Dec 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/skip-comment Stop AI from commenting on PR automated pr py3-auditwheel request-version-update request for a newer version of a package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant