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-workflows: Run functional tests in Docker via Batect #5031

Merged
merged 6 commits into from
Feb 16, 2022

Conversation

sschuberth
Copy link
Member

Signed-off-by: Sebastian Schuberth sebastian.schuberth@bosch.io

- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: adopt
Copy link
Member

Choose a reason for hiding this comment

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

Why did you use 'adopt' e.g. Adopt OpenJDK Hotspot here and not 'temurin' e.g. Eclipse Temurin. Though AdoptOpenJDK is superseded by Temurin or is my understanding wrong? https://adoptopenjdk.net/ links to https://adoptium.net/?variant=openjdk11

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm for now aligning with https://github.com/oss-review-toolkit/ort/blob/master/Dockerfile#L31, but please note this is a draft still anyway. I probably can replace "adoptopenjdk" with "eclipse-temurin" later on.

Copy link
Member Author

Choose a reason for hiding this comment

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

See #5068.

Signed-off-by: Sebastian Schuberth <sebastian.schuberth@bosch.io>
This works around `beforeSpec` being executed even if the tests are not
matched by a tag, see [1].

[1]: kotest/kotest#1516 (comment)

Signed-off-by: Sebastian Schuberth <sebastian.schuberth@bosch.io>
This way Gradle's console mode can be overriden e.g. when running Batect
from within a GitHub workflow.

Signed-off-by: Sebastian Schuberth <sebastian.schuberth@bosch.io>
This avoids to set up required tools in the GitHub workflow itself, and
tests building the `Dockerfile` at the same time.

There is currently a single test in `PubFunTest` which fails in Docker
for unclear reasons. Postpone fixing the issue until later by not
running this single test inside of Docker, but instead outside of
Docker.

Signed-off-by: Sebastian Schuberth <sebastian.schuberth@bosch.io>
Azure pipelines stopped working due to a lack of parallel builds.

Signed-off-by: Sebastian Schuberth <sebastian.schuberth@bosch.io>
@sschuberth sschuberth marked this pull request as ready for review February 16, 2022 14:55
@sschuberth sschuberth requested a review from a team as a code owner February 16, 2022 14:55
This is to work around [1].

[1]: aboutcode-org/scancode-toolkit#2869

Signed-off-by: Sebastian Schuberth <sebastian.schuberth@bosch.io>
@sschuberth sschuberth merged commit 9946f7e into main Feb 16, 2022
@sschuberth sschuberth deleted the gh-funtest-docker branch February 16, 2022 19:55
@sschuberth sschuberth added the release notes Changes that should be mentioned in release notes label Feb 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release notes Changes that should be mentioned in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants