diff --git a/ci-operator/config/ostreedev/ostree/OWNERS b/ci-operator/config/ostreedev/ostree/OWNERS new file mode 100644 index 0000000000000..3eeb9c96f4efd --- /dev/null +++ b/ci-operator/config/ostreedev/ostree/OWNERS @@ -0,0 +1,6 @@ +# TODO: auto-populate this better +approvers: +- ashcrow +- miabbott +- cgwalters +- jlebon diff --git a/ci-operator/config/ostreedev/ostree/ostreedev-ostree-master.yaml b/ci-operator/config/ostreedev/ostree/ostreedev-ostree-master.yaml new file mode 100644 index 0000000000000..5430e5830f17d --- /dev/null +++ b/ci-operator/config/ostreedev/ostree/ostreedev-ostree-master.yaml @@ -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 < /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 diff --git a/ci-operator/config/projectatomic/rpm-ostree/OWNERS b/ci-operator/config/projectatomic/rpm-ostree/OWNERS new file mode 100644 index 0000000000000..3eeb9c96f4efd --- /dev/null +++ b/ci-operator/config/projectatomic/rpm-ostree/OWNERS @@ -0,0 +1,6 @@ +# TODO: auto-populate this better +approvers: +- ashcrow +- miabbott +- cgwalters +- jlebon diff --git a/ci-operator/config/projectatomic/rpm-ostree/projectatomic-rpm-ostree-master.yaml b/ci-operator/config/projectatomic/rpm-ostree/projectatomic-rpm-ostree-master.yaml new file mode 100644 index 0000000000000..4b1a40c1dda3c --- /dev/null +++ b/ci-operator/config/projectatomic/rpm-ostree/projectatomic-rpm-ostree-master.yaml @@ -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 diff --git a/ci-operator/jobs/ostreedev/ostree/ostreedev-ostree-master-presubmits.yaml b/ci-operator/jobs/ostreedev/ostree/ostreedev-ostree-master-presubmits.yaml new file mode 100644 index 0000000000000..f134d54a1d9a1 --- /dev/null +++ b/ci-operator/jobs/ostreedev/ostree/ostreedev-ostree-master-presubmits.yaml @@ -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.*) diff --git a/ci-operator/jobs/projectatomic/rpm-ostree/projectatomic-rpm-ostree-master-presubmits.yaml b/ci-operator/jobs/projectatomic/rpm-ostree/projectatomic-rpm-ostree-master-presubmits.yaml new file mode 100644 index 0000000000000..5fa772aca2868 --- /dev/null +++ b/ci-operator/jobs/projectatomic/rpm-ostree/projectatomic-rpm-ostree-master-presubmits.yaml @@ -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.*)