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

gRPC: fix request context propagation #17946

Merged
merged 1 commit into from
Jun 22, 2021

Conversation

michalszynkiewicz
Copy link
Member

No description provided.

@Ladicek
Copy link
Contributor

Ladicek commented Jun 16, 2021

Looks good on the first sight, but I don't truly understand how gRPC is integrated / how a gRPC request is processed to provide any meaningful review.

@quarkus-bot
Copy link

quarkus-bot bot commented Jun 16, 2021

This workflow status is outdated as a new workflow run has been triggered.

🚫 This workflow run has been cancelled.

Failing Jobs - Building 689b9ef

⚠️ Artifacts of the workflow run were not available thus the report misses some details.

Status Name Step Test failures Logs Raw logs
Gradle Tests - JDK 11 Build ⚠️ Check → Logs Raw logs
Gradle Tests - JDK 11 Windows Build ⚠️ Check → Logs Raw logs
JVM Tests - JDK 11 Build ⚠️ Check → Logs Raw logs
JVM Tests - JDK 11 Windows Build ⚠️ Check → Logs Raw logs
JVM Tests - JDK 16 Build ⚠️ Check → Logs Raw logs
Maven Tests - JDK 11 Windows Build ⚠️ Check → Logs Raw logs
Native Tests - Amazon Build ⚠️ Check → Logs Raw logs
Native Tests - Cache ⚠️ Check → Logs Raw logs
Native Tests - Data1 Build ⚠️ Check → Logs Raw logs
Native Tests - Data3 Build ⚠️ Check → Logs Raw logs
Native Tests - HTTP ⚠️ Check → Logs Raw logs
Native Tests - Messaging1 Build ⚠️ Check → Logs Raw logs
Native Tests - Messaging2 Build ⚠️ Check → Logs Raw logs
Native Tests - Misc1 ⚠️ Check → Logs Raw logs
Native Tests - Misc2 ⚠️ Check → Logs Raw logs
Native Tests - Misc3 ⚠️ Check → Logs Raw logs
Native Tests - Misc4 ⚠️ Check → Logs Raw logs
Native Tests - Security1 ⚠️ Check → Logs Raw logs
Native Tests - Security2 ⚠️ Check → Logs Raw logs
Native Tests - Security3 ⚠️ Check → Logs Raw logs
Native Tests - Spring ⚠️ Check → Logs Raw logs
Native Tests - Windows - hibernate-validator ⚠️ Check → Logs Raw logs
Native Tests - gRPC ⚠️ Check → Logs Raw logs

@quarkus-bot
Copy link

quarkus-bot bot commented Jun 16, 2021

This workflow status is outdated as a new workflow run has been triggered.

Failing Jobs - Building 1c94d97

Status Name Step Test failures Logs Raw logs
✔️ JVM Tests - JDK 11
JVM Tests - JDK 11 Windows Build Test failures Logs Raw logs
✔️ JVM Tests - JDK 16

Full information is available in the Build summary check run.

Test Failures

⚙️ JVM Tests - JDK 11 Windows #

📦 integration-tests/grpc-hibernate-reactive

com.example.reactive.ReactiveServiceTest.shouldWatchAndAddMultipleTimes - More details - Source on GitHub

📦 integration-tests/grpc-hibernate

com.example.grpc.hibernate.BlockingMutinyTest.shouldAddViaBidi - More details - Source on GitHub

@michalszynkiewicz michalszynkiewicz force-pushed the fix-grpc-request-scope branch 2 times, most recently from ddc3e3c to 61b4bb8 Compare June 16, 2021 13:25
@quarkus-bot
Copy link

quarkus-bot bot commented Jun 16, 2021

This workflow status is outdated as a new workflow run has been triggered.

🚫 This workflow run has been cancelled.

Failing Jobs - Building ddc3e3c

⚠️ Artifacts of the workflow run were not available thus the report misses some details.

Status Name Step Test failures Logs Raw logs
Initial JDK 11 Build Reclaim Disk Space ⚠️ Check → Logs Raw logs

@quarkus-bot
Copy link

quarkus-bot bot commented Jun 16, 2021

This workflow status is outdated as a new workflow run has been triggered.

🚫 This workflow run has been cancelled.

Failing Jobs - Building 61b4bb8

⚠️ Artifacts of the workflow run were not available thus the report misses some details.

