How to get the failed test name from a GitHub Actions log with Copilot
When a pull request shows a failed check, start with the failed job. Ask Copilot for the test identifier and its supporting log line so a developer can open the right test.
Open the job that actually ran the tests
On the pull request, open the failed check in the merge box. GitHub offers Explain error on the workflow run summary and from the failed check’s menu. Open the failing test step as well. If a matrix ran the same suite several times, keep the job label with the result.
Ask for one line you can put in a bug report
Try this prompt: “In the selected job, find the first test explicitly marked failed in the displayed log order. Return job | test identifier | exact supporting line. If collection, installation or setup failed before a test was named, say ‘no named test failure’ and quote the relevant error.” On Copilot Free this chat counts toward the monthly message limit.
Check the name against the runner’s output
Illustrative log: job linux-py312 ends with “FAILED tests/test_cart.py::test_empty_cart” followed by “Process completed with exit code 1.” Your row should contain linux-py312 and tests/test_cart.py::test_empty_cart, backed by the FAILED line. The exit code alone cannot name the test. Parallel runners can interleave output, so the first displayed failure need not be the root cause.