Open jeremymeng opened 1 year ago
Maybe just check process list before spawning? Assuming test-proxy can serve multiple packages concurrently. @timovv @HarshaNalluru
Should be able to support multiple packages concurrently with one single run of test proxy. I will take a look and reach out to you.
I have app-config(right) and storage-blob(left) packages running tests in playback in parallel, and I do not repro the issue.
Branch: jeremymeng/azure-sdk-for-js at engsys/mocha-v10 (github.com)
we already check whether test-proxy is active or not by making a request to it. This could be a race condition when the tool is starting but not ready yet, another process tries to start too
Interesting, will investigate more.
Another problem: even if we could detect that other package's test script started test proxy, the other package's test could end and test proxy stopped, thus causing failure. It feels that we need some way to ref count clients and stop server only when there's no active clients but this could make the test proxy to appear "hanging"? Another alternative is to start multiple instance of server each with its own unique port?
Hit this error while exploring mocha upgrade.
To repro: I have a WIP branch here https://github.com/jeremymeng/azure-sdk-for-js/tree/engsys/mocha-v10. just need to
rush update, rush build, rush unit-test:node
Alternatively, maybe manually running playback tests for two packages at the same time