-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
kind/bugSomething isn't workingSomething isn't working
Description
Bug report info
act version: 0.2.82
GOOS: darwin
GOARCH: arm64
NumCPU: 14
Docker host: DOCKER_HOST environment variable is not set
Sockets found:
/var/run/docker.sock(broken)
Config files:
/Users/rbates8/Library/Application Support/act/actrc:
-P ubuntu-latest=catthehacker/ubuntu:act-latest
-P ubuntu-22.04=catthehacker/ubuntu:act-22.04
-P ubuntu-20.04=catthehacker/ubuntu:act-20.04
-P ubuntu-18.04=catthehacker/ubuntu:act-18.04
Build info:
Go version: go1.25.1
Module path: command-line-arguments
Main version:
Main path:
Main checksum:
Build settings:
-buildmode: exe
-compiler: gc
-ldflags: -X main.version=0.2.82
DefaultGODEBUG: containermaxprocs=0,decoratemappings=0,tlssha1=1,updatemaxprocs=0,x509sha256skid=0
CGO_ENABLED: 1
CGO_CFLAGS:
CGO_CPPFLAGS:
CGO_CXXFLAGS:
CGO_LDFLAGS:
GOARCH: arm64
GOOS: darwin
GOARM64: v8.0
Error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Command used with act
act -P ubuntu-latest=-self-hostedDescribe issue
Trying to run act to locally test CI workflows for a Python project on macOS without using Docker, getting the following error:
INFO[0000] Using docker host 'unix:///var/run/docker.sock', and daemon socket 'unix:///var/run/docker.sock'
WARN ⚠ You are using Apple M-series chip and you have not specified container architecture, you might encounter issues while running act. If so, try running it with '--container-architecture linux/amd64'. ⚠
[CI/Lint and Test] ⭐ Run Set up job
[CI/Lint and Test] ✅ Success - Set up job
[CI/Lint and Test] ☁ git clone 'https://github.com/actions/setup-python' # ref=v5
[CI/Lint and Test] Non-terminating error while running 'git clone': some refs were not updated
[CI/Lint and Test] ⭐ Run Main Checkout code
[CI/Lint and Test] ✅ Success - Main Checkout code [43.632208ms]
[CI/Lint and Test] ⭐ Run Main Set up Python
[CI/Lint and Test] ❓ ::group::Installed versions
| Version 3.11 was not found in the local cache
| (node:61590) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
| (Use `node --trace-deprecation ...` to show where the warning was created)
| Version 3.11 is available for downloading
| Download from "https://github.com/actions/python-versions/releases/download/3.11.9-9947079978/python-3.11.9-darwin-arm64.tar.gz"
| Extract downloaded archive
| [command]/usr/bin/tar xz -C /Users/rbates8/.cache/act/4ce2bb2b35fed336/tmp/66b40820-113a-49c9-96af-ffde5e31991d -f /Users/rbates8/.cache/act/4ce2bb2b35fed336/tmp/e69d092b-5948-4bbf-9188-9620d59f366f
| Execute installation script
| Check if Python hostedtoolcache folder exist...
| Creating Python hostedtoolcache folder...
[CI/Lint and Test] ❗ ::error::mkdir: /Users/runner: Permission denied
[CI/Lint and Test] ❗ ::error::The process '/opt/homebrew/bin/bash' failed with exit code 1
[CI/Lint and Test] ❌ Failure - Main Set up Python [1.442025958s]
[CI/Lint and Test] exit status 1
[CI/Lint and Test] ⭐ Run Complete job
[CI/Lint and Test] ✅ Success - Complete job
[CI/Lint and Test] 🏁 Job failed
Error: Job 'Lint and Test' failedHave tried --userns and setting other env vars, but it keeps trying to create a new home dir for user runner (or something under that).
Link to GitHub repository
No response
Workflow content
name: CI
on:
pull_request:
branches: [main, master]
push:
branches: [main, master]
jobs:
lint-and-test:
name: Lint and Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Install dependencies
run: |
export PATH="$HOME/.cargo/bin:$PATH"
uv sync --extra test
- name: Run ruff linting
run: |
export PATH="$HOME/.cargo/bin:$PATH"
uv run ruff check .
- name: Run ruff format check
run: |
export PATH="$HOME/.cargo/bin:$PATH"
uv run ruff format --check .
- name: Run tests with coverage
run: |
export PATH="$HOME/.cargo/bin:$PATH"
uv run pytest tests/ --cov --cov-report=term-missing
- name: Coverage Summary
run: |
export PATH="$HOME/.cargo/bin:$PATH"
echo "## Test Coverage Summary" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
uv run pytest tests/ --cov --cov-report=term-missing | tail -n 20 >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARYRelevant log output
https://gist.github.com/arpieb/85302a56ab58548980ed9162db018f92Additional information
Logfile exceeded space above, pasted into referenced gist
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't workingSomething isn't working