-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[WFLY-19337] The GitHub Action to test ejb-txn-remote-call is now working #990
base: main
Are you sure you want to change the base?
Conversation
e97a484
to
f1d722a
Compare
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 guessing the tests are failing due to the refactoring of the script.
Run some of the other tests and adjust as needed. Once it all passes I can review properly :-)
@emmartins please comment to say whether you agree/disagree with my below comments
.github/workflows/scripts/kubernetes/core/run-quickstart-test-on-kubernetes.sh
Show resolved
Hide resolved
kubectl logs deployment/"${application}" | ||
testsFailed | ||
fi | ||
runningTests "${application}" "${server_protocol}" "$(getMvnVerifyExtraArguments)" |
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 I like 'hiding' this in the overridable-functions.
I think it would be cleaner to have some kind of check that can be overridden per tests in overridable-functions.sh, and an if/else check here. In the normal (if) case, run the tests normally in this file, and if we should run the tests ourselves implement that in the tests overridable-functions.sh.
BTW, I think a few other quickstarts use client/server, so if that can be a common use case which can be handled here, even better. Although perhaps that can come later.
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.
Thanks for your review, @kabir. I hope the last commit is close enough to having a default behaviour. Please, let me know what you think about it :-)
export image="${root_image_name}:latest" | ||
docker tag ${qs_dir} ${image} | ||
docker push ${image} | ||
provisionServer "${application}" "${qs_dir}" |
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.
Same comment. Please keep the default behaviour here, and if something special is needed do that in the test's overridable-functions
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.
Thanks for your review, @kabir. I hope the last commit is close enough to having a default behaviour. Please, let me know what you think about it :-)
@kabir if I understood correctly the issue with this proposal is that if a QS wants to override a function, it needs to override all, and you are proposing an alternative where that doesn't need to happen? |
@emmartins More or less, I'd like to keep the code that works in all other quickstarts apart from this one in the main script. Something like:
Rather than putting '//Old bash content' into the mai |
@@ -293,7 +296,7 @@ the `client` and `server` application can be deployed | |||
[source,sh,subs="+quotes,attributes+",options="nowrap"] | |||
---- | |||
cd ${PATH_TO_QUICKSTART_DIR}/ | |||
mvn clean package | |||
mvn clean package -P '!provisioned-server' |
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.
leftover?
</build> | ||
</profile> | ||
<profile> | ||
<id>openshift</id> |
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.
we no longer have openshift profile in server module, is this expected?
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.
Yep, I realised we can just trust the provisioned-server
profile
77711f4
to
8f5d336
Compare
# 0 - false | ||
# 1 - true | ||
# | ||
function customProcessing() { |
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.
'processing' feels a bit vague, and 'helmInstall' is already used. Maybe 'customHelmProcessing'?
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.
At least for ejb-tx-remote-call
, this function is not about Helm. That's why I went for the generic processing
. I'm very happy to go for something else (as I don't like processing
myself) but I'd like something without helm in the function's name. WDYT?
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.
Hmm, maybe something like 'customDeploy'? I think this has the logic of how we deploy the app, and covers both the Helm and non-Helm cases?
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.
Cool. deploy
and customDeploy
will be then :-) Thanks Kabir
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.
Aside from needing some conflicts resolved, and a comment about one of the names, I think this now looks more like what I had in mind :-)
f636e00
to
e8d8dce
Compare
e8d8dce
to
ed9db7d
Compare
WFLY-19337