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

Merge CheckOSSTestsEnabled and CheckOSSTestsSemver helpers #1107

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

julienduchesne
Copy link
Member

I saw the semver function being used in a cloud test, which is invalid
This should prevent that happening

I saw the semver function being used in a cloud test, which is invalid
This should prevent that happening
@github-actions
Copy link

In order to lower resource usage and have a faster runtime, PRs will not run Cloud tests automatically. To do so, a Grafana Labs employee must promote the Drone build.

For maintainers, it's better to run only the Cloud tests you need, rather than all of them. You can do so by setting the following parameter when promoting:

TESTARGS='-run=<testname>'

@julienduchesne julienduchesne marked this pull request as ready for review October 27, 2023 17:51
@julienduchesne julienduchesne requested a review from a team as a code owner October 27, 2023 17:51
@julienduchesne
Copy link
Member Author

The cloud test in question is failing but I'll fix it in a future PR

t.Helper()

if len(semverConstraintOptional) > 1 {
panic("checkSemverConstraint accepts at most one argument")
Copy link
Contributor

Choose a reason for hiding this comment

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

Good call using a panic here! I was going to suggest t.Fatal instead, but then I realized it is not the test that fails but actually the test's definition, so this is definitely one of the right usages of panic 👏🏽

@julienduchesne julienduchesne merged commit 4c64e8f into master Oct 27, 2023
7 of 8 checks passed
@julienduchesne julienduchesne deleted the julienduchesne/semver-one-func branch October 27, 2023 20:42
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.

2 participants