Skip to content

Commit cd449ed

Browse files
committed
TEST verbose
1 parent e253059 commit cd449ed

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
@@ -82,6 +82,7 @@ jobs:
8282
run: >
8383
source env.sh &&
8484
python3 exhaust.py
85+
--verbose
8586
--project ${{ matrix.project }}
8687
--toolchain ${{ matrix.toolchain }}
8788
--board ${{ matrix.board }}
@@ -124,6 +125,7 @@ jobs:
124125
run: >
125126
source env.sh &&
126127
python3 exhaust.py
128+
--verbose
127129
--project ${{ matrix.project }}
128130
--toolchain ${{ matrix.toolchain }}
129131
--board ${{ matrix.board }}
@@ -164,6 +166,7 @@ jobs:
164166
run: >
165167
source env.sh quicklogic &&
166168
python3 exhaust.py
169+
--verbose
167170
--project ${{ matrix.project }}
168171
--toolchain ${{ matrix.toolchain }}
169172
--board ${{ matrix.board }}
@@ -207,6 +210,7 @@ jobs:
207210
run: >
208211
source env.sh &&
209212
python3 exhaust.py
213+
--verbose
210214
--project ${{ matrix.project }}
211215
--toolchain ${{ matrix.toolchain }}
212216
--board ${{ matrix.board }}
@@ -249,6 +253,7 @@ jobs:
249253
run: >
250254
source env.sh &&
251255
python3 exhaust.py
256+
--verbose
252257
--project ${{ matrix.project }}
253258
--toolchain ${{ matrix.toolchain }}
254259
--board ${{ matrix.board }}
@@ -291,6 +296,7 @@ jobs:
291296
run: >
292297
source env.sh &&
293298
python3 exhaust.py
299+
--verbose
294300
--project ${{ matrix.project }}
295301
--toolchain ${{ matrix.toolchain }}
296302
--board ${{ matrix.board }}
@@ -334,6 +340,7 @@ jobs:
334340
run: >
335341
source env.sh nextpnr &&
336342
python3 exhaust.py
343+
--verbose
337344
--project ${{ matrix.project }}
338345
--toolchain ${{ matrix.toolchain }}
339346
--board ${{ matrix.board }}
@@ -373,6 +380,7 @@ jobs:
373380
run: >
374381
source env.sh nextpnr &&
375382
python3 exhaust.py
383+
--verbose
376384
--project ${{ matrix.project }}
377385
--toolchain ${{ matrix.toolchain }}
378386
--board ${{ matrix.board }}
@@ -412,6 +420,7 @@ jobs:
412420
run: >
413421
source env.sh nextpnr &&
414422
python3 exhaust.py
423+
--verbose
415424
--project ${{ matrix.project }}
416425
--toolchain ${{ matrix.toolchain }}
417426
--board ${{ matrix.board }}
@@ -451,6 +460,7 @@ jobs:
451460
run: >
452461
source env.sh nextpnr &&
453462
python3 exhaust.py
463+
--verbose
454464
--project ${{ matrix.project }}
455465
--toolchain ${{ matrix.toolchain }}
456466
--board ${{ matrix.board }}
@@ -493,6 +503,7 @@ jobs:
493503
run: >
494504
source env.sh nextpnr &&
495505
python3 exhaust.py
506+
--verbose
496507
--project ${{ matrix.project }}
497508
--toolchain ${{ matrix.toolchain }}
498509
--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)
@@ -545,8 +546,10 @@ def main():
545546
global logger
546547
logger = logging.getLogger('MyLogger')
547548
handler = logging.StreamHandler()
548-
formatter = logging.Formatter('%(levelname)s: %(message)s')
549-
handler.setFormatter(formatter)
549+
handler.setFormatter(
550+
logging.
551+
Formatter('[%(name)s | %(funcName)s] %(levelname)s: %(message)s')
552+
)
550553
logger.addHandler(handler)
551554
logger.setLevel(logging.DEBUG)
552555

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)