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

Integrate run tests at docker build #29

Conversation

MichaelsJP
Copy link
Member

No description provided.

@MichaelsJP MichaelsJP marked this pull request as draft April 15, 2021 13:52
@MichaelsJP MichaelsJP self-assigned this Apr 15, 2021
@MichaelsJP
Copy link
Member Author

MichaelsJP commented Apr 15, 2021

@tyrasd I always get a failed test when I try to run the test suite:

Failed tests: getMetadataTest(org.heigit.ohsome.ohsomeapi.controller.GetControllerTest): expected:<100.0> but was:<0.0>

The docker build command to reproduce:
docker build -t ohsome-api-alpine-test:test --build-arg OHSOMEAPI_VERSION=1.4.1 .

It actually doesn't matter if I'm using latest or another version for the OHSOMEAPI_VERSION var.

Any ideas?

Dockerfile Outdated Show resolved Hide resolved
@tyrasd
Copy link
Member

tyrasd commented Apr 15, 2021

Failed tests: getMetadataTest(org.heigit.ohsome.ohsomeapi.controller.GetControllerTest): expected:<100.0> but was:<0.0>

That's odd. It almost certainly comes from the timeout assertation at https://github.com/GIScience/ohsome-api/blob/1.4.1/src/test/java/org/heigit/ohsome/ohsomeapi/controller/GetControllerTest.java#L71, but at the moment I can't think of a reason why the metadata resource would return the wrong value. 🤔

Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
@MichaelsJP MichaelsJP requested a review from tyrasd April 16, 2021 10:14
@MichaelsJP MichaelsJP marked this pull request as ready for review April 16, 2021 10:14
Copy link
Member

@tyrasd tyrasd left a comment

Choose a reason for hiding this comment

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

looks good to me, but my docker expertise is not very deep to be honest. ^-^ maybe @joker234: can you give it a second look as well?

@MichaelsJP MichaelsJP requested a review from joker234 April 23, 2021 10:09
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Show resolved Hide resolved
MichaelsJP and others added 2 commits April 26, 2021 09:05
Co-authored-by: Johannes Visintini <[email protected]>
Co-authored-by: Johannes Visintini <[email protected]>
@MichaelsJP MichaelsJP requested a review from joker234 April 26, 2021 07:37
@MichaelsJP MichaelsJP merged commit 64ea9c8 into main Apr 26, 2021
@MichaelsJP MichaelsJP deleted the issue-13-integrate-ohsome-api-tests-run-at-build-time-to-confirm-correct-builds branch April 26, 2021 08:22
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.

integrate ohsome-api tests run at build time to confirm correct builds
3 participants