CI: exclude container-spawning test packages from db-tests

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
shadowdaoandClaude Sonnet 5.5 committed 2026-10-12 14:13:11 -07:00
1 parent 6ab93be603
commit 954fda6325
1 file changed
+6 -2
+6 -2
View File
@@ -96,11 +96,15 @@ jobs:
- name: go test (root module, DB-backed) - name: go test (root module, DB-backed)
shell: bash shell: bash
run: | run: |
pkgs=$(go list ./... | grep -v -E '/testing/internal/e2e|/enos/|/internal/tests/(cli|api)') # Excluded: tests that start their own dev-DB/Vault containers via
# dockertest and then dial the mapped host port, which is unreachable
# from inside this job's container (internal/cmd/commands/server also
# fails the same way on untouched upstream).
pkgs=$(go list ./... | grep -v -E '/testing/internal/e2e|/enos/|/internal/tests/(cli|api)|/internal/cmd/commands/server$|/internal/credential/vault$|/internal/daemon/controller$|/internal/daemon/controller/handlers/credentialstores$')
# *Estimated*Count / ListDeletedStoreIds depend on pg planner stats and # *Estimated*Count / ListDeletedStoreIds depend on pg planner stats and
# also fail on untouched upstream Boundary (verified); skipped here. # also fail on untouched upstream Boundary (verified); skipped here.
go test $pkgs -count=1 -p 2 -timeout 90m \ go test $pkgs -count=1 -p 2 -timeout 90m \
-skip 'EstimatedCount|EstimatedCredentialCount|ListDeletedStoreIds' -skip 'EstimatedCount|EstimatedCredentialCount|EstimatedLibraryCount|ListDeletedStoreIds'
- name: stop postgres - name: stop postgres
if: always() if: always()
run: docker rm -f -v "$PG_CONTAINER" || true run: docker rm -f -v "$PG_CONTAINER" || true