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

Update to node20 appears to be a breaking change #276

Closed
3 tasks done
wrose504 opened this issue Sep 13, 2023 · 2 comments
Closed
3 tasks done

Update to node20 appears to be a breaking change #276

wrose504 opened this issue Sep 13, 2023 · 2 comments

Comments

@wrose504
Copy link

Contributing guidelines

I've found a bug, and:

  • The documentation does not mention anything about my problem
  • There are no open or closed issues that are related to my problem

Description

A recent commit (02e9319) switched the runner version for the action to node20 from node16. On our self-hosted Github Enterprise server, this results in actions failing with the error.

Expected behaviour

Ideally, a change to the runner to a newer version that is possibly unsupported everywhere would be tagged with a new label (e.g. no longer v3.0.0) so we could continue to use the supported version.

Actual behaviour

Our actions are failing with an error:

Error: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter ''using: node20' is not supported, use 'docker', 'node12' or 'node16' instead.')
   at GitHub.Runner.Worker.ActionManifestManager.ConvertRuns(IExecutionContext executionContext, TemplateContext templateContext, TemplateToken inputsToken, String fileRelativePath, MappingToken outputs)
   at GitHub.Runner.Worker.ActionManifestManager.Load(IExecutionContext executionContext, String manifestFile)
Error: Fail to load docker/setup-buildx-action/v3/action.yml

Repository URL

No response

Workflow run URL

No response

YAML workflow

name: Test GraphQL
on:
  push:
    branches: [master]
  pull_request:
    branches: [master]
jobs:
  build-app-image:
    name: Build app image
    needs: []
    runs-on: [standard]
    outputs:
      image: app-dev:${{github.sha}}
    env:
      DOCKER_CONTEXT: gha
    steps:
      - name: Git checkout
        uses: actions/checkout@v3
      - name: Create Docker context
        run: docker context create ${{env.DOCKER_CONTEXT}}
      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v3
        with:
          endpoint: ${{env.DOCKER_CONTEXT}}
          install: true

Workflow logs

No response

BuildKit logs

No response

Additional info

No response

@wrose504
Copy link
Author

So this may have been filed a little prematurely: we updated our Github actions runner image from v2.306.0-ubuntu-20.04 to v2.309.0-ubuntu-20.04 and node20 is accepted now.

@crazy-max
Copy link
Member

crazy-max commented Sep 14, 2023

@wrose504 Yes as said in the release notes it requires a minimal version of the runner: https://github.com/docker/setup-buildx-action/releases/tag/v3.0.0

... (requires Actions Runner v2.308.0 or later) by @crazy-max in #264

That's why this is a major release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants