Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion tests/test_opencode_agent_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -2660,7 +2660,14 @@ def test_opencode_privileged_review_security_boundaries_are_fail_closed():
'^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$ ]]'
) in metadata_step
assert '[ "$live_head_repository" != "$TARGET_REPOSITORY" ]' not in metadata_step
assert '[ "$SUPPLIED_HEAD_SHA" = "$live_head_sha" ]' in metadata_step
assert '[ "$SUPPLIED_BASE_REF" = "$live_base_ref" ] || mismatches+=("base_ref")' in metadata_step
assert '[ "$SUPPLIED_BASE_SHA" = "$live_base_sha" ] || mismatches+=("base_sha")' in metadata_step
assert '[ "$SUPPLIED_HEAD_REF" = "$live_head_ref" ] || mismatches+=("head_ref")' in metadata_step
assert 'mismatches+=("head_sha")' not in metadata_step
assert (
'if [ -n "$SUPPLIED_HEAD_SHA" ] && [ "$SUPPLIED_HEAD_SHA" != "$live_head_sha" ]; then'
) in metadata_step
assert "::warning::repository_dispatch head advanced since dispatch" in metadata_step
Comment thread
seonghobae marked this conversation as resolved.
assert (
'live_visibility="$(jq -r \'.base.repo.visibility // empty | ascii_downcase\''
) in metadata_step
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pr_review_autofix_nvidia_nim_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
DOCTORING_RECORD = Path("docs/doctoring/hourly-nvidia-nim-autofix.md")
CHANGELOG = Path("CHANGELOG.md")
REVIEW_DISPATCH_WORKFLOW = Path(".github/workflows/opencode-review-dispatch.yml")
REVIEW_DISPATCH_BLOB_SHA = "2aa245e7f2a053a4c0b7a9cc8bac0d5d44d38092"
REVIEW_DISPATCH_BLOB_SHA = "3762183eb31c2805317362d2b2c2546e4fccdf09"
Comment thread
seonghobae marked this conversation as resolved.


def _workflow_text(path: Path) -> str:
Expand Down
Loading