summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur She <arthur.she@linaro.org>2023-03-17 09:17:40 -0700
committerArthur She <arthur.she@linaro.org>2023-03-17 09:17:40 -0700
commitdb69aa34cc891c4e7b2f19ef3ec1ffa9ca8d106d (patch)
treeb3e9afe95167267a046add60138ded03ea9c11ab
parent9e22e8c37f647138ac3f7687f6692439c2fdafd2 (diff)
mt-job-parser.py: Grab the PR-head jobs instead of PR-merge
From Bence We've removed most subtasks from the merge jobs, so use the more representative head jobs instead. Signed-off-by: Arthur She <arthur.she@linaro.org>
-rwxr-xr-xmt-job-parser.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/mt-job-parser.py b/mt-job-parser.py
index fb52ac5..dd73743 100755
--- a/mt-job-parser.py
+++ b/mt-job-parser.py
@@ -16,7 +16,7 @@ from bs4 import BeautifulSoup
import statistics
import urllib.request
-MBEDTLS_PR_MERGE_JOB_URL = f"https://ci.staging.trustedfirmware.org/job/mbed-tls-pr-merge/view/change-requests/api/json"
+MBEDTLS_PR_HEAD_JOB_URL = f"https://ci.staging.trustedfirmware.org/job/mbed-tls-pr-head/view/change-requests/api/json"
nightly_job = { "name": "mbed-tls-nightly-tests",
"url": "https://ci.staging.trustedfirmware.org/view/Mbed-TLS/job/mbed-tls-nightly-tests/" }
@@ -190,9 +190,9 @@ if __name__ == "__main__":
print(f"-------------- Get {days_period} day of jobs from {period_date.strftime('%Y/%m/%d')} ---------------\n \
Update Google spreadsheet: {update_gs}\n\t Download timestamp file: {download_timestamp}" )
- pr_merge_jobs = json.loads(requests.get(MBEDTLS_PR_MERGE_JOB_URL).text)
- #print(json.dumps(pr_merge_jobs, indent=4))
- build_jobs = pr_merge_jobs["jobs"]
+ pr_head_jobs = json.loads(requests.get(MBEDTLS_PR_HEAD_JOB_URL).text)
+ #print(json.dumps(pr_head_jobs, indent=4))
+ build_jobs = pr_head_jobs["jobs"]
build_jobs.append(nightly_job)
threads = []