-
Notifications
You must be signed in to change notification settings - Fork 98
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
[issue-1272] GitHub action setup #1304
Conversation
d1a8759
to
1a9f7b4
Compare
1a9f7b4
to
ee42828
Compare
.github/workflows/maven.yml
Outdated
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] |
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 not sure we need to create a platform matrix as this will require linux containers, so this won't ever work on windows and probably neither on macos.
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.e. I would just do runs-on: ubuntu-latest
and move on
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.
got 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 guess matrix
aims at supporting more than just one JDK, as it was in the initial PR: https://github.com/arquillian/arquillian-cube/pull/1274/files#diff-5dbf1a803ecc13ff945a08ed3eb09149a83615e83f15320550af8e3a91976446R19
But just my take.
A question, though: wouldn't be better to have them working on linux and file a separate tracker for expanding? Short living (hopefully) and easy to review PRs would be the reason.
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.
JDK matrix for sure - but os matrix not really useful.
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.
Hi @gaol - and thanks for this PR.
I dropped some minor comments, and I'd like to know whether we do have some run reference for the action we are implementing: maybe here? https://github.com/gaol/arquillian-cube/actions
WDYT?
.github/workflows/maven.yml
Outdated
driver: docker | ||
container runtime: containerd | ||
minikube version: 'v1.30.1' | ||
kubernetes version: 'v1.27.1' |
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.
Just asking whether we'd want to use the latest K8s minor, or at least micro? See https://kubernetes.io/releases/
Or is there a reason for referencing 1.27.1
?
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.
Sure, we can use the latest version I guess. It was there from original PR. will update it to 1.30.0
which is the latest one I can see. also I will update the actions-setup-minikube
to latest one to support it.
.github/workflows/maven.yml
Outdated
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] |
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 guess matrix
aims at supporting more than just one JDK, as it was in the initial PR: https://github.com/arquillian/arquillian-cube/pull/1274/files#diff-5dbf1a803ecc13ff945a08ed3eb09149a83615e83f15320550af8e3a91976446R19
But just my take.
A question, though: wouldn't be better to have them working on linux and file a separate tracker for expanding? Short living (hopefully) and easy to review PRs would be the reason.
WDYT?
Yes, there is: https://github.com/gaol/arquillian-cube/tree/github_action_setup_own_test, which is the place I test the github action execution.
Sure, now the plan is to stay with |
Thanks @gaol - Ok, so we'd have to wait for a green bar there, right? IIUC the last commit is failing the CI checks: https://github.com/gaol/arquillian-cube/actions/runs/8814197921/job/24193526839 |
yes, @fabiobrz , I think there is a temporary failure (failed with |
8239bb1
to
0c6b317
Compare
Updated according to the feed backs:
The reference github action execution is: https://github.com/gaol/arquillian-cube/actions/runs/8818141575/job/24206240475 |
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 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.
Few more things.
.github/workflows/maven.yml
Outdated
@@ -0,0 +1,74 @@ | |||
name: Arquillian-Cube Maven Build |
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 drop the dash, the project name is "Arquillian Cube" (no dash).
Nevertheless I always struggle how to name these. The project name seems redundant. The maven build is also redundant, since that's the only build system we use here. Also, build is a bit of a misnomer as primarily this is used to testing...
.github/workflows/maven.yml
Outdated
- uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: server-logs-${{ matrix.os }}-${{ matrix.java }} |
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.
The ${{ matrix.os }} would fail to resolve now.
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.
right !
.github/workflows/maven.yml
Outdated
- uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: surefire-reports-${{ matrix.os }}-${{ matrix.java }} |
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.
The ${{ matrix.os }} would fail to resolve now.
.github/workflows/maven.yml
Outdated
- uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: server-logs-${{ matrix.os }}-${{ matrix.java }} |
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.
Also any reason why this action is duplicated? I would just collect this in one zip with multiple paths.
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.
They are different artifacts, one is all from target/urefire-reports/
, the other is from all *.log
files, the 2 artifacts separate the information. but I think it is fine as well to zip all into one artifact.
* Monitor changes on main branch * Ignore changes in non-code paths * Specify env FAILSAFE_GROUPS to run group of tests * Pre fetch dependnecies in Maven build * Check unit tests only for now
0c6b317
to
eca206c
Compare
@rhusar thanks, fixed as the following:
The last execution is: https://github.com/gaol/arquillian-cube/actions/runs/8826949457/job/24233479032 |
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.
Looks good to me, thanks!
Fixes #1272
main
branch only and ignore changes in non code paths./mvnw clean package