Skip to content

Commit

Permalink
Merge pull request openshift#8046 from petr-muller/rehearse-across-repos
Browse files Browse the repository at this point in the history
rehearse: enable rehearsing jobs using config from roe/release
  • Loading branch information
openshift-merge-robot committed Mar 31, 2020
2 parents 44dc066 + 7ca2e88 commit ff8a0f8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,10 @@ presubmits:
cluster: api.ci
context: ci/prow/pj-rehearse
decorate: true
extra_refs:
- base_ref: master
org: redhat-operator-ecosystem
repo: release
name: pull-ci-openshift-release-master-pj-rehearse
optional: true
rerun_command: /test pj-rehearse
Expand All @@ -496,7 +500,7 @@ presubmits:
- --metrics-output=$(ARTIFACTS)/rehearse-metrics.json
- --rehearsal-limit=45
command:
- /bin/pj-rehearse
- ./hack/pj-rehearse.sh
image: pj-rehearse:latest
imagePullPolicy: Always
name: ""
Expand Down
16 changes: 16 additions & 0 deletions hack/pj-rehearse.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

# This script runs the pj-rehearse tool after copying the content of the
# redhat-operator-ecosystem/release repository to the working directory,
# so that the content of that repository is considered in rehearsal decisions.

set -o errexit
set -o nounset
set -o pipefail

echo "Copying redhat-operator-ecosystem/release content"
cp -Rn ../../redhat-operator-ecosystem/release/ci-operator/config/* ./ci-operator/config/
cp -Rn ../../redhat-operator-ecosystem/release/ci-operator/jobs/* ./ci-operator/jobs/

echo "Running pj-rehearse"
pj-rehearse "$@"

0 comments on commit ff8a0f8

Please sign in to comment.