-
Notifications
You must be signed in to change notification settings - Fork 134
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
[#580] chore: move deploy/kubernetes to a standalone workflow #578
Conversation
Seems like other module is still compiled . it is possible to run build-operator.sh and test-operator.sh directly. |
Anyway, many thanks for the work. I thought about it a while ago. |
We need other jars to run K8S integration tests, so we should compile them. |
Currently, there's no jars needed to run K8S tests? Even if we enable integration tests, we may relies the rss-server images to run integration tests? |
We should use latest jars to produce image. |
you mean |
Yes. why don't we use it in IT? |
We just don't docker build this Dockerfile yet. |
I mean that we will use it if we have IT tests. |
Ah, yes. But I think in most cases, we will just reuse the already existed docker image or put the shuffler server docker image When we start integration tests, the ci workflow will need some refactor work to support it. |
@jerqi @advancedxy Let's just create a new CI workflow for deploy and k8s tests later. The |
fair point.. |
It's ok. |
cac80ba
to
ac822c8
Compare
@jerqi @advancedxy I've added a standalone workflow. How do you think? |
It's ok for me. |
Sounds good to me. |
.github/workflows/build.yml
Outdated
uses: ./.github/workflows/deploy.yml | ||
with: | ||
maven-args: package | ||
maven-options: -DskipUTs -DskipITs |
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.
for this case, I think it should be more related to the k8s profile?
For k8s, it doesn't need to run maven with uts..
however there could be other deploy options.
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.
Unless you call it k8s_deploy.yml ?
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.
There might be deploy/YARN
in the future. Let's keep it as is now?
If you wish to not run it with maven, feel free to change it 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.
There might be
deploy/YARN
in the future. Let's keep it as is now? If you wish to not run it with maven, feel free to change it later.
I like the idea that we can simply call maven to build all the stuff. I am not intended to run without mvn.
I'am thinking about this case.
# for k8s
mvn -Pk8s -DskipUTs -DskipITs
# for yarn, it should be without -DskipUTs.
mvn -Pyarn
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.
maybe you should use this trick to put maven options in the matrix side. https://stackoverflow.com/questions/66025220/paired-values-in-github-actions-matrix
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.
# for yarn, it should be without -DskipUTs. mvn -Pyarn
I don't want to support YARN in this PR.
YARN will be supported when it's introduced (probably never).
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 just want to do minimal changes to move k8s test out of parallel.yml
.
And speed up k8s CI by skipping UT and IT.
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 ok to move the -DskipUTs ...
into the deploy.yml side.
Thanks @advancedxy and @jerqi for the discussion and review. |
What changes were proposed in this pull request?
kubernetes
profile fromparallel.yml
to a standalone workflow.kubernetes
workflow by skipping java tests.Why are the changes needed?
Sub-task of #580
parallel.yml
.kubernetes
CI.Does this PR introduce any user-facing change?
No.
How was this patch tested?
CI.