fix(interop.py): override instead of append to row[server]#375
fix(interop.py): override instead of append to row[server]#375marten-seemann merged 1 commit intoquic-interop:masterfrom
Conversation
Previously when calculating each cell of the _measurements_ result table,
instead of always setting a cell, a cell would be appended in case one already
existed. Appending a cell to another doesn't make sense in this context. In
addition this code also errors, given that on the first cell `row[server] +=`
results in a `KeyError`.
```
Traceback (most recent call last):
File "run.py", line 168, in <module>
sys.exit(main())
File "run.py", line 150, in main
return InteropRunner(
File "/home/runner/work/quic-go/quic-go/quic-interop-runner/interop.py", line 529, in run
self._print_results()
File "/home/runner/work/quic-go/quic-go/quic-interop-runner/interop.py", line 243, in _print_results
row[server] += "\n".join(results)
KeyError: 'quic-go-latest'
```
See e.g. https://github.com/quic-go/quic-go/actions/runs/8159188951/job/23046885072.
This commit fixes the above simply by setting the cell, not appending it for the
case where one already exists.
Bug introduced in quic-interop#355
|
I'm not sure I understand what's going on here. As far as I can see, this was not introduced in #355, was it? |
|
Before #355 it was: row += ["\n".join(results)]This adds to the After #355 it was: row[server] += "\n".join(results)This adds to the cell (i.e. Does that make sense @marten-seemann? |
|
Thanks for the detailed explanation! |
|
Something still seems broken: https://github.com/quic-interop/quic-interop-runner/actions/runs/8526238616/job/23355310162#step:17:31 |
|
Thank you @WesleyRosenblum for spotting this. Should be fixed with #380. |
Previously when calculating each cell of the measurements result table, instead of always setting a cell, a cell would be appended in case one already existed. Appending a cell to another doesn't make sense in this context. In addition this code also errors, given that on the first cell
row[server] +=results in aKeyError.See e.g. https://github.com/quic-go/quic-go/actions/runs/8159188951/job/23046885072.
This commit fixes the above simply by setting the cell, not appending it for the case where one already exists.
Bug introduced in #355