From fa86af96d2007a54690f90c9a62e312ed3859928 Mon Sep 17 00:00:00 2001 From: Brian Marks Date: Thu, 26 Nov 2026 16:28:46 -0500 Subject: [PATCH 1/2] ci: fix Flow framework test after neos.io HTTPS redirect 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. --- dockerfiles/frameworks/Makefile | 20 +++++++++++++-- dockerfiles/frameworks/contrib/Dockerfile | 1 + .../contrib/flow/neos-https-redirect.patch | 25 +++++++++++++++++++ 3 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 dockerfiles/frameworks/contrib/flow/neos-https-redirect.patch diff --git a/dockerfiles/frameworks/Makefile b/dockerfiles/frameworks/Makefile index 6ef2b66115b..7eb82b9a2d3 100644 --- a/dockerfiles/frameworks/Makefile +++ b/dockerfiles/frameworks/Makefile @@ -7,6 +7,9 @@ DDTRACE_TARGETS = ${YAMLS:.yml=} NO_DDTRACE_TARGETS := ${YAMLS:.yml=_no_ddtrace} TARGETS := $(DDTRACE_TARGETS) $(NO_DDTRACE_TARGETS) +PULLED_DDTRACE_TARGETS := $(filter-out flow,$(DDTRACE_TARGETS)) +PULLED_NO_DDTRACE_TARGETS := $(filter-out flow_no_ddtrace,$(NO_DDTRACE_TARGETS)) + .PHONY: all all: help @@ -39,12 +42,25 @@ clean: test -e $(DDTRACE_DEB) && rm $(DDTRACE_DEB) || true .PHONY: $(TARGETS) -$(DDTRACE_TARGETS): build_file_server + +flow: build_file_server + @echo Running $@ + docker-compose --log-level debug -f $(ROOT_DIR)/nginx_file_server.yml -f $(ROOT_DIR)/flow.yml pull mysql + docker-compose --log-level debug -f $(ROOT_DIR)/nginx_file_server.yml -f $(ROOT_DIR)/flow.yml build flow + docker-compose --log-level debug -f $(ROOT_DIR)/nginx_file_server.yml -f $(ROOT_DIR)/flow.yml run flow + +flow_no_ddtrace: build_file_server + @echo Running without ddtrace enabled flow + docker-compose --log-level debug -f $(ROOT_DIR)/nginx_file_server.yml -f $(ROOT_DIR)/flow.yml pull mysql + docker-compose --log-level debug -f $(ROOT_DIR)/nginx_file_server.yml -f $(ROOT_DIR)/flow.yml build flow + docker-compose --log-level debug -f $(ROOT_DIR)/nginx_file_server.yml -f $(ROOT_DIR)/flow.yml run -e NO_DDTRACE=true flow + +$(PULLED_DDTRACE_TARGETS): build_file_server @echo Running $@ docker-compose --log-level debug -f $(ROOT_DIR)/nginx_file_server.yml -f $(ROOT_DIR)/$@.yml pull docker-compose --log-level debug -f $(ROOT_DIR)/nginx_file_server.yml -f $(ROOT_DIR)/$@.yml run $@ -$(NO_DDTRACE_TARGETS): build_file_server +$(PULLED_NO_DDTRACE_TARGETS): build_file_server @echo Running without ddtrace enabled $(@:_no_ddtrace=) docker-compose --log-level debug -f $(ROOT_DIR)/nginx_file_server.yml -f $(ROOT_DIR)/$(@:_no_ddtrace=).yml pull docker-compose --log-level debug -f $(ROOT_DIR)/nginx_file_server.yml -f $(ROOT_DIR)/$(@:_no_ddtrace=).yml run -e NO_DDTRACE=true $(@:_no_ddtrace=) diff --git a/dockerfiles/frameworks/contrib/Dockerfile b/dockerfiles/frameworks/contrib/Dockerfile index 8ecf67e9471..2e06e14aea1 100644 --- a/dockerfiles/frameworks/contrib/Dockerfile +++ b/dockerfiles/frameworks/contrib/Dockerfile @@ -166,6 +166,7 @@ ADD flow/run.sh ./ ADD flow/patch.patch ./ ADD flow/tty.patch ./ ADD flow/flaky-auth-date.patch ./ +ADD flow/neos-https-redirect.patch ./ RUN set -xe; \ git apply *.patch diff --git a/dockerfiles/frameworks/contrib/flow/neos-https-redirect.patch b/dockerfiles/frameworks/contrib/flow/neos-https-redirect.patch new file mode 100644 index 00000000000..3326b1bebf1 --- /dev/null +++ b/dockerfiles/frameworks/contrib/flow/neos-https-redirect.patch @@ -0,0 +1,25 @@ +From 1ee9de48e1a4441fb46bea16840703f4460d3317 Mon Sep 17 00:00:00 2001 +From: Patch Maker +Date: Thu, 26 Nov 2026 16:21:04 -0500 +Subject: [PATCH] Fetch www.neos.io over HTTPS in getRequestReturnsResponse + +--- + .../Neos.Flow/Tests/Functional/Http/Client/CurlEngineTest.php | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Packages/Framework/Neos.Flow/Tests/Functional/Http/Client/CurlEngineTest.php b/Packages/Framework/Neos.Flow/Tests/Functional/Http/Client/CurlEngineTest.php +index a6b41f9..cffeddd 100644 +--- a/Packages/Framework/Neos.Flow/Tests/Functional/Http/Client/CurlEngineTest.php ++++ b/Packages/Framework/Neos.Flow/Tests/Functional/Http/Client/CurlEngineTest.php +@@ -56,7 +56,7 @@ class CurlEngineTest extends FunctionalTestCase + */ + public function getRequestReturnsResponse() + { +- $response = $this->browser->request('http://www.neos.io'); ++ $response = $this->browser->request('https://www.neos.io'); + $this->assertContains('This website is powered by Neos', $response->getContent()); + } + } +-- +2.43.0 + From d4e33bd288f3e22d37afa4613828ab70470ca349 Mon Sep 17 00:00:00 2001 From: Brian Marks Date: Thu, 26 Nov 2026 17:00:58 -0500 Subject: [PATCH 2/2] ci: revert in-pipeline flow image build, document the publish flow 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). --- dockerfiles/frameworks/Makefile | 20 ++------------------ dockerfiles/frameworks/README.md | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/dockerfiles/frameworks/Makefile b/dockerfiles/frameworks/Makefile index 7eb82b9a2d3..6ef2b66115b 100644 --- a/dockerfiles/frameworks/Makefile +++ b/dockerfiles/frameworks/Makefile @@ -7,9 +7,6 @@ DDTRACE_TARGETS = ${YAMLS:.yml=} NO_DDTRACE_TARGETS := ${YAMLS:.yml=_no_ddtrace} TARGETS := $(DDTRACE_TARGETS) $(NO_DDTRACE_TARGETS) -PULLED_DDTRACE_TARGETS := $(filter-out flow,$(DDTRACE_TARGETS)) -PULLED_NO_DDTRACE_TARGETS := $(filter-out flow_no_ddtrace,$(NO_DDTRACE_TARGETS)) - .PHONY: all all: help @@ -42,25 +39,12 @@ clean: test -e $(DDTRACE_DEB) && rm $(DDTRACE_DEB) || true .PHONY: $(TARGETS) - -flow: build_file_server - @echo Running $@ - docker-compose --log-level debug -f $(ROOT_DIR)/nginx_file_server.yml -f $(ROOT_DIR)/flow.yml pull mysql - docker-compose --log-level debug -f $(ROOT_DIR)/nginx_file_server.yml -f $(ROOT_DIR)/flow.yml build flow - docker-compose --log-level debug -f $(ROOT_DIR)/nginx_file_server.yml -f $(ROOT_DIR)/flow.yml run flow - -flow_no_ddtrace: build_file_server - @echo Running without ddtrace enabled flow - docker-compose --log-level debug -f $(ROOT_DIR)/nginx_file_server.yml -f $(ROOT_DIR)/flow.yml pull mysql - docker-compose --log-level debug -f $(ROOT_DIR)/nginx_file_server.yml -f $(ROOT_DIR)/flow.yml build flow - docker-compose --log-level debug -f $(ROOT_DIR)/nginx_file_server.yml -f $(ROOT_DIR)/flow.yml run -e NO_DDTRACE=true flow - -$(PULLED_DDTRACE_TARGETS): build_file_server +$(DDTRACE_TARGETS): build_file_server @echo Running $@ docker-compose --log-level debug -f $(ROOT_DIR)/nginx_file_server.yml -f $(ROOT_DIR)/$@.yml pull docker-compose --log-level debug -f $(ROOT_DIR)/nginx_file_server.yml -f $(ROOT_DIR)/$@.yml run $@ -$(PULLED_NO_DDTRACE_TARGETS): build_file_server +$(NO_DDTRACE_TARGETS): build_file_server @echo Running without ddtrace enabled $(@:_no_ddtrace=) docker-compose --log-level debug -f $(ROOT_DIR)/nginx_file_server.yml -f $(ROOT_DIR)/$(@:_no_ddtrace=).yml pull docker-compose --log-level debug -f $(ROOT_DIR)/nginx_file_server.yml -f $(ROOT_DIR)/$(@:_no_ddtrace=).yml run -e NO_DDTRACE=true $(@:_no_ddtrace=) diff --git a/dockerfiles/frameworks/README.md b/dockerfiles/frameworks/README.md index 81526de6d07..6c741aa59b9 100644 --- a/dockerfiles/frameworks/README.md +++ b/dockerfiles/frameworks/README.md @@ -43,3 +43,23 @@ $ make predis3 # Without the tracer installed $ make predis3_no_ddtrace ``` + +## Patches only take effect after publishing + +The framework Dockerfiles under `contrib/` apply the repository patches in the +image's build directory at build time (`git apply *.patch`). The CI framework +jobs pull the published framework images from Docker Hub (only the nginx file +server is built locally), so a change to anything a Dockerfile bakes into an +image - a patch under `contrib//`, the Dockerfile itself, `run.sh` +- only takes effect in CI once a maintainer with Docker Hub credentials runs +the matching publish target: + +``` +$ make publish_framework_flow +``` + +Until that happens the framework jobs keep running the old image. +`contrib/flow/flaky-auth-date.patch` (#4463) merged in 2026-11, but the +`php-framework-flow` image was last published in 2025-05, so that patch has +still never run in CI. If you change a patch, publish the image in the same +PR or ask a maintainer to.