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 actions now fail for python2 and ubuntu clang and ubuntu swift #3988

Closed
parrt opened this issue Nov 26, 2022 · 3 comments
Closed

github actions now fail for python2 and ubuntu clang and ubuntu swift #3988

parrt opened this issue Nov 26, 2022 · 3 comments

Comments

@parrt
Copy link
Member

parrt commented Nov 26, 2022

Hi @hs-apotell any chance you could take a quick look to see about getting python2 / clang / swift up and running again?

https://github.com/antlr/antlr4/actions/runs/3551377074/jobs/5965500626

We're working on getting swift to reuse the same runtime lib but it works locally (just really slowly): #3984

Here are the errors related to install for actions:

Run egor-tensin/setup-clang@v1
Run New-Variable os -Value 'Linux' -Option Constant
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key([8](https://github.com/antlr/antlr4/actions/runs/3551377074/jobs/5965499687#step:4:9))).
OK
Exception: /home/runner/work/_temp/95ed61fb-bcf9-4641-bdf3-1b57700101c5.ps1:90
Line |
  90 |          default { throw "Unsupported distribution: $distro" }
     |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Unsupported distribution: Ubuntu-22.04
Run actions/setup-python@v4
Version 2.x was not found in the local cache
Error: Version 2.x with arch x64 not found
The list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
gpg: no valid OpenPGP data found.
gpg: the signature could not be verified.
Please remember that the signature file (.sig or .asc)
should be the first file given on the command line.
Error: Unexpected error, unable to continue. Please report at https://github.com/swift-actions/setup-swift/issues
The process '/usr/bin/gpg' failed with exit code 2
@hs-apotell
Copy link
Collaborator

Sure, will investigate later tonight.

hs-apotell added a commit to hs-apotell/antlr4 that referenced this issue Nov 27, 2022
The workflow is setup to work on Ubuntu-20.04 and the default 'latest'
is migrating to Ubuntu-22.04 which isn't supported yet (all the
dependent actions needs to support the platform before the workflow can
use it).

Switching all platforms to use explicit versions rather than the
'-latest' tag so the transition is more voluntary than something that
just happens behing the scene.
hs-apotell added a commit to hs-apotell/antlr4 that referenced this issue Nov 27, 2022
The workflow is setup to work on Ubuntu-20.04 and the default 'latest'
is migrating to Ubuntu-22.04 which isn't supported yet (all the
dependent actions needs to support the platform before the workflow can
use it).

Switching all platforms to use explicit versions rather than the
'-latest' tag so the transition is more voluntary than something that
just happens behing the scene.

Also, upgraded all setup-xx actions to latest versions to remove some of
the deprecation warnings on dashboard.

Setup concurrency as well (kill any existing build running on the same
branch branch and using the same workflow).
hs-apotell added a commit to hs-apotell/antlr4 that referenced this issue Nov 27, 2022
The workflow is setup to work on Ubuntu-20.04 and the default 'latest'
is migrating to Ubuntu-22.04 which isn't supported yet (all the
dependent actions needs to support the platform before the workflow can
use it).

Switching all platforms to use explicit versions rather than the
'-latest' tag so the transition is more voluntary than something that
just happens behing the scene.

Also, upgraded all setup-xx actions to latest versions to remove some of
the deprecation warnings on dashboard.

Setup concurrency as well (kill any existing build running on the same
branch branch and using the same workflow).
hs-apotell added a commit to hs-apotell/antlr4 that referenced this issue Nov 27, 2022
The workflow is setup to work on Ubuntu-20.04 and the default 'latest'
is migrating to Ubuntu-22.04 which isn't supported yet (all the
dependent actions needs to support the platform before the workflow can
use it).

Switching all platforms to use explicit versions rather than the
'-latest' tag so the transition is more voluntary than something that
just happens behind the scene.

Also, upgraded all setup-xx actions to latest versions to remove some of
the deprecation warnings on dashboard.

Setup concurrency as well (kill any existing build running on the same
branch branch and using the same workflow).

Signed-off-by: HS <[email protected]>
@hs-apotell
Copy link
Collaborator

I am unsure what you are trying to do with #3984 (issue lacks detail) but I have fixed the CI build issues with the current dev #3989. The problem was with the use of 'XXX-latest' machines. The definition of 'latest' changes behind the scene when the GitHub team decides it's time to upgrade. Unfortunately, all the actions used in the workflow don't recognize that new platform simultaneously and builds starts failing. I have updated the workflow so that the upgrade is now manual, and thus controlled. You will see warnings in the workflow run when a new version is available and you can choose when it's good time to upgrade (of course before the end-of-life of the current used version).

parrt added a commit that referenced this issue Nov 27, 2022
Issue #3988: Builds failing on Ubuntu
@parrt
Copy link
Member Author

parrt commented Dec 2, 2022

Fixed by #3989

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