Skip to content

Apply 7.4 reset-formats patch with GNU patch (fuzz), pin module-rest ^3.4#242

Merged
TavoNiievez merged 1 commit into
Codeception:mainfrom
TavoNiievez:fix/ci-resetformats-patch-fuzz
Jun 25, 2026
Merged

Apply 7.4 reset-formats patch with GNU patch (fuzz), pin module-rest ^3.4#242
TavoNiievez merged 1 commit into
Codeception:mainfrom
TavoNiievez:fix/ci-resetformats-patch-fuzz

Conversation

@TavoNiievez

@TavoNiievez TavoNiievez commented Jun 25, 2026

Copy link
Copy Markdown
Member

Problem

The Symfony 7.4 functional job applies resetFormatsAfterRequest_issue_test.patch with git apply, which needs exact context. Any unrelated change on the test branch — the Messenger PR's .env / config/routes.php additions, or a composer.lock / symfony.lock refresh shifting lines — breaks it and forces a patch rebuild.

Fix

  • Apply with GNU patch -p1 --fuzz=3 (tolerates line offsets and context drift), so the patch keeps applying without a rebuild.
  • Pin codeception/module-rest:^3.4.

Validated locally on Symfony 7.4: full Functional suite green (137 tests, 258 assertions).

…^3.4

git apply needs exact context, so the patch breaks when unrelated lines shift
on the test branch (Messenger .env/routes additions, lock refreshes). GNU
patch --fuzz tolerates that, so the patch keeps applying without a rebuild.
@TavoNiievez TavoNiievez force-pushed the fix/ci-resetformats-patch-fuzz branch from 0650908 to c822855 Compare June 25, 2026 21:07
@TavoNiievez TavoNiievez merged commit bb77041 into Codeception:main Jun 25, 2026
7 checks passed
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.

1 participant