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

CI: Switch Linux Build to Ubuntu 22.04 runner #2792

Merged
merged 1 commit into from
Aug 22, 2022

Conversation

hoffie
Copy link
Member

@hoffie hoffie commented Aug 20, 2022

Short description of changes
This PR switches the Linux builds to Ubuntu 22.04 runners due to the deprecation of 18.04 runners.
We continue using an Ubuntu 18.04 image via containers. This requires slight adjustments in the Matrix logic and an additional step to install some dependencies (sudo, git) which are usually pre-installed on Github's images.

It also causes LD_PRELOAD ERROR messages due to CodeQL. Sadly, there does not seem a way to avoid that.
Based on the logs, CodeQL still works properly. The most likely reason for the errors is that CodeQL is installed within
the container, but the environment variables for LD_PRELOAD have to be passed via the workflow. As such, the docker invocations themselves will try to load the referenced library, which fails as it is only installed within the container.

CHANGELOG: SKIP
(The actual build environment does not even change, it's just the runner)

Context: Fixes an issue?
Fixes: #2786

Does this change need documentation? What needs to be documented and how?
No.

Status of this Pull Request
Ready.

What is missing until this pull request can be merged?

Checklist

  • I've verified that this Pull Request follows the general code principles
  • I tested my code and it does what I want
  • My code follows the style guide
  • I waited some time after this Pull Request was opened and all GitHub checks completed without errors.
  • I've filled all the content above

@hoffie
Copy link
Member Author

hoffie commented Aug 22, 2022

jamulus_headless installed and started properly on:

  • Ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04
  • Debian stable (11.4)
  • Debian oldstable (10.12)

Found one issue: The compiled-in version lacks the git tag (-v). Therefore, setting this PR to draft again. Logs of the problematic step (qmake): https://github.com/jamulussoftware/jamulus/runs/7931049216?check_suite_focus=true#step:11:77

@hoffie hoffie marked this pull request as draft August 22, 2022 15:53
@hoffie hoffie force-pushed the autobuild-runner-ubuntu22.04 branch from 4f2c555 to 1e21d6e Compare August 22, 2022 16:17
@hoffie
Copy link
Member Author

hoffie commented Aug 22, 2022

Added a workaround. New logs seem to be ok: Project MESSAGE: building version "3.9.0dev-198d9e3-dirty" (intermediate in git repository)

  • .deb shows the proper version upon install as well

Background:
actions/runner#2033
actions/checkout#766

I wondered whether we should attempt to make qmake fail loud in such cases, but I guess it might break some user setups (e.g. those who do have a git checkout, but no git binary).

@hoffie hoffie marked this pull request as ready for review August 22, 2022 16:23
We continue using an Ubuntu 18.04 image via containers.
This requires slight adjustments in the Matrix logic and an
additional step to install some dependencies (sudo, git) which are
usually pre-installed on Github's images.

It also causes LD_PRELOAD ERROR messages due to CodeQL.
Sadly, there does not seem a way to avoid that.
Based on the logs, CodeQL still works properly.
The most likely reason for the errors is that CodeQL is installed within
the container, but the environment variables for LD_PRELOAD have to be
passed via the workflow. As such, the `docker` invocations themselves
will try to load the referenced library, which fails as it is only
installed within the container.

Fixes: jamulussoftware#2786
@hoffie hoffie force-pushed the autobuild-runner-ubuntu22.04 branch from 1e21d6e to a36fa0b Compare August 22, 2022 17:55
@hoffie hoffie merged commit e683f02 into jamulussoftware:master Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI: Get rid of Ubuntu 18.04 build environments
3 participants