補強 compact readback apply receipt fallback
Some checks failed
CD Pipeline / deploy (push) Has been cancelled
Some checks failed
CD Pipeline / deploy (push) Has been cancelled
This commit is contained in:
@@ -5089,7 +5089,16 @@ def build_pchome_direct_mapping_retry_candidate_exception_controlled_apply_compa
|
||||
replay_hash_match_count = int(replay_summary.get("executor_receipt_hash_match_count") or 0)
|
||||
drift_hash_match_count = int(drift_summary.get("drift_verifier_artifact_hash_match_count") or 0)
|
||||
recovery_hash_match_count = int(recovery_summary.get("recovery_artifact_hash_match_count") or 0)
|
||||
apply_hash_match_count = 1 if apply_receipt.get("exists") and len(str(apply_receipt.get("payload_sha256") or "")) == 64 else 0
|
||||
if not apply_receipt.get("exists") and replay_hash_match_count:
|
||||
apply_receipt = _compact_package_artifact_readback(
|
||||
replay,
|
||||
"retry_exception_controlled_apply_executor_replay_receipt",
|
||||
)
|
||||
apply_receipt["fallback_from"] = "receipt_replay_apply_closeout"
|
||||
apply_hash_match_count = 1 if (
|
||||
bool(apply_receipt.get("hash_match"))
|
||||
or (apply_receipt.get("exists") and len(str(apply_receipt.get("payload_sha256") or "")) == 64)
|
||||
) else 0
|
||||
|
||||
if drift_count:
|
||||
result = "DIRECT_MAPPING_RETRY_EXCEPTION_CONTROLLED_APPLY_COMPACT_READBACK_DRIFT_REQUIRES_RECOVERY"
|
||||
|
||||
@@ -1464,7 +1464,8 @@ def test_direct_mapping_retry_candidate_exception_controlled_apply_receipt_repla
|
||||
assert compact["summary"]["compact_readback_artifact_hash_match_count"] == 1
|
||||
assert compact["compact_readback"]["status"] == "completed"
|
||||
assert compact["compact_readback"]["next_machine_action"] == "keep_monitoring_drift"
|
||||
assert compact["receipts"]["apply"]["artifact_key"] == "retry_exception_controlled_apply_executor_receipt"
|
||||
assert compact["summary"]["apply_receipt_hash_match_count"] == 1
|
||||
assert compact["receipts"]["apply"]["hash_match"] is True
|
||||
assert compact["receipts"]["replay"]["hash_match"] is True
|
||||
assert compact["receipts"]["drift"]["hash_match"] is True
|
||||
assert compact["receipts"]["recovery"]["hash_match"] is True
|
||||
|
||||
Reference in New Issue
Block a user