[4.9] Generate ci-operator configuration#15794
[4.9] Generate ci-operator configuration#15794openshift-merge-robot merged 5 commits intoopenshift:masterfrom
Conversation
```console $ config-brancher --config-dir ci-operator/config --current-release=4.8 --future-release=4.9 --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.8-*submits.yaml' -or -name '*-release-4.8-periodics.yaml' | while read -r item; do
cp "${item}" "${item/4.8/4.9}"
sed -i 's/-release-4.8-/-release-4.9-/g' "${item/4.8/4.9}" # job names
sed -i 's/- release-4.8/- release-4.9/g' "${item/4.8/4.9}" # branches
/tmp/filter.py "${item/4.8/4.9}"
echo " [DONE]"
$ done
```
```console $ make jobs ```
```console $ make template-allowlist ```
b670286 to
9cc04f0
Compare
|
/retest |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AlexNPavel, 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 |
|
/hold cancel |
|
@AlexNPavel: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Create 4.9 ci-operator configuration and jobs. Using script from #12621, modified to copy from 4.8 to 4.9.
/hold