Repository navigation
Update UA Parser to latest version - #16876
Conversation
167b6ad to
6a17974
Compare
There was a problem hiding this comment.
Unreported flaky test detected, please review
Unreported flaky test detectedIf the below 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.model.UserSessionProviderTest#testRestartSession |
7a70933 to
043d53d
Compare
There was a problem hiding this comment.
Unreported flaky test detected, please review
Unreported flaky test detectedIf the below 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.model.UserSessionProviderOfflineTest#testOnClientRemovedorg.keycloak.testsuite.model.UserSessionProviderTest#testRestartSession |
3930dcb to
59ee3b5
Compare
There was a problem hiding this comment.
Note that this step takes a few seconds.
It is common to instantiate the UserAgentAnalyzer once and use it many times.
There was a problem hiding this comment.
@nielsbasjes Many thanks. I'm sure that will help with some of the performance issues we've been seeing.
Unreported flaky test detectedIf the below 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.model.UserSessionProviderOfflineTest#testOnClientRemovedorg.keycloak.testsuite.model.UserSessionProviderTest#testRestartSession |
There was a problem hiding this comment.
Unreported flaky test detected, please review
There was a problem hiding this comment.
Unreported flaky test detected, please review
Unreported flaky test detectedIf the below 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.forms.LoginTest#loginRememberMeExpiredMaxLifespanKeycloak CI - FIPS IT (non-strict) org.keycloak.testsuite.forms.LoginTest#loginRememberMeExpiredIdleKeycloak CI - FIPS IT (non-strict) |
|
@douglaspalmer I've started discussion related to device detection: #17067 |
|
I've reviewed and reported the reported flaky tests, nothing that is introduced by this PR, so from that perspective it's good to merge. |
There was a problem hiding this comment.
@douglaspalmer I suggest that this is done in 2 pieces:
-
First PR will only introduce SPI and change the current
DeviceActivityManagerto consume it. So the impl of that SPI can be still based on "ua parser" in that PR -
Follow-up PR, which will change default impl from "ua parser" to the yauaa.
This will allow easier review. Also the point is, that introduction of SPI can be always good IMO. However we're not yet 100% confident whether to go with yauaa (and hence it is question whether to go with also with (2)).
Also added 1 comment inline to the SPI.
There was a problem hiding this comment.
Is it possible that this method is changed to something like DeviceRepresentation getDeviceRepresentation() ?
As it will be nice that SPI is generic and does not use any YAUAA specific stuff.
That will allow that for example people can plug their own impl based on completely different library if they want to.
And you can also drop all built in testcases during construction. |
0cb99a0 to
064fc47
Compare
How do I drop all built in testcases? I tried dropTests() but that results in an exception at startup: Caused by: nl.basjes.parse.useragent.analyze.InvalidParserConfigurationException: There were no resources found for the expression: UserAgents/Additional-Tests.yaml |
I checked the full errorlog of your CI build. So I created nielsbasjes/yauaa#927 |
3bbe17e to
d153d1e
Compare
|
I fixed the dropTests problem in Yauaa 7.14.0 (released just now). |
|
@douglaspalmer LGTM, Thanks! Question: You mentioned in the initial comment on this PR |
|
I was asked for a review but I have no say in this project. |
@nielsbasjes Performance was the main issue. You can read the discussion here: #17067 |
|
Thanks. |
|
@douglaspalmer @abstractj @nielsbasjes Thanks everyone to participate in this! |
|
@mposolda I'll have a look at making it an extension. Regarding #17067 See also: #17067 (comment) |
closes #16729