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

Upgrading to Spring Boot 3 #568

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kinow
Copy link
Member

@kinow kinow commented Sep 26, 2023

Description

Upgrading to Spring Boot 3

Motivation and Context

#566 (comment)

Closes #576

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

docker-compose.yml Outdated Show resolved Hide resolved
@@ -214,7 +214,7 @@ public ModelAndView getWorkflow(
* @param branch The branch of the repository
* @return The workflow view with the workflow as a model
*/
@GetMapping(value = "/workflows/**/*.git/{branch}/**")
@GetMapping(value = "/workflows/*/*.git/{branch}/**")
Copy link
Member Author

Choose a reason for hiding this comment

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

This needs to be well tested.

Now Spring Web doesn't allow any content after the /**. I found an issue or blog that suggested to test with /*/bla instead. Trying to get the tests and build to pass in order to verify it in the browser.

@@ -9,7 +9,7 @@
class="ch.qos.logback.core.ConsoleAppender">
<layout class="ch.qos.logback.classic.PatternLayout">
<Pattern>
%black(%d{ISO8601}) %highlight(%-5level) [%blue(%t)] %yellow(%C{1.}): %msg%n%throwable
%black(%d{ISO8601}) %highlight(%-5level) [%blue(%t)] %yellow(%C{1}): %msg%n%throwable
Copy link
Member Author

Choose a reason for hiding this comment

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

Was getting a NumberFormatException for 1., during the logback startup. This was the only place where I found the 1.. Changing it the build didn't fail in the same place, but will have to confirm what was the 1., and if the 1 alone will act the same way.

@kinow kinow changed the title WIP Upgrading to Spring Boot 3 Oct 12, 2023
@kinow
Copy link
Member Author

kinow commented Oct 12, 2023

Fixed one broken test today, three more to go. Two I know the reason, but not the solution. The other we had during the migration mongo->postgres, so I just need to find the notes about how to debug that one (need to look at the query executed during the unit test...)

@kinow
Copy link
Member Author

kinow commented Aug 23, 2024

The last test failing is due to Hibernate/Postgres. At least the others were fixed (at least locally, waiting for GH Actions). Time to search for issues/SO's/etc now 😬

// mapping library we use, with what was the fix for our issue (ran
// out of ideas, so started testing everything found online):
// Use `new JsonType(GitDetails.class)`. That finally solved it.
// Ref: https://github.com/common-workflow-language/cwlviewer/pull/568
Copy link
Member Author

Choose a reason for hiding this comment

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

The fix, finally ☝️

Works on my computer™, but pending tests with some workflows to confirm it's working.

@kinow kinow marked this pull request as ready for review August 23, 2024 22:31
@kinow
Copy link
Member Author

kinow commented Aug 23, 2024

Finally had some time to give it another try, and managed to get all tests passing. Still a couple of points pending, and I will try to do some manual tests using existing CWL workflows. But feel free to review or test it if you have time -- I will test it next time I have a chance, but at least we now have a working build with updated Spring Boot and dependencies 👋

Copy link
Member

@mr-c mr-c left a comment

Choose a reason for hiding this comment

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

Really exciting, thank you @kinow !

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.

2 participants