-
Notifications
You must be signed in to change notification settings - Fork 7.4k
fix: "narrow" fix to persist build time spi options #33979
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
Conversation
closes: keycloak#33902 Signed-off-by: Steve Hawkins <shawkins@redhat.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM but I think we're missing an integration test aiming for this particular fix.
This draft was to see if there was the same problem with all the other test failures as the other pr - and there are. The arquillian tests are seemingly reliant upon the behavior of not persisting the build time spi options. Haven't figured out why yet. |
@vmuzikar @mabartos @Pepo48 the issue appears to be related to the "restart" handling in the KeycloakQuarkusServerDeployableContainer. Before the container successfully starts, it's deleting the data dir. On the next startup it's expecting to "restart" - meaning triggering a build. This no longer happens after the change in this pr. What I'm not understanding immeditately is the relationship between running build and the database being deleted - what build time side effects are there related to database setup? |
I think this worked just by "accident". Even the original PR that introduced it is claiming to be:
Which is simply not true. The @pedroigor Are we perhaps missing something. :) Do you remember the reasoning behind it? |
@vmuzikar Not sure. What you mean by working by accident? |
After talking things over with @pedroigor we determined that the arquillian tests are reliant upon the profile.properties for manipulating features, which is effectively broken once we persist the spi build time options. I will take a pass at removing the use of profile.properties and --optimized from the arquillian tests so that we can just rely on the real auto-build. |
Unreported flaky test detectedIf 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.javascript.JavascriptAdapterTest#testSilentCheckSso
|
There was a problem hiding this comment.
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
@vmuzikar @pedroigor @Pepo48 @mabartos updated with initial changes to just use auto-builds. There will likely be a few additional clean ups, then some quarkus integration test to fully confirm we're persisting things. What we could do differently:
|
916befc
to
76cf7d0
Compare
also removed profile.properties support from quarkus Signed-off-by: Steve Hawkins <shawkins@redhat.com>
Signed-off-by: Steve Hawkins <shawkins@redhat.com>
IMO, the key point is to avoid increasing test execution time significantly, ideally reduce it. If auto-build is faster, the same, or slightly worse, I think it is worth relying on auto-builds (and the auto-build check) to make this simpler. |
adding a direct test of spi auto-build Signed-off-by: Steve Hawkins <shawkins@redhat.com>
Summary of changes here:
|
closes: #33902
Radical simplification from the changes proposed in #33760