Skip to content

Commit 2567b19

Browse files
authored
sync(ci): update fortress workflow error messages (#65)
1 parent d8485d0 commit 2567b19

10 files changed

+336
-320
lines changed

.github/workflows/fortress-benchmarks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ jobs:
264264
265265
# Fail the step if benchmarks failed or contained errors
266266
if [ "$BENCH_STATUS" = "failure" ]; then
267-
echo "::error::Benchmark execution failed or contained errors"
267+
echo "::error title=Benchmark Failed::Benchmark execution failed or contained errors (panic, fatal, or timeout) - see job summary for details"
268268
exit 1
269269
fi
270270

.github/workflows/fortress-code-quality.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ jobs:
348348
# --------------------------------------------------------------------
349349
- name: 💾 Restore golangci-lint binary cache
350350
id: cache-golangci-lint-binary
351-
uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
351+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
352352
with:
353353
path: ~/.cache/golangci-lint-bin
354354
key: ${{ inputs.primary-runner }}-golangci-lint-binary-${{ env.MAGE_X_GOLANGCI_LINT_VERSION }}
@@ -377,7 +377,7 @@ jobs:
377377
# --------------------------------------------------------------------
378378
- name: 💾 Cache golangci-lint build cache
379379
id: cache-golangci-lint-build
380-
uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
380+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
381381
with:
382382
path: ~/.cache/go-build
383383
key: ${{ inputs.primary-runner }}-go-build-golangci-${{ env.MAGE_X_GOLANGCI_LINT_VERSION }}-${{ hashFiles('**/*.go') }}
@@ -389,7 +389,7 @@ jobs:
389389
# --------------------------------------------------------------------
390390
- name: 💾 Cache golangci-lint analysis
391391
id: cache-golangci-lint
392-
uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
392+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
393393
with:
394394
path: ${{ env.GOLANGCI_LINT_CACHE }}
395395
key: ${{ inputs.primary-runner }}-golangci-lint-analysis-${{ hashFiles('.golangci.json', env.GO_SUM_FILE) }}-${{ steps.golangci-lint-version.outputs.version }}

.github/workflows/fortress-completion-finalize.yml

Lines changed: 143 additions & 127 deletions
Large diffs are not rendered by default.

.github/workflows/fortress-coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ jobs:
192192
- name: 💾 Restore go-coverage binary cache (production)
193193
id: go-coverage-cache
194194
if: env.GO_COVERAGE_USE_LOCAL != 'true'
195-
uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
195+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
196196
with:
197197
path: |
198198
~/.cache/go-coverage-bin
@@ -203,7 +203,7 @@ jobs:
203203
- name: 💾 Restore go-coverage binary cache (local)
204204
id: go-coverage-local-cache
205205
if: env.GO_COVERAGE_USE_LOCAL == 'true'
206-
uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
206+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
207207
with:
208208
path: |
209209
~/.cache/go-coverage-local

.github/workflows/fortress-pre-commit.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
# --------------------------------------------------------------------
111111
- name: 💾 Restore golangci-lint analysis cache
112112
id: cache-golangci-lint-analysis
113-
uses: actions/cache/restore@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
113+
uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
114114
with:
115115
path: ${{ env.GOLANGCI_LINT_CACHE }}
116116
key: ${{ inputs.primary-runner }}-golangci-lint-analysis-${{ hashFiles('.golangci.json', env.GO_SUM_FILE) }}-${{ env.GO_PRE_COMMIT_GOLANGCI_LINT_VERSION }}
@@ -125,7 +125,7 @@ jobs:
125125
- name: 💾 Restore go-pre-commit binary cache
126126
id: go-pre-commit-cache
127127
if: env.GO_PRE_COMMIT_USE_LOCAL != 'true'
128-
uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
128+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
129129
with:
130130
path: |
131131
~/.cache/go-pre-commit-bin
@@ -139,7 +139,7 @@ jobs:
139139
# --------------------------------------------------------------------
140140
- name: 💾 Restore go-pre-commit tools cache
141141
id: go-pre-commit-tools-cache
142-
uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
142+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
143143
with:
144144
path: |
145145
~/.cache/go-pre-commit-tools
@@ -690,6 +690,8 @@ jobs:
690690
691691
if [ "${CHECKS_EXIT:-0}" -ne 0 ]; then
692692
echo "❌ Pre-commit checks failed with exit code: ${CHECKS_EXIT}"
693+
# Emit GitHub annotation for visibility at top of summary
694+
echo "::error title=Pre-commit Checks Failed::Code quality issues detected - formatting, linting, or other pre-commit checks failed"
693695
exit ${CHECKS_EXIT}
694696
fi
695697

.github/workflows/fortress-release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ jobs:
173173
# --------------------------------------------------------------------
174174
- name: 💾 Cache golangci-lint analysis
175175
id: cache-golangci-lint
176-
uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
176+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
177177
with:
178178
path: ${{ env.GOLANGCI_LINT_CACHE }}
179179
key: ${{ inputs.primary-runner }}-golangci-lint-analysis-${{ hashFiles('.golangci.json', env.GO_SUM_FILE) }}-${{ inputs.golangci-lint-version }}
@@ -197,6 +197,7 @@ jobs:
197197
else
198198
echo "❌ GoReleaser configuration is invalid" >&2
199199
echo "goreleaser_config_status=invalid" >> $GITHUB_OUTPUT
200+
echo "::error title=Release Config Invalid::GoReleaser configuration validation failed - see job summary for details"
200201
exit 1
201202
fi
202203
else
@@ -207,6 +208,7 @@ jobs:
207208
else
208209
echo "❌ GoReleaser configuration is invalid" >&2
209210
echo "goreleaser_config_status=invalid" >> $GITHUB_OUTPUT
211+
echo "::error title=Release Config Invalid::GoReleaser configuration validation failed - see job summary for details"
210212
exit 1
211213
fi
212214
fi
@@ -319,6 +321,7 @@ jobs:
319321
echo "❌ GoReleaser with godocs via MAGE-X encountered issues" >&2
320322
echo "goreleaser_status=failure" >> $GITHUB_OUTPUT
321323
echo "godocs_published=false" >> $GITHUB_OUTPUT
324+
echo "::error title=Release Failed::GoReleaser with godocs failed - see job summary for details"
322325
exit 1
323326
fi
324327
else
@@ -331,6 +334,7 @@ jobs:
331334
echo "❌ GoReleaser with godocs via MAGE-X encountered issues" >&2
332335
echo "goreleaser_status=failure" >> $GITHUB_OUTPUT
333336
echo "godocs_published=false" >> $GITHUB_OUTPUT
337+
echo "::error title=Release Failed::GoReleaser with godocs failed - see job summary for details"
334338
exit 1
335339
fi
336340
fi
@@ -346,6 +350,7 @@ jobs:
346350
echo "❌ GoReleaser via MAGE-X encountered issues" >&2
347351
echo "goreleaser_status=failure" >> $GITHUB_OUTPUT
348352
echo "godocs_published=skipped" >> $GITHUB_OUTPUT
353+
echo "::error title=Release Failed::GoReleaser failed - see job summary for details"
349354
exit 1
350355
fi
351356
else
@@ -358,6 +363,7 @@ jobs:
358363
echo "❌ GoReleaser via MAGE-X encountered issues" >&2
359364
echo "goreleaser_status=failure" >> $GITHUB_OUTPUT
360365
echo "godocs_published=skipped" >> $GITHUB_OUTPUT
366+
echo "::error title=Release Failed::GoReleaser failed - see job summary for details"
361367
exit 1
362368
fi
363369
fi

.github/workflows/fortress-security-scans.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ jobs:
322322
# --------------------------------------------------------------------
323323
- name: 💾 Restore govulncheck binary cache
324324
id: govuln-cache
325-
uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
325+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
326326
with:
327327
path: |
328328
~/.cache/govulncheck-bin

0 commit comments

Comments
 (0)