Skip to content

Add proper tests for Spark images#154

Merged
hashhar merged 1 commit intotrinodb:masterfrom
hashhar:hashhar/add-spark-tests
Nov 2, 2022
Merged

Add proper tests for Spark images#154
hashhar merged 1 commit intotrinodb:masterfrom
hashhar:hashhar/add-spark-tests

Conversation

@hashhar
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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".

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