Skip to content
Closed
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
6 changes: 6 additions & 0 deletions ci-operator/config/ostreedev/ostree/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# TODO: auto-populate this better
approvers:
- ashcrow
- miabbott
- cgwalters
- jlebon
112 changes: 112 additions & 0 deletions ci-operator/config/ostreedev/ostree/ostreedev-ostree-master.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
base_images:
f30:
cluster: https://api.ci.openshift.org
name: fedora
namespace: rhcos
tag: "30"

build_root:
image_stream_tag:
cluster: https://api.ci.openshift.org
name: release
namespace: openshift
tag: golang-1.10

resources:
'*':
limits:
memory: 6Gi
requests:
cpu: 1000m
memory: 1Gi
unit:
limits:
memory: 9Gi
requests:
cpu: '3'
memory: 5Gi

raw_steps:
- pipeline_image_cache_step:
commands: |
cat <<DOCKERFILE > /src/ci/prow/Dockerfile.sanity
FROM buildroot
RUN make install
DOCKERFILE
from: buildroot
to: sanity-dockerfile
- project_directory_image_build_step:
from: f30
inputs:
src:
paths: null
sanity-dockerfile:
paths:
- destination_dir: .
source_path: /src/ci/prow/Dockerfile.sanity
to: base

images:
- from: f30
to: buildroot
dockerfile_path: ci/prow/Dockerfile
- from: sanity-dockerfile
to: sanity
dockerfile_path: ci/prow/Dockerfile.sanity

# TODO move all these scripts to ci/prow
tests:
- as: sanity
commands: ostree --version
container:
from: sanity
# - as: minimal
# commands: |
# export CONFIGOPTS='--without-curl --without-soup --disable-gtk-doc --disable-man --disable-rust --without-libarchive --without-selinux --without-smack --without-openssl --without-avahi --without-libmount --disable-rofiles-fuse --disable-experimental-api'
# make clean
# ci/build.sh
# container:
# from: ostree-ci
# - as: primary
# commands: |
# export CFLAGS='-fsanitize=undefined -fsanitize-undefined-trap-on-error -fsanitize=address -O2 -Wp,-D_FORTIFY_SOURCE=2'
# export GI_SCANNERFLAGS='--warn-error'
# export ASAN_OPTIONS='detect_leaks=0'
# export CONFIGOPTS='--with-curl --with-openssl'
# make clean
# ci/ci-commitmessage-submodules.sh
# ci/build-check.sh
# ci/ci-release-build.sh
# make dist-then-build
# container:
# from: ostree-ci
# - as: rust
# commands: |
# export CONFIGOPTS='--enable-rust'
# make clean
# ci/build.sh
# make check TESTS=tests/test-rollsum
# container:
# from: ostree-ci
# - as: gnutls
# commands: |
# export CONFIGOPTS='--with-crypto=gnutls'
# make clean
# ci/build.sh
# make check TESTS=tests/test-basic.sh
# container:
# from: ostree-ci
# - as: libsoup
# commands: |
# export CONFIGOPTS='--without-curl --without-openssl --with-soup'
# make clean
# ci/build-check.sh
# container:
# from: ostree-ci
# - as: introspection
# commands: |
# export INSTALLED_TESTS_PATTERN='libostree/test-sizes.js libostree/test-sysroot.js libostree/test-core.js'
# make clean
# ci/build-check.sh
# container:
# from: ostree-ci
6 changes: 6 additions & 0 deletions ci-operator/config/projectatomic/rpm-ostree/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# TODO: auto-populate this better
approvers:
- ashcrow
- miabbott
- cgwalters
- jlebon
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
base_images:
f30:
cluster: https://api.ci.openshift.org
name: fedora
namespace: rhcos
tag: "30"

build_root:
image_stream_tag:
cluster: https://api.ci.openshift.org
name: release
namespace: openshift
tag: golang-1.10

images:
- from: f30
dockerfile_path: Dockerfile
to: rpm-ostree-ci
- from: rpm-ostree-ci
dockerfile_path: Dockerfile.buildroot
to: rpm-ostree-buildroot

tests:
- as: sanity
commands: rpm-ostree --version
container:
from: rpm-ostree-buildroot

resources:
'*':
limits:
memory: 6Gi
requests:
cpu: 1000m
memory: 1Gi
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
presubmits:
ostreedev/ostree:
- agent: kubernetes
always_run: true
branches:
- master
context: ci/prow/images
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/prowgen-controlled: "true"
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-ostreedev-ostree-master-images
rerun_command: /test images
spec:
containers:
- args:
- --artifact-dir=$(ARTIFACTS)
- --give-pr-author-access-to-namespace=true
- --sentry-dsn-path=/etc/sentry-dsn/ci-operator
- --target=[images]
command:
- ci-operator
env:
- name: CONFIG_SPEC
valueFrom:
configMapKeyRef:
key: ostreedev-ostree-master.yaml
name: ci-operator-master-configs
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/sentry-dsn
name: sentry-dsn
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: sentry-dsn
secret:
secretName: sentry-dsn
trigger: (?m)^/test( | .* )images,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
- master
context: ci/prow/sanity
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/prowgen-controlled: "true"
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-ostreedev-ostree-master-sanity
rerun_command: /test sanity
spec:
containers:
- args:
- --artifact-dir=$(ARTIFACTS)
- --give-pr-author-access-to-namespace=true
- --sentry-dsn-path=/etc/sentry-dsn/ci-operator
- --target=sanity
command:
- ci-operator
env:
- name: CONFIG_SPEC
valueFrom:
configMapKeyRef:
key: ostreedev-ostree-master.yaml
name: ci-operator-master-configs
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/sentry-dsn
name: sentry-dsn
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: sentry-dsn
secret:
secretName: sentry-dsn
trigger: (?m)^/test( | .* )sanity,?($|\s.*)
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
presubmits:
projectatomic/rpm-ostree:
- agent: kubernetes
always_run: true
branches:
- master
context: ci/prow/images
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/prowgen-controlled: "true"
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-projectatomic-rpm-ostree-master-images
rerun_command: /test images
spec:
containers:
- args:
- --artifact-dir=$(ARTIFACTS)
- --give-pr-author-access-to-namespace=true
- --sentry-dsn-path=/etc/sentry-dsn/ci-operator
- --target=[images]
command:
- ci-operator
env:
- name: CONFIG_SPEC
valueFrom:
configMapKeyRef:
key: projectatomic-rpm-ostree-master.yaml
name: ci-operator-master-configs
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/sentry-dsn
name: sentry-dsn
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: sentry-dsn
secret:
secretName: sentry-dsn
trigger: (?m)^/test( | .* )images,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
- master
context: ci/prow/sanity
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/prowgen-controlled: "true"
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-projectatomic-rpm-ostree-master-sanity
rerun_command: /test sanity
spec:
containers:
- args:
- --artifact-dir=$(ARTIFACTS)
- --give-pr-author-access-to-namespace=true
- --sentry-dsn-path=/etc/sentry-dsn/ci-operator
- --target=sanity
command:
- ci-operator
env:
- name: CONFIG_SPEC
valueFrom:
configMapKeyRef:
key: projectatomic-rpm-ostree-master.yaml
name: ci-operator-master-configs
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/sentry-dsn
name: sentry-dsn
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: sentry-dsn
secret:
secretName: sentry-dsn
trigger: (?m)^/test( | .* )sanity,?($|\s.*)