Skip to content

Git Clone failing when running same actions parallely. #1943

@sahithibanda01

Description

@sahithibanda01

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_

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions