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

Running act under Windows leads to windows-style paths being passed to actions (potentially breaking them) #2645

Open
edler-san opened this issue Feb 4, 2025 · 2 comments
Labels
kind/bug Something isn't working

Comments

@edler-san
Copy link

edler-san commented Feb 4, 2025

Bug report info

act version:            0.2.72
GOOS:                   windows
GOARCH:                 amd64
NumCPU:                 16
Docker host:            DOCKER_HOST environment variable is not set
Sockets found:
        \\.\pipe\docker_engine(broken)
Config files:
        C:\Users\user\AppData\Local\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
        C:\Users\user\.actrc:
                --artifact-server-path /c/Users/user/.act
Build info:
        Go version:            go1.23.5
        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.72 -X main.commit=be1b6ee581beb205736f837ae4fd3a43f62bc6e6 -X main.date=2025-02-01T02:27:06Z -X main.builtBy=goreleaser
                CGO_ENABLED:          0
                GOARCH:               amd64
                GOOS:                 windows
                GOAMD64:              v1
                vcs:                  git
                vcs.revision:         be1b6ee581beb205736f837ae4fd3a43f62bc6e6
                vcs.time:             2025-02-01T02:26:50Z
                vcs.modified:         false
Docker Engine:
        Engine version:        27.4.0
        Engine runtime:        runc
        Cgroup version:        1
        Cgroup driver:         cgroupfs
        Storage driver:        overlayfs
        Registry URI:          https://index.docker.io/v1/
        OS:                    Docker Desktop
        OS type:               linux
        OS version:
        OS arch:               x86_64
        OS kernel:             5.15.167.4-microsoft-standard-WSL2
        OS CPU:                12
        OS memory:             20005 MB
        Security options:
                name=seccomp,profile=unconfined

Command used with act

act

Describe issue

Running the above workflow in Windows breaks in the terminal, PowerShell as well as Git Bash but works under a proper WSL2 Ubuntu bash.
My suspicion is that instead of the path that is intended to be called a "mangled" path is passed - since it uses whatever Windows returns and adds a non properly translated part to it. src=C:\Users\user\.cache\act/browser-actions-setup-chrome@latest/ would end up as C:\Users\user\.cache\actbrowser-actions-setup-chrome@latest instead.

Link to GitHub repository

No response

Workflow content

name: Validation
on:
  push:
  workflow_dispatch:
jobs:
  unit-tests:
    runs-on: ubuntu-latest
    steps:
      - uses: nanasess/setup-chromedriver@v2

Relevant log output

