Skip to content

[stable33] fix(behat): stop nested develop/pdf fetches causing cURL 52 flakes - #8489

Merged
vitormattos merged 10 commits into
stable33from
backport/8430/stable33
Sep 20, 2026
Merged

vitormattos merged 10 commits into
stable33from
backport/8430/stable33

Conversation

@backportbot-libresign

@backportbot-libresign backportbot-libresign Bot commented Sep 20, 2026 •

Copy link
Copy Markdown

Backport of #8430

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Review and verify the backported changes
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

Provide an inline data-URI from small_valid.pdf so scenarios can send
PDFs without nested HTTP to the PHP built-in server.

Signed-off-by: Luis Amorim <luisfelipeamorim@hotmail.com>
With fixtures no longer nesting HTTP to develop/pdf, a single-process
php -S is enough and avoids experimental PHP_CLI_SERVER_WORKERS flakes.

Signed-off-by: Luis Amorim <luisfelipeamorim@hotmail.com>
workers: 0 deadlocks any nested self-HTTP on php -S. Use the minimum
of two workers while fixtures stay on inline PDF base64 to avoid the
previous cURL 52 flakes from workers: 10.

Signed-off-by: Luis Amorim <luisfelipeamorim@hotmail.com>
Serve small_valid.pdf from a second local php -S process and add a
scenario that posts {"url":"<PDF_URL>"} so url download stays covered
without nested HTTP to the Behat Nextcloud server.

Signed-off-by: Luis Amorim <luisfelipeamorim@hotmail.com>
Signed-off-by: Luis Amorim <luisfelipeamorim@hotmail.com>
Failsafe for residual cURL 52 empty-reply flakes during Behat HTTP
bursts; retries up to three times with backoff and STDERR diagnostics.

Signed-off-by: Luis Amorim <luisfelipeamorim@hotmail.com>
Retrying around cURL 52/7 hides the real failure and is unsafe for POST
requests such as request-signature. Prefer diagnosing PHP built-in
server death via behat-builtin-extension verbose mode.

Signed-off-by: Luis Amorim <luisfelipeamorim@hotmail.com>
chore(behat): bump nextcloud-behat to 1.6.1 for builtin 0.7.0

Unlock verbose PHP built-in server diagnostics so Behat CI can show PID, logs, and exit status on cURL 52 flakes.

Signed-off-by: Luis Amorim <luisfelipeamorim@hotmail.com>

[skip ci]
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos
vitormattos marked this pull request as ready for review September 20, 2026 21:17
@vitormattos
vitormattos requested a review from a team as a code owner September 20, 2026 21:17
@vitormattos
vitormattos merged commit 9018b36 into stable33 Sep 20, 2026
65 checks passed
@vitormattos
vitormattos deleted the backport/8430/stable33 branch September 20, 2026 21:17
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.

2 participants