analytics icon indicating copy to clipboard operation
analytics copied to clipboard

Try to make ingest lock timeout tests less flaky

Open zoldar opened this issue 1 year ago • 3 comments

Changes

Can't tell for sure as this test fail is hard to reproduce, but I suspect there might be situations where reaching session processing step in the first ingest takes longer than the sleep before spinning up the second ingest.

zoldar avatar Sep 26 '24 08:09 zoldar

@aerosol hmmm, I could track whether there's con_cache lock present with "eventually" in tight loop and only attempt the second ingest after that's satisfied. I'll see how feasible that is.

zoldar avatar Sep 26 '24 08:09 zoldar

doesn't have to be con_cache specifically, since we're preloading the module in test_helper now

aerosol avatar Sep 26 '24 08:09 aerosol

What I did to track it down previously:

  1. Run iex in MIX_ENV=test
  2. Set up flameon https://github.com/DockYard/flame_on/tree/main - looking at how @ruslandoga did it at https://github.com/ruslandoga/plausible/pull/301
  3. Run tests of interests from iex via Mix.Task.run

aerosol avatar Sep 26 '24 08:09 aerosol