Add canary_go job to agent-ci.yml to detect untested Go functions#12353
Add canary_go job to agent-ci.yml to detect untested Go functions#12353
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot investigate why this fails https://github.com/githubnext/gh-aw/actions/runs/21454017768/job/61792350333#step:6:1 |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
The failure was caused by Fixed in commit 1212c0b by:
The script now correctly handles empty test results, files with tests, and mixed scenarios. |
|
@copilot, rename the current version of |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Done in commit 605695c:
|
CI test jobs use pattern-based matrix execution. Without validation, tests can be accidentally excluded from all patterns, silently reducing coverage.
Changes
New CI Job:
canary_goin agent-ci.ymltestandintegrationjobs*_test.go) against executed tests from JSON artifactsif: always()to report coverage even when tests failScripts Added
scripts/list-all-tests.sh- Extracts test function names from sourcescripts/extract-executed-tests.sh- Parsesgo test -jsonartifacts for executed testsscripts/compare-test-coverage.sh- Compares lists, reports missing tests with coverage percentageNew Experimental CI Workflow
agent-ci.ymlwith the canary_go job and experimental CI improvementsci.ymlremains unchanged in this PRci-coach.mdto optimizeagent-ci.ymlinstead ofci.ymlBehavior
t.Skip()) count as executed (they show"Action":"run"in JSON)Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.