Skip to content

Commit 5911734

Browse files
committed
0002-CHROMEOS...patch: Update ChromeOS tests, trees, logic
First we need to add new tast tests. Second we need to send more results to staging maillist, and do not process also other emails, to make sure we wont litter anywhere else with ChromeOS instance results. Third we need to add new kernel tree. Signed-off-by: Denys Fedoryshchenko <[email protected]>
1 parent 0d92410 commit 5911734

File tree

1 file changed

+28
-14
lines changed

1 file changed

+28
-14
lines changed

patches/kernelci-jenkins/chromeos.kernelci.org/0002-CHROMEOS-only-send-emails-for-kernelci-tree.patch

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,42 @@
11
From b185cd831ecf5dc272334dfb76e2177cff1be4d6 Mon Sep 17 00:00:00 2001
22
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
55

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
126
--- a/scripts/kernel-arch-complete.sh
137
+++ b/scripts/kernel-arch-complete.sh
14-
@@ -35,6 +35,11 @@ fi
8+
@@ -35,6 +35,34 @@
159
echo "Build has now finished, reporting result to dashboard."
1610
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
1711

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!
2036
+ exit 0
2137
+fi
38+
+exit 0
2239
+
2340
if [ "$EMAIL" != "true" ]; then
2441
echo "Not sending emails because EMAIL was false"
2542
exit 0
26-
--
27-
2.20.1
28-

0 commit comments

Comments
 (0)