test: remove workflow policy assertions #69

Merged
Wuast94 merged 3 commits from codex/remove-workflow-policy-tests into main 2026-06-19 15:15:20 +02:00
Owner

What

Remove Dependency-Track workflow/docs/version policy assertions from internal/ci tests. Keep the actual SBOM generation and upload-script behavior tests.

Fix Forgejo E2E by running the test process as a Compose service on the same Docker network as Uptime Kuma. The CI job no longer depends on host 127.0.0.1:3001 port publishing from the Forgejo runner environment.

Also fix scripts/run-e2e.sh readiness failure handling so it reports the real curl exit code and does not continue into go test after readiness timeout.

Why

The failing TestForgejoDependencyTrackWorkflowPolicy is a YAML policy assertion, not application logic. The E2E failure showed the runner could start a healthy Uptime Kuma container but could not reach its published host port. Running E2E on the Compose network targets the real service name uptime-kuma:3001.

Verification

  • just format
  • ./scripts/devcontainer-run.sh go test ./internal/ci -run 'TestE2ERunner|TestDockerComposeE2E|TestGenerateSBOM|TestDependencyTrackUpload' -count=1 -v\n- Host Compose E2E: docker compose -p ci-pr-verify -f docker-compose.yaml up -d --wait --wait-timeout 120 uptime-kuma && docker compose -p ci-pr-verify -f docker-compose.yaml run --rm e2e-runner\n- just everything
## What Remove Dependency-Track workflow/docs/version policy assertions from internal/ci tests. Keep the actual SBOM generation and upload-script behavior tests. Fix Forgejo E2E by running the test process as a Compose service on the same Docker network as Uptime Kuma. The CI job no longer depends on host `127.0.0.1:3001` port publishing from the Forgejo runner environment. Also fix `scripts/run-e2e.sh` readiness failure handling so it reports the real curl exit code and does not continue into `go test` after readiness timeout. ## Why The failing `TestForgejoDependencyTrackWorkflowPolicy` is a YAML policy assertion, not application logic. The E2E failure showed the runner could start a healthy Uptime Kuma container but could not reach its published host port. Running E2E on the Compose network targets the real service name `uptime-kuma:3001`. ## Verification - `just format` - `./scripts/devcontainer-run.sh go test ./internal/ci -run 'TestE2ERunner|TestDockerComposeE2E|TestGenerateSBOM|TestDependencyTrackUpload' -count=1 -v`\n- Host Compose E2E: `docker compose -p ci-pr-verify -f docker-compose.yaml up -d --wait --wait-timeout 120 uptime-kuma && docker compose -p ci-pr-verify -f docker-compose.yaml run --rm e2e-runner`\n- `just everything`
test: remove workflow policy assertions
Some checks failed
CI / Helm Lint (pull_request) Successful in 18s
CI / Module integrity (pull_request) Successful in 4m26s
CI / Vulnerability check (pull_request) Successful in 4m36s
CI / Test (pull_request) Successful in 5m8s
CI / Build (pull_request) Successful in 5m41s
CI / E2E Tests (pull_request) Failing after 7m6s
CI / Lint (pull_request) Successful in 7m13s
3a864b2a50
fix: run e2e inside compose network
Some checks failed
CI / Helm Lint (pull_request) Successful in 8s
CI / Module integrity (pull_request) Successful in 1m51s
CI / Build (pull_request) Successful in 4m28s
CI / Test (pull_request) Successful in 4m43s
CI / Vulnerability check (pull_request) Successful in 4m44s
CI / E2E Tests (pull_request) Failing after 4m51s
CI / Lint (pull_request) Successful in 5m15s
1f441480f9
fix: build e2e runner image
All checks were successful
CI / Helm Lint (pull_request) Successful in 34s
CI / Module integrity (pull_request) Successful in 3m6s
CI / Vulnerability check (pull_request) Successful in 4m51s
CI / Build (pull_request) Successful in 5m29s
CI / Test (pull_request) Successful in 6m23s
CI / Lint (pull_request) Successful in 6m31s
CI / E2E Tests (pull_request) Successful in 6m33s
7b19b61a6b
Wuast94 deleted branch codex/remove-workflow-policy-tests 2026-06-19 15:15:20 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Wuast94/kumaste!69
No description provided.