Sitelet https://github.com/NodeOps-app/createos-sandbox-sdk/commit/3b129fd20556adc31b5bc946e810e518f376fb30
Skip to content

Commit 3b129fd

Browse files
authored
ci(examples): report example failures as warnings, don't fail the run (#29)
Examples run real VMs + paid external APIs (LLMs, S3, sandbox quota); a single flaky dep (429, LLM outage, play.min.io bucket purge) shouldn't red the whole examples run. The Report step still emits a summary table, a ::warning:: annotation listing the failed examples, and their full logs — it just no longer exits non-zero.
1 parent 3d83340 commit 3b129fd

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/examples.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,14 @@ jobs:
198198
done
199199
} >> "$GITHUB_STEP_SUMMARY"
200200
201+
# Example failures are advisory: flaky external deps (LLM APIs,
202+
# sandbox quota/429s, play.min.io bucket purges) shouldn't red the
203+
# run. Surface them as warnings + full logs, but do not exit non-zero.
201204
if [[ $nfailed -gt 0 ]]; then
202-
echo "::error::${nfailed} of ${total} example(s) failed: ${FAILED[*]}"
205+
echo "::warning::${nfailed} of ${total} example(s) failed: ${FAILED[*]}"
203206
for ex in "${FAILED[@]}"; do
204207
echo "::group::FAILED: $ex"
205208
cat "/tmp/example-logs/$ex.log" || true
206209
echo "::endgroup::"
207210
done
208-
exit 1
209211
fi

0 commit comments

Comments
 (0)