PolymerLabs / arcs

Arcs
BSD 3-Clause "New" or "Revised" License
58 stars 35 forks source link

WebShell Gifts test fails in headless mode #4197

Open Cypher1 opened 4 years ago

Cypher1 commented 4 years ago

Raul and I have spent some debugging the seemingly flaky gifts test for web shell.

As far as we know the test only fails when testing the gifts flow, with firebase enabled, in headless mode.

Attaching a debugger via DEBUG=true doesn't experience the hang.

We attached a debugger by adding --remote-debugging-port=9222to the chrome options for wdio and could then further inspect the long pause, which seems to be associated with the .get of the VolatileSingleton, possibly due to failing to ensure the backing store while in reference mode.

It seems possible that this may be a part of https://github.com/PolymerLabs/arcs/issues/4079 which also seems to manifest only when firebase is used.

sjmiles commented 4 years ago

I understand you are saying it's flaky, but it sounds like you got it to reproduce in some scenarios? I can try to help if I can reproduce the problem (same for #4079).

Cypher1 commented 4 years ago

@raulverag had it reproducing reliably. I haven't been able to see it reliably.

raulverag commented 4 years ago

I haven't seen it in several days now. The codebase has moved on. Sigh.