Status Name Step Test failures Logs Raw logs
Gradle Tests - JDK 11 Build ⚠️ Check → Logs Raw logs
Gradle Tests - JDK 11 Windows Build ⚠️ Check → Logs Raw logs
JVM Tests - JDK 11 Build ⚠️ Check → Logs Raw logs
JVM Tests - JDK 11 Windows Build ⚠️ Check → Logs Raw logs
JVM Tests - JDK 16 Build ⚠️ Check → Logs Raw logs
Maven Tests - JDK 11 Build Test failures Logs Raw logs
Maven Tests - JDK 11 Windows Build ⚠️ Check → Logs Raw logs
Native Tests - Amazon Build ⚠️ Check → Logs Raw logs
Native Tests - Cache Download Maven Repo ⚠️ Check → Logs Raw logs
Native Tests - Data1 Build ⚠️ Check → Logs Raw logs
Native Tests - HTTP ⚠️ Check → Logs Raw logs
Native Tests - Messaging1 Build ⚠️ Check → Logs Raw logs
Native Tests - Messaging2 Build ⚠️ Check → Logs Raw logs
Native Tests - Misc1 ⚠️ Check → Logs Raw logs
Native Tests - Misc2 ⚠️ Check → Logs Raw logs
Native Tests - Misc3 ⚠️ Check → Logs Raw logs
Native Tests - Misc4 ⚠️ Check → Logs Raw logs
Native Tests - Security1 Build ⚠️ Check → Logs Raw logs
Native Tests - Security2 Download Maven Repo ⚠️ Check → Logs Raw logs
Native Tests - Security3 Extract Maven Repo ⚠️ Check → Logs Raw logs
Native Tests - Spring ⚠️ Check → Logs Raw logs
Native Tests - Windows - hibernate-validator ⚠️ Check → Logs Raw logs
Native Tests - gRPC ⚠️ Check → Logs Raw logs

Full information is available in the Build summary check run.

Test Failures

⚙️ Maven Tests - JDK 11 #

📦 integration-tests/maven

io.quarkus.maven.it.DevMojoIT.testThatNewResourcesAreServed line 849 - More details - Source on GitHub

@michalszynkiewicz michalszynkiewicz force-pushed the fix-grpc-request-scope branch 2 times, most recently from e242827 to c62fe3b Compare June 17, 2021 10:28
@quarkus-bot
Copy link

quarkus-bot bot commented Jun 17, 2021

This workflow status is outdated as a new workflow run has been triggered.

🚫 This workflow run has been cancelled.

Failing Jobs - Building e242827

⚠️ Artifacts of the workflow run were not available thus the report misses some details.

Status Name Step Test failures Logs Raw logs
Initial JDK 11 Build Cache Maven Repository ⚠️ Check → Logs Raw logs

Copy link
Contributor

@Ladicek Ladicek left a comment

Choose a reason for hiding this comment

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

Looks good, baring one little comment about testing. Also, maybe squash the commits now?

(I originally asked for a separate commit to see the changes you did after our Friday call, but we should probably squash before merging.)

Comment on lines 52 to 58
if (contextChecker.requestContextId() != contextId) {
throw new RuntimeException("Different context for onCompleted and RawTestService#bidi method");
}
if (!requestContext.isActive()) {
throw new RuntimeException("Request context not active for `onCompleted`");
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Exception messages here don't correspond to present code. There's no onCompleted here, and there's no RawTestService#bidi.

Sorry to be such a pain :-)

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for catching it, I wanted to be quick, sorry.

@quarkus-bot
Copy link

quarkus-bot bot commented Jun 21, 2021

This workflow status is outdated as a new workflow run has been triggered.

🚫 This workflow run has been cancelled.

Failing Jobs - Building 4c4c032

⚠️ Artifacts of the workflow run were not available thus the report misses some details.

Status Name Step Test failures Logs Raw logs
JVM Tests - JDK 11 Build ⚠️ Check → Logs Raw logs
JVM Tests - JDK 11 Windows Build ⚠️ Check → Logs Raw logs
JVM Tests - JDK 16 Build ⚠️ Check → Logs Raw logs
Native Tests - Data3 Build ⚠️ Check → Logs Raw logs
Native Tests - HTTP Build ⚠️ Check → Logs Raw logs
Native Tests - Messaging1 Build ⚠️ Check → Logs Raw logs
Native Tests - Misc1 Build ⚠️ Check → Logs Raw logs
Native Tests - Misc2 Build ⚠️ Check → Logs Raw logs
Native Tests - Misc3 ⚠️ Check → Logs Raw logs
Native Tests - Misc4 ⚠️ Check → Logs Raw logs
Native Tests - Security1 Build ⚠️ Check → Logs Raw logs
Native Tests - Security2 Build ⚠️ Check → Logs Raw logs
Native Tests - Spring ⚠️ Check → Logs Raw logs
Native Tests - Windows - hibernate-validator ⚠️ Check → Logs Raw logs
Native Tests - gRPC ⚠️ Check → Logs Raw logs

