From 0db1ac4614ab1b65bdf9a3d95281babcc7b9e49a Mon Sep 17 00:00:00 2001 From: zhuwenxing Date: Mon, 10 Jan 2022 21:17:39 +0800 Subject: [PATCH] [skip e2e]Add comments (#15117) Signed-off-by: zhuwenxing --- tests/python_client/chaos/scripts/workflow_analyse.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/python_client/chaos/scripts/workflow_analyse.py b/tests/python_client/chaos/scripts/workflow_analyse.py index 6bae943d9..ac9045e7b 100644 --- a/tests/python_client/chaos/scripts/workflow_analyse.py +++ b/tests/python_client/chaos/scripts/workflow_analyse.py @@ -12,6 +12,10 @@ response = requests.request("GET", url, headers=headers, data=payload) def analysis_workflow(workflow_name, workflow_response): + """ + Used to count the number of successes and failures of jobs in the chaos test workflow, + so as to understand the robustness of different components(each job represents a component). + """ workflow_id = [w["id"] for w in workflow_response.json()["workflows"] if workflow_name in w["name"]][0] runs_response = requests.request("GET", f"https://api.github.com/repos/milvus-io/milvus/actions/workflows/{workflow_id}/runs", headers=headers, data=payload, verify=False) workflow_runs = [r["id"] for r in runs_response.json()["workflow_runs"] if r["status"] == "completed" and r["event"] == "schedule"] -- GitLab