Skip to content

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.

@@ -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 kinow force-pushed the spring3 branch 2 times, most recently from 94d3c25 to 44b90a3 Compare December 3, 2023 17:20
@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 😬

@kinow kinow self-assigned this Aug 23, 2024
// 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 kinow requested review from mr-c and GlassOfWhiskey 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 !

@mr-c
Copy link
Member

mr-c commented Sep 25, 2024

@kinow Shall I merge?

@kinow
Copy link
Member Author

kinow commented Sep 27, 2024

@kinow Shall I merge?

Let me rebase, and then do some quick tests with Docker locally. Then it should be ready to go! 💥

@kinow
Copy link
Member Author

kinow commented Sep 27, 2024

@mr-c rebased, GH Actions passed, then checked out latest commit, ran docker compose up, uploaded some CWL files, they were all correctly rendered. I think it's ready to be merged now 🙂 Thanks!

@mr-c mr-c merged commit 26843b2 into common-workflow-language:main Sep 27, 2024
6 checks passed
@mr-c
Copy link
Member

mr-c commented Sep 27, 2024

Huzzah!

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