Skip to content

Guard demo.sh against removed results/ artifacts - #35

Merged
Mark007-R merged 1 commit into
devfrom
fix/guard-demo-artifacts
Aug 5, 2026
Merged

Mark007-R merged 1 commit into
devfrom
fix/guard-demo-artifacts

Conversation

@Mark007-R

Copy link
Copy Markdown
Owner

scripts/demo.sh runs under set -euo pipefail and read five results/* files removed in #34. The first missing file aborted the entire demo.

Fix

A have() helper guards each of the five artifact sections:

Line Guarded artifact
51 results/baseline_metrics.json
66 results/registry_rollback_times.csv
77 results/drift_replay_summary.json
91 results/drift_retrain_events.csv
102 results/day06/frontier_comparison.csv

A missing artifact prints a skip line and the demo continues. The closing Sources list no longer advertises untracked files.

The Day-2 Pandas-vs-Dask section is untouched — it runs pytest tests/test_features_determinism.py, a real test, not an artifact read.

Verification

bash -n passes, and the guard was exercised under set -euo pipefail with the artifact absent: it prints the skip line and reaches the end of the script with exit code 0, instead of aborting at the first read.

demo.sh runs under 'set -euo pipefail' and read five committed results/
files that were removed in #34 — the first missing file aborted the whole
demo. Each artifact section is now wrapped in a have() check that prints a
skip line and continues; the closing Sources list no longer advertises
files that are not tracked.

The Day-2 determinism section is untouched — it runs pytest, not an
artifact read.
Copilot AI lite review requested due to automatic review settings August 5, 2026 10:55
@Mark007-R
Mark007-R merged commit 06e2c60 into dev Aug 5, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Mark007-R
Mark007-R deleted the fix/guard-demo-artifacts branch August 5, 2026 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants