Skip to content

Synchronize workflow scheduled settings using cluster events#48422

Merged
pedroigor merged 2 commits into
keycloak:mainfrom
sguilhen:48185-scheduled-workflow-cluster-sync
Apr 27, 2026
Merged

Synchronize workflow scheduled settings using cluster events#48422
pedroigor merged 2 commits into
keycloak:mainfrom
sguilhen:48185-scheduled-workflow-cluster-sync

Conversation

@sguilhen

Copy link
Copy Markdown
Contributor

Closes #48185

@keycloak-github-bot

Copy link
Copy Markdown

Unreported flaky test detected

If the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR.

org.keycloak.testsuite.authz.PolicyEvaluationTest#

Keycloak CI - Base IT (3)

org.opentest4j.AssertionFailedError: expected: <PERMIT> but was: <null>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
...
org.opentest4j.AssertionFailedError: expected: <PERMIT> but was: <null>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
...
org.opentest4j.AssertionFailedError: expected: <PERMIT> but was: <null>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
...

Report flaky test

@keycloak-github-bot keycloak-github-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unreported flaky test detected, please review

@sguilhen sguilhen force-pushed the 48185-scheduled-workflow-cluster-sync branch from 694b1c8 to 67c93b1 Compare April 23, 2026 17:52
@sguilhen sguilhen marked this pull request as ready for review April 23, 2026 18:57
@sguilhen sguilhen requested review from a team as code owners April 23, 2026 18:57
@keycloak-github-bot

Copy link
Copy Markdown

Unreported flaky test detected

If the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR.

org.keycloak.testsuite.authz.PolicyEvaluationTest#

Keycloak CI - Base IT (3)

org.opentest4j.AssertionFailedError: expected: <PERMIT> but was: <null>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
...
org.opentest4j.AssertionFailedError: expected: <PERMIT> but was: <null>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
...
org.opentest4j.AssertionFailedError: expected: <PERMIT> but was: <null>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
...

Report flaky test

@keycloak-github-bot keycloak-github-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unreported flaky test detected, please review

pedroigor
pedroigor previously approved these changes Apr 24, 2026
Closes keycloak#48185

Signed-off-by: Stefan Guilhen <sguilhen@redhat.com>
- Use per-execution distributed locking in RunWorkflowTask to ensure only one node processes a given workflow execution at a time.

Closes keycloak#48185

Signed-off-by: Stefan Guilhen <sguilhen@redhat.com>
@sguilhen sguilhen force-pushed the 48185-scheduled-workflow-cluster-sync branch from 2d9aef5 to dd5fc3c Compare April 27, 2026 11:24
@pedroigor pedroigor merged commit 33651e4 into keycloak:main Apr 27, 2026
86 checks passed
sguilhen added a commit to sguilhen/keycloak that referenced this pull request Apr 27, 2026
…k#48422)

Closes keycloak#48185

Signed-off-by: Stefan Guilhen <sguilhen@redhat.com>

(cherry picked from commit 33651e4)
pedroigor pushed a commit that referenced this pull request Apr 27, 2026
Closes #48185

Signed-off-by: Stefan Guilhen <sguilhen@redhat.com>

(cherry picked from commit 33651e4)
@sguilhen sguilhen deleted the 48185-scheduled-workflow-cluster-sync branch April 28, 2026 16:02
@stianst stianst mentioned this pull request Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deleted workflow still attempting to run

2 participants