[GH-ISSUE #1811] actions/setup-python@v4 fails to download Python #880

Closed
opened 2026-03-01 21:47:07 +03:00 by kerem · 2 comments
Owner

Originally created by @jellybob on GitHub (May 17, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/1811

Bug report info

act version:            0.2.43
GOOS:                   darwin
GOARCH:                 arm64
NumCPU:                 8
Docker host:            DOCKER_HOST environment variable is unset/empty.
Sockets found:
	/var/run/docker.sock
	/Users/jon/.docker/run/docker.sock
Config files:           
	/Users/jon/.actrc:
		-P ubuntu-latest=catthehacker/ubuntu:full-latest
		-P ubuntu-22.04=catthehacker/ubuntu:full-22.04
		-P ubuntu-20.04=catthehacker/ubuntu:full-20.04
		-P ubuntu-18.04=catthehacker/ubuntu:full-18.04
		--container-architecture linux/amd64
Build info:
	Go version:            go1.19.6
	Module path:           github.com/nektos/act
	Main version:          (devel)
	Main path:             github.com/nektos/act
	Main checksum:         
	Build settings:
		-compiler:            gc
		-trimpath:            true
		CGO_ENABLED:          1
		GOARCH:               arm64
		GOOS:                 darwin
Docker Engine:
	Engine version:        dev
	Engine runtime:        runc
	Cgroup version:        2
	Cgroup driver:         cgroupfs
	Storage driver:        stargz
	Registry URI:          https://index.docker.io/v1/
	OS:                    Docker Desktop
	OS type:               linux
	OS version:            
	OS arch:               aarch64
	OS kernel:             5.15.49-linuxkit
	OS CPU:                6
	OS memory:             11963 MB
	Security options:
		name=seccomp,profile=builtin
		name=cgroupns

Command used with act

act --verbose -s GITHUB_TOKEN=ghp_REDACTED workflow_dispatch

Describe issue

When running the test case shown below setup-python fails to download the requested version of Python, raising an error that the temporary file does not exist. This appears to be coming from the tool-cache package in Github's Actions standard libraries, which unhelpfully swallows any exceptions raised during a download.

Setting python-version to 3.7 successfully completes on the full containers, having found Python 3.7.11 in the hosted tool cache. On the more limited containers that also fails. Both cases complete on an actual Github Actions run.

While I understand there is a more limited set of tools installed on the smaller containers it seems odd that using an action that explicitly goes and downloads the relevant tool for use should fail, I'd expect this to cause slightly slower initial runs instead.

https://github.com/jellybob/act-setup-python

Workflow content

name: Reproduce Bug
on:
  workflow_dispatch:

jobs:
  build-package:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/setup-python@v4
        with:
          python-version: 3.11

Relevant log output

DEBU[0000] Loading environment from /Users/jon/Code/napoleon/.env 
DEBU[0000] Loading action inputs from /Users/jon/Code/napoleon/.input 
DEBU[0000] Loading secrets from /Users/jon/Code/napoleon/.secrets 
DEBU[0000] Loading workflows from '/Users/jon/Code/napoleon/.github/workflows' 
DEBU[0000] Loading workflows recursively                
DEBU[0000] Conditional GET for notices etag=1598087e-164d-4cd9-843d-adab7f8b2a82 
DEBU[0000] Found workflow 'build.yml' in '/Users/jon/Code/napoleon/.github/workflows/build.yml' 
DEBU[0000] Found workflow 'release.yml' in '/Users/jon/Code/napoleon/.github/workflows/release.yml' 
DEBU[0000] Reading workflow '/Users/jon/Code/napoleon/.github/workflows/build.yml' 
DEBU[0000] Reading workflow '/Users/jon/Code/napoleon/.github/workflows/release.yml' 
DEBU[0000] Using first passed in arguments event for filtering: workflow_dispatch 
DEBU[0000] Preparing plan for a event: workflow_dispatch 
DEBU[0000] Using first passed in arguments event: workflow_dispatch 
DEBU[0000] Planning jobs for event: workflow_dispatch   
DEBU[0000] Loading revision from git directory          
DEBU[0000] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 
DEBU[0000] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602' 
DEBU[0000] using github ref: refs/heads/feature/actions-wheel-build 
DEBU[0000] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 
[Release/build-package] [DEBUG] evaluating expression 'success()'
[Release/build-package] [DEBUG] expression 'success()' evaluated to 'true'
[Release/build-package] 🚀  Start image=catthehacker/ubuntu:full-latest
[Release/build-package]   🐳  docker pull image=catthehacker/ubuntu:full-latest platform=linux/amd64 username= forcePull=true
[Release/build-package] [DEBUG]   🐳  docker pull catthehacker/ubuntu:full-latest
[Release/build-package] [DEBUG] pulling image 'docker.io/catthehacker/ubuntu:full-latest' (linux/amd64)
DEBU[0000] Saving notices etag=1598087e-164d-4cd9-843d-adab7f8b2a82 
DEBU[0000] No new notices                               
[Release/build-package] [DEBUG] Exists :: 598b616a8c7c
[Release/build-package] [DEBUG] Exists :: dd9e71f3b69d
[Release/build-package]   🐳  docker create image=catthehacker/ubuntu:full-latest platform=linux/amd64 entrypoint=["tail" "-f" "/dev/null"] cmd=[]
[Release/build-package] [DEBUG] Common container.Config ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:false AttachStderr:false ExposedPorts:map[] Tty:true OpenStdin:false StdinOnce:false Env:[RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=arm64 RUNNER_TEMP=/tmp LANG=C.UTF-8] Cmd:[] Healthcheck:<nil> ArgsEscaped:false Image:catthehacker/ubuntu:full-latest Volumes:map[] WorkingDir:/Users/jon/Code/napoleon Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]}
[Release/build-package] [DEBUG] Common container.HostConfig ==> &{Binds:[/var/run/docker.sock:/var/run/docker.sock] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:host PortBindings:map[] RestartPolicy:{Name: MaximumRetryCount:0} AutoRemove:false VolumeDriver: VolumesFrom:[] ConsoleSize:[0 0] CapAdd:[] CapDrop:[] CgroupnsMode: DNS:[] DNSOptions:[] DNSSearch:[] ExtraHosts:[] GroupAdd:[] IpcMode: Cgroup: Links:[] OomScoreAdj:0 PidMode: Privileged:false PublishAllPorts:false ReadonlyRootfs:false SecurityOpt:[] StorageOpt:map[] Tmpfs:map[] UTSMode: UsernsMode: ShmSize:0 Sysctls:map[] Runtime: Isolation: Resources:{CPUShares:0 Memory:0 NanoCPUs:0 CgroupParent: BlkioWeight:0 BlkioWeightDevice:[] BlkioDeviceReadBps:[] BlkioDeviceWriteBps:[] BlkioDeviceReadIOps:[] BlkioDeviceWriteIOps:[] CPUPeriod:0 CPUQuota:0 CPURealtimePeriod:0 CPURealtimeRuntime:0 CpusetCpus: CpusetMems: Devices:[] DeviceCgroupRules:[] DeviceRequests:[] KernelMemory:0 KernelMemoryTCP:0 MemoryReservation:0 MemorySwap:0 MemorySwappiness:<nil> OomKillDisable:<nil> PidsLimit:<nil> Ulimits:[] CPUCount:0 CPUPercent:0 IOMaximumIOps:0 IOMaximumBandwidth:0} Mounts:[{Type:volume Source:act-toolcache Target:/toolcache ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-Release-build-package-f21f7d99e3a3638ccc473d3d30eff83b1048ff2eaf9d25ce40cf3f144f55e517-env Target:/var/run/act ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-Release-build-package-f21f7d99e3a3638ccc473d3d30eff83b1048ff2eaf9d25ce40cf3f144f55e517 Target:/Users/jon/Code/napoleon ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>}] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>}
[Release/build-package] [DEBUG] Created container name=act-Release-build-package-f21f7d99e3a3638ccc473d3d30eff83b1048ff2eaf9d25ce40cf3f144f55e517 id=c4548e813224cad9e4f473e1fa669ec0bdc4b1e62986b9c280cf89af19141d80 from image catthehacker/ubuntu:full-latest (platform: linux/amd64)
[Release/build-package] [DEBUG] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=arm64 RUNNER_TEMP=/tmp LANG=C.UTF-8]
[Release/build-package]   🐳  docker run image=catthehacker/ubuntu:full-latest platform=linux/amd64 entrypoint=["tail" "-f" "/dev/null"] cmd=[]
[Release/build-package] [DEBUG] Starting container: c4548e813224cad9e4f473e1fa669ec0bdc4b1e62986b9c280cf89af19141d80
[Release/build-package] [DEBUG] Started container: c4548e813224cad9e4f473e1fa669ec0bdc4b1e62986b9c280cf89af19141d80
[Release/build-package] [DEBUG] Writing entry to tarball workflow/event.json len:2
[Release/build-package] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[Release/build-package] [DEBUG] Extracting content to '/var/run/act/'
[Release/build-package] [DEBUG] Loading revision from git directory
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602'
[Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] Loading revision from git directory
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602'
[Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package]   ☁  git clone 'https://github.com/actions/setup-python' # ref=v4
[Release/build-package] [DEBUG]   cloning https://github.com/actions/setup-python to /Users/jon/.cache/act/actions-setup-python@v4
[Release/build-package] [DEBUG] Unable to pull refs/heads/v4: worktree contains unstaged changes
[Release/build-package] [DEBUG] Cloned https://github.com/actions/setup-python to /Users/jon/.cache/act/actions-setup-python@v4
[Release/build-package] [DEBUG] Checked out v4
[Release/build-package] [DEBUG] Read action &{Setup Python GitHub Set up a specific version of Python and add the command-line tools to the PATH. map[allow-prereleases:{When 'true', a version range passed to 'python-version' input will match prerelease versions if no GA versions are found. Only 'x.y' version range is supported for CPython. false false} architecture:{The target architecture (x86, x64) of the Python or PyPy interpreter. false } cache:{Used to specify a package manager for caching in the default directory. Supported values: pip, pipenv, poetry. false } cache-dependency-path:{Used to specify the path to dependency files. Supports wildcards or a list of file names for caching multiple dependencies. false } check-latest:{Set this option if you want the action to check for the latest available version that satisfies the version spec. false false} python-version:{Version range or exact version of Python or PyPy to use, using SemVer's version range syntax. Reads from .python-version if unset. false } python-version-file:{File containing the Python version to use. Example: .python-version false } token:{The token used to authenticate when fetching Python distributions from https://github.com/actions/python-versions. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting. false ${{ github.server_url == 'https://github.com' && github.token || '' }}} update-environment:{Set this option if you want the action to update environment variables. false true}] map[cache-hit:{A boolean value to indicate a cache entry was found } python-path:{The absolute path to the Python or PyPy executable. } python-version:{The installed Python or PyPy version. Useful when given a version range as input. }] {node16 map[] dist/setup/index.js  always() dist/cache-save/index.js success()   [] []} {yellow code}} from 'Unknown'
[Release/build-package] [DEBUG] Loading revision from git directory
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602'
[Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] Loading revision from git directory
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602'
[Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] Loading revision from git directory
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602'
[Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] setupEnv => map[ACT:true CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:v4 GITHUB_ACTION_REPOSITORY:actions/setup-python GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_EVENT_NAME:workflow_dispatch GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:build-package GITHUB_REF:refs/heads/feature/actions-wheel-build GITHUB_REF_NAME:feature/actions-wheel-build GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:demandlogic/napoleon GITHUB_REPOSITORY_OWNER:demandlogic GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:33a8e8fd49eae57141d9c62c395feb2b92d7c602 GITHUB_TOKEN:*** GITHUB_WORKFLOW:Release GITHUB_WORKSPACE:/Users/jon/Code/napoleon INPUT_PYTHON-VERSION:3.11 ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[Release/build-package] [DEBUG] Loading revision from git directory
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602'
[Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] Loading revision from git directory
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602'
[Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] evaluating expression ''
[Release/build-package] [DEBUG] expression '' evaluated to 'true'
[Release/build-package] ⭐ Run Main actions/setup-python@v4
[Release/build-package] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0
[Release/build-package] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0
[Release/build-package] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0
[Release/build-package] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[Release/build-package] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0
[Release/build-package] [DEBUG] Extracting content to '/var/run/act'
[Release/build-package] [DEBUG] Loading revision from git directory
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602'
[Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] About to run action &{Setup Python GitHub Set up a specific version of Python and add the command-line tools to the PATH. map[allow-prereleases:{When 'true', a version range passed to 'python-version' input will match prerelease versions if no GA versions are found. Only 'x.y' version range is supported for CPython. false false} architecture:{The target architecture (x86, x64) of the Python or PyPy interpreter. false } cache:{Used to specify a package manager for caching in the default directory. Supported values: pip, pipenv, poetry. false } cache-dependency-path:{Used to specify the path to dependency files. Supports wildcards or a list of file names for caching multiple dependencies. false } check-latest:{Set this option if you want the action to check for the latest available version that satisfies the version spec. false false} python-version:{Version range or exact version of Python or PyPy to use, using SemVer's version range syntax. Reads from .python-version if unset. false } python-version-file:{File containing the Python version to use. Example: .python-version false } token:{The token used to authenticate when fetching Python distributions from https://github.com/actions/python-versions. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting. false ${{ github.server_url == 'https://github.com' && github.token || '' }}} update-environment:{Set this option if you want the action to update environment variables. false true}] map[cache-hit:{A boolean value to indicate a cache entry was found } python-path:{The absolute path to the Python or PyPy executable. } python-version:{The installed Python or PyPy version. Useful when given a version range as input. }] {node16 map[] dist/setup/index.js  always() dist/cache-save/index.js success()   [] []} {yellow code}}
[Release/build-package] [DEBUG] Loading revision from git directory
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602'
[Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] Loading revision from git directory
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602'
[Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] expression '${{ github.server_url == 'https://github.com' && github.token || '' }}' rewritten to 'format('{0}', github.server_url == 'https://github.com' && github.token || '')'
[Release/build-package] [DEBUG] evaluating expression 'format('{0}', github.server_url == 'https://github.com' && github.token || '')'
[Release/build-package] [DEBUG] expression 'format('{0}', github.server_url == 'https://github.com' && github.token || '')' evaluated to '%!t(string=)'
[Release/build-package] [DEBUG] type=remote-action actionDir=/Users/jon/.cache/act/actions-setup-python@v4 actionPath= workdir=/Users/jon/Code/napoleon actionCacheDir=/Users/jon/.cache/act actionName=actions-setup-python@v4 containerActionDir=/var/run/act/actions/actions-setup-python@v4
[Release/build-package] [DEBUG] Removing /Users/jon/.cache/act/actions-setup-python@v4/.gitignore before docker cp
[Release/build-package] [DEBUG] /var/run/act/actions/actions-setup-python@v4
[Release/build-package]   🐳  docker cp src=/Users/jon/.cache/act/actions-setup-python@v4/ dst=/var/run/act/actions/actions-setup-python@v4/
[Release/build-package] [DEBUG] Writing tarball /tmp/act4051562285 from /Users/jon/.cache/act/actions-setup-python@v4/
[Release/build-package] [DEBUG] Stripping prefix:/Users/jon/.cache/act/actions-setup-python@v4/ src:/Users/jon/.cache/act/actions-setup-python@v4/
[Release/build-package] [DEBUG] Extracting content from '/tmp/act4051562285' to '/var/run/act/actions/actions-setup-python@v4/'
[Release/build-package] [DEBUG] executing remote job container: [node /var/run/act/actions/actions-setup-python@v4/dist/setup/index.js]
[Release/build-package]   🐳  docker exec cmd=[node /var/run/act/actions/actions-setup-python@v4/dist/setup/index.js] user= workdir=
[Release/build-package] [DEBUG] Exec command '[node /var/run/act/actions/actions-setup-python@v4/dist/setup/index.js]'
[Release/build-package] [DEBUG] Working directory '/Users/jon/Code/napoleon'
[Release/build-package]   💬  ::debug::Python is expected to be installed into /opt/hostedtoolcache
[Release/build-package]   ❓  ::group::Installed versions
[Release/build-package]   💬  ::debug::Semantic version spec of 3.11 is 3.11
[Release/build-package]   💬  ::debug::isExplicit: 
[Release/build-package]   💬  ::debug::explicit? false
[Release/build-package]   💬  ::debug::isExplicit: 2.7.18
[Release/build-package]   💬  ::debug::explicit? true
[Release/build-package]   💬  ::debug::isExplicit: 3.5.10
[Release/build-package]   💬  ::debug::explicit? true
[Release/build-package]   💬  ::debug::isExplicit: 3.6.14
[Release/build-package]   💬  ::debug::explicit? true
[Release/build-package]   💬  ::debug::isExplicit: 3.7.11
[Release/build-package]   💬  ::debug::explicit? true
[Release/build-package]   💬  ::debug::isExplicit: 3.8.11
[Release/build-package]   💬  ::debug::explicit? true
[Release/build-package]   💬  ::debug::isExplicit: 3.9.6
[Release/build-package]   💬  ::debug::explicit? true
[Release/build-package]   💬  ::debug::evaluating 6 versions
[Release/build-package]   💬  ::debug::match not found
| Version 3.11 was not found in the local cache
[Release/build-package]   💬  ::debug::Getting manifest from actions/python-versions@main
[Release/build-package]   💬  ::debug::check 3.12.0-alpha.7 satisfies 3.11
[Release/build-package]   💬  ::debug::check 3.12.0-alpha.6 satisfies 3.11
[Release/build-package]   💬  ::debug::check 3.12.0-alpha.5 satisfies 3.11
[Release/build-package]   💬  ::debug::check 3.12.0-alpha.4 satisfies 3.11
[Release/build-package]   💬  ::debug::check 3.12.0-alpha.3 satisfies 3.11
[Release/build-package]   💬  ::debug::check 3.12.0-alpha.2 satisfies 3.11
[Release/build-package]   💬  ::debug::check 3.12.0-alpha.1 satisfies 3.11
[Release/build-package]   💬  ::debug::check 3.11.3 satisfies 3.11
[Release/build-package]   💬  ::debug::x64===x64 && darwin===linux
[Release/build-package]   💬  ::debug::x64===x64 && linux===linux
[Release/build-package]   💬  ::debug::matched 3.11.3
| Version 3.11 is available for downloading
| Download from "https://github.com/actions/python-versions/releases/download/3.11.3-4626642838/python-3.11.3-linux-20.04-x64.tar.gz"
[Release/build-package]   💬  ::debug::Downloading https://github.com/actions/python-versions/releases/download/3.11.3-4626642838/python-3.11.3-linux-20.04-x64.tar.gz
[Release/build-package]   💬  ::debug::Destination /tmp/5740d419-8089-41b9-ac76-5e7fc356ed99
[Release/build-package]   💬  ::debug::download failed
| ENOENT: no such file or directory, open '/tmp/5740d419-8089-41b9-ac76-5e7fc356ed99'
| Waiting 20 seconds before trying again
[Release/build-package]   💬  ::debug::download failed
| ENOENT: no such file or directory, open '/tmp/5740d419-8089-41b9-ac76-5e7fc356ed99'
| Waiting 20 seconds before trying again
^C[Release/build-package]   ❌  Failure - Main actions/setup-python@v4
[Release/build-package] Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.42/containers/c4548e813224cad9e4f473e1fa669ec0bdc4b1e62986b9c280cf89af19141d80/archive?path=%2Fvar%2Frun%2Fact%2Fworkflow%2Fpathcmd.txt": context canceled
[Release/build-package] [DEBUG] Loading revision from git directory
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602'
[Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] Loading revision from git directory
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602'
[Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] Loading revision from git directory
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602'
[Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] setupEnv => map[ACT:true CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:v4 GITHUB_ACTION_REPOSITORY:actions/setup-python GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:workflow_dispatch GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:build-package GITHUB_OUTPUT:/var/run/act/workflow/outputcmd.txt GITHUB_PATH:/var/run/act/workflow/pathcmd.txt GITHUB_REF:refs/heads/feature/actions-wheel-build GITHUB_REF_NAME:feature/actions-wheel-build GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:demandlogic/napoleon GITHUB_REPOSITORY_OWNER:demandlogic GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:33a8e8fd49eae57141d9c62c395feb2b92d7c602 GITHUB_STATE:/var/run/act/workflow/statecmd.txt GITHUB_STEP_SUMMARY:/var/run/act/workflow/SUMMARY.md GITHUB_TOKEN:*** GITHUB_WORKFLOW:Release GITHUB_WORKSPACE:/Users/jon/Code/napoleon INPUT_ALLOW-PRERELEASES:false INPUT_ARCHITECTURE: INPUT_CACHE: INPUT_CACHE-DEPENDENCY-PATH: INPUT_CHECK-LATEST:false INPUT_PYTHON-VERSION:3.11 INPUT_PYTHON-VERSION-FILE: INPUT_TOKEN: INPUT_UPDATE-ENVIRONMENT:true ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[Release/build-package] [DEBUG] Loading revision from git directory
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602'
[Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] Loading revision from git directory
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602'
[Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] evaluating expression 'success()'
[Release/build-package] [DEBUG] expression 'success()' evaluated to 'false'
[Release/build-package] [DEBUG] Skipping step 'actions/setup-python@v4' due to 'success()'
[Release/build-package] [DEBUG] Removed container: c4548e813224cad9e4f473e1fa669ec0bdc4b1e62986b9c280cf89af19141d80
[Release/build-package] [DEBUG]   🐳  docker volume rm act-Release-build-package-f21f7d99e3a3638ccc473d3d30eff83b1048ff2eaf9d25ce40cf3f144f55e517
[Release/build-package] [DEBUG]   🐳  docker volume rm act-Release-build-package-f21f7d99e3a3638ccc473d3d30eff83b1048ff2eaf9d25ce40cf3f144f55e517-env
[Release/build-package] 🏁  Job succeeded
[Release/build-package] [DEBUG] Loading revision from git directory
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
[Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602'
[Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build
[Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602
Error: context canceled

Additional information

No response

Originally created by @jellybob on GitHub (May 17, 2023). Original GitHub issue: https://github.com/nektos/act/issues/1811 ### Bug report info ```plain text act version: 0.2.43 GOOS: darwin GOARCH: arm64 NumCPU: 8 Docker host: DOCKER_HOST environment variable is unset/empty. Sockets found: /var/run/docker.sock /Users/jon/.docker/run/docker.sock Config files: /Users/jon/.actrc: -P ubuntu-latest=catthehacker/ubuntu:full-latest -P ubuntu-22.04=catthehacker/ubuntu:full-22.04 -P ubuntu-20.04=catthehacker/ubuntu:full-20.04 -P ubuntu-18.04=catthehacker/ubuntu:full-18.04 --container-architecture linux/amd64 Build info: Go version: go1.19.6 Module path: github.com/nektos/act Main version: (devel) Main path: github.com/nektos/act Main checksum: Build settings: -compiler: gc -trimpath: true CGO_ENABLED: 1 GOARCH: arm64 GOOS: darwin Docker Engine: Engine version: dev Engine runtime: runc Cgroup version: 2 Cgroup driver: cgroupfs Storage driver: stargz Registry URI: https://index.docker.io/v1/ OS: Docker Desktop OS type: linux OS version: OS arch: aarch64 OS kernel: 5.15.49-linuxkit OS CPU: 6 OS memory: 11963 MB Security options: name=seccomp,profile=builtin name=cgroupns ``` ### Command used with act ```sh act --verbose -s GITHUB_TOKEN=ghp_REDACTED workflow_dispatch ``` ### Describe issue When running the test case shown below setup-python fails to download the requested version of Python, raising an error that the temporary file does not exist. This appears to be coming from the tool-cache package in Github's Actions standard libraries, which unhelpfully swallows any exceptions raised during a download. Setting python-version to 3.7 successfully completes on the full containers, having found Python 3.7.11 in the hosted tool cache. On the more limited containers that also fails. Both cases complete on an actual Github Actions run. While I understand there is a more limited set of tools installed on the smaller containers it seems odd that using an action that explicitly goes and downloads the relevant tool for use should fail, I'd expect this to cause slightly slower initial runs instead. ### Link to GitHub repository https://github.com/jellybob/act-setup-python ### Workflow content ```yml name: Reproduce Bug on: workflow_dispatch: jobs: build-package: runs-on: ubuntu-latest steps: - uses: actions/setup-python@v4 with: python-version: 3.11 ``` ### Relevant log output ```sh DEBU[0000] Loading environment from /Users/jon/Code/napoleon/.env DEBU[0000] Loading action inputs from /Users/jon/Code/napoleon/.input DEBU[0000] Loading secrets from /Users/jon/Code/napoleon/.secrets DEBU[0000] Loading workflows from '/Users/jon/Code/napoleon/.github/workflows' DEBU[0000] Loading workflows recursively DEBU[0000] Conditional GET for notices etag=1598087e-164d-4cd9-843d-adab7f8b2a82 DEBU[0000] Found workflow 'build.yml' in '/Users/jon/Code/napoleon/.github/workflows/build.yml' DEBU[0000] Found workflow 'release.yml' in '/Users/jon/Code/napoleon/.github/workflows/release.yml' DEBU[0000] Reading workflow '/Users/jon/Code/napoleon/.github/workflows/build.yml' DEBU[0000] Reading workflow '/Users/jon/Code/napoleon/.github/workflows/release.yml' DEBU[0000] Using first passed in arguments event for filtering: workflow_dispatch DEBU[0000] Preparing plan for a event: workflow_dispatch DEBU[0000] Using first passed in arguments event: workflow_dispatch DEBU[0000] Planning jobs for event: workflow_dispatch DEBU[0000] Loading revision from git directory DEBU[0000] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 DEBU[0000] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602' DEBU[0000] using github ref: refs/heads/feature/actions-wheel-build DEBU[0000] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] evaluating expression 'success()' [Release/build-package] [DEBUG] expression 'success()' evaluated to 'true' [Release/build-package] 🚀 Start image=catthehacker/ubuntu:full-latest [Release/build-package] 🐳 docker pull image=catthehacker/ubuntu:full-latest platform=linux/amd64 username= forcePull=true [Release/build-package] [DEBUG] 🐳 docker pull catthehacker/ubuntu:full-latest [Release/build-package] [DEBUG] pulling image 'docker.io/catthehacker/ubuntu:full-latest' (linux/amd64) DEBU[0000] Saving notices etag=1598087e-164d-4cd9-843d-adab7f8b2a82 DEBU[0000] No new notices [Release/build-package] [DEBUG] Exists :: 598b616a8c7c [Release/build-package] [DEBUG] Exists :: dd9e71f3b69d [Release/build-package] 🐳 docker create image=catthehacker/ubuntu:full-latest platform=linux/amd64 entrypoint=["tail" "-f" "/dev/null"] cmd=[] [Release/build-package] [DEBUG] Common container.Config ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:false AttachStderr:false ExposedPorts:map[] Tty:true OpenStdin:false StdinOnce:false Env:[RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=arm64 RUNNER_TEMP=/tmp LANG=C.UTF-8] Cmd:[] Healthcheck:<nil> ArgsEscaped:false Image:catthehacker/ubuntu:full-latest Volumes:map[] WorkingDir:/Users/jon/Code/napoleon Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]} [Release/build-package] [DEBUG] Common container.HostConfig ==> &{Binds:[/var/run/docker.sock:/var/run/docker.sock] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:host PortBindings:map[] RestartPolicy:{Name: MaximumRetryCount:0} AutoRemove:false VolumeDriver: VolumesFrom:[] ConsoleSize:[0 0] CapAdd:[] CapDrop:[] CgroupnsMode: DNS:[] DNSOptions:[] DNSSearch:[] ExtraHosts:[] GroupAdd:[] IpcMode: Cgroup: Links:[] OomScoreAdj:0 PidMode: Privileged:false PublishAllPorts:false ReadonlyRootfs:false SecurityOpt:[] StorageOpt:map[] Tmpfs:map[] UTSMode: UsernsMode: ShmSize:0 Sysctls:map[] Runtime: Isolation: Resources:{CPUShares:0 Memory:0 NanoCPUs:0 CgroupParent: BlkioWeight:0 BlkioWeightDevice:[] BlkioDeviceReadBps:[] BlkioDeviceWriteBps:[] BlkioDeviceReadIOps:[] BlkioDeviceWriteIOps:[] CPUPeriod:0 CPUQuota:0 CPURealtimePeriod:0 CPURealtimeRuntime:0 CpusetCpus: CpusetMems: Devices:[] DeviceCgroupRules:[] DeviceRequests:[] KernelMemory:0 KernelMemoryTCP:0 MemoryReservation:0 MemorySwap:0 MemorySwappiness:<nil> OomKillDisable:<nil> PidsLimit:<nil> Ulimits:[] CPUCount:0 CPUPercent:0 IOMaximumIOps:0 IOMaximumBandwidth:0} Mounts:[{Type:volume Source:act-toolcache Target:/toolcache ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-Release-build-package-f21f7d99e3a3638ccc473d3d30eff83b1048ff2eaf9d25ce40cf3f144f55e517-env Target:/var/run/act ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-Release-build-package-f21f7d99e3a3638ccc473d3d30eff83b1048ff2eaf9d25ce40cf3f144f55e517 Target:/Users/jon/Code/napoleon ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>}] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>} [Release/build-package] [DEBUG] Created container name=act-Release-build-package-f21f7d99e3a3638ccc473d3d30eff83b1048ff2eaf9d25ce40cf3f144f55e517 id=c4548e813224cad9e4f473e1fa669ec0bdc4b1e62986b9c280cf89af19141d80 from image catthehacker/ubuntu:full-latest (platform: linux/amd64) [Release/build-package] [DEBUG] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=arm64 RUNNER_TEMP=/tmp LANG=C.UTF-8] [Release/build-package] 🐳 docker run image=catthehacker/ubuntu:full-latest platform=linux/amd64 entrypoint=["tail" "-f" "/dev/null"] cmd=[] [Release/build-package] [DEBUG] Starting container: c4548e813224cad9e4f473e1fa669ec0bdc4b1e62986b9c280cf89af19141d80 [Release/build-package] [DEBUG] Started container: c4548e813224cad9e4f473e1fa669ec0bdc4b1e62986b9c280cf89af19141d80 [Release/build-package] [DEBUG] Writing entry to tarball workflow/event.json len:2 [Release/build-package] [DEBUG] Writing entry to tarball workflow/envs.txt len:0 [Release/build-package] [DEBUG] Extracting content to '/var/run/act/' [Release/build-package] [DEBUG] Loading revision from git directory [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602' [Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] Loading revision from git directory [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602' [Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] ☁ git clone 'https://github.com/actions/setup-python' # ref=v4 [Release/build-package] [DEBUG] cloning https://github.com/actions/setup-python to /Users/jon/.cache/act/actions-setup-python@v4 [Release/build-package] [DEBUG] Unable to pull refs/heads/v4: worktree contains unstaged changes [Release/build-package] [DEBUG] Cloned https://github.com/actions/setup-python to /Users/jon/.cache/act/actions-setup-python@v4 [Release/build-package] [DEBUG] Checked out v4 [Release/build-package] [DEBUG] Read action &{Setup Python GitHub Set up a specific version of Python and add the command-line tools to the PATH. map[allow-prereleases:{When 'true', a version range passed to 'python-version' input will match prerelease versions if no GA versions are found. Only 'x.y' version range is supported for CPython. false false} architecture:{The target architecture (x86, x64) of the Python or PyPy interpreter. false } cache:{Used to specify a package manager for caching in the default directory. Supported values: pip, pipenv, poetry. false } cache-dependency-path:{Used to specify the path to dependency files. Supports wildcards or a list of file names for caching multiple dependencies. false } check-latest:{Set this option if you want the action to check for the latest available version that satisfies the version spec. false false} python-version:{Version range or exact version of Python or PyPy to use, using SemVer's version range syntax. Reads from .python-version if unset. false } python-version-file:{File containing the Python version to use. Example: .python-version false } token:{The token used to authenticate when fetching Python distributions from https://github.com/actions/python-versions. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting. false ${{ github.server_url == 'https://github.com' && github.token || '' }}} update-environment:{Set this option if you want the action to update environment variables. false true}] map[cache-hit:{A boolean value to indicate a cache entry was found } python-path:{The absolute path to the Python or PyPy executable. } python-version:{The installed Python or PyPy version. Useful when given a version range as input. }] {node16 map[] dist/setup/index.js always() dist/cache-save/index.js success() [] []} {yellow code}} from 'Unknown' [Release/build-package] [DEBUG] Loading revision from git directory [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602' [Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] Loading revision from git directory [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602' [Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] Loading revision from git directory [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602' [Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] setupEnv => map[ACT:true CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:v4 GITHUB_ACTION_REPOSITORY:actions/setup-python GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_EVENT_NAME:workflow_dispatch GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:build-package GITHUB_REF:refs/heads/feature/actions-wheel-build GITHUB_REF_NAME:feature/actions-wheel-build GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:demandlogic/napoleon GITHUB_REPOSITORY_OWNER:demandlogic GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:33a8e8fd49eae57141d9c62c395feb2b92d7c602 GITHUB_TOKEN:*** GITHUB_WORKFLOW:Release GITHUB_WORKSPACE:/Users/jon/Code/napoleon INPUT_PYTHON-VERSION:3.11 ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:] [Release/build-package] [DEBUG] Loading revision from git directory [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602' [Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] Loading revision from git directory [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602' [Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] evaluating expression '' [Release/build-package] [DEBUG] expression '' evaluated to 'true' [Release/build-package] ⭐ Run Main actions/setup-python@v4 [Release/build-package] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0 [Release/build-package] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0 [Release/build-package] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0 [Release/build-package] [DEBUG] Writing entry to tarball workflow/envs.txt len:0 [Release/build-package] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0 [Release/build-package] [DEBUG] Extracting content to '/var/run/act' [Release/build-package] [DEBUG] Loading revision from git directory [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602' [Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] About to run action &{Setup Python GitHub Set up a specific version of Python and add the command-line tools to the PATH. map[allow-prereleases:{When 'true', a version range passed to 'python-version' input will match prerelease versions if no GA versions are found. Only 'x.y' version range is supported for CPython. false false} architecture:{The target architecture (x86, x64) of the Python or PyPy interpreter. false } cache:{Used to specify a package manager for caching in the default directory. Supported values: pip, pipenv, poetry. false } cache-dependency-path:{Used to specify the path to dependency files. Supports wildcards or a list of file names for caching multiple dependencies. false } check-latest:{Set this option if you want the action to check for the latest available version that satisfies the version spec. false false} python-version:{Version range or exact version of Python or PyPy to use, using SemVer's version range syntax. Reads from .python-version if unset. false } python-version-file:{File containing the Python version to use. Example: .python-version false } token:{The token used to authenticate when fetching Python distributions from https://github.com/actions/python-versions. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting. false ${{ github.server_url == 'https://github.com' && github.token || '' }}} update-environment:{Set this option if you want the action to update environment variables. false true}] map[cache-hit:{A boolean value to indicate a cache entry was found } python-path:{The absolute path to the Python or PyPy executable. } python-version:{The installed Python or PyPy version. Useful when given a version range as input. }] {node16 map[] dist/setup/index.js always() dist/cache-save/index.js success() [] []} {yellow code}} [Release/build-package] [DEBUG] Loading revision from git directory [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602' [Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] Loading revision from git directory [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602' [Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] expression '${{ github.server_url == 'https://github.com' && github.token || '' }}' rewritten to 'format('{0}', github.server_url == 'https://github.com' && github.token || '')' [Release/build-package] [DEBUG] evaluating expression 'format('{0}', github.server_url == 'https://github.com' && github.token || '')' [Release/build-package] [DEBUG] expression 'format('{0}', github.server_url == 'https://github.com' && github.token || '')' evaluated to '%!t(string=)' [Release/build-package] [DEBUG] type=remote-action actionDir=/Users/jon/.cache/act/actions-setup-python@v4 actionPath= workdir=/Users/jon/Code/napoleon actionCacheDir=/Users/jon/.cache/act actionName=actions-setup-python@v4 containerActionDir=/var/run/act/actions/actions-setup-python@v4 [Release/build-package] [DEBUG] Removing /Users/jon/.cache/act/actions-setup-python@v4/.gitignore before docker cp [Release/build-package] [DEBUG] /var/run/act/actions/actions-setup-python@v4 [Release/build-package] 🐳 docker cp src=/Users/jon/.cache/act/actions-setup-python@v4/ dst=/var/run/act/actions/actions-setup-python@v4/ [Release/build-package] [DEBUG] Writing tarball /tmp/act4051562285 from /Users/jon/.cache/act/actions-setup-python@v4/ [Release/build-package] [DEBUG] Stripping prefix:/Users/jon/.cache/act/actions-setup-python@v4/ src:/Users/jon/.cache/act/actions-setup-python@v4/ [Release/build-package] [DEBUG] Extracting content from '/tmp/act4051562285' to '/var/run/act/actions/actions-setup-python@v4/' [Release/build-package] [DEBUG] executing remote job container: [node /var/run/act/actions/actions-setup-python@v4/dist/setup/index.js] [Release/build-package] 🐳 docker exec cmd=[node /var/run/act/actions/actions-setup-python@v4/dist/setup/index.js] user= workdir= [Release/build-package] [DEBUG] Exec command '[node /var/run/act/actions/actions-setup-python@v4/dist/setup/index.js]' [Release/build-package] [DEBUG] Working directory '/Users/jon/Code/napoleon' [Release/build-package] 💬 ::debug::Python is expected to be installed into /opt/hostedtoolcache [Release/build-package] ❓ ::group::Installed versions [Release/build-package] 💬 ::debug::Semantic version spec of 3.11 is 3.11 [Release/build-package] 💬 ::debug::isExplicit: [Release/build-package] 💬 ::debug::explicit? false [Release/build-package] 💬 ::debug::isExplicit: 2.7.18 [Release/build-package] 💬 ::debug::explicit? true [Release/build-package] 💬 ::debug::isExplicit: 3.5.10 [Release/build-package] 💬 ::debug::explicit? true [Release/build-package] 💬 ::debug::isExplicit: 3.6.14 [Release/build-package] 💬 ::debug::explicit? true [Release/build-package] 💬 ::debug::isExplicit: 3.7.11 [Release/build-package] 💬 ::debug::explicit? true [Release/build-package] 💬 ::debug::isExplicit: 3.8.11 [Release/build-package] 💬 ::debug::explicit? true [Release/build-package] 💬 ::debug::isExplicit: 3.9.6 [Release/build-package] 💬 ::debug::explicit? true [Release/build-package] 💬 ::debug::evaluating 6 versions [Release/build-package] 💬 ::debug::match not found | Version 3.11 was not found in the local cache [Release/build-package] 💬 ::debug::Getting manifest from actions/python-versions@main [Release/build-package] 💬 ::debug::check 3.12.0-alpha.7 satisfies 3.11 [Release/build-package] 💬 ::debug::check 3.12.0-alpha.6 satisfies 3.11 [Release/build-package] 💬 ::debug::check 3.12.0-alpha.5 satisfies 3.11 [Release/build-package] 💬 ::debug::check 3.12.0-alpha.4 satisfies 3.11 [Release/build-package] 💬 ::debug::check 3.12.0-alpha.3 satisfies 3.11 [Release/build-package] 💬 ::debug::check 3.12.0-alpha.2 satisfies 3.11 [Release/build-package] 💬 ::debug::check 3.12.0-alpha.1 satisfies 3.11 [Release/build-package] 💬 ::debug::check 3.11.3 satisfies 3.11 [Release/build-package] 💬 ::debug::x64===x64 && darwin===linux [Release/build-package] 💬 ::debug::x64===x64 && linux===linux [Release/build-package] 💬 ::debug::matched 3.11.3 | Version 3.11 is available for downloading | Download from "https://github.com/actions/python-versions/releases/download/3.11.3-4626642838/python-3.11.3-linux-20.04-x64.tar.gz" [Release/build-package] 💬 ::debug::Downloading https://github.com/actions/python-versions/releases/download/3.11.3-4626642838/python-3.11.3-linux-20.04-x64.tar.gz [Release/build-package] 💬 ::debug::Destination /tmp/5740d419-8089-41b9-ac76-5e7fc356ed99 [Release/build-package] 💬 ::debug::download failed | ENOENT: no such file or directory, open '/tmp/5740d419-8089-41b9-ac76-5e7fc356ed99' | Waiting 20 seconds before trying again [Release/build-package] 💬 ::debug::download failed | ENOENT: no such file or directory, open '/tmp/5740d419-8089-41b9-ac76-5e7fc356ed99' | Waiting 20 seconds before trying again ^C[Release/build-package] ❌ Failure - Main actions/setup-python@v4 [Release/build-package] Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.42/containers/c4548e813224cad9e4f473e1fa669ec0bdc4b1e62986b9c280cf89af19141d80/archive?path=%2Fvar%2Frun%2Fact%2Fworkflow%2Fpathcmd.txt": context canceled [Release/build-package] [DEBUG] Loading revision from git directory [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602' [Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] Loading revision from git directory [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602' [Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] Loading revision from git directory [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602' [Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] setupEnv => map[ACT:true CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:v4 GITHUB_ACTION_REPOSITORY:actions/setup-python GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:workflow_dispatch GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:build-package GITHUB_OUTPUT:/var/run/act/workflow/outputcmd.txt GITHUB_PATH:/var/run/act/workflow/pathcmd.txt GITHUB_REF:refs/heads/feature/actions-wheel-build GITHUB_REF_NAME:feature/actions-wheel-build GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:demandlogic/napoleon GITHUB_REPOSITORY_OWNER:demandlogic GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:33a8e8fd49eae57141d9c62c395feb2b92d7c602 GITHUB_STATE:/var/run/act/workflow/statecmd.txt GITHUB_STEP_SUMMARY:/var/run/act/workflow/SUMMARY.md GITHUB_TOKEN:*** GITHUB_WORKFLOW:Release GITHUB_WORKSPACE:/Users/jon/Code/napoleon INPUT_ALLOW-PRERELEASES:false INPUT_ARCHITECTURE: INPUT_CACHE: INPUT_CACHE-DEPENDENCY-PATH: INPUT_CHECK-LATEST:false INPUT_PYTHON-VERSION:3.11 INPUT_PYTHON-VERSION-FILE: INPUT_TOKEN: INPUT_UPDATE-ENVIRONMENT:true ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:] [Release/build-package] [DEBUG] Loading revision from git directory [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602' [Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] Loading revision from git directory [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602' [Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] evaluating expression 'success()' [Release/build-package] [DEBUG] expression 'success()' evaluated to 'false' [Release/build-package] [DEBUG] Skipping step 'actions/setup-python@v4' due to 'success()' [Release/build-package] [DEBUG] Removed container: c4548e813224cad9e4f473e1fa669ec0bdc4b1e62986b9c280cf89af19141d80 [Release/build-package] [DEBUG] 🐳 docker volume rm act-Release-build-package-f21f7d99e3a3638ccc473d3d30eff83b1048ff2eaf9d25ce40cf3f144f55e517 [Release/build-package] [DEBUG] 🐳 docker volume rm act-Release-build-package-f21f7d99e3a3638ccc473d3d30eff83b1048ff2eaf9d25ce40cf3f144f55e517-env [Release/build-package] 🏁 Job succeeded [Release/build-package] [DEBUG] Loading revision from git directory [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 [Release/build-package] [DEBUG] HEAD points to '33a8e8fd49eae57141d9c62c395feb2b92d7c602' [Release/build-package] [DEBUG] using github ref: refs/heads/feature/actions-wheel-build [Release/build-package] [DEBUG] Found revision: 33a8e8fd49eae57141d9c62c395feb2b92d7c602 Error: context canceled ``` ### Additional information _No response_
kerem 2026-03-01 21:47:07 +03:00
Author
Owner

@ravsii commented on GitHub (May 20, 2023):

Not a python-only issue. I'm experiencing the same with Go. Probably some other setup-x actions are affected as well.

image

act version:            0.2.45
GOOS:                   darwin
GOARCH:                 arm64
NumCPU:                 10
Docker host:            DOCKER_HOST environment variable is not set
Sockets found:
        /var/run/docker.sock
        $HOME/.docker/run/docker.sock
Config files:           
        /Users/alex/.actrc:
                -P ubuntu-latest=node:16-buster-slim
                -P -P ubuntu-22.04=node:16-bullseye-slim
                ubuntu-20.04=node:16-buster-slim
                -P ubuntu-18.04=node:16-buster-slim
Build info:
        Go version:            go1.20.3
        Module path:           command-line-arguments
        Main version:          
        Main path:             
        Main checksum:         
        Build settings:
                -buildmode:           exe
                -compiler:            gc
                -ldflags:             -X main.version=0.2.45
                CGO_ENABLED:          1
                CGO_CFLAGS:           
                CGO_CPPFLAGS:         
                CGO_CXXFLAGS:         
                CGO_LDFLAGS:          
                GOARCH:               arm64
                GOOS:                 darwin
Docker Engine:
        Engine version:        dev
        Engine runtime:        runc
        Cgroup version:        2
        Cgroup driver:         cgroupfs
        Storage driver:        stargz
        Registry URI:          https://index.docker.io/v1/
        OS:                    Docker Desktop
        OS type:               linux
        OS version:            
        OS arch:               aarch64
        OS kernel:             5.15.49-linuxkit
        OS CPU:                4
        OS memory:             3933 MB
        Security options:
                name=seccomp,profile=builtin
                name=cgroupns
<!-- gh-comment-id:1555923884 --> @ravsii commented on GitHub (May 20, 2023): Not a python-only issue. I'm experiencing the same with Go. Probably some other `setup-x` actions are affected as well. ![image](https://github.com/nektos/act/assets/5007271/8ade3eae-de4a-4681-ad89-20546fd47aa0) ``` act version: 0.2.45 GOOS: darwin GOARCH: arm64 NumCPU: 10 Docker host: DOCKER_HOST environment variable is not set Sockets found: /var/run/docker.sock $HOME/.docker/run/docker.sock Config files: /Users/alex/.actrc: -P ubuntu-latest=node:16-buster-slim -P -P ubuntu-22.04=node:16-bullseye-slim ubuntu-20.04=node:16-buster-slim -P ubuntu-18.04=node:16-buster-slim Build info: Go version: go1.20.3 Module path: command-line-arguments Main version: Main path: Main checksum: Build settings: -buildmode: exe -compiler: gc -ldflags: -X main.version=0.2.45 CGO_ENABLED: 1 CGO_CFLAGS: CGO_CPPFLAGS: CGO_CXXFLAGS: CGO_LDFLAGS: GOARCH: arm64 GOOS: darwin Docker Engine: Engine version: dev Engine runtime: runc Cgroup version: 2 Cgroup driver: cgroupfs Storage driver: stargz Registry URI: https://index.docker.io/v1/ OS: Docker Desktop OS type: linux OS version: OS arch: aarch64 OS kernel: 5.15.49-linuxkit OS CPU: 4 OS memory: 3933 MB Security options: name=seccomp,profile=builtin name=cgroupns ```
Author
Owner

@github-actions[bot] commented on GitHub (Nov 17, 2023):

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

<!-- gh-comment-id:1815526341 --> @github-actions[bot] commented on GitHub (Nov 17, 2023): Issue is stale and will be closed in 14 days unless there is new activity
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#880
No description provided.