-
-
Notifications
You must be signed in to change notification settings - Fork 142
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Hi! And thanks for your job!
Bug description
How to reproduce
I have a self-hosted Ubuntu (server) runner that I'm trying to run tests of my project on. If I run the runner for the first time after installation, the tests run correctly. However, when I try to run them a second time, I get an error in the preparation phase of the runner. Deleting the _work folder helps me, but it doesn't look like a fix for the problem. The problem is reproduced if I stop and start the runner.
- Expected behavior
I'm expected to be able to run a lot of tests without errors or having to clean up the runner, as it works with github owned runners.
Additional details
Logs:
2025-04-16T09:02:25.7565996Z Current runner version: '2.323.0'
2025-04-16T09:02:25.7577064Z Runner name: 'custom-ubuntu01'
2025-04-16T09:02:25.7578641Z Runner group name: 'Default'
2025-04-16T09:02:25.7580304Z Machine name: 'secret-ubuntu-name'
2025-04-16T09:02:25.7591918Z ##[group]GITHUB_TOKEN Permissions
2025-04-16T09:02:25.7596460Z Actions: write
2025-04-16T09:02:25.7597872Z Attestations: write
2025-04-16T09:02:25.7599203Z Checks: write
2025-04-16T09:02:25.7600365Z Contents: write
2025-04-16T09:02:25.7601523Z Deployments: write
2025-04-16T09:02:25.7602728Z Discussions: write
2025-04-16T09:02:25.7604055Z Issues: write
2025-04-16T09:02:25.7605233Z Metadata: read
2025-04-16T09:02:25.7606346Z Models: read
2025-04-16T09:02:25.7607433Z Packages: write
2025-04-16T09:02:25.7609271Z Pages: write
2025-04-16T09:02:25.7610413Z PullRequests: write
2025-04-16T09:02:25.7611709Z RepositoryProjects: write
2025-04-16T09:02:25.7612920Z SecurityEvents: write
2025-04-16T09:02:25.7614154Z Statuses: write
2025-04-16T09:02:25.7615652Z ##[endgroup]
2025-04-16T09:02:25.7619336Z Secret source: Actions
2025-04-16T09:02:25.7620724Z Prepare workflow directory
2025-04-16T09:02:25.8253398Z ##[error]One or more errors occurred. (Access to the path '/home/ubuntu/actions-runner/_work/_actions/game-ci/unity-test-runner/v4/dist/BlankProject/Temp/workerlic' is denied.) (Access to the path '/home/ubuntu/actions-runner/_work/_actions/game-ci/unity-test-runner/v4/dist/BlankProject/Temp/UnityLockfile' is denied.)
Workflow:
name: Run Unit Tests
on: [pull_request, workflow_dispatch]
jobs:
test:
runs-on: custom-ubuntu01
strategy:
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.UNITY_GIT_ACCESS_TOKEN }}
lfs: true
- name: Run unit tests
uses: game-ci/unity-test-runner@v4
id: legacy_tests
continue-on-error: true
env:
UNITY_SERIAL: ${{ secrets.unity_serial }}
UNITY_EMAIL: ${{ secrets.unity_email }}
UNITY_PASSWORD: ${{ secrets.unity_password }}
with:
projectPath: "sample"
unityVersion: "auto"
testMode: "EditMode"
- name: Upload tests result
uses: actions/upload-artifact@v4
if: always()
with:
name: Test results
path: artifacts
GabLeRouxKiritoMC03 and dizikkk
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working