Skip to content

fix(tests): develop is red — align governance tests with #926's central delegation - #935

Closed
seonghobae wants to merge 1 commit into
developfrom
fix/governance-tests-central-delegation
Closed

seonghobae wants to merge 1 commit into
developfrom
fix/governance-tests-central-delegation

Conversation

@seonghobae

Copy link
Copy Markdown
Contributor

Bug (develop itself is red)

9db32d04 (#926) removed the repo-local dependency-review.yml and the pull_request triggers on scorecard/trivy — correctly delegating PR scanning to the org central Security Scan — but didn't update tests/test_release_governance.py. Result: backend (Python 3.14) fails on every PR's merge ref (verified by running the suite directly on origin/develop: 2 failed). Combined with the trivy-fs gate issue, this is the second independent cause of the current org-wide PR stall; it went unnoticed because the runner freeze started right after #926 merged.

Fix (aligns tests with #926's documented intent — no workflow changes)

  • test_stepsecurity_remediation_adds_pinned_audit_hardening: drop the deleted dependency-review.yml from the hardened list; now asserts the duplicate file stays deleted (central supplies it).
  • test_required_code_scanning_workflows_upload_scorecard_and_trivy_sarif: scorecard/trivy are push-only default-branch coverage; asserts pull_request: triggers stay absent — locking the no-duplication intent instead of contradicting it.

Verification

pytest tests/test_release_governance.py: 29 passed (was 2 failed on origin/develop); ruff clean.

Note

This unblocks the backend check for every open PR once merged (it's on the merge ref).

🤖 Generated with Claude Code

develop is currently red: 9db32d0 (#926) removed the repo-local
dependency-review workflow and the PR triggers on scorecard/trivy (the org
central Security Scan owns the PR gate now) but did not update
test_release_governance, so backend CI fails on every PR's merge ref.

- stepsecurity test: dependency-review.yml removed from the hardened list;
  now asserts the duplicate file stays deleted (central supplies it).
- code-scanning test: scorecard/trivy are push-only default-branch coverage;
  asserts pull_request triggers stay absent, locking #926's no-duplication
  intent instead of contradicting it.

29 passed locally (was 2 failed on origin/develop).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RkKdtHRLG4wSLh6PVsp8J
@seonghobae

Copy link
Copy Markdown
Contributor Author

Closing during org-wide PR backlog reduction. This looks like a low-priority automated maintenance PR (test coverage only), while the repository has a large backlog of security, conflict, and required-workflow work. Reopen or recreate a fresh PR if this change is still needed.

@seonghobae seonghobae closed this Jul 7, 2026
auto-merge was automatically disabled July 7, 2026 07:49

Pull request was closed

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