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

JRE Provisioning: Add ITs for SonarQube #2056

Merged
merged 3 commits into from
Jul 17, 2024

Conversation

gregory-paidis-sonarsource
Copy link
Contributor

No description provided.

// provisioning does not exist before 10.6
if (!ORCHESTRATOR.getServer().version().isGreaterThanOrEquals(10, 6)) {
return;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The SQ tests run for a lot of versions, going back until 8.9.
I prefer to do this cheap check here, instead of messing with the regex of azure pipelines yml.

If you have any other ideas, let me know.

Choose a reason for hiding this comment

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

This is okay in principal and was done before. The correct way to do it is using assumeTrue, though:

assumeTrue(ORCHESTRATOR.getServer().version().isGreaterThanOrEquals(9, 9)); // Public cache API was introduced in 9.9

Copy link
Contributor

Choose a reason for hiding this comment

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

Use assumeTrue

// provisioning does not exist before 10.6
if (!ORCHESTRATOR.getServer().version().isGreaterThanOrEquals(10, 6)) {
return;
}

Choose a reason for hiding this comment

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

This is okay in principal and was done before. The correct way to do it is using assumeTrue, though:

assumeTrue(ORCHESTRATOR.getServer().version().isGreaterThanOrEquals(9, 9)); // Public cache API was introduced in 9.9

Copy link

sonarcloud bot commented Jul 17, 2024

@gregory-paidis-sonarsource gregory-paidis-sonarsource removed their assignment Jul 17, 2024
Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM

@martin-strecker-sonarsource martin-strecker-sonarsource merged commit f9b2c9c into master Jul 17, 2024
17 checks passed
@martin-strecker-sonarsource martin-strecker-sonarsource deleted the greg/sq-its branch July 17, 2024 14:24
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