Skip to content

Commit 7b2c965

Browse files
committed
fix(reviewer-bot): skip completion gate without local artifacts
Allow the final Stage 2 completion-gate test to skip when OPENCODE_CONFIG_DIR is unavailable so branch CI does not fail on operator-only artifact checks. Keep the full gate enforced whenever the local Stage 2 artifact directory is present.
1 parent 00e39c5 commit 7b2c965

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/contract/reviewer_bot/test_stage2_completion_gate.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88

99

1010
def _base() -> Path:
11-
return Path(os.environ["OPENCODE_CONFIG_DIR"]) / "reviewer-bot" / "maintainability-remediation"
11+
config_dir = os.environ.get("OPENCODE_CONFIG_DIR", "").strip()
12+
if not config_dir:
13+
pytest.skip("OPENCODE_CONFIG_DIR is required for the local Stage 2 completion gate")
14+
return Path(config_dir) / "reviewer-bot" / "maintainability-remediation"
1215

1316

1417
def _load(name: str) -> dict:

0 commit comments

Comments
 (0)