Commit Graph

29 Commits

Author SHA1 Message Date
Mike Bonnet
d80316ebf2 Make pipeline job options consistent
Set a consistent set of options on Jenkins pipeline jobs. This includes timestamps,
reasonable timeouts, saving only the last 10 builds (to avoid filling up the disk
of the Jenkins master), disabling concurrent builds (to avoid hitting quota limits),
and skipping the default checkout (all jobs that need the source call checkout()
explicitly).
2019-05-16 12:22:47 -07:00
mprahl
a8eaac7c0a Build the JSON using Groovy in the failing integration test rather manually creating a JSON string 2019-05-16 09:32:22 -04:00
Matt Prahl
2db62eb897 Merge #1258 Run the integration tests from the current branch 2019-05-16 13:31:44 +00:00
mprahl
c1e2a5b0af Unpin the libmodulemd RPMs 2019-05-16 11:51:38 +00:00
Mike Bonnet
095fab0292 Run the integration tests from the current branch
Previously, the integration test pipeline was configured to always use the tests present on the
master branch. When running the pre-merge pipeline for a PR, this would result in potentially
out-dated tests being run. This change runs the tests from the current branch, allowing the code
and the tests to evolve together.

This also disables the default checkout of the master branch, which is unnecessary when calling
checkout() from the pipeline.
2019-05-15 16:44:29 -07:00
mprahl
dde4b96baf Add an integration test for buildrequiring a virtual stream 2019-05-15 13:47:32 -04:00
mprahl
14d0c30990 Add a try/catch around the grant-cg-access code in the integration tests
Since there's no way of knowing if the user has already been granted access,
this wraps this code and just ignores the failure.
2019-05-15 13:47:32 -04:00
mprahl
0d96b1ffd3 Pin the RPMs for libmodulemd v2 in the Jenkins job 2019-05-13 22:26:07 -04:00
Mike Bonnet
ee2ef77fe9 Fix grep to handle the new quoting style introduced in 66c3f821 2019-04-30 21:46:16 -07:00
Mike Bonnet
48778ba545 Grammar fixes 2019-04-30 15:27:28 -07:00
Mike Bonnet
5fffcfedd6 Remove unnecessary comment 2019-04-30 15:27:28 -07:00
Mike Bonnet
21a6f80e1a Split up long lines in openshift/integration/koji/README.md
Also a small typo.
2019-04-30 15:27:28 -07:00
Mike Bonnet
5594d7e2a4 Explain what run-httpd is doing 2019-04-30 15:27:28 -07:00
Mike Bonnet
2c4298e678 read the DigiCert CA cert from a file rather than hard-coding it in the Jenkinsfile 2019-04-30 15:27:28 -07:00
Mike Bonnet
c369bc416c use CMD instead of ENTRYPOINT 2019-04-30 15:27:28 -07:00
Mike Bonnet
9c3d9bb441 MBS-Koji integration tests
This change introduces a set of Jenkins pipelines for building MBS
images and running integration tests against Koji using those images.
These pipelines are directly based on the WaiverDB pipeline work:

https://pagure.io/waiverdb/blob/master/f/openshift

The results of those tests are used to provide feedback to Pagure PRs
and to promote images through a series of environments, which may be
used to implement a continuous deployment process.

The current test cases, written in Groovy, are:
 - module-build-init: initate a module build and check that tags
   and targets in Koji are created correctly
 - module-build-cgimport: build an empty module and ensure that
   results are imported correctly into Koji, using the CGImport
   interface
2019-04-30 15:27:28 -07:00
Merlin Mathesius
dd950857ec Update koji tagging for scratch modules.
Signed-off-by: Merlin Mathesius <mmathesi@redhat.com>
2019-03-01 10:27:04 -06:00
Matt Prahl
290f19d477 Merge #1076 Update the README for OpenShift deployments 2018-11-13 17:24:22 +00:00
Hunor Csomortáni
8ec8a01006 Rename 'koji_arches' to 'arches' in OpenShift config
'koji_arches' was renamed to 'arches' in a previous commit. Update the
configuration in the OpenShift template accordingly.

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2018-11-13 15:10:32 +01:00
Hunor Csomortáni
abda4dd8f2 Update the README for OpenShift deployments
The backend container images needs a build argument holding the UMB CA
certificate. Update the README with this information.

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2018-11-13 12:39:44 +01:00
Hunor Csomortáni
cded35e33a Increase polling interval
Polling works in weird ways. It's much better to rely on messaging.

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2018-11-12 17:56:16 +01:00
Hunor Csomortáni
76e5845632 Indicate 'git' in default repository URLs
Without this, Koji will not treat them as SCM URLs.

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2018-11-12 17:56:16 +01:00
Hunor Csomortáni
64b8d8c169 Allow custom SCMs in OpenShift
The template is intended to be used for testing, so it makes sense to
allow submitting builds from custom SCM URLs.

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2018-11-12 17:56:16 +01:00
Hunor Csomortáni
438fc1e531 Configure topic prefix in the OpenShift template
Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2018-11-12 17:56:16 +01:00
Hunor Csomortáni
849ffec729 Add module-build-macros to platform buildroots
Koji builds done for a module have to have this in order to set the
correct %dist tag, for example.

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2018-11-12 17:56:16 +01:00
Hunor Csomortáni
236bc69938 Disable authentication in the OpenShift template
In testing contexts there auth providers are still missing. Disable auth
to allow anyone to submit module builds.

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2018-11-12 17:56:16 +01:00
Hunor Csomortáni
f68d708f41 Add the test UMB server CA to the backend image
Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2018-11-12 17:55:54 +01:00
Hunor Csomortáni
d30c50cff0 Use stomppy 3.1.6 in the container image
Using the latest version would require rewriting some of the messaging
pieces.

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2018-11-12 17:51:30 +01:00
Hunor Csomortáni
65300a57b7 Add OpenShift test template and Dockerfiles
Add Dockerfiles to build images for the backend and frontend.

Add an OpenShift template to deploy an MBS test instance, and connect it
to a message bus and Koji instance.

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2018-10-31 15:58:28 +01:00