Skip to content

Fix #1516 - Swap ULID implementation#1518

Open
ricardozanini wants to merge 2 commits into
serverlessworkflow:mainfrom
ricardozanini:issues/1516
Open

Fix #1516 - Swap ULID implementation#1518
ricardozanini wants to merge 2 commits into
serverlessworkflow:mainfrom
ricardozanini:issues/1516

Conversation

@ricardozanini

Copy link
Copy Markdown
Member

Fix #1516

Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
Copilot AI review requested due to automatic review settings July 3, 2026 19:40
@ricardozanini ricardozanini requested a review from fjtirado as a code owner July 3, 2026 19:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the impl module to replace the previously used ULID generator with ulid-creator, aligning with Issue #1516’s goal of moving away from an unmaintained, contention-prone ULID implementation.

Changes:

  • Swap the ULID dependency from de.huxhorn.sulky.ulid to com.github.f4b6a3:ulid-creator.
  • Update MonotonicUlidWorkflowInstanceIdFactory to generate IDs using UlidFactory.
  • Add a JUnit test to validate ULID format and basic uniqueness for workflow instance IDs.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
impl/core/src/main/java/io/serverlessworkflow/impl/MonotonicUlidWorkflowInstanceIdFactory.java Switches runtime ULID generation to ulid-creator’s monotonic factory.
impl/pom.xml Replaces the managed ULID dependency and introduces the new version property.
impl/core/pom.xml Updates module dependency to ulid-creator.
impl/test/src/test/java/io/serverlessworkflow/impl/test/WorkflowInstanceIdTest.java Adds coverage to ensure generated workflow instance IDs match ULID expectations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
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.

Replace sulky-ulid with ulid-creator

2 participants