Commit graph

18 commits

Author SHA1 Message Date
Major Hayden
2e34a94980
Disable Jenkins CI for RHEL temporarily 2020-05-06 17:04:47 +00:00
Major Hayden
08594bd66d 🚽 Use Jenkins pipeline for better flow
By using a small Jenkins pipeline in the repository, we can define
almost all of our testing parameters in the repo itself and not inside
Jenkins.

This also allows us to use the GitHub Branch Source plugin and
auto-discover new repositories without `ok to test` bombs in
pull requests.

Signed-off-by: Major Hayden <major@redhat.com>
2020-05-05 18:33:04 -05:00
Major Hayden
b725ac24d2 Use sudo/become for tests
Jenkins now uses a non-root user for its agent, so we will need to use
sudo for some commands and `become` within the Ansible playbooks.

Signed-off-by: Major Hayden <major@redhat.com>
2020-05-01 11:03:50 -05:00
Major Hayden
9223036249 Add remaining local image tests
Test the full set of locally-bootable image tests. Cloud based tests
are excluded for now until the infrastructure to boot them is ready.

Signed-off-by: Major Hayden <major@redhat.com>
2020-04-30 08:26:13 +02:00
Major Hayden
e21a8095b1 📔 Remove the no_log for image tests
Hiding logs makes the output prettier, but it is sometimes easier to see
the problem right there in the Ansible output.

Signed-off-by: Major Hayden <major@redhat.com>
2020-04-29 17:50:25 +02:00
Major Hayden
37ff79229b 🤗 Image tests for Fedora 32 + RHEL 8.2
Enable image tests for Fedora 31 and RHEL 8.2 since we now have the JSON
test case files for all distributions.

Signed-off-by: Major Hayden <major@redhat.com>
2020-04-29 06:49:17 +02:00
Major Hayden
a613f778c2 Remove incomplete comment
Signed-off-by: Major Hayden <major@redhat.com>
2020-04-27 11:57:17 +02:00
Major Hayden
340cbe32ad Show test results in a better format
Signed-off-by: Major Hayden <major@redhat.com>
2020-04-27 11:57:17 +02:00
Major Hayden
39bebe5944 Fix debug loop variable
Signed-off-by: Major Hayden <major@redhat.com>
2020-04-27 11:57:17 +02:00
Major Hayden
5fd2590579 🚚 Run image build test cases together
Pass all of the image test cases directly to the test runner to speed
up the image test process.

Signed-off-by: Major Hayden <major@redhat.com>
2020-04-24 14:05:21 +00:00
Major Hayden
8d59d0c798 🐫 Handle base/image test cases
Speed up test run times by putting base tests and image tests into two
separate jobs in Jenkins. Add support to the testing playbook for both
types of tests and make it easy to add more types later, especially
for image that require booting in the cloud.

Signed-off-by: Major Hayden <major@redhat.com>
2020-04-24 08:55:20 +02:00
Major Hayden
ee441afb14 🥊 Resilient testing + log gathering
Convert the bash script to an ansible playbook so we can gracefully
handle testing failures and gather logs reliably. Colorful output
is nice, too.

Signed-off-by: Major Hayden <major@redhat.com>
2020-04-22 11:44:20 +00:00
Major Hayden
af0f3a4585 🦥 Try running some integration tests together
We may be able to shorten test time by running some tests
simultaneously.

Signed-off-by: Major Hayden <major@redhat.com>
2020-04-16 15:24:58 +00:00
Major Hayden
abb30b947c 🤏 Little bit more testing: weldr-tests
Signed-off-by: Major Hayden <major@redhat.com>
2020-04-07 12:19:00 +00:00
Major Hayden
af967dd8cc 🤏 Little bit more testing: osbuild-tests
Signed-off-by: Major Hayden <major@redhat.com>
2020-04-07 09:05:52 +02:00
Major Hayden
41e8090e95 🔮 Add dnf integration tests
Run the dnf integration tests with every pull request.

Signed-off-by: Major Hayden <major@redhat.com>
2020-04-06 19:06:06 +02:00
Major Hayden
2f94a87dab 🎲 Enable rcm integration tests
Now that Jenkins is hooked up to the repository, let's run the rcm
tests after we deploy all of the services into a VM.

Signed-off-by: Major Hayden <major@redhat.com>
2020-04-03 19:38:10 +00:00
Major Hayden
b57f70e3e5 🔌 Plug osbuild-composer into Jenkins
Let's throw schutz to the wind and add Jenkins to the osbuild-composer
repository. Jenkins will execute the `jenkins/run_tests.sh` script and that
will deploy osbuild, osbuild-composer, and cockpit-composer on Fedora 31
and 32.

We can add extra integration tests gradually after this is merged.

Signed-off-by: Major Hayden <major@redhat.com>
2020-04-02 21:11:37 +00:00