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

Github action fails on Setup-r@v2 step with self-hosted runner #2951

Open
sulakshana13 opened this issue Oct 25, 2023 · 0 comments
Open

Github action fails on Setup-r@v2 step with self-hosted runner #2951

sulakshana13 opened this issue Oct 25, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@sulakshana13
Copy link

sulakshana13 commented Oct 25, 2023

Describe the bug
Hi,

I'm trying to set up GitHub actions on a branch for unit testing using a self-hosted runner. I have set up a simple workflow as follows:

name: unit-tests

on:
  push:
    branches: [ "unit-test" ]
  pull_request:
    branches: [ "unit-test" ]
    
jobs:
  job1:
      name: unit-test-1
      runs-on: self-hosted
      steps:
            - uses: actions/checkout@v4
            - uses: r-lib/actions/setup-r@v2
            - run: Rscript -e "source('test/test.R')"

On the setup-r step, I get an error stating 'failed to get R release' as it tries to load a non-existent R setup file. Here are the logs:

[2023-10-24 15:26:06Z INFO HostContext] Well known directory 'Work': 'C:\Windows\System32\github-actions-runner\_work'
[2023-10-24 15:26:07Z INFO ProcessInvokerWrapper] STDOUT/STDERR stream read finished.
[2023-10-24 15:26:07Z INFO ProcessInvokerWrapper] STDOUT/STDERR stream read finished.
[2023-10-24 15:26:07Z INFO ProcessInvokerWrapper] Finished process 21072 with exit code 1, and elapsed time 00:13:43.7166958.
[2023-10-24 15:26:07Z INFO CreateStepSummaryCommand] Step Summary file (C:\Windows\System32\github-actions-runner\_work\_temp\_runner_file_commands\step_summary_178bf827-e624-4483-b42f-b43469b986ab) is empty; skipping attachment upload
[2023-10-24 15:26:07Z INFO StepsRunner] Step result: Failed
[2023-10-24 15:26:07Z INFO ExecutionContext] Publish step telemetry for current step {
  "action": "r-lib/actions/setup-r",
  "ref": "v2",
  "type": "node16",
  "stage": "Main",
  "stepId": "3b278755-195a-5c4d-4abe-e54ed06abade",
  "stepContextName": "__r-lib_actions",
  "hasPreStep": false,
  "hasPostStep": false,
  "result": "failed",
  "errorMessages": [
    "Failed to get R release: Failed to get R 4.3.1: Failed to install R: Error: The process 'C:\\Windows\\System32\\github-actions-runner\\_work\\_temp\\R-4.3.1-win.exe' failed with exit code 1"
  ],
  "executionTimeInSeconds": 824,
  "startTime": "2023-10-24T15:12:23.4965824Z",
  "finishTime": "2023-10-24T15:26:07.2438276Z"
}.
[2023-10-24 15:26:07Z INFO StepsRunner] Update job result with current step result 'Failed'.
[2023-10-24 15:26:07Z INFO StepsRunner] Current state: job state = 'Failed'
[2023-10-24 15:26:07Z INFO StepsRunner] Processing step: DisplayName='Run Rscript -e "source('test/test.R')"'
[2023-10-24 15:26:07Z INFO StepsRunner] Evaluating: success()
[2023-10-24 15:26:07Z INFO StepsRunner] Result: false
[2023-10-24 15:26:07Z INFO StepsRunner] Skipping step due to condition evaluation.
[2023-10-24 15:26:07Z INFO StepsRunner] No need for updating job result with current step result 'Skipped'.
[2023-10-24 15:26:07Z INFO StepsRunner] Current state: job state = 'Failed'

Any idea why the R-4.3.1-win.exe is missing from the _temp folder?

Thank you

@sulakshana13 sulakshana13 added the bug Something isn't working label Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant