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

Make building Scala client work on Github Actions #4198

Merged

Conversation

EnricoMi
Copy link
Collaborator

What type of PR is this?

Fixing CI.

What this PR does / why we need it:

Fixes running mage buildScala on Github Actions as part of CI.

Which issue(s) this PR fixes:

Minor fix.

@EnricoMi EnricoMi requested a review from richscott February 10, 2025 14:27
@@ -19,6 +19,7 @@ RUN set -ex && \
apt-get clean && \
rm -rf scala-${SCALA_VERSION}.deb sbt-${SBT_VERSION}.tgz /var/lib/apt/lists/*

ENV PATH="/sbt/bin:$PATH"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The Dockerfile installs sbt to this location, so it should deal with setting PATH, not the build script.

@@ -32,5 +32,6 @@ func BuildScala() error {
"--rm",
"-v", fmt.Sprintf("%s:/build", wd),
"-w", "/build",
"--env", "HOME=/tmp",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Running as part of the Github Actions CI, default HOME will point to a location (/) where the user (probably the test runner user) running the build script does not have write permissions. This home works for any user running the script in the Docker container.

Copy link
Member

@richscott richscott left a comment

Choose a reason for hiding this comment

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

👏🏼

Signed-off-by: Enrico Minack <github@enrico.minack.dev>
Signed-off-by: Enrico Minack <github@enrico.minack.dev>
Signed-off-by: Enrico Minack <github@enrico.minack.dev>
Signed-off-by: Enrico Minack <github@enrico.minack.dev>
Signed-off-by: Enrico Minack <github@enrico.minack.dev>
Signed-off-by: Enrico Minack <github@enrico.minack.dev>
Signed-off-by: Enrico Minack <github@enrico.minack.dev>
Signed-off-by: Enrico Minack <github@enrico.minack.dev>
Signed-off-by: Enrico Minack <github@enrico.minack.dev>
@EnricoMi EnricoMi force-pushed the scala-build-container-integration branch from dbb921c to 0b96edb Compare February 11, 2025 14:32
@EnricoMi EnricoMi enabled auto-merge (squash) February 11, 2025 14:33
Copy link
Collaborator

@GeorgeJahad GeorgeJahad left a comment

Choose a reason for hiding this comment

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

lgtm

@EnricoMi EnricoMi merged commit 3d260a5 into armadaproject:master Feb 11, 2025
15 checks passed
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.

3 participants