Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions deployment/aliyun/host-bybit-options-shadow-gate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ jq -n \
--argjson disk_free_gb "$disk_free_gb" \
--argjson upload_failure_count "$upload_failure_count" \
--argjson last_upload_success_at "$last_upload_success_at" \
--arg SHADOW_SPOOL "$SHADOW_SPOOL" \
'{schema:$schema,run_id:$run_id,created_at:$created_at,completed_at:$completed_at,
candidate_sha256:$candidate_sha256,
deployment_bundle_sha256:$deployment_bundle_sha256,
Expand Down
5 changes: 5 additions & 0 deletions deployment/aliyun/test-bybit-options-shadow-gate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ grep -Fq 'bybit-options-shadow-gate-policy.jq' "$shadow_gate"
grep -Fq 'bybit-options-control-plane-lib.sh' "$shadow_gate"
grep -Fq 'spool_drained:true' "$shadow_gate"
grep -Fq 'upload_status:{failure_count:' "$shadow_gate"
# The receipt jq program references $SHADOW_SPOOL in the service block; the
# argument must actually be passed or the gate dies after a passing
# observation window with "jq: $SHADOW_SPOOL is not defined".
# shellcheck disable=SC2016 # literal contract assertion, $SHADOW_SPOOL must not expand
grep -Fq -- '--arg SHADOW_SPOOL "$SHADOW_SPOOL"' "$shadow_gate"

# Cutover contract: the candidate must clear a full shadow gate before the
# production unit can be started, and the production env must stay fail-closed.
Expand Down
Loading