test: remove workflow policy assertions #69
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "codex/remove-workflow-policy-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:3001port publishing from the Forgejo runner environment.Also fix
scripts/run-e2e.shreadiness failure handling so it reports the real curl exit code and does not continue intogo testafter readiness timeout.Why
The failing
TestForgejoDependencyTrackWorkflowPolicyis 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 nameuptime-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