Commit 747b7c4
authored
feat: surface evaluation warnings in CI (#457)
Capture stderr from `nix eval` during the CI eval job and emit GitHub Actions warning annotations when evaluation warnings are detected. The step also fails so the `build` job is blocked, making warnings impossible to miss on PRs.
Closes #274
## What changed
- Refactored the eval loop into an `eval_host` function
- Stderr is captured separately from stdout
- Any `evaluation warning:` in stderr triggers a `::warning::` annotation (visible in the PR checks summary) and fails the step
- Multi-line warnings are encoded with `%0A` so the full text appears in the annotation
- All hosts are checked before exiting, so all warnings are reported in a single run
## Verify
Check that a config with an evaluation warning causes the eval job to fail and shows the warning text as an annotation on the PR.1 parent e3b99ed commit 747b7c4
1 file changed
Lines changed: 15 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
21 | 33 | | |
22 | | - | |
23 | | - | |
| 34 | + | |
24 | 35 | | |
25 | 36 | | |
26 | 37 | | |
| |||
0 commit comments