@gsmet
Copy link
Member

gsmet commented Jun 21, 2021

This looks a bit too involved to get backported but I'm not sure how critical the fix is? Given there's no backport label, I understand you didn't plan to backport it?

@michalszynkiewicz
Copy link
Member Author

I think it should be backported, I'll add the label.

@quarkus-bot
Copy link

quarkus-bot bot commented Jun 21, 2021

This workflow status is outdated as a new workflow run has been triggered.

Failing Jobs - Building 18ed189

Status Name Step Test failures Logs Raw logs
Initial JDK 11 Build Build ⚠️ Check → Logs Raw logs

Copy link
Contributor

@manovotn manovotn left a comment

Choose a reason for hiding this comment

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

From my limited understanding PoV, this looks fairly good :-)

@quarkus-bot
Copy link

quarkus-bot bot commented Jun 21, 2021

This workflow status is outdated as a new workflow run has been triggered.

Failing Jobs - Building dcb9e97

Status Name Step Test failures Logs Raw logs
Native Tests - Security3 Download Maven Repo ⚠️ Check → Logs Raw logs

@gsmet
Copy link
Member

gsmet commented Jun 21, 2021

@mkouba I let you have a look and merge it if it's fine for you.

@michalszynkiewicz
Copy link
Member Author

The tests for security should not in any way be impacted by this change and they failed with downloading maven repo :| :

Error: The HTTP request timed out after 00:01:40.
Error: Exit code 1 returned from process: file name '/home/runner/runners/2.278.0/bin/Runner.PluginHost', arguments 'action "GitHub.Runner.Plugins.Artifact.DownloadArtifact, Runner.Plugins"'.

@michalszynkiewicz
Copy link
Member Author

@gsmet I don't think it makes sense to rerun these tests, WDYT?

@gsmet
Copy link
Member

gsmet commented Jun 21, 2021

Agreed, merging.

@gsmet
Copy link
Member

gsmet commented Jun 21, 2021

Ah no, I'll let @mkouba have a look if he can and merge tomorrow if we don't hear from him as it would be better to have it in 2.0.0.Final.

@michalszynkiewicz michalszynkiewicz added the triage/waiting-for-ci Ready to merge when CI successfully finishes label Jun 22, 2021
@quarkus-bot
Copy link

quarkus-bot bot commented Jun 22, 2021

Failing Jobs - Building 8b9c8b2

Status Name Step Test failures Logs Raw logs
JVM Tests - JDK 11 Build Test failures Logs Raw logs
JVM Tests - JDK 11 Windows Build Test failures Logs Raw logs
JVM Tests - JDK 16 Build Test failures Logs Raw logs

Full information is available in the Build summary check run.

Test Failures

⚙️ JVM Tests - JDK 11 #

📦 integration-tests/opentelemetry

io.quarkus.it.opentelemetry.OpenTelemetryTestCase.testClientTracing line 308 - More details - Source on GitHub

📦 integration-tests/scala

io.quarkus.scala.maven.it.ScalaDevModeIT.testThatTheApplicationIsReloadedOnScalaChange line 23 - More details - Source on GitHub

io.quarkus.scala.maven.it.ScalaRemoteDevModeIT.testThatTheApplicationIsReloadedOnScalaChange line 25 - More details - Source on GitHub


⚙️ JVM Tests - JDK 11 Windows #

📦 integration-tests/scala

io.quarkus.scala.maven.it.ScalaDevModeIT.testThatTheApplicationIsReloadedOnScalaChange line 23 - More details - Source on GitHub

io.quarkus.scala.maven.it.ScalaRemoteDevModeIT.testThatTheApplicationIsReloadedOnScalaChange line 25 - More details - Source on GitHub


⚙️ JVM Tests - JDK 16 #

📦 integration-tests/scala

io.quarkus.scala.maven.it.ScalaDevModeIT.testThatTheApplicationIsReloadedOnScalaChange line 23 - More details - Source on GitHub

io.quarkus.scala.maven.it.ScalaRemoteDevModeIT.testThatTheApplicationIsReloadedOnScalaChange line 25 - More details - Source on GitHub

@gsmet gsmet merged commit 71f9dc5 into quarkusio:main Jun 22, 2021
@quarkus-bot quarkus-bot bot added this to the 2.1 - main milestone Jun 22, 2021
@quarkus-bot quarkus-bot bot removed the triage/waiting-for-ci Ready to merge when CI successfully finishes label Jun 22, 2021
@gsmet gsmet modified the milestones: 2.1 - main, 2.0.0.Final Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants