summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllen Xie <zhihuixie@google.com>2023-03-17 15:31:01 +1100
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-03-21 03:33:31 +0000
commit1b96be870da231e177304ffd0880db6e66ff97b2 (patch)
tree4a97e72200af625265df5452a8b110fd2f2a0186
parentd9999d9ea8d34efe45f3e63c96b5dfe30a069471 (diff)
downloadchrome-ec-1b96be870da231e177304ffd0880db6e66ff97b2.tar.gz
twister: Move `suite` and `builder_name` to tags
Context: https://crrev.com/c/4349593 Bug: b:274025225 Test: Unit test Change-Id: Ie0eb5f504f063c7f8595e826a8e2f44b562f0ecb Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4349672 Tested-by: Zhihui Xie <zhihuixie@google.com> Reviewed-by: Al Semjonovs <asemjonovs@google.com> Commit-Queue: Zhihui Xie <zhihuixie@google.com>
-rwxr-xr-xutil/twister_launcher.py2
-rwxr-xr-xutil/zephyr_to_resultdb.py6
2 files changed, 3 insertions, 5 deletions
diff --git a/util/twister_launcher.py b/util/twister_launcher.py
index 9178b142d9..eb7133da30 100755
--- a/util/twister_launcher.py
+++ b/util/twister_launcher.py
@@ -191,7 +191,7 @@ def upload_results(ec_base, outdir):
"-new",
"-realm",
"chromium:public",
- "-var",
+ "-tag",
"builder_name:" + hostname,
"--",
"vpython3",
diff --git a/util/zephyr_to_resultdb.py b/util/zephyr_to_resultdb.py
index e9cc191b43..dbcba89605 100755
--- a/util/zephyr_to_resultdb.py
+++ b/util/zephyr_to_resultdb.py
@@ -6,7 +6,7 @@
""" Upload twister results to ResultDB
Usage:
- $ rdb stream -new -realm chromium:public -var builder_name:${HOSTNAME%%.*}
+ $ rdb stream -new -realm chromium:public -tag builder_name:${HOSTNAME%%.*}
-- ./util/zephyr_to_resultdb.py --results=twister-out/twister.json
--upload=True
"""
@@ -117,11 +117,9 @@ def testcase_to_result(testsuite, testcase, base_tags, config_tags):
},
},
"tags": [
+ {"key": "suite", "value": testsuite["name"]},
{"key": "platform", "value": testsuite["platform"]},
],
- "variant": {
- "def": {"suite": testsuite["name"]},
- },
"duration": translate_duration(testcase),
"testMetadata": {"name": testcase["identifier"]},
}