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
{{ message }}
Repository navigation
Error on nav from IP pools to IP pool detail before utilization fetch completes #2107
Based on the trace, I'm seeing that the usePrefetchedApiQuery invariant is failing, which means the API call in the loader is failing.
When I look at the network log in the trace, that utilization call is freaking out.
This can't be due to MSW not being loaded yet or something, because we are successfully loading the IP pools list page and then clicking the link to got to IP pool detail, and it's only then we get this weird behavior.
My initial hunch is that it has something to do with the fact that we are requesting ipPoolUtilizationView for ip-pool-1 on the list view, then navigating super fast (before that request is done) to a page where we're making the same request as a prefetch in a loader. Somehow the fast unmount-remount of the same request is causing it to break.
It is relevant that we also see some flakiness in Chrome, even if it's more likely to pass. I wonder if that means it's reproducible locally sometimes.
Yep, got it. It's a real bug. By adding a 1s sleep to the API handler I was able to get it to repro locally 100% of the time, and I was able to repro on dogfood by clicking an IP pool row before the request has come back.
changed the title [-]E2E test flake on IP pools around utilization API call[/-][+]Error on nav from IP pools to IP pool detail before utilization fetch completes[/+]on Mar 28, 2024
Activity
david-crespo commentedon Mar 28, 2024
Yep, got it. It's a real bug. By adding a 1s sleep to the API handler I was able to get it to repro locally 100% of the time, and I was able to repro on dogfood by clicking an IP pool row before the request has come back.
[-]E2E test flake on IP pools around utilization API call[/-][+]Error on nav from IP pools to IP pool detail before utilization fetch completes[/+]