Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions ci-operator/config/shiftstack/rebasebot/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
approvers:
- gryf
- mandre
- stephenfin
options: {}
reviewers:
- gryf
- mandre
- stephenfin
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
build_root:
project_image:
dockerfile_literal: |-
FROM registry.access.redhat.com/ubi9/python-312

USER root

ENV GO_VERSION=1.24.3
ENV PATH="/usr/local/go/bin:$PATH"

RUN dnf install -y tar gzip git make && \
curl -Ls https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz | \
tar -C /usr/local -zxvf - go/ && \
python -m pip install uv

# Prow expects to be able to check out a repo under /go
RUN mkdir -p /go && \
chown 1001:1001 /go && \
chmod 755 /go

WORKDIR /go
USER 1001:1001
images:
items:
- dockerfile_path: Containerfile
to: rebasebot
resources:
'*':
limits:
memory: 4Gi
requests:
cpu: 100m
memory: 200Mi
test_binary_build_commands: make deps
tests:
- as: unit
commands: make unittests
container:
from: test-bin
- as: lint
commands: make lint
container:
from: test-bin
- as: cloud-provider-openstack-main
cron: 0 10 * * Mon,Thu
steps:
test:
- as: cloud-provider-openstack-main
commands: |
rebasebot --source https://github.com/kubernetes/cloud-provider-openstack:release-1.35 \
--dest openshift/cloud-provider-openstack:main \
--rebase shiftstack/cloud-provider-openstack:rebase-bot-main \
--update-go-modules \
--git-username shiftstack-rebasebot \
--git-email [email protected] \
--github-app-key /secrets/merge-bot/github_private_key \
--github-cloner-key /secrets/merge-bot/github_cloner_private_key \
--slack-webhook /secrets/slack-hooks/forum-shiftstack
credentials:
- mount_path: /secrets/merge-bot
name: shiftstack-merge-bot
namespace: test-credentials
- mount_path: /secrets/slack-hooks
name: shiftstack-slack-hooks
namespace: test-credentials
from: rebasebot
resources:
limits:
memory: 4Gi
requests:
cpu: 100m
memory: 200Mi
zz_generated_metadata:
branch: main
org: shiftstack
repo: rebasebot
9 changes: 9 additions & 0 deletions ci-operator/jobs/shiftstack/rebasebot/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
approvers:
- gryf
- mandre
- stephenfin
options: {}
reviewers:
- gryf
- mandre
- stephenfin
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
periodics:
- agent: kubernetes
cluster: build01
cron: 0 10 * * Mon,Thu
decorate: true
decoration_config:
skip_cloning: true
extra_refs:
- base_ref: main
org: shiftstack
repo: rebasebot
labels:
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: periodic-ci-shiftstack-rebasebot-main-cloud-provider-openstack-main
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --lease-server-credentials-file=/etc/boskos/credentials
- --report-credentials-file=/etc/report/credentials
- --target=cloud-provider-openstack-main
command:
- ci-operator
env:
- name: HTTP_SERVER_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest
imagePullPolicy: Always
name: ""
ports:
- containerPort: 8080
name: http
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/boskos
name: boskos
readOnly: true
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /secrets/manifest-tool
name: manifest-tool-local-pusher
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: boskos
secret:
items:
- key: credentials
path: credentials
secretName: boskos-credentials
- name: manifest-tool-local-pusher
secret:
secretName: manifest-tool-local-pusher
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
presubmits:
shiftstack/rebasebot:
- agent: kubernetes
always_run: true
branches:
- ^main$
- ^main-
cluster: build01
context: ci/prow/images
decorate: true
decoration_config:
skip_cloning: true
labels:
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-shiftstack-rebasebot-main-images
rerun_command: /test images
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --report-credentials-file=/etc/report/credentials
- --target=[images]
command:
- ci-operator
image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /secrets/manifest-tool
name: manifest-tool-local-pusher
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: manifest-tool-local-pusher
secret:
secretName: manifest-tool-local-pusher
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )images,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
- ^main$
- ^main-
cluster: build01
context: ci/prow/lint
decorate: true
decoration_config:
skip_cloning: true
labels:
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-shiftstack-rebasebot-main-lint
rerun_command: /test lint
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --report-credentials-file=/etc/report/credentials
- --target=lint
command:
- ci-operator
env:
- name: HTTP_SERVER_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest
imagePullPolicy: Always
name: ""
ports:
- containerPort: 8080
name: http
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /secrets/manifest-tool
name: manifest-tool-local-pusher
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: manifest-tool-local-pusher
secret:
secretName: manifest-tool-local-pusher
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )lint,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
- ^main$
- ^main-
cluster: build01
context: ci/prow/unit
decorate: true
decoration_config:
skip_cloning: true
labels:
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-shiftstack-rebasebot-main-unit
rerun_command: /test unit
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --report-credentials-file=/etc/report/credentials
- --target=unit
command:
- ci-operator
env:
- name: HTTP_SERVER_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest
imagePullPolicy: Always
name: ""
ports:
- containerPort: 8080
name: http
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /secrets/manifest-tool
name: manifest-tool-local-pusher
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: manifest-tool-local-pusher
secret:
secretName: manifest-tool-local-pusher
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )unit,?($|\s.*)
9 changes: 9 additions & 0 deletions core-services/prow/02_config/shiftstack/rebasebot/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
approvers:
- gryf
- mandre
- stephenfin
options: {}
reviewers:
- gryf
- mandre
- stephenfin
Loading