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 integration tests that excercise Thanos Receive edge cases #4362

Merged

Conversation

bill3tt
Copy link
Contributor

@bill3tt bill3tt commented Jun 22, 2021

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

This PR adds 3 new integration test scenarios for Thanos Receive.

router_replication and router_tree both currently fail against main.

See #4359 for discussion.

Verification

Tests are failing 🙃

…nts, adds IngestingReceiver testing type

Signed-off-by: Ian Billett <ibillett@redhat.com>
@GiedriusS
Copy link
Member

Thanks for this! I am thinking that maybe let's convert testutil.Ok to testutil.NotOk, merge, and then fix this in a follow-up PR?

Signed-off-by: Ian Billett <ibillett@redhat.com>
Signed-off-by: Ian Billett <ibillett@redhat.com>
@bill3tt bill3tt marked this pull request as ready for review June 23, 2021 17:58
@bill3tt
Copy link
Contributor Author

bill3tt commented Jun 23, 2021

Nice idea @GiedriusS 👍

I've updated the integration tests to fail on the 'correct' value. PTAL.

@bwplotka
Copy link
Member

Add failing test title sounds... scary ;p

Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

Nice tests, thanks for those,

But I would not add new helper, see comment 🙈

test/e2e/receive_test.go Outdated Show resolved Hide resolved
test/e2e/receive_test.go Outdated Show resolved Hide resolved
pkg/testutil/testutil.go Outdated Show resolved Hide resolved
Signed-off-by: Ian Billett <ibillett@redhat.com>
…ration test value

Signed-off-by: Ian Billett <ibillett@redhat.com>
Signed-off-by: Ian Billett <ibillett@redhat.com>
@bill3tt bill3tt changed the title Add failing Thanos Receive integration tests Add integration tests that excercise Thanos Receive edge cases Jun 28, 2021
Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

I love it, thanks!

Sorry for the massive lag on checking those!

@bwplotka bwplotka merged commit 7fbd7f5 into thanos-io:main Jul 2, 2021
@bill3tt bill3tt deleted the add-failing-receive-integration-tests branch July 2, 2021 13:39
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.

None yet

3 participants