[4.8] Generate ci-operator configs and jobs#12621
Merged
openshift-merge-robot merged 4 commits intoOct 13, 2020
Merged
Conversation
Member
petr-muller
commented
Oct 9, 2020
Member
Author
|
/test release-controller-config |
Member
Author
|
/uncc JAORMX derekwaynecarr |
Member
Author
Not exactly helpful :/ |
79767b1 to
6a4a956
Compare
Member
Author
|
The |
6a4a956 to
9106ebb
Compare
```console $ config-brancher --config-dir ci-operator/config --current-release=4.7 --future-release=4.8 --confirm ```
```console $ ci-operator-config-mirror --config-path ci-operator/config --to-org openshift-priv ```
```console
$ cat <<EOF >/tmp/filter.py
#!/usr/bin/env python3
import yaml
import sys
import copy
with open(sys.argv[1]) as f:
all = yaml.full_load(f)
for t in ("presubmits", "postsubmits"):
for repo in all.get(t, {}):
pruned = []
for job in all.get(t, {}).get(repo, []):
if job.get("agent", "") == "kubernetes":
pruned.append(job)
all[t][repo] = pruned
with open(sys.argv[1], 'w') as f:
yaml.dump(all, f, default_flow_style=False)
EOF
$ chmod +x /tmp/filter.py
$ find ci-operator/jobs/ -name '*-release-4.7-*submits.yaml' -or -name '*-release-4.7-periodics.yaml' | while read -r item; do
cp "${item}" "${item/4.7/4.8}"
sed -i 's/-release-4.7-/-release-4.8-/g' "${item/4.7/4.8}" # job names
sed -i 's/- release-4.7/- release-4.8/g' "${item/4.7/4.8}" # branches
/tmp/filter.py "${item/4.7/4.8}"
echo " [DONE]"
$ done
```
```console $ make jobs ```
9106ebb to
dcbe353
Compare
Contributor
|
/lgtm |
Contributor
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: petr-muller, stevekuznetsov The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.