فهرست منبع

Merge pull request #4422 from jlebon/pr/papr

PAPR updates
Scott Dodson 7 سال پیش
والد
کامیت
916ea2cadd
6فایلهای تغییر یافته به همراه63 افزوده شده و 36 حذف شده
  1. 0 0
      .papr.inventory
  2. 4 2
      .redhat-ci.sh
  3. 42 0
      .papr.yml
  4. 0 30
      .redhat-ci.yml
  5. 4 4
      docs/pull_requests.md
  6. 13 0
      docs/repo_structure.md

.redhat-ci.inventory → .papr.inventory


+ 4 - 2
.redhat-ci.sh

@@ -1,10 +1,12 @@
 #!/bin/bash
 set -xeuo pipefail
 
+echo "Targeting OpenShift Origin $OPENSHIFT_IMAGE_TAG"
+
 pip install -r requirements.txt
 
 # ping the nodes to check they're responding and register their ostree versions
-ansible -vvv -i .redhat-ci.inventory nodes -a 'rpm-ostree status'
+ansible -vvv -i .papr.inventory nodes -a 'rpm-ostree status'
 
 upload_journals() {
   mkdir journals
@@ -16,7 +18,7 @@ upload_journals() {
 trap upload_journals ERR
 
 # run the actual installer
-ansible-playbook -vvv -i .redhat-ci.inventory playbooks/byo/config.yml
+ansible-playbook -vvv -i .papr.inventory playbooks/byo/config.yml
 
 # run a small subset of origin conformance tests to sanity
 # check the cluster NB: we run it on the master since we may

+ 42 - 0
.papr.yml

@@ -0,0 +1,42 @@
+---
+
+# This YAML file is used by PAPR. It details the test
+# environment to provision and the test procedure. For more
+# information on PAPR, see:
+#
+#   https://github.com/projectatomic/papr
+#
+# The PAPR YAML specification detailing allowed fields can
+# be found at:
+#
+#   https://github.com/projectatomic/papr/blob/master/sample.papr.yml
+
+cluster:
+  hosts:
+    - name: ocp-master
+      distro: fedora/25/atomic
+    - name: ocp-node1
+      distro: fedora/25/atomic
+    - name: ocp-node2
+      distro: fedora/25/atomic
+  container:
+    image: fedora:25
+
+packages:
+  - gcc
+  - python-pip
+  - python-devel
+  - libffi-devel
+  - openssl-devel
+  - redhat-rpm-config
+
+context: 'fedora/25/atomic'
+
+env:
+  OPENSHIFT_IMAGE_TAG: v3.6.0-alpha.1
+
+tests:
+  - ./.papr.sh
+
+artifacts:
+  - journals/

+ 0 - 30
.redhat-ci.yml

@@ -1,30 +0,0 @@
----
-
-cluster:
-  hosts:
-    - name: ocp-master
-      distro: fedora/25/atomic
-    - name: ocp-node1
-      distro: fedora/25/atomic
-    - name: ocp-node2
-      distro: fedora/25/atomic
-  container:
-    image: fedora:25
-
-packages:
-  - gcc
-  - python-pip
-  - python-devel
-  - openssl-devel
-  - redhat-rpm-config
-
-context: 'fedora/25/atomic | origin/v3.6.0-alpha.1'
-
-env:
-  OPENSHIFT_IMAGE_TAG: v3.6.0-alpha.1
-
-tests:
-  - ./.redhat-ci.sh
-
-artifacts:
-  - journals/

+ 4 - 4
docs/pull_requests.md

@@ -10,8 +10,8 @@ Whenever a
 [Pull Request is opened](../CONTRIBUTING.md#submitting-contributions), some
 automated test jobs must be successfully run before the PR can be merged.
 
-Some of these jobs are automatically triggered, e.g., Travis and Coveralls.
-Other jobs need to be manually triggered by a member of the
+Some of these jobs are automatically triggered, e.g., Travis, PAPR, and
+Coveralls. Other jobs need to be manually triggered by a member of the
 [Team OpenShift Ansible Contributors](https://github.com/orgs/openshift/teams/team-openshift-ansible-contributors).
 
 ## Triggering tests
@@ -48,9 +48,9 @@ simplifying the workflow towards a single infrastructure in the future.
 There are a set of tests that run on Fedora infrastructure. They are started
 automatically with every pull request.
 
-They are implemented using the [`redhat-ci` framework](https://github.com/jlebon/redhat-ci).
+They are implemented using the [`PAPR` framework](https://github.com/projectatomic/papr).
 
-To re-run tests, write a comment containing `bot, retest this please`.
+To re-run tests, write a comment containing only `bot, retest this please`.
 
 ## Triggering merge
 

+ 13 - 0
docs/repo_structure.md

@@ -52,3 +52,16 @@ These are plugins used in playbooks and roles:
 .
 └── test                Contains tests.
 ```
+
+### CI
+
+These files are used by [PAPR](https://github.com/projectatomic/papr),
+It is very similar in workflow to Travis, with the test
+environment and test scripts defined in a YAML file.
+
+```
+.
+├── .papr.yml
+├── .papr.sh
+└── .papr.inventory
+```