Skip to content

Commit 2b49e80

Browse files
committed
[Infra]: Adding odin_tech_strong to kokoro
Signed-off-by: Seyed Alireza Damghani <[email protected]>
1 parent fb4886f commit 2b49e80

File tree

6 files changed

+138
-5
lines changed

6 files changed

+138
-5
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
build_file: "vtr-verilog-to-routing/.github/kokoro/run-vtr.sh"
4+
5+
# 12 hours
6+
timeout_mins: 720
7+
8+
action {
9+
define_artifacts {
10+
# File types
11+
regex: "**/*.out"
12+
regex: "**/vpr_stdout.log"
13+
regex: "**/parse_results.txt"
14+
regex: "**/qor_results.txt"
15+
regex: "**/pack.log"
16+
regex: "**/place.log"
17+
regex: "**/route.log"
18+
regex: "**/*_qor.csv"
19+
strip_prefix: "github/vtr-verilog-to-routing/"
20+
}
21+
}
22+
23+
env_vars {
24+
key: "KOKORO_TYPE"
25+
value: "continuous"
26+
}
27+
28+
env_vars {
29+
key: "KOKORO_DIR"
30+
value: "vtr-verilog-to-routing"
31+
}
32+
33+
env_vars {
34+
key: "VTR_DIR"
35+
value: "vtr-verilog-to-routing"
36+
}
37+
38+
#Use default build configuration
39+
env_vars {
40+
key: "VTR_CMAKE_PARAMS"
41+
value: ""
42+
}
43+
44+
env_vars {
45+
key: "VTR_TEST"
46+
value: "odin_tech_strong"
47+
}
48+
49+
#Options for run_reg_test.py
50+
# -show_failures: show tool failures in main log output
51+
env_vars {
52+
key: "VTR_TEST_OPTIONS"
53+
value: "-show_failures"
54+
}
55+
56+
env_vars {
57+
key: "NUM_CORES"
58+
value: "3"
59+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
build_file: "vtr-verilog-to-routing/.github/kokoro/run-vtr.sh"
4+
5+
# 12 hours
6+
timeout_mins: 720
7+
8+
action {
9+
define_artifacts {
10+
# File types
11+
regex: "**/*.out"
12+
regex: "**/vpr_stdout.log"
13+
regex: "**/parse_results.txt"
14+
regex: "**/qor_results.txt"
15+
regex: "**/pack.log"
16+
regex: "**/place.log"
17+
regex: "**/route.log"
18+
regex: "**/*_qor.csv"
19+
strip_prefix: "github/vtr-verilog-to-routing/"
20+
}
21+
}
22+
23+
env_vars {
24+
key: "KOKORO_TYPE"
25+
value: "presubmit"
26+
}
27+
28+
env_vars {
29+
key: "KOKORO_DIR"
30+
value: "vtr-verilog-to-routing"
31+
}
32+
33+
env_vars {
34+
key: "VTR_DIR"
35+
value: "vtr-verilog-to-routing"
36+
}
37+
38+
#Use default build configuration
39+
env_vars {
40+
key: "VTR_CMAKE_PARAMS"
41+
value: ""
42+
}
43+
44+
env_vars {
45+
key: "VTR_TEST"
46+
value: "odin_tech_strong"
47+
}
48+
49+
#Options for run_reg_test.py
50+
# -show_failures: show tool failures in main log output
51+
env_vars {
52+
key: "VTR_TEST_OPTIONS"
53+
value: "-show_failures"
54+
}
55+
56+
env_vars {
57+
key: "NUM_CORES"
58+
value: "3"
59+
}

.github/kokoro/run-vtr.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ ls -l
1010
cd github
1111
ls -l
1212
cd vtr-verilog-to-routing
13+
export VTR_DIR=$( pwd )
1314
source $SCRIPT_DIR/steps/hostsetup.sh
1415
source $SCRIPT_DIR/steps/hostinfo.sh
1516

@@ -18,6 +19,8 @@ source $SCRIPT_DIR/steps/git.sh
1819

1920
if [ $VTR_TEST == "vtr_reg_strong" ] || [ $VTR_TEST == "odin_reg_strong" ]; then
2021
source $SCRIPT_DIR/steps/vtr-min-setup.sh
22+
elif [ $VTR_TEST == "odin_tech_strong" ]; then
23+
source $SCRIPT_DIR/steps/vtr-yosys-setup.sh
2124
else
2225
source $SCRIPT_DIR/steps/vtr-full-setup.sh
2326
fi

.github/kokoro/steps/hostsetup.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,17 @@ sudo apt-get install -y \
5656
python3-yaml \
5757
qt5-default \
5858
virtualenv \
59+
clang \
60+
libreadline-dev \
61+
gawk \
62+
tcl-dev \
63+
libffi-dev \
64+
xdot \
65+
pkg-config \
66+
libboost-system-dev \
67+
libboost-python-dev \
68+
libboost-filesystem-dev \
69+
zlib1g-dev \
5970
#Don't include libtbb-dev since it may increase memory usage
6071
#libtbb-dev \
6172

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
source .github/kokoro/steps/vtr-min-setup.sh
4+
source .github/gha/install_yosys.sh
5+
6+
cd $VTR_DIR

.github/workflows/test.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,6 @@ jobs:
197197
name: 'Odin Tech Basic',
198198
suite: 'odin_tech_basic'
199199
}
200-
,
201-
{
202-
name: 'Odin Tech Strong',
203-
suite: 'odin_tech_strong'
204-
}
205200
]
206201
name: 'R: ${{ matrix.name }}'
207202
steps:

0 commit comments

Comments
 (0)