Skip to content

Commit

Permalink
remove fpga log.tail from dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinThomazic committed Nov 4, 2024
1 parent 2cad95b commit ae0feea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,9 @@ fpga-build:
- source ./verif/sim/setup-env.sh
- mkdir -p artifacts/logs
- make fpga target=$TARGET &> artifacts/logs/logfile.log
- tail -20 artifacts/logs/logfile.log > artifacts/logs/logfile.log.tail
- mkdir -p artifacts/reports
- mv corev_apu/fpga/work-fpga/ariane_xilinx.bit artifacts/ariane_xilinx_$TARGET.bit
- python3 .gitlab-ci/scripts/report_fpga.py corev_apu/fpga/reports/ariane.utilization.rpt artifacts/logs/logfile.log.tail
- python3 .gitlab-ci/scripts/report_fpga.py corev_apu/fpga/reports/ariane.utilization.rpt

.regress_test:
stage: heavy tests
Expand Down
8 changes: 1 addition & 7 deletions .gitlab-ci/scripts/report_fpga.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
with open(str(sys.argv[1]), "r") as f:
log = f.read()

with open(str(sys.argv[2]), "r") as f:
outputlog = f.read()

pattern = re.compile(
"\|(?P<ind> +)(?P<Instance>[\w()\[\].]+) +\| +(?P<Module>[\w()\[\].]+) \| +(?P<TotalLUTs>\d+) \| +(?P<LogicLUTs>\d+) \| +(?P<LUTRAMs>\d+) \| +(?P<SRLs>\d+) \| +(?P<FFs>\d+) \| +(?P<RAMB36>\d+) \| +(?P<RAMB18>\d+) \| +(?P<DSP48Blocks>\d+) \|"
)
Expand Down Expand Up @@ -50,8 +47,5 @@
i["DSP48Blocks"] + " DSP48Blocks",
)

log_metric = rb.LogMetric("Last lines of logfile")
log_metric.values = outputlog.splitlines()

report.add_metric(metric, log_metric)
report.add_metric(metric)
report.dump()

0 comments on commit ae0feea

Please sign in to comment.