From 5ae1c5e9991f31ba3907d2acac068696c2a4011c Mon Sep 17 00:00:00 2001 From: Sluijsens Date: Sun, 1 Nov 2026 03:01:25 +0100 Subject: [PATCH] Keeps the CI nginx package from starting a service CI jobs share the host's network, so that service would try to bind the runner's port 80. The tests start their own nginx on a free port. Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/continuous_integration.yaml | 12 +++++++----- aidlc-docs/features/prerendering/audit.md | 12 ++++++++++++ 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/continuous_integration.yaml b/.gitea/workflows/continuous_integration.yaml index a1aa7aa..ca471da 100644 --- a/.gitea/workflows/continuous_integration.yaml +++ b/.gitea/workflows/continuous_integration.yaml @@ -206,14 +206,16 @@ jobs: # het gegenereerde testblok (BR-HST-24). nginx komt uit de distributie: # het runner-image heeft 1.24, de hosting-Pi draait 1.30.6. Dat verschil # is bewust geaccepteerd; de gebruikte directives zijn oud en stabiel. - # lftp is nodig voor de uploadtests van de productiedeploy. De service die - # het pakket mogelijk start, wordt gestopt: de test draait zijn eigen - # onbevoorrechte nginx op een vrije poort. nginx -v maakt de versie in de - # log zichtbaar. + # lftp is nodig voor de uploadtests van de productiedeploy. De jobs draaien + # met het netwerk van de host, dus de service van het pakket mag niet + # starten (policy-rc.d): die zou poort 80 van de runner proberen te pakken. + # De test draait zijn eigen onbevoorrechte nginx op een vrije poort. + # nginx -v maakt de versie in de log zichtbaar. - name: Install nginx and lftp (serverregeltests) run: | + printf '#!/bin/sh\nexit 101\n' | sudo tee /usr/sbin/policy-rc.d > /dev/null + sudo chmod +x /usr/sbin/policy-rc.d sudo apt-get update && sudo apt-get install -y nginx lftp - sudo service nginx stop || true nginx -v # Browsertests tegen de gebouwde site (preview-server op dist/client). Chrome diff --git a/aidlc-docs/features/prerendering/audit.md b/aidlc-docs/features/prerendering/audit.md index 0812a0f..47b7264 100644 --- a/aidlc-docs/features/prerendering/audit.md +++ b/aidlc-docs/features/prerendering/audit.md @@ -407,3 +407,15 @@ **Context**: Code Generation Part 2, unit 3. --- + +## Code Generation - Unit 3 Runner Check and First CI Dispatch + +**Timestamp**: 2026-11-01T08:00:00Z + +**User Input**: "(none: Pi-Main reported that all runner labels are docker:// containers with network: host, rootless Podman)" + +**AI Response**: "Confirmed the CI step cannot touch the host's nginx. Because of network: host, the workflow now stops the nginx package from starting a service (policy-rc.d); the harness binds a free port on 127.0.0.1. Dispatched the workflow on feature/prerendering with both deploy inputs off, as the owner allowed." + +**Context**: Code Generation unit 3, step 6. + +---