Skip to content

ci: fix Flow framework test after neos.io HTTPS redirect - #4574

Open
bm1549 wants to merge 2 commits into
masterfrom
brian.marks/fix-flow-curlengine-https
Open

bm1549 wants to merge 2 commits into
masterfrom
brian.marks/fix-flow-curlengine-https

Conversation

@bm1549

@bm1549 bm1549 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Description

The framework test: [flow] and [flow_no_ddtrace] jobs fail on every PR (and on master) in Neos\Flow\Tests\Functional\Http\Client\CurlEngineTest::getRequestReturnsResponse:

1) Neos\Flow\Tests\Functional\Http\Client\CurlEngineTest::getRequestReturnsResponse
Failed asserting that '' contains "This website is powered by Neos".

www.neos.io started redirecting HTTP to HTTPS with a 301 today (~17:02Z, 2026-11-26):

$ curl -sI http://www.neos.io | head -2
HTTP/1.1 301 Moved Permanently
location: https://www.neos.io/

The test fetches http://www.neos.io through Flow's CurlEngine without CURLOPT_FOLLOWLOCATION, so it gets the empty 301 body and the content assertion fails. The sibling redirectsAreFollowed test is unaffected: it enables CURLOPT_FOLLOWLOCATION by design, and the new redirect gives it a real redirect to follow (it also runs first, and the suite uses --stop-on-failure, so a failure there would have surfaced before this one).

neos-https-redirect.patch changes getRequestReturnsResponse to request https://www.neos.io (content assertion unchanged). https://www.neos.io serves the same page:

$ curl -s https://www.neos.io | grep -c "This website is powered by Neos"
1

The patch is wired into the Dockerfile like the other repository patches under dockerfiles/frameworks/contrib/flow/.

One caveat: the flow jobs pull the published datadog/dd-trace-ci:php-framework-flow Docker Hub image, which is only republished when a maintainer with Docker Hub credentials runs make -C dockerfiles/frameworks publish_framework_flow - there is no CI job for it. That image was last pushed 2025-05-20, so flaky-auth-date.patch from #4463 has still never actually run in CI, and this patch is in the same position. framework test: [flow] and [flow_no_ddtrace] will stay red on this PR until someone publishes the patched image with that command - that publish is the follow-up action this PR needs. Everything else on the PR should be green.

This gap is now documented in dockerfiles/frameworks/README.md: patches under contrib/ apply at image build time and only take effect in CI after the matching publish target runs.

Verified locally by building the image the same way make build_framework_flow does, from this branch: the git apply *.patch step succeeds with all four flow patches, and the CurlEngineTest suite passes inside the built image against mysql 5.7 - OK (2 tests, 2 assertions). Reverting only the URL back to http in the built image reproduces the CI failure exactly.

Notes:

Reviewer checklist

  • Test coverage seems ok.
  • Appropriate labels assigned.

www.neos.io enabled an HTTP->HTTPS 301 redirect (2026-11-26 ~17:02Z).
Neos\Flow\Tests\Functional\Http\Client\CurlEngineTest::getRequestReturnsResponse
fetches http://www.neos.io without CURLOPT_FOLLOWLOCATION, so it receives
the empty 301 body and fails asserting the page content. The sibling
redirectsAreFollowed is unaffected: it enables CURLOPT_FOLLOWLOCATION and
the new redirect gives it a real redirect to follow.

Change 1: neos-https-redirect.patch changes getRequestReturnsResponse to
request https://www.neos.io (content assertion unchanged), applied like
the other repository patches under dockerfiles/frameworks/contrib/flow/.

Change 2: the flow framework tests build the
datadog/dd-trace-ci:php-framework-flow image from this repository instead
of pulling the published Docker Hub image. That image was last pushed
2025-05-20 and no CI job republishes it, so repository patches only take
effect when a maintainer runs 'make -C dockerfiles/frameworks
publish_framework_flow'; the flaky-auth-date.patch from #4463 never
shipped in the image for the same reason. Building in-pipeline makes
every patch effective; make build/publish_framework_flow are unchanged.

Verified locally: built the image from this branch (git apply of all
four flow patches succeeds) and ran the CurlEngineTest suite inside it
against mysql 5.7 - OK (2 tests, 2 assertions); reverting only the URL
back to http in the built image reproduces the CI failure exactly.
@bm1549
bm1549 requested review from a team as code owners November 26, 2026 21:34
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T21:35:59.401717Z fa86af9 PR opened
🔒 Security Review ✅ Completed 2026-11-26T21:38:40.936554Z fa86af9 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@bm1549 bm1549 added the AI Generated Largely based on code generated by an AI or LLM. This label is the same across all dd-trace-* repos label Nov 26, 2026

@datadog-datadog-prod-us1 datadog-datadog-prod-us1 Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bits Code Review: PASS

More details

The Flow targets build the image containing the HTTPS patch before running, ensuring the fix reaches CI. Static review and Make dry runs found no actionable defect; a full image build and framework execution remain unverified.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit fa86af9

@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Pipelines  Tests

✨ Unblock PR with BitsAI

❌ Errors

Your PR has failed checks. Please review the issues below and take necessary action before merging.

🚦 4 Pipeline jobs failed

DataDog/apm-reliability/dd-trace-php | framework test: [flow] — 🔧 Needs a code fix, caused by this PR

View more details · View in GitLab

DataDog/apm-reliability/dd-trace-php | framework test: [flow_no_ddtrace] — 🔧 Needs a code fix, caused by this PR

View more details · View in GitLab

DataDog/apm-reliability/dd-trace-php | merge-gate — 🔧 Needs a code fix, caused by this PR

View more details · View in GitLab

View all 4 failed jobs.

ℹ️ Info

No other issues found (see more)

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
• Patch Coverage: 100.00%
• Overall Coverage: 80.91% (+0.01%)

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: d4e33bd | Docs | View more details | Give us feedback!

The flow framework tests go back to pulling the published
datadog/dd-trace-ci:php-framework-flow image, exactly as before this
branch touched the Makefile. These images change rarely enough that the
accepted flow is a manual publish by a maintainer with Docker Hub
credentials, not a ~15 minute image build in every pipeline.

Add a section to dockerfiles/frameworks/README.md documenting that the
patches under contrib/ are applied at image build time and only take
effect in CI once 'make -C dockerfiles/frameworks
publish_framework_flow' publishes the image, and that the
flaky-auth-date.patch from #4463 went stale this way (the image was
last published 2025-05-20, so that patch has still never run in CI).
@pr-commenter

pr-commenter Bot commented Nov 26, 2026

Copy link
Copy Markdown

Benchmarks [ tracer ]

Benchmark execution time: 2026-11-26 22:37:02

Comparing candidate commit d4e33bd in PR branch brian.marks/fix-flow-curlengine-https with baseline commit 80452b0 in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 0 performance regressions! Performance is the same for 218 metrics, 0 unstable metrics.

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Generated Largely based on code generated by an AI or LLM. This label is the same across all dd-trace-* repos

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant