Skip to content
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

graalvm workflow modifications #359

Merged
merged 4 commits into from
May 12, 2023
Merged

graalvm workflow modifications #359

merged 4 commits into from
May 12, 2023

Conversation

msupic
Copy link
Contributor

@msupic msupic commented May 11, 2023

Modifications:

  • deleted graalvm.yml
  • added graalvm-latest.yml (executes only native tests using 'latest' graalvm for PRs and merges to master)
  • added graalvm-dev.yml (executes only native tests using 'dev' graalvm once a day)

New workflows are using github composite actions from https://github.com/micronaut-projects/github-actions.

NOTE: This PR should be merged to master after this PR: micronaut-projects/github-actions#26

deleted graalvm.yml
added graalvm-latest.yml (executes only native tests by 'latest' graalvm for PRs and merges to master)
added graalvm-dev.yml (executes only native tests by 'dev' graalvm once a day)
Comment on lines 63 to 66
if ./gradlew tasks --no-daemon --all | grep -w "nativeTest"
then
./gradlew nativeTest --no-daemon --continue
fi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think @melix once said there was a better way to do this

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can basically remove this once every project has moved out of the legacy nativeTest task, which should be the case by now?

Copy link
Contributor Author

@msupic msupic May 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't remove that since not all modules in a project have nativeTest task. So far we had dependency between the check and nativeTest gradle tasks and when we executed the check task we didn't have to worry whether module has nativeTest task or not, but now we want to remove that dependency and to execute only nativeTest tasks in this workflow.

@alvarosanchez
Copy link
Member

This is an interesting way of reusing workflows. At micronaut-projects/micronaut-kubernetes#534, @n0tl3ss tried differently by using reusable worklfows.

I'd leave to you both to decide which one is better

@msupic
Copy link
Contributor Author

msupic commented May 11, 2023

This implementation is also based on reusable worklfows.

Copy link
Member

@n0tl3ss n0tl3ss left a 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.

@alvarosanchez
Copy link
Member

The last thing to consider: the graalvm-dev and graalvm-latest workflows should be synced only once. When all the repos have received the sync PR, we need to ignore them from the sync list. And the same think should be done with the Gradle workflow.

Would you please create an issue to not forget about it?

@msupic msupic merged commit 1c3addf into master May 12, 2023
3 checks passed
@msupic msupic deleted the native-test-workflows branch May 12, 2023 10:24
@msupic
Copy link
Contributor Author

msupic commented May 12, 2023

@alvarosanchez: I created a new issue: #360

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants