From f6d97588eed790d37d2e63bd3f2c682ae64cb98d Mon Sep 17 00:00:00 2001 From: Keith Rothman <537074+litghost@users.noreply.github.com> Date: Wed, 13 Jan 2021 09:26:55 -0800 Subject: [PATCH] Add dummy spartan7 scripts until spartan7 CI is debugged. Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com> --- .github/kokoro/continuous-db-spartan7.cfg | 44 +++++++++++++++++++++++ .github/kokoro/kokoro-cfg.py | 30 ++++++++++------ .github/kokoro/nothing.sh | 10 ++++++ .github/kokoro/presubmit-db-spartan7.cfg | 44 +++++++++++++++++++++++ 4 files changed, 118 insertions(+), 10 deletions(-) create mode 100644 .github/kokoro/continuous-db-spartan7.cfg create mode 100755 .github/kokoro/nothing.sh create mode 100644 .github/kokoro/presubmit-db-spartan7.cfg diff --git a/.github/kokoro/continuous-db-spartan7.cfg b/.github/kokoro/continuous-db-spartan7.cfg new file mode 100644 index 00000000..48475b35 --- /dev/null +++ b/.github/kokoro/continuous-db-spartan7.cfg @@ -0,0 +1,44 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +build_file: "symbiflow-prjxray-continuous-db-spartan7/.github/kokoro/nothing.sh" + +timeout_mins: 4320 + +action { + define_artifacts { + # File types + regex: "**/diff.html" + regex: "**/diff.json" + regex: "**/diff.patch" + regex: "**/*result*.xml" + regex: "**/*sponge_log.xml" + regex: "**/fuzzers/*.tgz" + # Whole directories + # regex: "**/build/**" - Currently kokoro dies on number of artifacts. + regex: "**/build/*.log" + regex: "**/logs_*/**" + # The database + regex: "**/database/spartan7/**" + strip_prefix: "github/symbiflow-prjxray-continuous-db-spartan7/" + } +} + +env_vars { + key: "KOKORO_TYPE" + value: "continuous" +} + +env_vars { + key: "KOKORO_DIR" + value: "symbiflow-prjxray-continuous-db-spartan7" +} + +env_vars { + key: "XRAY_SETTINGS" + value: "spartan7" +} + +env_vars { + key: "XRAY_BUILD_TYPE" + value: "full" +} diff --git a/.github/kokoro/kokoro-cfg.py b/.github/kokoro/kokoro-cfg.py index 3b53a1c0..58376d93 100755 --- a/.github/kokoro/kokoro-cfg.py +++ b/.github/kokoro/kokoro-cfg.py @@ -12,7 +12,7 @@ db_full = """\ # Format: //devtools/kokoro/config/proto/build.proto -build_file: "symbiflow-prjxray-%(kokoro_type)s-db-%(part)s/.github/kokoro/db-full.sh" +build_file: "symbiflow-prjxray-%(kokoro_type)s-db-%(part)s/.github/kokoro/%(script)s" timeout_mins: 4320 @@ -56,15 +56,25 @@ env_vars { } """ -for part in ['artix7', 'kintex7', 'zynq7']: +for part in ['artix7', 'kintex7', 'zynq7', 'spartan7']: + if part != 'spartan7': + script = 'db-full.sh' + else: + # Emit dummy script for spartan7 for now until it is working. + script = 'nothing.sh' + with open("continuous-db-%s.cfg" % part, "w") as f: - f.write(db_full % { - 'part': part, - 'kokoro_type': 'continuous', - }) + f.write( + db_full % { + 'part': part, + 'kokoro_type': 'continuous', + 'script': script, + }) with open("presubmit-db-%s.cfg" % part, "w") as f: - f.write(db_full % { - 'part': part, - 'kokoro_type': 'presubmit', - }) + f.write( + db_full % { + 'part': part, + 'kokoro_type': 'presubmit', + 'script': script, + }) diff --git a/.github/kokoro/nothing.sh b/.github/kokoro/nothing.sh new file mode 100755 index 00000000..edc8fa3e --- /dev/null +++ b/.github/kokoro/nothing.sh @@ -0,0 +1,10 @@ +#!/bin/bash +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC +echo "Doing nothing!" +true diff --git a/.github/kokoro/presubmit-db-spartan7.cfg b/.github/kokoro/presubmit-db-spartan7.cfg new file mode 100644 index 00000000..4264781e --- /dev/null +++ b/.github/kokoro/presubmit-db-spartan7.cfg @@ -0,0 +1,44 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +build_file: "symbiflow-prjxray-presubmit-db-spartan7/.github/kokoro/nothing.sh" + +timeout_mins: 4320 + +action { + define_artifacts { + # File types + regex: "**/diff.html" + regex: "**/diff.json" + regex: "**/diff.patch" + regex: "**/*result*.xml" + regex: "**/*sponge_log.xml" + regex: "**/fuzzers/*.tgz" + # Whole directories + # regex: "**/build/**" - Currently kokoro dies on number of artifacts. + regex: "**/build/*.log" + regex: "**/logs_*/**" + # The database + regex: "**/database/spartan7/**" + strip_prefix: "github/symbiflow-prjxray-presubmit-db-spartan7/" + } +} + +env_vars { + key: "KOKORO_TYPE" + value: "presubmit" +} + +env_vars { + key: "KOKORO_DIR" + value: "symbiflow-prjxray-presubmit-db-spartan7" +} + +env_vars { + key: "XRAY_SETTINGS" + value: "spartan7" +} + +env_vars { + key: "XRAY_BUILD_TYPE" + value: "full" +}