fix(cd): classify deploy success UI lag [metadata-only]
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / build-and-deploy (push) Has been cancelled
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / tests (push) Has been cancelled
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / build-and-deploy (push) Has been cancelled
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / tests (push) Has been cancelled
This commit is contained in:
@@ -1065,6 +1065,8 @@ def build_readback(
|
||||
if effective_harbor_110_repair_jobs_stale_or_mismatched
|
||||
else "cd_jobs_stale_or_mismatched"
|
||||
if cd_jobs_stale_or_mismatched and not latest_cd_effective_success
|
||||
else "cd_deploy_success_with_run_level_lag"
|
||||
if latest_cd_run_level_lag_after_deploy_success
|
||||
else "no_matching_runner_not_visible"
|
||||
),
|
||||
"readback": readback,
|
||||
|
||||
@@ -1303,7 +1303,7 @@ def test_build_readback_downgrades_ui_blocked_after_deploy_readback_success() ->
|
||||
latest_cd_build_log_text=_cd_deploy_success_log(),
|
||||
)
|
||||
|
||||
assert payload["status"] == "no_matching_runner_not_visible"
|
||||
assert payload["status"] == "cd_deploy_success_with_run_level_lag"
|
||||
assert payload["readback"]["latest_visible_cd_run_status"] == "Blocked"
|
||||
assert payload["readback"]["latest_visible_cd_run_ui_blocked"] is True
|
||||
assert payload["readback"]["latest_visible_cd_run_blocked"] is False
|
||||
@@ -1370,7 +1370,7 @@ def test_build_readback_downgrades_running_lag_after_deploy_success() -> None:
|
||||
latest_cd_build_log_text=_cd_deploy_success_log(),
|
||||
)
|
||||
|
||||
assert payload["status"] == "no_matching_runner_not_visible"
|
||||
assert payload["status"] == "cd_deploy_success_with_run_level_lag"
|
||||
assert payload["readback"]["latest_visible_cd_run_status"] == "Running"
|
||||
assert payload["readback"]["latest_visible_cd_run_waiting"] is False
|
||||
assert payload["readback"]["latest_visible_cd_run_blocked"] is False
|
||||
|
||||
Reference in New Issue
Block a user