C:\Users\user\Documents\GitHub\start>C:\Users\user\Downloads\act_Windows_x86_64\act -v
time="2025-02-04T12:29:48+01:00" level=debug msg="Handling container host and socket"
time="2025-02-04T12:29:48+01:00" level=debug msg="Conditional GET for notices etag=65a072c5-08b0-4baa-bd39-7a490cb633c1"
time="2025-02-04T12:29:48+01:00" level=debug msg="Defaulting container socket to DOCKER_HOST"
time="2025-02-04T12:29:48+01:00" level=info msg="Using docker host 'npipe:////./pipe/docker_engine', and daemon socket 'npipe:////./pipe/docker_engine'"
time="2025-02-04T12:29:48+01:00" level=debug msg="Loading environment from C:\\Users\\user\\Documents\\GitHub\\start\\.env"
time="2025-02-04T12:29:48+01:00" level=debug msg="Loading action inputs from C:\\Users\\user\\Documents\\GitHub\\start\\.input"
time="2025-02-04T12:29:48+01:00" level=debug msg="Loading secrets from C:\\Users\\user\\Documents\\GitHub\\start\\.secrets"
time="2025-02-04T12:29:48+01:00" level=debug msg="Loading vars from C:\\Users\\user\\Documents\\GitHub\\start\\.vars"
time="2025-02-04T12:29:48+01:00" level=debug msg="Evaluated matrix inclusions: map[]"
time="2025-02-04T12:29:48+01:00" level=debug msg="Loading workflows from 'C:\\Users\\user\\Documents\\GitHub\\start\\.github\\workflows'"
time="2025-02-04T12:29:48+01:00" level=debug msg="Loading workflows recursively"
time="2025-02-04T12:29:48+01:00" level=debug msg="Found workflow 'integration.yml' in 'C:\\Users\\user\\Documents\\GitHub\\start\\.github\\workflows\\integration.yml'"
time="2025-02-04T12:29:48+01:00" level=debug msg="Found workflow 'validation.yml' in 'C:\\Users\\user\\Documents\\GitHub\\start\\.github\\workflows\\validation.yml'"
time="2025-02-04T12:29:48+01:00" level=debug msg="Reading workflow 'C:\\Users\\user\\Documents\\GitHub\\start\\.github\\workflows\\integration.yml'"
time="2025-02-04T12:29:48+01:00" level=debug msg="Reading workflow 'C:\\Users\\user\\Documents\\GitHub\\start\\.github\\workflows\\validation.yml'"
time="2025-02-04T12:29:48+01:00" level=debug msg="Preparing plan with all jobs"
time="2025-02-04T12:29:48+01:00" level=debug msg="Using default workflow event: push"
time="2025-02-04T12:29:48+01:00" level=debug msg="Planning jobs for event: push"
time="2025-02-04T12:29:48+01:00" level=debug msg="Artifacts base path '/c/Users/user/.act'"
time="2025-02-04T12:29:48+01:00" level=info msg="Start server on http://192.168.178.32:34567"
time="2025-02-04T12:29:48+01:00" level=debug msg="gc: 2025-02-04 12:29:48.5076385 +0100 CET m=+0.058628101" module=artifactcache
time="2025-02-04T12:29:48+01:00" level=debug msg="Plan Stages: [0xc000009ef0]"
time="2025-02-04T12:29:48+01:00" level=debug msg="Stages Runs: [unit-tests]"
time="2025-02-04T12:29:48+01:00" level=debug msg="Job.Name: unit-tests"
time="2025-02-04T12:29:48+01:00" level=debug msg="Job.RawNeeds: {0 0    <nil> []    0 0}"
time="2025-02-04T12:29:48+01:00" level=debug msg="Job.RawRunsOn: {8 0 !!str ubuntu-latest  <nil> []    8 14}"
time="2025-02-04T12:29:48+01:00" level=debug msg="Job.Env: {0 0    <nil> []    0 0}"
time="2025-02-04T12:29:48+01:00" level=debug msg="Job.If: {0 0  success()  <nil> []    0 0}"
time="2025-02-04T12:29:48+01:00" level=debug msg="Job.Steps: condition 1"
time="2025-02-04T12:29:48+01:00" level=debug msg="Job.Steps: condition 2"
time="2025-02-04T12:29:48+01:00" level=debug msg="Job.Steps: nanasess/setup-chromedriver@v2"
time="2025-02-04T12:29:48+01:00" level=debug msg="Job.TimeoutMinutes: "
time="2025-02-04T12:29:48+01:00" level=debug msg="Job.Services: map[]"
time="2025-02-04T12:29:48+01:00" level=debug msg="Job.Strategy: <nil>"
time="2025-02-04T12:29:48+01:00" level=debug msg="Job.RawContainer: {0 0    <nil> []    0 0}"
time="2025-02-04T12:29:48+01:00" level=debug msg="Job.Defaults.Run.Shell: "
time="2025-02-04T12:29:48+01:00" level=debug msg="Job.Defaults.Run.WorkingDirectory: "
time="2025-02-04T12:29:48+01:00" level=debug msg="Job.Outputs: map[]"
time="2025-02-04T12:29:48+01:00" level=debug msg="Job.Uses: "
time="2025-02-04T12:29:48+01:00" level=debug msg="Job.With: map[]"
time="2025-02-04T12:29:48+01:00" level=debug msg="Job.Result: "
time="2025-02-04T12:29:48+01:00" level=debug msg="Empty Strategy, matrixes=[map[]]"
time="2025-02-04T12:29:48+01:00" level=debug msg="Job Matrices: [map[]]"
time="2025-02-04T12:29:48+01:00" level=debug msg="Runner Matrices: map[]"
time="2025-02-04T12:29:48+01:00" level=debug msg="Final matrix after applying user inclusions '[map[]]'"
time="2025-02-04T12:29:48+01:00" level=debug msg="Loading revision from git directory"
time="2025-02-04T12:29:48+01:00" level=debug msg="Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25"
time="2025-02-04T12:29:48+01:00" level=debug msg="HEAD points to '4f8ce86e217da1bceabceecc6795185b7be40b25'"
time="2025-02-04T12:29:48+01:00" level=debug msg="using github ref: refs/heads/gh-actions"
time="2025-02-04T12:29:48+01:00" level=debug msg="Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25"
time="2025-02-04T12:29:48+01:00" level=debug msg="Detected CPUs: 16"
[Validation/unit-tests] [DEBUG] evaluating expression 'success()'
[Validation/unit-tests] [DEBUG] expression 'success()' evaluated to 'true'
[Validation/unit-tests] 🚀  Start image=catthehacker/ubuntu:act-latest
time="2025-02-04T12:29:48+01:00" level=debug msg="Parallel tasks (0) below minimum, setting to 1"
[Validation/unit-tests]   🐳  docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=true
[Validation/unit-tests] [DEBUG]   🐳  docker pull catthehacker/ubuntu:act-latest
[Validation/unit-tests] [DEBUG] pulling image 'docker.io/catthehacker/ubuntu:act-latest' ()
time="2025-02-04T12:29:49+01:00" level=debug msg="Saving notices etag=65a072c5-08b0-4baa-bd39-7a490cb633c1"
time="2025-02-04T12:29:49+01:00" level=debug msg="No new notices"
[Validation/unit-tests] [DEBUG] Pulling from catthehacker/ubuntu :: act-latest
[Validation/unit-tests] [DEBUG] Digest: sha256:89367f3c5437699c6b43fa941041725bcc77682a46f2bbe6557541e384d9cedb ::
[Validation/unit-tests] [DEBUG] Status: Image is up to date for catthehacker/ubuntu:act-latest ::
[Validation/unit-tests] [DEBUG] Removed container: 590e78f8c6cf14795e1b40e7adc6784a5f31c8dba87907ec467c67ac1e0c329c
[Validation/unit-tests] [DEBUG]   🐳  docker volume rm act-Validation-unit-tests-03818c74534f2378ab7ac0ec88e1e4b51568f8e6eea2c26b08a94cba68717bbe
[Validation/unit-tests] [DEBUG]   🐳  docker volume rm act-Validation-unit-tests-03818c74534f2378ab7ac0ec88e1e4b51568f8e6eea2c26b08a94cba68717bbe-env
time="2025-02-04T12:29:50+01:00" level=debug msg="Parallel tasks (0) below minimum, setting to 1"
[Validation/unit-tests]   🐳  docker create image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[Validation/unit-tests] [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=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8] Cmd:[] Healthcheck:<nil> ArgsEscaped:false Image:catthehacker/ubuntu:act-latest Volumes:map[] WorkingDir:/mnt/c/Users/user/Documents/GitHub/start Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]}
[Validation/unit-tests] [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] Annotations:map[] 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:/opt/hostedtoolcache ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-Validation-unit-tests-03818c74534f2378ab7ac0ec88e1e4b51568f8e6eea2c26b08a94cba68717bbe-env Target:/var/run/act ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-Validation-unit-tests-03818c74534f2378ab7ac0ec88e1e4b51568f8e6eea2c26b08a94cba68717bbe Target:/mnt/c/Users/user/Documents/GitHub/start ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>}] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>}
[Validation/unit-tests] [DEBUG] input.NetworkAliases ==> [unit-tests]
[Validation/unit-tests] [DEBUG] Created container name=act-Validation-unit-tests-03818c74534f2378ab7ac0ec88e1e4b51568f8e6eea2c26b08a94cba68717bbe id=71cd696572d4fe42380d1ea0a6f9eb0be831392d83a5938a2b5972493327715d from image catthehacker/ubuntu:act-latest (platform: )
[Validation/unit-tests] [DEBUG] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8]
[Validation/unit-tests]   🐳  docker run image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[Validation/unit-tests] [DEBUG] Starting container: 71cd696572d4fe42380d1ea0a6f9eb0be831392d83a5938a2b5972493327715d
[Validation/unit-tests] [DEBUG] Started container: 71cd696572d4fe42380d1ea0a6f9eb0be831392d83a5938a2b5972493327715d
[Validation/unit-tests] [DEBUG] Writing entry to tarball workflow/event.json len:2
[Validation/unit-tests] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[Validation/unit-tests] [DEBUG] Extracting content to '/var/run/act/'
time="2025-02-04T12:29:50+01:00" level=debug msg="Parallel tasks (0) below minimum, setting to 1"
[Validation/unit-tests]   🐳  docker exec cmd=[node --no-warnings -e console.log(process.execPath)] user= workdir=
[Validation/unit-tests] [DEBUG] Exec command '[node --no-warnings -e console.log(process.execPath)]'
[Validation/unit-tests] [DEBUG] Working directory '/mnt/c/Users/user/Documents/GitHub/start'
[Validation/unit-tests] [DEBUG] Loading revision from git directory
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] HEAD points to '4f8ce86e217da1bceabceecc6795185b7be40b25'
[Validation/unit-tests] [DEBUG] using github ref: refs/heads/gh-actions
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] Loading revision from git directory
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] HEAD points to '4f8ce86e217da1bceabceecc6795185b7be40b25'
[Validation/unit-tests] [DEBUG] using github ref: refs/heads/gh-actions
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests]   ☁  git clone 'https://github.com/nanasess/setup-chromedriver' # ref=v2
[Validation/unit-tests] [DEBUG]   cloning https://github.com/nanasess/setup-chromedriver to C:\Users\user\.cache\act/nanasess-setup-chromedriver@v2
[Validation/unit-tests] [DEBUG] Provided ref is not a sha. Checking out branch before pulling changes
[Validation/unit-tests] [DEBUG] Unable to pull refs/heads/v2: non-fast-forward update
[Validation/unit-tests] [DEBUG] Cloned https://github.com/nanasess/setup-chromedriver to C:\Users\user\.cache\act/nanasess-setup-chromedriver@v2
[Validation/unit-tests] [DEBUG] Provided ref is not a sha. Updating branch ref after pull
[Validation/unit-tests] [DEBUG] Checked out v2
[Validation/unit-tests] [DEBUG] Read action &{setup-chromedriver nanasess Setup chromedriver map[chromeapp:{Custom chrome binary name (for Linux or MacOS) false } chromedriver-version:{The chromedriver version to install false }] map[] {node20 map[] dist/index.js  always()  always()     [] []} { }} from 'Unknown'
[Validation/unit-tests] [DEBUG] Loading revision from git directory
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] HEAD points to '4f8ce86e217da1bceabceecc6795185b7be40b25'
[Validation/unit-tests] [DEBUG] using github ref: refs/heads/gh-actions
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] Loading revision from git directory
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] HEAD points to '4f8ce86e217da1bceabceecc6795185b7be40b25'
[Validation/unit-tests] [DEBUG] using github ref: refs/heads/gh-actions
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] Loading revision from git directory
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] HEAD points to '4f8ce86e217da1bceabceecc6795185b7be40b25'
[Validation/unit-tests] [DEBUG] using github ref: refs/heads/gh-actions
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://192.168.178.32:57267/ ACTIONS_RESULTS_URL:http://192.168.178.32:34567/ ACTIONS_RUNTIME_TOKEN:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3Mzg3NTQ5OTEsIm5iZiI6MTczODY2ODU5MSwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjE6MSIsIlRhc2tJRCI6MSwiUnVuSUQiOjEsIkpvYklEIjoxLCJhYyI6Ilt7XCJTY29wZVwiOlwiXCIsXCJQZXJtaXNzaW9uXCI6Mn1dIn0.LrUjAw6tleOW2cVvGsj73goapdsPw-Ud4iOCAMOfBm0 ACTIONS_RUNTIME_URL:http://192.168.178.32:34567/ CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:unit-tests GITHUB_REF:refs/heads/gh-actions GITHUB_REF_NAME:gh-actions GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:vaadin/start GITHUB_REPOSITORY_OWNER:vaadin GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ATTEMPT:1 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:4f8ce86e217da1bceabceecc6795185b7be40b25 GITHUB_WORKFLOW:Validation GITHUB_WORKSPACE:/mnt/c/Users/user/Documents/GitHub/start ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[Validation/unit-tests] [DEBUG] Loading revision from git directory
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] HEAD points to '4f8ce86e217da1bceabceecc6795185b7be40b25'
[Validation/unit-tests] [DEBUG] using github ref: refs/heads/gh-actions
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] Loading revision from git directory
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] HEAD points to '4f8ce86e217da1bceabceecc6795185b7be40b25'
[Validation/unit-tests] [DEBUG] using github ref: refs/heads/gh-actions
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] evaluating expression 'runner.os == 'Windows''
[Validation/unit-tests] [DEBUG] expression 'runner.os == 'Windows'' evaluated to 'false'
[Validation/unit-tests] [DEBUG] Skipping step 'condition 1' due to 'runner.os == 'Windows''
[Validation/unit-tests] [DEBUG] Loading revision from git directory
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] HEAD points to '4f8ce86e217da1bceabceecc6795185b7be40b25'
[Validation/unit-tests] [DEBUG] using github ref: refs/heads/gh-actions
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] Loading revision from git directory
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] HEAD points to '4f8ce86e217da1bceabceecc6795185b7be40b25'
[Validation/unit-tests] [DEBUG] using github ref: refs/heads/gh-actions
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] Loading revision from git directory
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] HEAD points to '4f8ce86e217da1bceabceecc6795185b7be40b25'
[Validation/unit-tests] [DEBUG] using github ref: refs/heads/gh-actions
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://192.168.178.32:57267/ ACTIONS_RESULTS_URL:http://192.168.178.32:34567/ ACTIONS_RUNTIME_TOKEN:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3Mzg3NTQ5OTEsIm5iZiI6MTczODY2ODU5MSwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjE6MSIsIlRhc2tJRCI6MSwiUnVuSUQiOjEsIkpvYklEIjoxLCJhYyI6Ilt7XCJTY29wZVwiOlwiXCIsXCJQZXJtaXNzaW9uXCI6Mn1dIn0.LrUjAw6tleOW2cVvGsj73goapdsPw-Ud4iOCAMOfBm0 ACTIONS_RUNTIME_URL:http://192.168.178.32:34567/ CI:true GITHUB_ACTION:1 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:unit-tests GITHUB_REF:refs/heads/gh-actions GITHUB_REF_NAME:gh-actions GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:vaadin/start GITHUB_REPOSITORY_OWNER:vaadin GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ATTEMPT:1 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:4f8ce86e217da1bceabceecc6795185b7be40b25 GITHUB_WORKFLOW:Validation GITHUB_WORKSPACE:/mnt/c/Users/user/Documents/GitHub/start ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[Validation/unit-tests] [DEBUG] Loading revision from git directory
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] HEAD points to '4f8ce86e217da1bceabceecc6795185b7be40b25'
[Validation/unit-tests] [DEBUG] using github ref: refs/heads/gh-actions
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] Loading revision from git directory
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] HEAD points to '4f8ce86e217da1bceabceecc6795185b7be40b25'
[Validation/unit-tests] [DEBUG] using github ref: refs/heads/gh-actions
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] evaluating expression 'runner.os != 'Windows''
[Validation/unit-tests] [DEBUG] expression 'runner.os != 'Windows'' evaluated to 'true'
[Validation/unit-tests] ⭐ Run Main condition 2
[Validation/unit-tests] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0
[Validation/unit-tests] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0
[Validation/unit-tests] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0
[Validation/unit-tests] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[Validation/unit-tests] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0
[Validation/unit-tests] [DEBUG] Extracting content to '/var/run/act'
[Validation/unit-tests] [DEBUG] Loading revision from git directory
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] HEAD points to '4f8ce86e217da1bceabceecc6795185b7be40b25'
[Validation/unit-tests] [DEBUG] using github ref: refs/heads/gh-actions
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] Loading revision from git directory
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] HEAD points to '4f8ce86e217da1bceabceecc6795185b7be40b25'
[Validation/unit-tests] [DEBUG] using github ref: refs/heads/gh-actions
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] Loading revision from git directory
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] HEAD points to '4f8ce86e217da1bceabceecc6795185b7be40b25'
[Validation/unit-tests] [DEBUG] using github ref: refs/heads/gh-actions
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] Loading revision from git directory
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] HEAD points to '4f8ce86e217da1bceabceecc6795185b7be40b25'
[Validation/unit-tests] [DEBUG] using github ref: refs/heads/gh-actions
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] Wrote command

