cli
cli copied to clipboard
Flaky integration tests fail when building the typescript API from swagger
Description
Integration tests sometime fail with the error text file busy when building the typescript API from swagger when building the app:
Error Trace: /home/runner/work/cli/cli/integration/chain/env.go:161
/home/runner/work/cli/cli/integration/chain/cache_test.go:75
Error: Received unexpected error:
exit status 1
Test: TestCliWithCaching
Messages: build
Logs:
Cosmos SDK's version is: stargate - v0.46.0
🛠️ Building proto...
cannot build app:
error while running command /tmp/sta3244188232 sta --module-name-index -1 -p /tmp/gen-js-openapi-module-spec1295667185/apidocs.swagger.json -o /tmp/integration245280091/cacheblog/vue/src/store/generated/cosmos/cosmos-sdk/cosmos.mint.v1beta1/module -n rest.ts: : fork/exec /tmp/sta3244188232: text file busy
This issue is related to #2657 so changing the javascript generator to use a single nodetime binary might fix the flaky tests.