Commit graph

14 commits

Author SHA1 Message Date
Major Hayden
11c1063729
Run image tests in PSI only
AWS does not have nested virtualization.
2020-06-05 13:14:30 -05:00
Major Hayden
daec7e8234 Add CI details script
Dump data about the machine running the test very early in the job run.

Signed-off-by: Major Hayden <major@redhat.com>
2020-06-05 13:11:01 -05:00
Major Hayden
381abb354a Use S3 for CI repositories
Upload artifacts from the mock builds into S3 to allow us to burst into
AWS when needed.

Signed-off-by: Major Hayden <major@redhat.com>
2020-06-05 09:43:09 -05:00
Major Hayden
e7b480895f CI: Store RPMs by SHA
This commit brings over updates for mock builds from osbuild-composer.

Signed-off-by: Major Hayden <major@redhat.com>
2020-06-01 15:54:50 +02:00
Major Hayden
73429035bc CI: Use RHEL 8 CDN image
Now that we have a fully subscribed RHEL 8 image, let's use that instead
of RHEL 8.2 nightlies.

Signed-off-by: Major Hayden <major@redhat.com>
2020-05-28 07:00:00 +02:00
Major Hayden
89b9e541e2
Add sudo to dnf list command
Bringing over the fix from ansible-osbuild
2020-05-22 14:04:26 -05:00
Major Hayden
d8c43bc0e7 Build in a mock chroot first
Build the RPMs in a mock using a simple script so that ansible-osbuild
can focus fully on deployment rather than compiling RPMs.

Signed-off-by: Major Hayden <major@redhat.com>
2020-05-22 10:41:10 +02:00
Major Hayden
05802951eb CI: Add image testing on Fedora 32
Signed-off-by: Major Hayden <major@redhat.com>
2020-05-18 09:30:39 -05:00
Major Hayden
96d3b7aa9d Bring jenkinsfile in line with osbuild-composer
Add the artifact preservation bits from the osbuild-composer jenkinsfile
and use the shared `run_tests()` function to avoid repeating ourselves.

Signed-off-by: Major Hayden <major@redhat.com>
2020-05-15 17:50:45 +02:00
Major Hayden
9f060bdc83 Enable testing on RHEL 8.2
Signed-off-by: Major Hayden <major@redhat.com>
2020-05-15 17:50:45 +02:00
Major Hayden
7e8ff16d7c CI: Use Jenkins' merged repo for testing
When Jenkins clones a repository for testing, it does the base clone
first and then merges the code from the PR afterwards. This ensures that
the code merges properly and is tested properly, but it also makes a SHA
that only exists inside Jenkins. 😢

Tell ansible-osbuild to use the repository that Jenkins made so that the
SHA is valid.

Signed-off-by: Major Hayden <major@redhat.com>
2020-05-14 09:01:45 -05:00
Major Hayden
6b9cd099f5
Quick fix: switch jenkins > schutzbot in CI
The `jenkins/` directory has been removed in `osbuild-composer`.
2020-05-13 16:36:32 -05:00
Major Hayden
b613afb168 CI: Build RPMs in a mock chroot
Tell ansible-osbuild to build osbuild/osbuild-composer RPMs in a mock
chroot and install them from there instead of building them with
Ansible.

This brings us closer to how koji and brew build RPMs.

Signed-off-by: Major Hayden <major@redhat.com>
2020-05-13 16:19:32 -05:00
Major Hayden
6e2865fc63 Test with internal Jenkins in parallel
Attempt osbuild testing on the internal Jenkins deployment with
nodes that are destroyed after each use. The internal Jenkins looks for
a Jenkinsfile inside the `schutzbot` directory.

Let's not remove the `jenkins` directory (used by jenkins.osbuild.org)
yet until we know the internal Jenkins is stable and performs well.

Signed-off-by: Major Hayden <major@redhat.com>
2020-05-12 08:09:44 +02:00