|
1 | 1 | From b185cd831ecf5dc272334dfb76e2177cff1be4d6 Mon Sep 17 00:00:00 2001
|
2 | 2 | From: "kernelci.org bot" < [email protected]>
|
3 |
| -Date: Thu, 30 Jan 2020 14:33:44 +0000 |
4 |
| -Subject: [PATCH 2/2] CHROMEOS only send emails for kernelci tree |
| 3 | +Date: Thu, 32 Apr 2023 14:33:44 +0000 |
| 4 | +Subject: [PATCH 2/2] CHROMEOS for kernelci emails fix |
5 | 5 |
|
6 |
| ---- |
7 |
| - scripts/kernel-arch-complete.sh | 5 +++++ |
8 |
| - 1 file changed, 5 insertions(+) |
9 |
| - |
10 |
| -diff --git a/scripts/kernel-arch-complete.sh b/scripts/kernel-arch-complete.sh |
11 |
| -index 3be017318a8e..60e9b98d2682 100755 |
12 | 6 | --- a/scripts/kernel-arch-complete.sh
|
13 | 7 | +++ b/scripts/kernel-arch-complete.sh
|
14 |
| -@@ -35,6 +35,11 @@ fi |
| 8 | +@@ -35,6 +35,34 @@ |
15 | 9 | echo "Build has now finished, reporting result to dashboard."
|
16 | 10 | curl -X POST -H "Authorization: $EMAIL_AUTH_TOKEN" -H "Content-Type: application/json" -d '{"job": "'$TREE_NAME'", "kernel": "'$GIT_DESCRIBE'", "git_branch": "'$BRANCH'"}' ${API}/job
|
17 | 11 |
|
18 |
| -+if [ "$TREE_NAME" != "kernelci" ]; then |
19 |
| -+ echo "Only dealing with kernelci tree on chromeos.kernelci.org for now" |
| 12 | ++# In ChromeOS we send results to staging only |
| 13 | ++if [ "$TREE_NAME" == "kernelci" ] || [ "$TREE_NAME" == "collabora-chromeos-kernel" ]; then |
| 14 | ++ curl -X POST -H "Authorization: $EMAIL_AUTH_TOKEN" -H "Content-Type: application/json" -d '{"job": "'$TREE_NAME'", "kernel": "'$GIT_DESCRIBE'", "git_branch": "'$BRANCH'", "build_report": 1, "format": ["txt"], "send_to": ["[email protected]"], "delay": 0}' ${API}/send |
| 15 | ++ curl -X POST -H "Authorization: $EMAIL_AUTH_TOKEN" -H "Content-Type: application/json" -d '{"job": "'$TREE_NAME'", "kernel": "'$GIT_DESCRIBE'", "git_branch": "'$BRANCH'", "report_type": "test", "plan": "baseline", "send_to": ["[email protected]"], "format": ["txt"], "delay": 1800}' ${API}/send |
| 16 | ++ curl -X POST -H "Authorization: $EMAIL_AUTH_TOKEN" -H "Content-Type: application/json" -d '{"job": "'$TREE_NAME'", "kernel": "'$GIT_DESCRIBE'", "git_branch": "'$BRANCH'", "report_type": "test", "plan": "baseline-nfs", "send_to": ["[email protected]"], "format": ["txt"], "delay": 1800}' ${API}/send |
| 17 | ++ curl -X POST -H "Authorization: $EMAIL_AUTH_TOKEN" -H "Content-Type: application/json" -d '{"job": "'$TREE_NAME'", "kernel": "'$GIT_DESCRIBE'", "git_branch": "'$BRANCH'", "report_type": "test", "plan": "baseline-fastboot", "send_to": ["[email protected]"], "format": ["txt"], "delay": 1800}' ${API}/send |
| 18 | ++ curl -X POST -H "Authorization: $EMAIL_AUTH_TOKEN" -H "Content-Type: application/json" -d '{"job": "'$TREE_NAME'", "kernel": "'$GIT_DESCRIBE'", "git_branch": "'$BRANCH'", "report_type": "test", "plan": "v4l2-compliance-vivid", "send_to": ["[email protected]"], "format": ["txt"], "delay": 2700}' ${API}/send |
| 19 | ++ curl -X POST -H "Authorization: $EMAIL_AUTH_TOKEN" -H "Content-Type: application/json" -d '{"job": "'$TREE_NAME'", "kernel": "'$GIT_DESCRIBE'", "git_branch": "'$BRANCH'", "report_type": "test", "plan": "v4l2-compliance-uvc", "send_to": ["[email protected]"], "format": ["txt"], "delay": 2700}' ${API}/send |
| 20 | ++ curl -X POST -H "Authorization: $EMAIL_AUTH_TOKEN" -H "Content-Type: application/json" -d '{"job": "'$TREE_NAME'", "kernel": "'$GIT_DESCRIBE'", "git_branch": "'$BRANCH'", "report_type": "test", "plan": "igt-kms-exynos", "send_to": ["[email protected]"], "format": ["txt"], "delay": 2700}' ${API}/send |
| 21 | ++ curl -X POST -H "Authorization: $EMAIL_AUTH_TOKEN" -H "Content-Type: application/json" -d '{"job": "'$TREE_NAME'", "kernel": "'$GIT_DESCRIBE'", "git_branch": "'$BRANCH'", "report_type": "test", "plan": "igt-kms-rockchip", "send_to": ["[email protected]"], "format": ["txt"], "delay": 2700}' ${API}/send |
| 22 | ++ curl -X POST -H "Authorization: $EMAIL_AUTH_TOKEN" -H "Content-Type: application/json" -d '{"job": "'$TREE_NAME'", "kernel": "'$GIT_DESCRIBE'", "git_branch": "'$BRANCH'", "report_type": "test", "plan": "igt-kms-tegra", "send_to": ["[email protected]"], "format": ["txt"], "delay": 2700}' ${API}/send |
| 23 | ++ curl -X POST -H "Authorization: $EMAIL_AUTH_TOKEN" -H "Content-Type: application/json" -d '{"job": "'$TREE_NAME'", "kernel": "'$GIT_DESCRIBE'", "git_branch": "'$BRANCH'", "report_type": "test", "plan": "igt-gpu-panfrost", "send_to": ["[email protected]"], "format": ["txt"], "delay": 2700}' ${API}/send |
| 24 | ++ curl -X POST -H "Authorization: $EMAIL_AUTH_TOKEN" -H "Content-Type: application/json" -d '{"job": "'$TREE_NAME'", "kernel": "'$GIT_DESCRIBE'", "git_branch": "'$BRANCH'", "report_type": "test", "plan": "cros-ec", "send_to": ["[email protected]"], "format": ["txt"], "delay": 2700}' ${API}/send |
| 25 | ++ curl -X POST -H "Authorization: $EMAIL_AUTH_TOKEN" -H "Content-Type: application/json" -d '{"job": "'$TREE_NAME'", "kernel": "'$GIT_DESCRIBE'", "git_branch": "'$BRANCH'", "report_type": "test", "plan": "sleep", "send_to": ["[email protected]"], "format": ["txt"], "delay": 2700}' ${API}/send |
| 26 | ++ # Tast tests |
| 27 | ++ curl -X POST -H "Authorization: $EMAIL_AUTH_TOKEN" -H "Content-Type: application/json" -d '{"job": "'$TREE_NAME'", "kernel": "'$GIT_DESCRIBE'", "git_branch": "'$BRANCH'", "report_type": "test", "plan": "cros-tast-kernel", "send_to": ["[email protected]"], "format": ["txt"], "delay": 2700}' ${API}/send |
| 28 | ++ curl -X POST -H "Authorization: $EMAIL_AUTH_TOKEN" -H "Content-Type: application/json" -d '{"job": "'$TREE_NAME'", "kernel": "'$GIT_DESCRIBE'", "git_branch": "'$BRANCH'", "report_type": "test", "plan": "cros-tast-mm-decode", "send_to": ["[email protected]"], "format": ["txt"], "delay": 2700}' ${API}/send |
| 29 | ++ curl -X POST -H "Authorization: $EMAIL_AUTH_TOKEN" -H "Content-Type: application/json" -d '{"job": "'$TREE_NAME'", "kernel": "'$GIT_DESCRIBE'", "git_branch": "'$BRANCH'", "report_type": "test", "plan": "cros-tast-mm-encode", "send_to": ["[email protected]"], "format": ["txt"], "delay": 2700}' ${API}/send |
| 30 | ++ curl -X POST -H "Authorization: $EMAIL_AUTH_TOKEN" -H "Content-Type: application/json" -d '{"job": "'$TREE_NAME'", "kernel": "'$GIT_DESCRIBE'", "git_branch": "'$BRANCH'", "report_type": "test", "plan": "cros-tast-mm-misc", "send_to": ["[email protected]"], "format": ["txt"], "delay": 2700}' ${API}/send |
| 31 | ++ curl -X POST -H "Authorization: $EMAIL_AUTH_TOKEN" -H "Content-Type: application/json" -d '{"job": "'$TREE_NAME'", "kernel": "'$GIT_DESCRIBE'", "git_branch": "'$BRANCH'", "report_type": "test", "plan": "cros-tast-perf", "send_to": ["[email protected]"], "format": ["txt"], "delay": 2700}' ${API}/send |
| 32 | ++ curl -X POST -H "Authorization: $EMAIL_AUTH_TOKEN" -H "Content-Type: application/json" -d '{"job": "'$TREE_NAME'", "kernel": "'$GIT_DESCRIBE'", "git_branch": "'$BRANCH'", "report_type": "test", "plan": "cros-tast-platform", "send_to": ["[email protected]"], "format": ["txt"], "delay": 2700}' ${API}/send |
| 33 | ++ curl -X POST -H "Authorization: $EMAIL_AUTH_TOKEN" -H "Content-Type: application/json" -d '{"job": "'$TREE_NAME'", "kernel": "'$GIT_DESCRIBE'", "git_branch": "'$BRANCH'", "report_type": "test", "plan": "cros-tast-sound", "send_to": ["[email protected]"], "format": ["txt"], "delay": 2700}' ${API}/send |
| 34 | ++ curl -X POST -H "Authorization: $EMAIL_AUTH_TOKEN" -H "Content-Type: application/json" -d '{"job": "'$TREE_NAME'", "kernel": "'$GIT_DESCRIBE'", "git_branch": "'$BRANCH'", "report_type": "test", "plan": "cros-tast-video", "send_to": ["[email protected]"], "format": ["txt"], "delay": 2700}' ${API}/send |
| 35 | ++ # Don't go anywhere else! |
20 | 36 | + exit 0
|
21 | 37 | +fi
|
| 38 | ++exit 0 |
22 | 39 | +
|
23 | 40 | if [ "$EMAIL" != "true" ]; then
|
24 | 41 | echo "Not sending emails because EMAIL was false"
|
25 | 42 | exit 0
|
26 |
| --- |
27 |
| -2.20.1 |
28 |
| - |
|
0 commit comments