Skip to content

Commit e79234b

Browse files
authored
Merge pull request verilog-to-routing#1857 from ganeshgore/push_artifacts
[Github Actions] Push artifacts on regression test failure
2 parents 42a5897 + 1cc25a0 commit e79234b

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,17 @@ jobs:
137137
./.github/scripts/build.sh
138138
./run_reg_test.py ${{ matrix.suite }} -show_failures -j2
139139
140+
- name: Upload artifact
141+
uses: actions/upload-artifact@v2
142+
with:
143+
name: failed_${{matrix.name}}_regression_log
144+
path: |
145+
vtr_flow/**/*.log
146+
vtr_flow/**/*.out
147+
vtr_flow/**/*.blif
148+
vtr_flow/**/*.p
149+
vtr_flow/**/*.net
150+
vtr_flow/**/*.r
140151
141152
Sanitized:
142153
runs-on: ubuntu-18.04
@@ -185,7 +196,7 @@ jobs:
185196
./.github/scripts/build.sh
186197
./run_reg_test.py odin_reg_basic -show_failures -j2
187198
188-
199+
189200
VQM2BLIF:
190201
name: 'VQM2BLIF Basic Tests'
191202
runs-on: ubuntu-18.04

vtr_flow/scripts/python_libs/vtr/log_parse.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,9 @@ def load_script_param(script_param):
301301
script_param = script_param.replace(" ", "_")
302302
else:
303303
script_param = "common"
304+
for spec_char in [":", "<", ">", "|", "*", "?"]:
305+
# replaced to create valid URL path
306+
script_param = script_param.replace(spec_char, "_")
304307
return script_param
305308

306309

vtr_flow/scripts/python_libs/vtr/task.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,9 @@ def create_job(
495495
Create an individual job with the specified parameters
496496
"""
497497
param_string = "common" + (("_" + param.replace(" ", "_")) if param else "")
498+
for spec_char in [":", "<", ">", "|", "*", "?"]:
499+
# replaced to create valid URL path
500+
param_string = param_string.replace(spec_char, "_")
498501
if not param:
499502
param = "common"
500503

0 commit comments

Comments
 (0)