Commit 6116739
ci(coverage): progressive PR body coverage table (#65)
* ci(coverage): replace combiner workflow with progressive PR body updates
Delete the fragile coverage.yml workflow_run combiner that relied on
cross-workflow artifact downloads with continue-on-error. Each coverage
job now updates its own row in a PR body table as it finishes, using a
new update-coverage-row composite action.
Changes:
- Create .github/actions/update-coverage-row composite action
- Parses LCOV files and updates a single PR body table row
- Validates inputs, retries on failure with jitter
- Uses env vars (not ${{ }}) in JS to prevent script injection
- Add coverage row updates to rust.yml (Core, Indexer, Gateway, E2E)
- Add coverage row updates to program-unit.yml (Escrow, Withdraw)
- Delete coverage.yml (workflow_run combiner)
PR body output (progressively filled as jobs finish):
| Component | Lines Hit | Lines Total | Coverage | Artifact |
|------------------|-----------|-------------|----------|---------------------------|
| Core | 4,473 | 6,605 | 67.7% | rust-unit-coverage-reports |
| Indexer | 6,700 | 10,380 | 64.5% | rust-unit-coverage-reports |
| Gateway | 259 | 400 | 64.7% | rust-unit-coverage-reports |
| Withdraw Program | 118 | 230 | 51.3% | unit-coverage-reports |
| Escrow Program | 692 | 1,688 | 40.9% | unit-coverage-reports |
| E2E Integration | 6,931 | 13,883 | 49.9% | e2e-coverage-reports |
| **Total** | **19,173**| **33,186** | **57.8%**| |
* ci: temporarily add branch to workflow triggers for testing
* ci(coverage): address review feedback from greptile
- Fix bc leading zero: use printf %.1f wrapper for coverage < 1%
- Use throw instead of setFailed+return for fail-fast on bad input
- Increase jitter range (1-6s) and retry attempts (5) with exponential backoff
- Add row existence check after skeleton insertion to catch mismatches
* ci(coverage): add init-coverage-table job and address review feedback
- Add init-coverage-table job to rust.yml that inserts skeleton table
into PR body immediately, before any coverage jobs run
- Remove skeleton creation from composite action (only updates rows now)
- Action waits/retries if table not yet initialized
- Fix bc leading zero for coverage < 1% (use printf %.1f wrapper)
- Use throw instead of setFailed+return for fail-fast on bad input
- Increase retry attempts to 5 with exponential backoff
* ci: remove temporary branch from workflow triggers1 parent 57ee7c1 commit 6116739
4 files changed
Lines changed: 286 additions & 307 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
0 commit comments