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

tests: Run integration test in GitHub actions #35

Merged
merged 1 commit into from
Oct 13, 2021

Conversation

martinpitt
Copy link
Collaborator

@martinpitt martinpitt commented Oct 11, 2021

Run them on pull requests, and every Monday morning, to catch
regressions in operating systems and outside dependencies.


This provides feedback for role changes on at least one operating system for outside contributors like me, where the integration tests don't run automatically. It may also help you to remove some of your own custom infra.

If you generally like this, I am happy to work on this some more, and run the test in containers instead (system containers with systemd ought to work well enough these days). Then we can have a test matrix for debian, ubuntu, centos, fedora, and possibly even UBI.

@martinpitt
Copy link
Collaborator Author

I also ran this on my fork in combination with the extra tests from PR #34. You can see the result in this run.

Run them on pull requests, and every Monday morning, to catch
regressions in operating systems and outside dependencies.
@martinpitt
Copy link
Collaborator Author

Sorry for the blocked setting/unsetting -- it pretty well does not matter which one (this or #34) lands first, the other one then needs to be rebased, to make sure that the new checks work in github actions.

@richm
Copy link
Contributor

richm commented Oct 11, 2021

Why not do the ubuntu test runs for every PR? That is, why only once per week?

@richm
Copy link
Contributor

richm commented Oct 11, 2021

[citest pending]

@martinpitt
Copy link
Collaborator Author

Why not do the ubuntu test runs for every PR? That is, why only once per week

It does run for every PR -- you can already see the result right here in the tests. It has two triggers, "on: pull" and "on: cron".

@richm
Copy link
Contributor

richm commented Oct 11, 2021

[citest pending]

@martinpitt
Copy link
Collaborator Author

@richm : Integration tests were stuck (I'm trying to sort that out in #34), but this PR only adds the Github workflow, and that passes. Are you ok with this new test, or want me to change the approach here?

Copy link
Contributor

@richm richm left a comment

Choose a reason for hiding this comment

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

lgtm

@richm richm merged commit 7aaf647 into linux-system-roles:master Oct 13, 2021
@martinpitt martinpitt deleted the tests-actions branch October 13, 2021 13:52
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.

2 participants