-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Attach js-adapter to maven uploads and rewrite version to semver compatible if needed #23512
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
1 flaky test on run #9100 ↗︎Details:
|
|||||||||||||||||||||
| Test | Artifacts | |
|---|---|---|
| Realm settings events tab tests > Should remove event from event listener |
Test Replay
Output
Screenshots
|
|
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.
set-version.sh
Outdated
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.
This doesn't produce valid semantic version.
E.g. 22.0.3.redhat-00001 -> 22.0.3.redhat+00001
Which is not valid semantic version. Valid would look like 22.0.3+redhat-00001
(check here: https://regex101.com/r/ETSiwK/1)
I suggest to use: NEW_NPM_VERSION=$(echo $NEW_VERSION | awk -F '.' '{ print $1"."$2"."$3"+"$4 }')
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.
Tried to avoid that since it would convert 22.0.0-alpha to 22.0.0+alpha in case we ever wanted to do a pre-release, but we can fix that if we ever do it (which is unlikely tbh).
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.
Ahh yes, I overlooked this. Looks like this has now been changed to 22.0.3+redhat-00001 so that should be valid.
…atible if needed Closes keycloak#23312
f41c446 to
a47073a
Compare
pskopek
left a comment
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.
LGTM!
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.ui.account2.WelcomeScreenTest#applicationsTestKeycloak CI - Account Console IT (firefox) |
ghost
left a comment
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
|
@stianst isn't it an option to use something like mvnpm.org to get this? |
Nah, we actually need it the other way around. |
…atible if needed (keycloak#23512) Closes keycloak#23312
Updates
set-version.shto check if version is not semver compliant, and rewrites for NPM packages if needed.For example
22.0.3.redhat-00001will be rewritten to22.0.3+redhat-00001.Also attaches the JS adapter tarball to Maven, which makes it available in local repository with
mvn installand also includes it in artifacts uploaded to Maven repository for a release.Closes #23312