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

Added integration build tag to integration tests. #2164

Merged
merged 4 commits into from Feb 26, 2020
Merged

Added integration build tag to integration tests. #2164

merged 4 commits into from Feb 26, 2020

Conversation

pstibrany
Copy link
Contributor

What this PR does: This PR adds integration tag to Cortex integration tests, so that they don't run by default when doing simple go test ./... in main Cortex directory.

To run integration tests too, one needs to use -tags=integration flag to go test.

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Copy link
Contributor

@jtlisi jtlisi left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

LGTM. However, I would like to know @bwplotka opinion, to make sure it doesn't break Thanos tests.

@tomwilkie
Copy link
Contributor

I'm sitting next to @bwplotka and he says "go for it"

@pracucci
Copy link
Contributor

@pstibrany In the meanwhile, could you rebase and add the tag to newly introduced tests? If I'm not mistaken, there should be something.

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
@pstibrany
Copy link
Contributor Author

@pstibrany In the meanwhile, could you rebase and add the tag to newly introduced tests? If I'm not mistaken, there should be something.

Done.

Copy link
Contributor

@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.

Love it. We would love to actually use same pattern in Thanos.

@pracucci pracucci merged commit 5e91b1f into cortexproject:master Feb 26, 2020
simonswine pushed a commit to grafana/e2e that referenced this pull request Jan 13, 2022
…ex#2164)

* Added integration build tag to integration tests.

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>

* Use tags= syntax

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>

* Fix confused linter complaining about unused symbols.

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>

* Added integration tag.

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
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

5 participants