-
Notifications
You must be signed in to change notification settings - Fork 176
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
JBTM-3260 On publishing a new Narayana release there should be created Quarkus PR to update Narayana version #1569
Conversation
Started testing this pull request with PERF profile: http://172.17.130.4:8083/job/btny-pulls-narayana-perf/PROFILE=PERF,jdk=jdk8.latest,label=master/1192/ |
Benchmark output (please refer to the article https://developer.jboss.org/wiki/PerformanceGatesForAcceptingPerformanceFixesInNarayana for information on our testing procedures. If you just want to run a single benchmark then please refer to the README.md file in our benchmark repository at https://github.com/jbosstm/performance/tree/master/narayana JMH benchmark run (with args -t 240 -r 25 -f 2 -wi 5 -i 5) Comparison (pull request versus master) com.hp.mwtests.ts.arjuna.atomicaction.CheckedActionTest.testThreadActionData: 2031013.181800 vrs 2016314.666538 (0.000000%: no change) For information on the hardware config used for this PR please consult the CI job artefact hwinfo.txt or the job output If the purpose of this PR is to improve performance then there has been insufficient improvement to warrant a pass. See the previous text for the threshold (range) for passing optimization related PRs |
PERF profile job finished http://172.17.130.4:8083/job/btny-pulls-narayana-perf/PROFILE=PERF,jdk=jdk8.latest,label=master/1192/ |
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.
Please, have you tried to run it locally? It's important as the CI won't catch any issue in the script. It will be found only during the release process.
I think we need to have something similar as for WFLY here:
Then there is this read -p
question.
https://github.com/jbosstm/narayana/blob/5.10.4.Final/narayana-release-process.sh#L17
The quarkus issue is different as it's not created via https://issues.redhat.com but at quarkus github. Ie.g this is a bug here: https://github.com/quarkusio/quarkus/issues/new?assignees=&labels=kind%2Fbug&template=bug_report.md&title=
and we should add with label area/narayana
and kind/enhancement
So, let's summarize what should be a nice to have as a result:
- It would be good to have an automatic creation of the Quarkus issue which asks for update of the Narayana version.
** WildFly only asks you to create an issue manualy (https://github.com/jbosstm/narayana/blob/5.10.4.Final/narayana-release-process.sh#L17). Here it would be nice to be automatized a bit.
** I'm not sure if it's possible with github API or something but if it's possible then instead of asking if the Quarkus issue was created it would be good to provide more automatized way of creating of the issue. E.g. create it and then show in the browser that the user who proceed with release may adjust it. - Then there should be the code you provided
** Try it locally as the CI won't catch issues in processing.
** The pull request against the created issue should be done. The PR may say that itfixes that issue
and if the PR is merged the issue is then automatically closed (https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword).
@@ -143,6 +138,33 @@ then | |||
fi | |||
cd .. | |||
|
|||
# Raising PR for quarkus to upgrade Narayana to current version. | |||
QRKSISSUE = WFLYISSUE |
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.
I'm not sure if it's good to go with the same issue name with Quarkus as it was for WFLY
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.
I am using the same issue name because when narayana-release-process.sh is called, WFLYISSUE is coming as third argument, and I was not knowing from where, when and who calls this file. Otherwise I would have used the fourth argument for QRKSISSUE.
git fetch upstream; | ||
git checkout -b ${QRKSISSUE} | ||
git reset --hard upstream/master | ||
cd /bom/runtime/ |
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.
I think this won't work as you go with abs path
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.
locally this was working, but anyways it is always better to use full path, so I will change it as requested.
CURRENT_VERSION_IN_QRKS=`grep 'narayana.version>' pom.xml | cut -d \< -f 2|cut -d \> -f 2` | ||
sed -i "s/narayana.version>$CURRENT_VERSION_IN_QRKS/narayana.version>$CURRENT/g" pom.xml | ||
cd ../../ | ||
git add /bom/runtime/pom.xml |
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.
I assume this won't work (abs path used)
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.
I will refactor this as per request
git add /bom/runtime/pom.xml | ||
git commit -m "${QRKSISSUE} Upgrade Narayana to $CURRENT" | ||
git push --set-upstream jbosstm ${QRKSISSUE} | ||
git checkout 5_BRANCH |
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.
I assume there is no 5_BRANCH
in quarkus repo. I think the master
should be used.
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.
okay, will change it to master.
@mayankkunwar ok, I'm putting this PR on hold as @xstefank pointed me out to the Please, do not proceed with the changes that I suggested and let's talk about the bot tomorrow - if it's a feasible option for us. |
@ochaloup okay, we can have a discussion on the same before moving forward. |
I am going to close this PR, as we tried to solve this problem with a better alternative solution, by adding narayana dependencies to quarkus dependabot config.xml. |
https://issues.redhat.com/browse/JBTM-3260
MAIN
!QA_JTA !QA_JTS_JDKORB !QA_JTS_OPENJDKORB !QA_JTS_JACORB !BLACKTIE !XTS !PERF NO_WIN !RTS !AS_TESTS !TOMCAT !JACOCO !LRA