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 guice-servlet from 5.1.0 to 7.0.0 #3836

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 15, 2023

Bumps guice-servlet from 5.1.0 to 7.0.0.

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps guice-servlet from 5.1.0 to 7.0.0.

---
updated-dependencies:
- dependency-name: com.google.inject.extensions:guice-servlet
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added backport/v0.6 dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Jun 15, 2023
@janusgraph-bot janusgraph-bot added the cla: external Externally-managed CLA label Jun 15, 2023
@FlorianHockmann
Copy link
Member

The release for Guice 7.0.0 mention a breaking change related to the javax packages. Since we're using javax, I wanted to check whether we're using Guice in the same modules that use javax, but I couldn't find any usage of Guice in general.
So I want to try out whether we can safely remove Guice instead of updating it. I'll come back to this once I found that out and create a PR to remove Guice if we can safely do that.

Copy link
Member

@FlorianHockmann FlorianHockmann left a comment

Choose a reason for hiding this comment

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

Looks like I was wrong about not needing Guice any more. I tried to remove it, but that lets a test consistently fail: ConfigurationManagementGraphServerTest.bindingShouldExistAfterGraphIsCreated

However, I read the release notes for Guice 7.0.0 more carefully and they only mention 3 specific namespaces that don't work any more with Guice 7: javax.inject, javax.servlet, and javax.persistence. Out of these 3, I only found javax.servlet as a dependency, but I couldn't find any usage as an import.
So, I guess the update is unproblematic for us.

@FlorianHockmann FlorianHockmann added this to the Release v1.0.0 milestone Jun 21, 2023
@porunov
Copy link
Member

porunov commented Jun 22, 2023

Looks like I was wrong about not needing Guice any more. I tried to remove it, but that lets a test consistently fail: ConfigurationManagementGraphServerTest.bindingShouldExistAfterGraphIsCreated

However, I read the release notes for Guice 7.0.0 more carefully and they only mention 3 specific namespaces that don't work any more with Guice 7: javax.inject, javax.servlet, and javax.persistence. Out of these 3, I only found javax.servlet as a dependency, but I couldn't find any usage as an import. So, I guess the update is unproblematic for us.

I haven't checked how this dependency is related, but I see bindingShouldExistAfterGraphIsCreated is often fail currently. I have to restart it often in GitHub Actions. I haven't checked the test itself but I assume it's a flaky test.

Copy link
Member

@FlorianHockmann FlorianHockmann left a comment

Choose a reason for hiding this comment

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

I haven't checked how this dependency is related, but I see bindingShouldExistAfterGraphIsCreated is often fail currently. I have to restart it often in GitHub Actions. I haven't checked the test itself but I assume it's a flaky test.

I think you're right. I also noticed it failing more often for completely different branches. I'm not even sure if this test is flaky or whether it's completely broken at the moment as it seems to fail consistently, even with restarted jobs.
However, locally it passed for me.
I created an issue for this: #3849

This probably also means that we can in fact remove guice. So, we don't need to merge this PR.

@FlorianHockmann
Copy link
Member

PR to remove Guice: #3852

@dependabot ignore this dependency

@dependabot dependabot bot closed this Jun 23, 2023
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Jun 23, 2023

OK, I won't notify you about com.google.inject.extensions:guice-servlet again, unless you re-open this PR. 😢

@dependabot dependabot bot deleted the dependabot/maven/com.google.inject.extensions-guice-servlet-7.0.0 branch June 23, 2023 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/v0.6 cla: external Externally-managed CLA dependencies Pull requests that update a dependency file java Pull requests that update Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants