mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #2194] Slow running with timeouts #1036
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#1036
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fabiobsantosprogrow on GitHub (Feb 1, 2024).
Original GitHub issue: https://github.com/nektos/act/issues/2194
Bug report info
Command used with act
Describe issue
Slow running pipeline...
Sometimes getting timeout erros like this: Error: Get "https://github.com/actions/setup-node/info/refs?service=git-upload-pack": dial tcp 140.82.121.3:443: i/o timeout
Kind regards
Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
No response
@ChristopherHX commented on GitHub (Feb 1, 2024):
The current default old action cache does a full clone, while it isn't required. And is sometimes ultra slow.
Note: The following requires you to update act v0.2.58.
@fabiobsantosprogrow Can you please try
act -j integration_test_stage -W .github/workflows/ci-pipeline.yml --use-new-action-cacheto see if it still timeouts frequently. (Download less data from git)Alternatively the offline mode could help you by stop fetching updates if you just want to test with the current version of all actions and images
act -j integration_test_stage -W .github/workflows/ci-pipeline.yml --action-offline-mode@fabiobsantosprogrow commented on GitHub (Feb 2, 2024):
I upgrade to act version 0.2.59.
Using the option --use-new-action-cache I'm getting this error:
INFO[0000] Start server on http://10.33.2.172:34567
[ci-pipeline/Commit Stage] 🚀 Start image=catthehacker/ubuntu:full-latest
INFO[0000] Parallel tasks (0) below minimum, setting to 1
[ci-pipeline/Commit Stage] 🐳 docker pull image=catthehacker/ubuntu:full-latest platform= username= forcePull=false
INFO[0000] Parallel tasks (0) below minimum, setting to 1
[ci-pipeline/Commit Stage] 🐳 docker create image=catthehacker/ubuntu:full-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[ci-pipeline/Commit Stage] 🐳 docker run image=catthehacker/ubuntu:full-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[ci-pipeline/Commit Stage] 🐳 docker exec cmd=[chown -R 1001:127 /home/progrow/GitRepositories/DevOps/ETLCItest] user=0 workdir=
[ci-pipeline/Commit Stage] 🧪 Matrix: map[node-version:20.x]
[ci-pipeline/Commit Stage] ⭐ Run Main actions/checkout@v3
[ci-pipeline/Commit Stage] 🐳 docker cp src=/home/progrow/GitRepositories/DevOps/ETLCItest/. dst=/home/progrow/GitRepositories/DevOps/ETLCItest
[ci-pipeline/Commit Stage] 🐳 docker exec cmd=[chown -R 1001:127 /home/progrow/GitRepositories/DevOps/ETLCItest] user=0 workdir=
[ci-pipeline/Commit Stage] ✅ Success - Main actions/checkout@v3
[ci-pipeline/Commit Stage] ⭐ Run Main Use Node.js 20.x
[ci-pipeline/Commit Stage] 🐳 docker exec cmd=[chown -R 1001:127 /var/run/act/actions/actions-setup-node@v3/] user=0 workdir=
[ci-pipeline/Commit Stage] 🐳 docker exec cmd=[node /var/run/act/actions/actions-setup-node@v3/dist/setup/index.js] user= workdir=
| node:internal/modules/cjs/loader:1137
| throw err;
| ^
|
| Error: Cannot find module '/var/run/act/actions/actions-setup-node@v3/dist/setup/index.js'
| at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
| at Module._load (node:internal/modules/cjs/loader:975:27)
| at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
| at node:internal/main/run_main_module:28:49 {
| code: 'MODULE_NOT_FOUND',
| requireStack: []
| }
|
| Node.js v18.19.0
[ci-pipeline/Commit Stage] ❌ Failure - Main Use Node.js 20.x
[ci-pipeline/Commit Stage] exitcode '1': failure
[ci-pipeline/Commit Stage] 🏁 Job failed
Error: Job 'Commit Stage' failed
progrow@progrow-IdeaPad-Creator-5-15IMH05:~/GitRepositories/DevOps/ETLCItest$ act -j integration_test_stage -W .github/workflows/ci-pipeline.yml
INFO[0000] Start server on http://10.33.2.172:34567
[ci-pipeline/Commit Stage] 🚀 Start image=catthehacker/ubuntu:full-latest
INFO[0000] Parallel tasks (0) below minimum, setting to 1
[ci-pipeline/Commit Stage] 🐳 docker pull image=catthehacker/ubuntu:full-latest platform= username= forcePull=false
INFO[0000] Parallel tasks (0) below minimum, setting to 1
[ci-pipeline/Commit Stage] 🐳 docker create image=catthehacker/ubuntu:full-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[ci-pipeline/Commit Stage] 🐳 docker run image=catthehacker/ubuntu:full-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[ci-pipeline/Commit Stage] 🐳 docker exec cmd=[chown -R 1001:127 /home/progrow/GitRepositories/DevOps/ETLCItest] user=0 workdir=
[ci-pipeline/Commit Stage] 🧪 Matrix: map[node-version:20.x]
[ci-pipeline/Commit Stage] ⭐ Run Main actions/checkout@v3
[ci-pipeline/Commit Stage] 🐳 docker cp src=/home/progrow/GitRepositories/DevOps/ETLCItest/. dst=/home/progrow/GitRepositories/DevOps/ETLCItest
[ci-pipeline/Commit Stage] 🐳 docker exec cmd=[chown -R 1001:127 /home/progrow/GitRepositories/DevOps/ETLCItest] user=0 workdir=
[ci-pipeline/Commit Stage] ✅ Success - Main actions/checkout@v3
[ci-pipeline/Commit Stage] ⭐ Run Main Use Node.js 20.x
[ci-pipeline/Commit Stage] 🐳 docker exec cmd=[chown -R 1001:127 /var/run/act/actions/actions-setup-node@v3/] user=0 workdir=
[ci-pipeline/Commit Stage] 🐳 docker exec cmd=[node /var/run/act/actions/actions-setup-node@v3/dist/setup/index.js] user= workdir=
| node:internal/modules/cjs/loader:1137
| throw err;
| ^
|
| Error: Cannot find module '/var/run/act/actions/actions-setup-node@v3/dist/setup/index.js'
| at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
| at Module._load (node:internal/modules/cjs/loader:975:27)
| at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
| at node:internal/main/run_main_module:28:49 {
| code: 'MODULE_NOT_FOUND',
| requireStack: []
| }
|
| Node.js v18.19.0
[ci-pipeline/Commit Stage] ❌ Failure - Main Use Node.js 20.x
[ci-pipeline/Commit Stage] exitcode '1': failure
[ci-pipeline/Commit Stage] 🏁 Job failed
Error: Job 'Commit Stage' failed
Using the option --action-offline-mode the job succeeded without timeout.
I try second time with --use-new-action-cache after running without the two options and get the same error.
If this option not works I will use the --action-offline-mode to increase speed and reduce timeouts.
Other question is about this message at the start of the job:
INFO[0000] Parallel tasks (0) below minimum, setting to 1
Changing the value of this parameter will increase the performance?
@ChristopherHX commented on GitHub (Feb 2, 2024):
I forget that full images use a non root user, I have already noticed that bug https://github.com/nektos/act/issues/2183.
Yes keep using
--action-offline-modefor now, the fastest possible way to execute act.If you need that actions/images get updated, just skip using the offline mode once in a while.
PS:
create a
.actrcin your cwd with contentThen you can skip that flag, while running act and it will be applied automatically
@github-actions[bot] commented on GitHub (Aug 1, 2024):
Issue is stale and will be closed in 14 days unless there is new activity