Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git Clone failing when running same actions parallely. #1943

Closed
sahithibanda01 opened this issue Aug 2, 2023 · 5 comments
Closed

Git Clone failing when running same actions parallely. #1943

sahithibanda01 opened this issue Aug 2, 2023 · 5 comments
Labels
kind/bug Something isn't working stale

Comments

@sahithibanda01
Copy link

Bug report info

act version:            0.2.49
GOOS:                   linux
GOARCH:                 amd64
NumCPU:                 10
Docker host:            DOCKER_HOST environment variable is not set
Sockets found:
	/var/run/docker.sock
	/var/run/podman/podman.sock
Config files:           
Build info:
	Go version:            go1.20.6
	Module path:           github.com/nektos/act
	Main version:          (devel)
	Main path:             github.com/nektos/act
	Main checksum:         
	Build settings:
		-buildmode:           exe
		-compiler:            gc
		-ldflags:             -s -w -X main.version=0.2.49 -X main.commit=d5d854854651c151ecd914bb6e2e370e0057929a -X main.date=2023-08-01T02:21:56Z -X main.builtBy=goreleaser
		CGO_ENABLED:          0
		GOARCH:               amd64
		GOOS:                 linux
		GOAMD64:              v1
		vcs:                  git
		vcs.revision:         d5d854854651c151ecd914bb6e2e370e0057929a
		vcs.time:             2023-08-01T02:21:38Z
		vcs.modified:         false
Docker Engine:
	Engine version:        20.10.18
	Engine runtime:        runc
	Cgroup version:        2
	Cgroup driver:         systemd
	Storage driver:        overlay2
	Registry URI:          https://index.docker.io/v1/
	OS:                    Ubuntu 22.04.1 LTS
	OS type:               linux
	OS version:            22.04
	OS arch:               x86_64
	OS kernel:             5.10.51
	OS CPU:                10
	OS memory:             26070 MB
	Security options:
		name=seccomp,profile=default
		name=cgroupns

Command used with act

act -W workflow.yml -P -self-hosted=-self-hosted -b --detect-event

Describe issue

We are trying to run same github actions in parallel and it is intermitently failing while doing the git clone.
Action name: actions/hello-world-javascript-action@v1.1

act -W worflow.yml -P -self-hosted=-self-hosted -b --detect-event
☁  git clone 'https://github.com/actions/hello-world-javascript-action' # ref=v1.1
Unable to clone https://github.com/actions/hello-world-javascript-action refs/heads/v1.1: already up-to-date
Job succeeded
Error: already up-to-date

Link to GitHub repository

https://github.com/actions/hello-world-javascript-action

Workflow content

name: github-action
"on": custom
jobs:
  action:
    name: action
    runs-on: -self-hosted
    steps:
    - id: stepId
      uses: actions/hello-world-javascript-action@v1.1
      with:
        who-to-greet: hello-world

Relevant log output

act -W worflow.yml -P -self-hosted=-self-hosted -b --detect-event
☁  git clone 'https://github.com/actions/hello-world-javascript-action' # ref=v1.1
Unable to clone https://github.com/actions/hello-world-javascript-action refs/heads/v1.1: already up-to-date
Job succeeded
Error: already up-to-date


### Additional information

_No response_
@sahithibanda01 sahithibanda01 added the kind/bug Something isn't working label Aug 2, 2023
@raghavharness
Copy link

Sometimes we also get this error when running any github action parallely.

Error: empty git-upload-pack given

@ChristopherHX
Copy link
Contributor

I wanted to address this in #1913 and followups. To make downloading actions thread safe.

One big problem is getting things merged step by step and getting reviews. Nothing I can do as a single maintainer, my PR's require two approvals from other maintainers however most maintainer disappeared recently and only cplee (owner) can merge anything.

Copy link
Contributor

Issue is stale and will be closed in 14 days unless there is new activity

@github-actions github-actions bot added the stale label Jan 30, 2024
@ChristopherHX
Copy link
Contributor

Please confirm if the next act release fixes the issue using the feature flag --use-new-action-cache

Note this flag enables a complete rewrite how actions are cloned

I need feedback to know when it's time to make it the new default.

act -W workflow.yml -P -self-hosted=-self-hosted -b --detect-event --use-new-action-cache

@github-actions github-actions bot removed the stale label Jan 31, 2024
Copy link
Contributor

Issue is stale and will be closed in 14 days unless there is new activity

@github-actions github-actions bot added the stale label Jul 29, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

3 participants