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

ci: improve manual Github Action #2566

Closed
wants to merge 3 commits into from

Conversation

LaszloGombos
Copy link
Collaborator

The main motivation is to help facilitate development of dracut using GitHub infra.

As the number of tests and number of containers grow, we could consider running less tests automatically on each PR and only run them on demand with the manual Github Action.

Running manual tests has the benefit of having the log available for everyone to see after the run, and saves the time of manually creating distro environments and uploading test logs.

1./ This commit enables setting environment variables before running the test. More specifically it sets rd.debug for manual builds by default, which can be turned off by simply clearing the "Enviroment" input (see screenshot below).

This change would allow to debug issues like #2225 on GitHub.

It also allows setting networking to e.g. systemd-networked ( {"USE_NETWORK": "systemd-networkd"} ) without changing a single line of code for e.g. #2141

2./ This commit allows to run all the test parallel. It uses "find" to compute the list of tests, so if we add new tests we do not need to update this list.

3./ This commit allows to run all test(s) in all containers in parallel using the new "all" entry. It uses "find" to compute the list of containers, so if we add new containers we do not need to update this list.

Enable rd.debug for manual builds by default and allow changing it.
Test matrix for all tests is computed using "find" to.
@github-actions github-actions bot added the github Issues related to .github label Nov 25, 2023
@LaszloGombos LaszloGombos force-pushed the mandebug branch 13 times, most recently from 66edc8b to d4462d1 Compare November 25, 2023 17:19
Test container names are discovered using "find" command.
Add an option to specify container registry.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github Issues related to .github
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant