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

[WIP] Fix CI after GHA's drop of node16 actions #2332

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mjameswh
Copy link
Contributor

@mjameswh mjameswh commented Nov 27, 2024

What was changed

  • Modified our GHA workflows so that when building the native executable of the Test Server on Linux targets, only the actual compilation step runs inside an older GLIBC 2.17-based Docker container; all other operations are performed directly on the runner, which can now be any recent Ubuntu.

    This was required because GHA no longer allows actions based on Node16 (i.e. actions are forced to use Node20 instead), but Node20 requires at least GLIBC 2.28. It is therefore not possible to have a single execution environment that can both execute Node20-based actions, yet produces native binaries that can then execute on the GLIBC 2.17-based environments that some of our users have.

    Fixes [Bug] CI build will soon get broken due to GHA dropping support for node16-based actions #2331.

@mjameswh mjameswh requested a review from a team as a code owner November 27, 2024 20:31
- name: Build native test server
run: ./gradlew :temporal-test-server:build
run: |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason you didn't run this task in a container?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops! Missed a commit. That will make more sense now.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this step still make sense to run in a container?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The container parameter only exists at the job-level. Steps run with whatever runner/container was set by the job.

A possible alternative is to use a docker image as an action, but there are a few limitations to that approach. But trying it that now to see if that would work.

run: |
docker run \
--rm -v "$(pwd):/workspace" -w /workspace \
ghcr.io/graalvm/graalvm-community:21-ol7 \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also the graal compiler should come from our plugin not the environment so why did you need to use a graal docker image here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replaced by openjdk:21-jdk-oraclelinux7.

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.

[Bug] CI build will soon get broken due to GHA dropping support for node16-based actions
2 participants