Skip to content

fix: fail fast on deployment errors and add pyyaml dependency#24

Closed
yoavkatz wants to merge 2 commits into
kagenti:mainfrom
yoavkatz:main
Closed

fix: fail fast on deployment errors and add pyyaml dependency#24
yoavkatz wants to merge 2 commits into
kagenti:mainfrom
yoavkatz:main

Conversation

@yoavkatz

Copy link
Copy Markdown
Contributor

Summary

  • Replace dead post-command if [ $? -ne 0 ] checks (silently skipped under set -e) with || fail "..." pattern across deploy-and-evaluate.sh
  • Convert warnings on unexpected Kagenti API HTTP responses and missing .env files to hard failures in deploy-benchmark.sh, preventing silent continuation with a broken backend
  • Add pyyaml>=6.0 as an explicit dependency for authbridge/pipeline-merge.py which uses it to read/write YAML config fragments

Test plan

  • Run deploy-and-evaluate.sh against a healthy environment — verify all three steps complete successfully
  • Simulate a failing step (e.g. bad credentials) — verify the fail "... (step N/3)" message prints and script exits non-zero
  • Simulate an unexpected HTTP status from the Kagenti delete endpoint — verify script aborts with the error message and endpoint/response context
  • Simulate a missing .env.<benchmark> file — verify script aborts rather than deploying without env vars
  • uv sync in exgentic_a2a_runner/ — verify pyyaml installs correctly

🤖 Generated with Claude Code

yoavkatz and others added 2 commits June 28, 2026 16:13
Replace dead post-command `if [ $? -ne 0 ]` checks (killed by set -e before
they run) with `|| fail "..."` pattern, and convert warnings on unexpected
API responses to hard failures to avoid proceeding with a broken backend.
Add pyyaml as an explicit dependency for authbridge/pipeline-merge.py.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@yoavkatz

yoavkatz commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

Closed as will be part of #27.

@yoavkatz yoavkatz closed this Jul 6, 2026
@github-project-automation github-project-automation Bot moved this from New/ToDo to Done in Kagenti Issue Prioritization Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants