Skip to content

← All questions

All 4 user(s) with role "standard" are leased — passes locally, four failures in CI

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

Suite is green on my machine and fails in CI, and the difference is the worker count. Local:

bash
sdods run -p demo-shop -e staging -l ui -t @regression -w 4

CI runs the same thing with -w 8. Four scenarios pass, four sit there for what looks like half a minute and then fail with:

text
USER_POOL_EXHAUSTED: All 4 user(s) with role "standard" are leased.

There are four standard accounts in data/staging/users.csv. I assumed a lease was per scenario, so eight workers would just take turns — a scenario takes six seconds, there is plenty of time. It clearly does not work like that. What is the actual unit?

4 answers

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related