Skip to content

fix(ci): add explicit markers to BDD and post-deploy pytest runs - #334

Merged
paruff merged 1 commit into
mainfrom
fix/ci-marker-guards
Aug 1, 2026
Merged

fix(ci): add explicit markers to BDD and post-deploy pytest runs#334
paruff merged 1 commit into
mainfrom
fix/ci-marker-guards

Conversation

@paruff

@paruff paruff commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Problem

Main's Tier 2 governance run fails with exit code 5 on the BDD acceptance step:

python -m pytest tests_bdd/ -q --tb=short
Process completed with exit code 5.

Same latent bug in the post-deployment workflow's acceptance step.

Root cause

The testing-pyramid restructure (#332) set pytest.ini addopts to -m 'unit or integration' so a bare pytest is safe-by-default. conftest auto-marks tests_bdd/ as e2e and tests/acceptance/ as acceptance — so without an explicit marker override, both commands collect zero tests and pytest exits 5.

Fix

  • docker-publish.yml: BDD step → pytest tests_bdd/ -q --tb=short -m e2e
  • post-deployment.yml: acceptance step → pytest tests/acceptance/ -q --tb=short -v -m acceptance

This is the same fix already applied to the ci-quality acceptance job. Merge this first so main's Tier 2 governance goes green and the Main CI Guard unblocks other PRs.

Same class of bug as the acceptance-check job: the pytest.ini default
-m 'unit or integration' deselects BDD tests (auto-marked e2e) and
acceptance tests (auto-marked acceptance), producing exit code 5
(zero tests collected) and failing main's Tier 2 governance guard.
@paruff
paruff merged commit 7982e2a into main Aug 1, 2026
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant