-
Notifications
You must be signed in to change notification settings - Fork 80
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
build: use Micronaut Framework 4.0.0-SNAPSHOT #1499
Conversation
3759b96
to
1610643
Compare
@dstepanov maybe you can help me out. We have to modify the code to use the new API introduced here micronaut-projects/micronaut-core#8217 ./gradlew :function-aws-api-proxy:compileJava
Type-safe project accessors is an incubating feature.
Project accessors enabled, but root project name not explicitly set for 'buildSrc'. Checking out the project in different folders will impact the generated code and implicitly the buildscript classpath, breaking caching.
> Task :function-aws-api-proxy:compileJava
warning: unknown enum constant When.MAYBE
reason: class file for javax.annotation.meta.When not found
Note: Creating bean classes for 7 type elements
warning: unknown enum constant When.MAYBE
reason: class file for javax.annotation.meta.When not found
warning: unknown enum constant When.MAYBE
reason: class file for javax.annotation.meta.When not found
warning: unknown enum constant When.MAYBE
reason: class file for javax.annotation.meta.When not found
/Users/sdelamo/github/micronaut-projects/micronaut-aws/function-aws-api-proxy/src/main/java/io/micronaut/function/aws/proxy/MicronautAwsProxyResponse.java:228: error: MicronautAwsProxyResponse.AwsHeaders is not abstract and does not override abstract method setConversionService(ConversionService) in ConversionServiceAware
private class AwsHeaders implements MutableHttpHeaders {
^
/Users/sdelamo/github/micronaut-projects/micronaut-aws/function-aws-api-proxy/src/main/java/io/micronaut/function/aws/proxy/MicronautLambdaContainerHandler.java:360: error: no suitable method found for executeRoute(MicronautAwsProxyRequest<CAP#1>,boolean,Flux<RouteMatch<?>>)
routeResponse = routeExecutor.executeRoute(
^
method RouteExecutor.executeRoute(RequestBodyReader,HttpRequest<?>,boolean,StaticResourceResponseFinder) is not applicable
(actual and formal argument lists differ in length)
method RouteExecutor.executeRoute(AtomicReference<HttpRequest<?>>,boolean,boolean,ExecutionFlow<RouteMatch<?>>) is not applicable
(actual and formal argument lists differ in length)
where CAP#1 is a fresh type-variable:
CAP#1 extends Object from capture of ?
/Users/sdelamo/github/micronaut-projects/micronaut-aws/function-aws-api-proxy/src/main/java/io/micronaut/function/aws/proxy/MicronautLambdaContainerHandler.java:366: error: incompatible types: ExecutionFlow<MutableHttpResponse<?>> cannot be converted to Supplier<ExecutionFlow<MutableHttpResponse<?>>>
routeResponse = Flux.from(routeE`xecutor.filterPublisher(new AtomicReference<>(request), routeExecutor.onError(e, request)));
^
/Users/sdelamo/github/micronaut-projects/micronaut-aws/function-aws-api-proxy/src/main/java/io/micronaut/function/aws/proxy/MicronautLambdaContainerHandler.java:710: error: incompatible types: Publisher<MutableHttpResponse<?>> cannot be converted to Supplier<ExecutionFlow<MutableHttpResponse<?>>>
Flux.from(routeExecutor.filterPublisher(requestReference, responsePublisher)) Moreover, Also, this fails:
@dstepanov It seems you removed AstAnnotationUtils here: micronaut-projects/micronaut-core@752a221#diff-12d26803929b8b3d13e678348c0a42048673cc40649cc7bdda4c41b88e70e5aa |
Untested, can't get the snapshot to run locally. Most of the code that I removed seems to be identical with RouteExecutor (or, now, RequestLifecycle), however I may have missed some differences.
This test relied on method order before: When no version was supplied, it would pick the first available route. The use of RequestLifecycle changes this to an error (ambiguous route), which is the correct behavior. I've patched the test so that the route choice is unambiguous.
Use new RequestLifecycle api
❌ Java CI failed: https://ge.micronaut.io/s/rwh5i3pbx7zqa |
❌ GraalVM CE CI 17 latest failed: https://ge.micronaut.io/s/i42pkw65h7oyu |
❌ Java CI failed: https://ge.micronaut.io/s/mrflyzhb642yc |
Investigating the failure with Cloudwatch logging |
@sdelamo Ready for review 👍 |
❌ GraalVM CE CI 17 latest failed: https://ge.micronaut.io/s/ryvgjwngdydnk |
❌ Java CI failed: https://ge.micronaut.io/s/paiwplhl7gbi4 |
Fixed the TCK build script, we seem to have a couple of TCK failures ion the ErrorHandlerTest, I will investigate |
❌ GraalVM CE CI 19 dev failed: https://ge.micronaut.io/s/cxoe7sdx4r6bq |
❌ Java CI failed: https://ge.micronaut.io/s/pmjagcdhiepo4 |
SonarCloud Quality Gate failed. |
@sdelamo 👍 |
No description provided.