aws-samples / aws-samples/sample-autonomous-cloud-coding-agents

perf(ci): gate coverage collection to merge_group only — follow-up to #363

Open
#676 0 comments 0 reactions 0 assignees View on GitHub
ci-cd enhancement
Dominant language
TypeScript
Stars
143
Forks
46
Avg merge
3d 9h
Merged PRs (30d)
20

Description

Parent: #363. Spun from #363's DoD by the orchestrator; **needs maintainer `approved` (ADR-003)**.

## Goal
Skip `collectCoverage` on the high-frequency `pull_request` event; keep `coverageThreshold`/`fail_under` enforced on `merge_group` so nothing merges under-covered.

## Scope
- Conditional coverage on event name (PR = off, merge_group = on).
- Verify the required `build` context still reports on PRs without coverage.

Refs #363

Contributor guide

Open the contributing guide

Research direction

Start by locating the CI workflow entries for collectCoverage, coverageThreshold, and fail_under, then compare the pull_request and merge_group event paths. Verify that coverage runs only for merge_group and that the required build context still reports on pull_request; maintainer approval under ADR-003 is also required.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions
Domain
ci-cd
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.