Skip to content

Commit 6e3e82a

Browse files
committed
TEST verbose
1 parent 90afd75 commit 6e3e82a

File tree

5 files changed

+26
-8
lines changed

5 files changed

+26
-8
lines changed

.github/workflows/Suite.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ jobs:
7575
run: >
7676
source env.sh &&
7777
python3 exhaust.py
78+
--verbose
7879
--project ${{ matrix.project }}
7980
--toolchain ${{ matrix.toolchain }}
8081
--board ${{ matrix.board }}
@@ -117,6 +118,7 @@ jobs:
117118
run: >
118119
source env.sh &&
119120
python3 exhaust.py
121+
--verbose
120122
--project ${{ matrix.project }}
121123
--toolchain ${{ matrix.toolchain }}
122124
--board ${{ matrix.board }}
@@ -157,6 +159,7 @@ jobs:
157159
run: >
158160
source env.sh quicklogic &&
159161
python3 exhaust.py
162+
--verbose
160163
--project ${{ matrix.project }}
161164
--toolchain ${{ matrix.toolchain }}
162165
--board ${{ matrix.board }}
@@ -200,6 +203,7 @@ jobs:
200203
run: >
201204
source env.sh &&
202205
python3 exhaust.py
206+
--verbose
203207
--project ${{ matrix.project }}
204208
--toolchain ${{ matrix.toolchain }}
205209
--board ${{ matrix.board }}
@@ -242,6 +246,7 @@ jobs:
242246
run: >
243247
source env.sh &&
244248
python3 exhaust.py
249+
--verbose
245250
--project ${{ matrix.project }}
246251
--toolchain ${{ matrix.toolchain }}
247252
--board ${{ matrix.board }}
@@ -284,6 +289,7 @@ jobs:
284289
run: >
285290
source env.sh &&
286291
python3 exhaust.py
292+
--verbose
287293
--project ${{ matrix.project }}
288294
--toolchain ${{ matrix.toolchain }}
289295
--board ${{ matrix.board }}
@@ -327,6 +333,7 @@ jobs:
327333
run: >
328334
source env.sh nextpnr &&
329335
python3 exhaust.py
336+
--verbose
330337
--project ${{ matrix.project }}
331338
--toolchain ${{ matrix.toolchain }}
332339
--board ${{ matrix.board }}
@@ -366,6 +373,7 @@ jobs:
366373
run: >
367374
source env.sh nextpnr &&
368375
python3 exhaust.py
376+
--verbose
369377
--project ${{ matrix.project }}
370378
--toolchain ${{ matrix.toolchain }}
371379
--board ${{ matrix.board }}
@@ -405,6 +413,7 @@ jobs:
405413
run: >
406414
source env.sh nextpnr &&
407415
python3 exhaust.py
416+
--verbose
408417
--project ${{ matrix.project }}
409418
--toolchain ${{ matrix.toolchain }}
410419
--board ${{ matrix.board }}
@@ -444,6 +453,7 @@ jobs:
444453
run: >
445454
source env.sh nextpnr &&
446455
python3 exhaust.py
456+
--verbose
447457
--project ${{ matrix.project }}
448458
--toolchain ${{ matrix.toolchain }}
449459
--board ${{ matrix.board }}
@@ -486,6 +496,7 @@ jobs:
486496
run: >
487497
source env.sh nextpnr &&
488498
python3 exhaust.py
499+
--verbose
489500
--project ${{ matrix.project }}
490501
--toolchain ${{ matrix.toolchain }}
491502
--board ${{ matrix.board }}

.github/workflows/Tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ jobs:
5757
run: |
5858
source env.sh
5959
# Testing parameters injection feature
60-
python3 exhaust.py --parameters vpr.yml --toolchain vpr --project blinky --build_type parameters --only_required --fail
60+
python3 exhaust.py --verbose --parameters vpr.yml --toolchain vpr --project blinky --build_type parameters --only_required --fail
6161
# Testing multiple samples
62-
python3 exhaust.py --build_type multiple-samples --run_config .github/run_configs/multiple_samples.yaml --only_required --fail
62+
python3 exhaust.py --verbose --build_type multiple-samples --run_config .github/run_configs/multiple_samples.yaml --only_required --fail
6363
# Testing multiple seeds
64-
python3 exhaust.py --build_type multiple-seeds --run_config .github/run_configs/multiple_seeds.yaml --only_required --fail
64+
python3 exhaust.py --verbose --build_type multiple-seeds --run_config .github/run_configs/multiple_seeds.yaml --only_required --fail
6565
6666
- uses: actions/upload-artifact@v3
6767
if: ${{ always() }}

exhaust.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,10 @@ def main():
219219
global logger
220220
logger = logging.getLogger('MyLogger')
221221
handler = logging.StreamHandler()
222-
handler.setFormatter(logging.Formatter('%(levelname)s: %(message)s'))
222+
handler.setFormatter(
223+
logging.
224+
Formatter('[%(name)s | %(funcName)s] %(levelname)s: %(message)s')
225+
)
223226
logger.addHandler(handler)
224227
logger.setLevel(logging.DEBUG)
225228
logger.debug("Parsing Arguments")

fpgaperf.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ def run(
174174
if verbose:
175175
handler = logging.StreamHandler()
176176
handler.setFormatter(
177-
logging.Formatter('[fpgaperf.run] %(levelname)s: %(message)s')
177+
logging.
178+
Formatter('[%(name)s | %(funcName)s] %(levelname)s: %(message)s')
178179
)
179180
logger.addHandler(handler)
180181
logger.setLevel(logging.DEBUG)
@@ -548,8 +549,10 @@ def main():
548549
global logger
549550
logger = logging.getLogger('MyLogger')
550551
handler = logging.StreamHandler()
551-
formatter = logging.Formatter('%(levelname)s: %(message)s')
552-
handler.setFormatter(formatter)
552+
handler.setFormatter(
553+
logging.
554+
Formatter('[%(name)s | %(funcName)s] %(levelname)s: %(message)s')
555+
)
553556
logger.addHandler(handler)
554557
logger.setLevel(logging.DEBUG)
555558

toolchains/vivado.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ def run(self):
159159
}
160160
)
161161
},
162-
work_root=self.out_dir
162+
work_root=self.out_dir,
163+
verbose=True
163164
)
164165
self.backend.configure("")
165166
self.backend.build()

0 commit comments

Comments
 (0)