echo "The operating system on the runner is not Windows, it's $RUNNER_OS."

 to 'workflow/1'
[Validation/unit-tests] [DEBUG] Writing entry to tarball workflow/1 len:76
[Validation/unit-tests] [DEBUG] Extracting content to '/var/run/act'
[Validation/unit-tests]   🐳  docker exec cmd=[bash -e /var/run/act/workflow/1] user= workdir=
[Validation/unit-tests] [DEBUG] Exec command '[bash -e /var/run/act/workflow/1]'
[Validation/unit-tests] [DEBUG] Working directory '/mnt/c/Users/user/Documents/GitHub/start'
| The operating system on the runner is not Windows, it's Linux.
[Validation/unit-tests]   ✅  Success - Main condition 2
[Validation/unit-tests] [DEBUG] Loading revision from git directory
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] HEAD points to '4f8ce86e217da1bceabceecc6795185b7be40b25'
[Validation/unit-tests] [DEBUG] using github ref: refs/heads/gh-actions
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] Loading revision from git directory
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] HEAD points to '4f8ce86e217da1bceabceecc6795185b7be40b25'
[Validation/unit-tests] [DEBUG] using github ref: refs/heads/gh-actions
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] Loading revision from git directory
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] HEAD points to '4f8ce86e217da1bceabceecc6795185b7be40b25'
[Validation/unit-tests] [DEBUG] using github ref: refs/heads/gh-actions
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://192.168.178.32:57267/ ACTIONS_RESULTS_URL:http://192.168.178.32:34567/ ACTIONS_RUNTIME_TOKEN:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3Mzg3NTQ5OTEsIm5iZiI6MTczODY2ODU5MSwic2NwIjoiQWN0aW9ucy5SZXN1bHRzOjE6MSIsIlRhc2tJRCI6MSwiUnVuSUQiOjEsIkpvYklEIjoxLCJhYyI6Ilt7XCJTY29wZVwiOlwiXCIsXCJQZXJtaXNzaW9uXCI6Mn1dIn0.LrUjAw6tleOW2cVvGsj73goapdsPw-Ud4iOCAMOfBm0 ACTIONS_RUNTIME_URL:http://192.168.178.32:34567/ CI:true GITHUB_ACTION:2 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:v2 GITHUB_ACTION_REPOSITORY:nanasess/setup-chromedriver GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:unit-tests GITHUB_REF:refs/heads/gh-actions GITHUB_REF_NAME:gh-actions GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:vaadin/start GITHUB_REPOSITORY_OWNER:vaadin GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ATTEMPT:1 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:4f8ce86e217da1bceabceecc6795185b7be40b25 GITHUB_WORKFLOW:Validation GITHUB_WORKSPACE:/mnt/c/Users/user/Documents/GitHub/start ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[Validation/unit-tests] [DEBUG] Loading revision from git directory
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] HEAD points to '4f8ce86e217da1bceabceecc6795185b7be40b25'
[Validation/unit-tests] [DEBUG] using github ref: refs/heads/gh-actions
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] Loading revision from git directory
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] HEAD points to '4f8ce86e217da1bceabceecc6795185b7be40b25'
[Validation/unit-tests] [DEBUG] using github ref: refs/heads/gh-actions
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] evaluating expression ''
[Validation/unit-tests] [DEBUG] expression '' evaluated to 'true'
[Validation/unit-tests] ⭐ Run Main nanasess/setup-chromedriver@v2
[Validation/unit-tests] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0
[Validation/unit-tests] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0
[Validation/unit-tests] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0
[Validation/unit-tests] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[Validation/unit-tests] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0
[Validation/unit-tests] [DEBUG] Extracting content to '/var/run/act'
[Validation/unit-tests] [DEBUG] Loading revision from git directory
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] HEAD points to '4f8ce86e217da1bceabceecc6795185b7be40b25'
[Validation/unit-tests] [DEBUG] using github ref: refs/heads/gh-actions
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] About to run action &{setup-chromedriver nanasess Setup chromedriver map[chromeapp:{Custom chrome binary name (for Linux or MacOS) false } chromedriver-version:{The chromedriver version to install false }] map[] {node20 map[] dist/index.js  always()  always()     [] []} { }}
[Validation/unit-tests] [DEBUG] Loading revision from git directory
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] HEAD points to '4f8ce86e217da1bceabceecc6795185b7be40b25'
[Validation/unit-tests] [DEBUG] using github ref: refs/heads/gh-actions
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] Loading revision from git directory
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] HEAD points to '4f8ce86e217da1bceabceecc6795185b7be40b25'
[Validation/unit-tests] [DEBUG] using github ref: refs/heads/gh-actions
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] type=remote-action actionDir=C:\Users\user\.cache\act/nanasess-setup-chromedriver@v2 actionPath= workdir=C:\Users\user\Documents\GitHub\start actionCacheDir=C:\Users\user\.cache\act actionName=nanasess-setup-chromedriver@v2 containerActionDir=/var/run/act/actions/nanasess-setup-chromedriver@v2
[Validation/unit-tests] [DEBUG] /var/run/act/actions/nanasess-setup-chromedriver@v2
[Validation/unit-tests] [DEBUG] Removing C:\Users\user\.cache\act/nanasess-setup-chromedriver@v2/.gitignore before docker cp
[Validation/unit-tests]   🐳  docker cp src=C:\Users\user\.cache\act/nanasess-setup-chromedriver@v2/ dst=/var/run/act/actions/nanasess-setup-chromedriver@v2/
[Validation/unit-tests] [DEBUG] Writing tarball C:\Users\user\AppData\Local\Temp\act2303051367 from C:\Users\user\.cache\act/nanasess-setup-chromedriver@v2/
[Validation/unit-tests] [DEBUG] Stripping prefix:C:\Users\user\.cache\act\nanasess-setup-chromedriver@v2\ src:C:\Users\user\.cache\act/nanasess-setup-chromedriver@v2/
[Validation/unit-tests] [DEBUG] Extracting content from 'C:\Users\user\AppData\Local\Temp\act2303051367' to '/var/run/act/actions/nanasess-setup-chromedriver@v2/'
[Validation/unit-tests] [DEBUG] executing remote job container: [/opt/acttoolcache/node/18.20.5/x64/bin/node /var/run/act/actions/nanasess-setup-chromedriver@v2/dist/index.js]
[Validation/unit-tests]   🐳  docker exec cmd=[/opt/acttoolcache/node/18.20.5/x64/bin/node /var/run/act/actions/nanasess-setup-chromedriver@v2/dist/index.js] user= workdir=
[Validation/unit-tests] [DEBUG] Exec command '[/opt/acttoolcache/node/18.20.5/x64/bin/node /var/run/act/actions/nanasess-setup-chromedriver@v2/dist/index.js]'
[Validation/unit-tests] [DEBUG] Working directory '/mnt/c/Users/user/Documents/GitHub/start'
| ##setup chromedriver
[Validation/unit-tests]   ❗  ::error::Unable to locate executable file: /run/act/actions/nanasess-setup-chromedriver@v2/lib/setup-chromedriver.sh. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
[Validation/unit-tests]   ❌  Failure - Main nanasess/setup-chromedriver@v2
[Validation/unit-tests] exitcode '1': failure
[Validation/unit-tests] 🏁  Job failed
[Validation/unit-tests] [DEBUG] Loading revision from git directory
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
[Validation/unit-tests] [DEBUG] HEAD points to '4f8ce86e217da1bceabceecc6795185b7be40b25'
[Validation/unit-tests] [DEBUG] using github ref: refs/heads/gh-actions
[Validation/unit-tests] [DEBUG] Found revision: 4f8ce86e217da1bceabceecc6795185b7be40b25
Error: Job 'unit-tests' failed

Additional information

No response

@edler-san edler-san added the kind/bug Something isn't working label Feb 4, 2025
@ChristopherHX
Copy link
Contributor

Also check the file mode to verify the file is executable.

This one is a defect I tried to fix (e.g. /run/act/actions/nanasess-setup-chromedriver@v2/lib/setup-chromedriver.sh has no execute permission when run on windows) and failed in review phase for reference #2509
I can no longer recommend to turn on the feature flag --use-new-action-cache due to known issues not fixed in this version of act.

windows-style paths being passed to actions (potentially breaking them)

I don't think so

@edler-san
Copy link
Author

Also check the file mode to verify the file is executable.

This was one of the first things I tried but sadly to no avail.
Image

I guess this means I can't use some actions windows then ( browser-actions/setup-chrome@latest has the same issue).

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
Projects
None yet
Development

No branches or pull requests

2 participants