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

Add proper tests for Spark images #154

Merged
merged 1 commit into from
Nov 2, 2022
Merged

Add proper tests for Spark images #154

merged 1 commit into from
Nov 2, 2022

Conversation

hashhar
Copy link
Member

@hashhar hashhar commented Nov 1, 2022

This was useful for me to make sure if it's the Spark image being broken itself or some runtime issue when debugging issues in trinodb/trino#14810


set -x
set +e
sleep 10
Copy link
Member

Choose a reason for hiding this comment

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

Why is sleep necessary? Add a comment? Also what about +e? Do we want to restore it after the test?

Copy link
Member Author

@hashhar hashhar Nov 1, 2022

Choose a reason for hiding this comment

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

Sleep is probably not needed - I just copied surrounding code.

set -e is done outside loop in single place.

Copy link
Member

Choose a reason for hiding this comment

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

What about other iterations in the loop?

Copy link
Member Author

@hashhar hashhar Nov 1, 2022

Choose a reason for hiding this comment

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

It's set inside loop but after all branches. Sorry I said "outside loop".

bin/test.sh Show resolved Hide resolved
bin/test.sh Show resolved Hide resolved
bin/test.sh Outdated Show resolved Hide resolved
This makes the image healthchecks redundant which were not much useful
anyway since the port-liveness check is already done by testcontainers
and some tests may want to not run the Thrift Server.
@hashhar hashhar merged commit dd3a0e5 into trinodb:master Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants