Attach js-adapter to maven uploads and rewrite version to semver compatible if needed#23512
Attach js-adapter to maven uploads and rewrite version to semver compatible if needed#23512stianst merged 1 commit intokeycloak:mainfrom
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.
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.
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.
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
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.
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