GitNexus/.github/workflows
Ivan Gegov fedd3aacfb fix(ci): stop CI Report dying silently when the tests job fails
The "Build report" step in ci-report.yml runs under
`bash --noprofile --norc -e -o pipefail`. It located its inputs with

    UNIT_SUMMARY=$(find "$DIR/test-reports" -name ... 2>/dev/null | head -1)

`coverage-merge` in ci-tests.yml is `needs: tests` with no `if: always()`,
so any failing shard skips it and the `test-reports` artifact is never
uploaded. `find` then runs against a directory that does not exist and
exits 1; `-o pipefail` carries that status through `| head -1`, the
command substitution hands it to the assignment, and `-e` kills the step.

The death is invisible: `2>/dev/null` discards find's error and the whole
report is built into `$GITHUB_OUTPUT`, so the step logs nothing and just
reports "Process completed with exit code 1". "Comment on PR" is then
skipped, so the CI Report workflow fails and posts nothing on exactly the
PRs whose tests failed — when the report is most useful. The
"Coverage data unavailable" fallback already existed for this case but
was unreachable, because the script died ~160 lines before it.

Route the four lookups through a `find_first` helper that returns empty
when the root is absent. Verified by extracting the step body and running
it against both artifact layouts: with `test-reports` present the output
is byte-identical to the previous script (1335 bytes), and with it absent
the step now exits 0 and emits the coverage-unavailable report instead of
exiting 1 with an empty $GITHUB_OUTPUT.

Observed on 32 of the last 100 failed runs; correlation with the tests
job's conclusion was 6/6 failure and 4/4 success in the sampled runs.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-28 12:33:10 +03:00
..
build-tree-sitter-prebuilds.yml chore(deps): bump actions/setup-node from 6.4.0 to 7.0.0 2026-07-22 20:18:29 +00:00
ci-devcontainer.yml chore(deps): bump actions/setup-node from 6.4.0 to 7.0.0 2026-07-22 20:18:29 +00:00
ci-e2e.yml chore(deps): bump dorny/paths-filter from 4.0.1 to 4.0.2 (#2505) 2026-07-16 07:02:56 +01:00
ci-quality.yml chore(deps): bump actions/setup-node from 6.4.0 to 7.0.0 2026-07-22 20:18:29 +00:00
ci-report.yml fix(ci): stop CI Report dying silently when the tests job fails 2026-07-28 12:33:10 +03:00
ci-tests.yml fix(scope-resolution): resolve calls through a closure-valued binding across languages (#2693) (#2695) 2026-07-27 07:52:18 +01:00
ci.yml refactor(ingestion): delete legacy call-resolution DAG + heritage processor (RING4-1, #942) (#2023) 2026-06-04 11:07:37 +01:00
claude.yml chore(deps): bump actions/checkout from 6.0.3 to 7.0.0 (#2292) 2026-06-25 06:53:47 +01:00
codeql.yml chore(deps): bump github/codeql-action/analyze from 4.36.2 to 4.37.0 (#2506) 2026-07-17 11:40:51 +01:00
commit-fork-prebuilds.yml chore(deps): bump actions/checkout from 6.0.3 to 7.0.0 (#2292) 2026-06-25 06:53:47 +01:00
dependency-review.yml chore(deps): bump actions/checkout from 6.0.3 to 7.0.0 (#2292) 2026-06-25 06:53:47 +01:00
docker.yml chore(deps): bump docker/metadata-action from 6.1.0 to 6.2.0 (#2536) 2026-07-17 13:21:05 +01:00
gitleaks.yml chore(deps): bump actions/checkout from 6.0.3 to 7.0.0 (#2292) 2026-06-25 06:53:47 +01:00
gitnexus-review-agent.yml chore(deps): bump actions/setup-node from 6.4.0 to 7.0.0 2026-07-22 20:18:29 +00:00
gitnexus-skill-evolution.yml chore(deps): bump actions/setup-node from 6.4.0 to 7.0.0 2026-07-22 20:18:29 +00:00
grammar-update-monitor.yml chore(deps): bump actions/setup-node from 6.4.0 to 7.0.0 2026-07-22 20:18:29 +00:00
impact-pdg-mutation-report.yml chore(deps): bump actions/checkout from 6.0.3 to 7.0.0 (#2292) 2026-06-25 06:53:47 +01:00
pr-autofix-apply.yml chore(deps): bump actions/checkout from 6.0.3 to 7.0.0 (#2292) 2026-06-25 06:53:47 +01:00
pr-autofix-publish.yml feat(autofix): replace inline reviewdog with /autofix ChatOps button (#1458) 2026-05-09 16:32:38 +01:00
pr-autofix.yml chore(deps): bump actions/setup-node from 6.4.0 to 7.0.0 2026-07-22 20:18:29 +00:00
pr-description-check.yml chore(deps): bump actions/github-script from 7.0.1 to 9.0.0 2026-04-15 20:17:08 +00:00
pr-labeler.yml chore(deps): bump release-drafter/release-drafter from 7.4.0 to 7.5.1 (#2398) 2026-07-09 06:48:55 +01:00
publish.yml Merge branch 'main' into dependabot/github_actions/softprops/action-gh-release-3.0.2 2026-07-23 09:23:26 +01:00
scorecard.yml chore(deps): bump github/codeql-action/upload-sarif (#2535) 2026-07-17 13:21:25 +01:00
skill-sync.yml chore(deps): bump actions/setup-node from 6.4.0 to 7.0.0 2026-07-22 20:18:29 +00:00
tree-sitter-upgrade-readiness.yml chore(deps): bump actions/checkout from 6.0.3 to 7.0.0 (#2292) 2026-06-25 06:53:47 +01:00
triage-sweep.yml chore(deps): bump actions/cache from 5.0.5 to 6.1.0 (#2351) 2026-07-02 07:11:57 +01:00
trivy.yml chore(deps): bump github/codeql-action/upload-sarif (#2535) 2026-07-17 13:21:25 +01:00
workflow-lint.yml chore(deps): bump github/codeql-action/upload-sarif (#2535) 2026-07-17 13:21:25 +01:00