You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not having this problem locally. I wonder if what's going on is that port 12346 is used by the test suite and the server is running tests at the same time as the http2 benchmark. This would seem to be borne out by the fact that it fails with the issue at different times in the test suite. Another possibility is that the benchmark isn't waiting for the previous server to fully close before opening the next one.
I was able to replicate this locally. It just took much much longer. And I wasn't doing anything else on the computer, so it's something within the benchmark itself apparently and not an interaction with a test suite. Maybe _http-benchmarkers.js closes the server somewhere but doesn't wait for a callback.
I think I see the bug in the benchmarks themselves. They call close() but don't wait for the callback, so the next benchmark can start too soon. I think the problem took longer to happen locally for me because it is probably more likely to happen on a fast machine than a slow one and the CI machine is probably very fast.
I'll open a PR to fix this by using port 0 for the benchmarks so that we fix this issue without shutdown time becoming part of the benchmark measurement.
Activity
Trott commentedon Jan 10, 2021
Not having this problem locally. I wonder if what's going on is that port 12346 is used by the test suite and the server is running tests at the same time as the http2 benchmark. This would seem to be borne out by the fact that it fails with the issue at different times in the test suite. Another possibility is that the benchmark isn't waiting for the previous server to fully close before opening the next one.
Trott commentedon Jan 10, 2021
I was able to replicate this locally. It just took much much longer. And I wasn't doing anything else on the computer, so it's something within the benchmark itself apparently and not an interaction with a test suite. Maybe
_http-benchmarkers.jscloses the server somewhere but doesn't wait for a callback.Trott commentedon Jan 10, 2021
I think I see the bug in the benchmarks themselves. They call
close()but don't wait for the callback, so the next benchmark can start too soon. I think the problem took longer to happen locally for me because it is probably more likely to happen on a fast machine than a slow one and the CI machine is probably very fast.I'll open a PR to fix this by using port 0 for the benchmarks so that we fix this issue without shutdown time becoming part of the benchmark measurement.
Trott commentedon Jan 10, 2021
Proposed fix is in #36871
benchmark: fix http2 benchmarks
benchmark: fix http2 benchmarks