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

bump up to Serde M4 #1304

Merged
merged 7 commits into from
May 3, 2023
Merged

bump up to Serde M4 #1304

merged 7 commits into from
May 3, 2023

Conversation

sdelamo
Copy link
Contributor

@sdelamo sdelamo commented May 3, 2023

No description provided.

@sdelamo sdelamo requested review from timyates and yawkat May 3, 2023 08:17
@sdelamo sdelamo changed the title Serde bump up to Serde M4 May 3, 2023
@@ -16,7 +16,7 @@ bcpkix = "1.70"
micronaut-test = "4.0.0-M3"
micronaut-multitenancy = "5.0.0-M2"
micronaut-reactor = "3.0.0-M1"
micronaut-serde = "2.0.0-M1"
micronaut-serde = "2.0.0-M4"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Serde M4 includes micronaut-projects/micronaut-serialization#439 Thanks for the quick fix @yawkat

@@ -156,22 +159,54 @@ class ClientCredentialsConcurrentSpec extends Specification {
this.tokenExpiration = tokenExpiration
}


@Introspected
static class ClientCredentialsForm {
Copy link
Contributor Author

@sdelamo sdelamo May 3, 2023

Choose a reason for hiding this comment

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

I had to extract this POJO to make the test pass with serde 4

Copy link
Contributor Author

Choose a reason for hiding this comment

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

void "no exception for concurrent requests using client credentials"() {
when:
int numberOfFutures = Runtime.getRuntime().availableProcessors() - 1
int numberOfFutures = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
Copy link
Contributor Author

@sdelamo sdelamo May 3, 2023

Choose a reason for hiding this comment

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

I am borrowing a page from Gradle Execute tests in parallel documentation. This makes this test pass when running in parallel (./gradlew test --parallel). I have a 10 machine and Runtime.runtime.availableProcessors() returns 20.

@sonarcloud
Copy link

sonarcloud bot commented May 3, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@sdelamo sdelamo merged commit 4c2c4ad into master May 3, 2023
@sdelamo sdelamo deleted the serde branch May 3, 2023 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants