Files
cloud-apache-container/.gitea/workflows/shared-httpd-symlink-pr.yaml
T
shadowdaoandClaude Sonnet 5.5 0d9e57e012
shared-httpd mod_whp_symlink PR check / Symlink-Module-Probe (pull_request) Successful in 1m15s
ci+chore(mod_whp_symlink): remove racy WHPSymlinkWalk prototype; run the probe test in CI; assert Options All mapping
- Remove the WHPSymlinkWalk post-walk lstat prototype (check-then-use race by
  construction; WHPOwnerGuard is the race-free mechanism): hook, directive,
  per-dir member, header docs. The directive is now an unknown command.
- Probe test: WHP_SYMTEST_REQUIRE=1 turns every SKIP into a FAIL (no docker, no
  image, container does not start) and a minimum assertion count is enforced.
  New assertions: bare `Options All` keeps Apache semantics (Indexes on,
  MultiViews off, same-owner symlink followed, cross-tenant refused) plus
  None/+MultiViews controls (106 assertions).
- CI: new pull_request workflow shared-httpd-symlink-pr.yaml (builds amd64
  locally, no push/secrets, runs the probe test); build-push.yaml
  Build-Shared-httpd runs the probe test against the amd64 digest it just pushed,
  before the arm64 build and tag assembly, so a failure publishes no tag.
  Test script added to the shellcheck set; wiring tests added.
- docs/shared-httpd-symlink-module.md: behaviour, local run, CI.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
2026-11-23 07:33:47 -08:00

45 lines
1.8 KiB
YAML

name: shared-httpd mod_whp_symlink PR check
run-name: mod_whp_symlink probe test for ${{ gitea.actor }}
## Pull-request gate for the shared-httpd tenant-symlink module. build-push.yaml
## only runs on trunk (and publishes); this builds the amd64 shared-httpd image
## locally (nothing is pushed, no secrets) and runs the live probe test against
## it. WHP_SYMTEST_REQUIRE=1: a missing docker/image or a failed assertion
## fails the job. Run the same thing locally: docs/shared-httpd-symlink-module.md.
on:
pull_request:
paths:
- 'src/mod_whp_symlink/**'
- 'configs/whp-symlink.conf'
- 'Dockerfile.shared-httpd'
- 'scripts/tests/whp-symlink-module.test.sh'
- '.gitea/workflows/shared-httpd-symlink-pr.yaml'
jobs:
Symlink-Module-Probe:
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- name: Checkout
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
# Runner images differ on whether they are root and whether sudo exists.
- name: Install shellcheck
run: |
if ! command -v shellcheck >/dev/null 2>&1; then
(apt-get update && apt-get install -y shellcheck) ||
(sudo apt-get update && sudo apt-get install -y shellcheck)
fi
shellcheck --version
- name: Lint the probe test
run: |
bash -n scripts/tests/whp-symlink-module.test.sh
shellcheck -S warning scripts/tests/whp-symlink-module.test.sh
- name: Build shared-httpd (amd64, local only, nothing pushed)
run: docker build -f Dockerfile.shared-httpd -t shared-httpd:pr-probe .
- name: Probe test (fails the job on any failed assertion)
run: WHP_SYMTEST_REQUIRE=1 ./scripts/tests/whp-symlink-module.test.sh shared-httpd:pr-probe