You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the tests locally with Act logs enabled (npm test:log) or via CI with a test-log label produces the following error in each log:
Error: failed to create container: 'Error response from daemon: Conflict. The container name "/act-missing-tests-run-41bc940be36e9046f8a3ed6448ae3ac0c37028f6abdd9ac31aa6a5627057d413" is already in use by container "d65e7aa1df28f28f6fb8767d2ff3d19c6e15899042c72339ffa024b2f64fc214". You have to remove (or rename) that container to be able to reuse that name.'
Error: Error response from daemon: get act-label-run-97d76feb368efb012d87df280240108acf3ab06e83c8882e7b025663904f7d1c-env: no such volume
However, the tests do run locally, but occasionally fail in CI.
Run npm run test:e2e, some tests may fail, but inspect the generated *.log files in the root, no errors reported
Run npm run test:e2e again, inspect logs, contain the following error:
Error: Error response from daemon: remove act-Single-PR-build-3ea99b0953d2b30d056d7b735e2094c436739407dcb921edf2d371074426038c-env: volume is in use - [e172365745f3e221035fcdfa2751c53d9a283ecafba6913360d4201cccc7013f]
It appears Act does not stop running Docker containers after each execution, it isn't clear if this is expected behaviour. One option may be to run the Docker CLI at the end of each test to remove running Act containers and wait until the operation is complete before executing the next test sequentially. However, part of this issue would be to determine why this should be required or the alternative options available. The Act tests could be removed, but they do run locally in the short term and this is an alternative to no automated tests or refactoring to a JS/TS action with unit tests.
The text was updated successfully, but these errors were encountered:
npm test:log
) or via CI with atest-log
label produces the following error in each log:However, the tests do run locally, but occasionally fail in CI.
Similar errors also occur in the official sample at https://github.com/kiegroup/github-action-build-chain linked from the act-js readme at https://github.com/kiegroup/act-js. Steps to reproduce:
npm i
export ACT_LOG=true
npm run test:e2e
, some tests may fail, but inspect the generated*.log
files in the root, no errors reportednpm run test:e2e
again, inspect logs, contain the following error:It appears Act does not stop running Docker containers after each execution, it isn't clear if this is expected behaviour. One option may be to run the Docker CLI at the end of each test to remove running Act containers and wait until the operation is complete before executing the next test sequentially. However, part of this issue would be to determine why this should be required or the alternative options available. The Act tests could be removed, but they do run locally in the short term and this is an alternative to no automated tests or refactoring to a JS/TS action with unit tests.
The text was updated successfully, but these errors were encountered: