From cb6e121acf9fb859ddbd8d225ef97dd0b1af05d6 Mon Sep 17 00:00:00 2001 From: Vitor Bandeira Date: Tue, 7 Jan 2025 13:33:58 -0300 Subject: [PATCH] ci: enable AutoTuner CI This will only affect PRs that have the label "AutoTunerCI" or the branch name has the prefix "at-" This reverts commit 1ce17607b1026f75130a19512ceacbd298139a86. Signed-off-by: Vitor Bandeira --- flow/test/test_helper.sh | 20 +++++++++++++++++++- jenkins/public_nightly.Jenkinsfile | 2 +- jenkins/public_tests_all.Jenkinsfile | 2 +- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/flow/test/test_helper.sh b/flow/test/test_helper.sh index 9b2409d114..946575db49 100755 --- a/flow/test/test_helper.sh +++ b/flow/test/test_helper.sh @@ -77,7 +77,25 @@ if [ $ret -eq 0 ] && grep -q 'power:' <(echo $TARGETS); then ret=$(( ret + $? )) fi -if [[ -n "${RUN_AUTOTUNER+x}" ]] && [[ ${RUN_AUTOTUNER} -eq 1 ]]; then +# Run Autotuner CI specifically for gcd on selected platforms. +if [ -z "${RUN_AUTOTUNER+x}" ]; then + RUN_AUTOTUNER=0 +fi +case $DESIGN_NAME in + "gcd") + RUN_AUTOTUNER=1 + ;; +esac +case $PLATFORM in + "asap7" | "sky130hd" | "ihp-sg13g2" ) + # Keep RUN_AUTOTUNER enabled only for these platforms + ;; + *) + RUN_AUTOTUNER=0 + ;; +esac + +if [ $RUN_AUTOTUNER -eq 1 ]; then # run the commands in ORFS root dir echo "[INFO FLW-0029] Installing dependencies in virtual environment." cd ../ diff --git a/jenkins/public_nightly.Jenkinsfile b/jenkins/public_nightly.Jenkinsfile index 1c8d6b7c5f..38eb29b4ec 100644 --- a/jenkins/public_nightly.Jenkinsfile +++ b/jenkins/public_nightly.Jenkinsfile @@ -1,4 +1,4 @@ -@Library('utils@orfs-v2.2.2') _ +@Library('utils@orfs-v2.2.3') _ node { diff --git a/jenkins/public_tests_all.Jenkinsfile b/jenkins/public_tests_all.Jenkinsfile index 87a00ac565..4a3eefcc9d 100644 --- a/jenkins/public_tests_all.Jenkinsfile +++ b/jenkins/public_tests_all.Jenkinsfile @@ -1,4 +1,4 @@ -@Library('utils@orfs-v2.2.2') _ +@Library('utils@orfs-v2.2.3') _ node {