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

fix: test with APIGatewayProxy #1452

Merged
merged 6 commits into from
Sep 5, 2022
Merged

fix: test with APIGatewayProxy #1452

merged 6 commits into from
Sep 5, 2022

Conversation

sdelamo
Copy link
Contributor

@sdelamo sdelamo commented Sep 5, 2022

I had to dowgrade to 3.5.5

because the Body string received with 3.6.2 here:

@Post("/2018-06-01/runtime/invocation/{requestId}/response")
        HttpResponse<?> response(@PathVariable("requestId") String requestId, @Body String body) {

is :

PooledSlicedByteBuf(ridx: 0, widx: 156, cap: 156/156, unwrapped: PooledUnsafeDirectByteBuf(ridx: 364, widx: 364, cap: 2048))

@yawkat any idea what could be the culprit?

@sdelamo sdelamo requested review from timyates and yawkat September 5, 2022 11:40
@sdelamo sdelamo changed the title Fix test runtime api loop fix: test with APIGatewayProxy Sep 5, 2022
This reverts commit e64cb0b.
@sdelamo
Copy link
Contributor Author

sdelamo commented Sep 5, 2022

I don't understand also how the test passed in the initial PR uprading to 3.6.x

#1432

any idea @melix ?

@melix
Copy link
Contributor

melix commented Sep 5, 2022

Which test is that precisely? There seem to be a flaky test which would explain.

@yawkat
Copy link
Member

yawkat commented Sep 5, 2022

yes that's the one

@melix
Copy link
Contributor

melix commented Sep 5, 2022

So it "passed" because it's detected as flaky.

@sdelamo
Copy link
Contributor Author

sdelamo commented Sep 5, 2022

I have split the test in two different test files. And that seems to help. 🤷🏻‍♂️

@sdelamo sdelamo force-pushed the fix-test-runtime-api-loop branch from 2da8b24 to 7b5c1c7 Compare September 5, 2022 12:22
@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 5, 2022

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
No Duplication information No Duplication information

@yawkat
Copy link
Member

yawkat commented Sep 5, 2022

ive figured it out. the failure is caused by micronaut-projects/micronaut-core#7635 . i will fix it in core

@sdelamo sdelamo merged commit 5d253f4 into master Sep 5, 2022
@sdelamo sdelamo deleted the fix-test-runtime-api-loop branch September 5, 2022 13:24
yawkat added a commit to micronaut-projects/micronaut-core that referenced this pull request Sep 6, 2022
Move some converters from NettyConverters into a new converter registrar that does not require further dependencies from the application context. This allows the registrar to be loaded into the default conversion service with no app context present.

This is a workaround for #7948, and fixes micronaut-projects/micronaut-aws#1452 .
sdelamo pushed a commit to micronaut-projects/micronaut-core that referenced this pull request Sep 6, 2022
* Move some netty converters to SPI
Move some converters from NettyConverters into a new converter registrar that does not require further dependencies from the application context. This allows the registrar to be loaded into the default conversion service with no app context present.

This is a workaround for #7948, and fixes micronaut-projects/micronaut-aws#1452 .

* move httpdata converters as well

* unused import
sdelamo added a commit that referenced this pull request Sep 13, 2022
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.

3 participants