Skip to content

Commit

Permalink
MGMT-18332: Prepare assisted-installer CI configuration for testing n…
Browse files Browse the repository at this point in the history
…ew test Dockerfile (openshift#54090)
  • Loading branch information
danmanor authored and Prachiti2002 committed Jul 10, 2024
1 parent f738b23 commit bec9e9c
Show file tree
Hide file tree
Showing 13 changed files with 37 additions and 94 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,7 @@ images:
- registry.ci.openshift.org/openshift/release:golang-1.20
to: assisted-installer-controller
- dockerfile_path: Dockerfile.assisted-installer-build
inputs:
openshift_release_golang-1.20:
as:
- registry.ci.openshift.org/openshift/release:golang-1.20
from: coreos-centos-stream9
to: assisted-installer-build
promotion:
to:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ images:
- registry.ci.openshift.org/openshift/release:golang-1.20
to: assisted-installer-controller
- dockerfile_path: Dockerfile.assisted-installer-build
inputs:
openshift_release_golang-1.20:
as:
- registry.ci.openshift.org/openshift/release:golang-1.20
from: coreos-centos-stream9
to: assisted-installer-build
promotion:
to:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ images:
- registry.ci.openshift.org/openshift/release:golang-1.20
to: assisted-installer-controller
- dockerfile_path: Dockerfile.assisted-installer-build
inputs:
openshift_release_golang-1.20:
as:
- registry.ci.openshift.org/openshift/release:golang-1.20
from: coreos-centos-stream9
to: assisted-installer-build
promotion:
to:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ base_images:
name: stream8
namespace: coreos
tag: "8"
coreos-centos-stream9:
name: stream9
namespace: coreos
tag: "9"
dev-scripts:
name: test
namespace: ocp-kni
Expand All @@ -32,8 +36,7 @@ base_images:
namespace: openshift
tag: golang-1.19
build_root:
project_image:
dockerfile_path: Dockerfile.assisted-installer-build
from_repository: true
images:
- dockerfile_path: Dockerfile.assisted-installer
from: coreos-centos-stream8
Expand All @@ -49,6 +52,9 @@ images:
as:
- registry.ci.openshift.org/openshift/release:golang-1.19
to: assisted-installer-controller
- dockerfile_path: Dockerfile.image-installer-build
from: coreos-centos-stream9
to: assisted-installer-build
promotion:
to:
- name: ocm-2.8
Expand All @@ -64,9 +70,6 @@ resources:
requests:
cpu: 100m
memory: 200Mi
test_binary_build_commands: |
go mod vendor
mkdir /.cache && chmod 775 -R /.cache ${GOPATH}
tests:
- as: mirror-nightly-image
cron: '@daily'
Expand Down Expand Up @@ -114,19 +117,22 @@ tests:
export GOPROXY=https://proxy.golang.org
make lint
container:
from: test-bin
clone: true
from: assisted-installer-build
skip_if_only_changed: ^docs/|^\.github/|\.md$|^(?:.*/)?(?:\.gitignore|OWNERS|OWNERS_ALIASES|PROJECT|LICENSE)$
- as: format-check
commands: make format-check
container:
from: test-bin
clone: true
from: assisted-installer-build
skip_if_only_changed: ^docs/|^\.github/|\.md$|^(?:.*/)?(?:\.gitignore|OWNERS|OWNERS_ALIASES|PROJECT|LICENSE)$
- as: unit-test
commands: |
export CODECOV_TOKEN=$(cat /tmp/secret/codecov-token)
make REPORTS=${ARTIFACT_DIR} unit-test
container:
from: test-bin
clone: true
from: assisted-installer-build
secret:
mount_path: /tmp/secret
name: assisted-installer-codecov-token
Expand All @@ -136,7 +142,8 @@ tests:
export CODECOV_TOKEN=$(cat /tmp/secret/codecov-token)
make REPORTS=${ARTIFACT_DIR} unit-test
container:
from: test-bin
clone: true
from: assisted-installer-build
postsubmit: true
secret:
mount_path: /tmp/secret
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ base_images:
namespace: openshift
tag: golang-1.19
build_root:
project_image:
dockerfile_path: Dockerfile.assisted-installer-build
from_repository: true
images:
- dockerfile_path: Dockerfile.assisted-installer
from: coreos-centos-stream8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ base_images:
name: stream8
namespace: coreos
tag: "8"
coreos-centos-stream9:
name: stream9
namespace: coreos
tag: "9"
dev-scripts:
name: test
namespace: ocp-kni
Expand All @@ -32,8 +36,7 @@ base_images:
namespace: openshift
tag: golang-1.19
build_root:
project_image:
dockerfile_path: Dockerfile.assisted-installer-build
from_repository: true
images:
- dockerfile_path: Dockerfile.assisted-installer
from: coreos-centos-stream8
Expand All @@ -49,6 +52,9 @@ images:
as:
- registry.ci.openshift.org/openshift/release:golang-1.19
to: assisted-installer-controller
- dockerfile_path: Dockerfile.image-installer-build
from: coreos-centos-stream9
to: assisted-installer-build
promotion:
to:
- name: ocm-2.9
Expand All @@ -64,9 +70,6 @@ resources:
requests:
cpu: 100m
memory: 200Mi
test_binary_build_commands: |
go mod vendor
mkdir /.cache && chmod 775 -R /.cache ${GOPATH}
tests:
- as: mirror-nightly-image
cron: '@daily'
Expand Down Expand Up @@ -114,19 +117,22 @@ tests:
export GOPROXY=https://proxy.golang.org
make lint
container:
from: test-bin
clone: true
from: assisted-installer-build
skip_if_only_changed: ^docs/|^\.github/|\.md$|^(?:.*/)?(?:\.gitignore|OWNERS|OWNERS_ALIASES|PROJECT|LICENSE)$
- as: format-check
commands: make format-check
container:
from: test-bin
clone: true
from: assisted-installer-build
skip_if_only_changed: ^docs/|^\.github/|\.md$|^(?:.*/)?(?:\.gitignore|OWNERS|OWNERS_ALIASES|PROJECT|LICENSE)$
- as: unit-test
commands: |
export CODECOV_TOKEN=$(cat /tmp/secret/codecov-token)
make REPORTS=${ARTIFACT_DIR} unit-test
container:
from: test-bin
clone: true
from: assisted-installer-build
secret:
mount_path: /tmp/secret
name: assisted-installer-codecov-token
Expand All @@ -136,7 +142,8 @@ tests:
export CODECOV_TOKEN=$(cat /tmp/secret/codecov-token)
make REPORTS=${ARTIFACT_DIR} unit-test
container:
from: test-bin
clone: true
from: assisted-installer-build
postsubmit: true
secret:
mount_path: /tmp/secret
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ base_images:
namespace: openshift
tag: golang-1.19
build_root:
project_image:
dockerfile_path: Dockerfile.assisted-installer-build
from_repository: true
images:
- dockerfile_path: Dockerfile.assisted-installer
from: coreos-centos-stream8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ periodics:
cluster: build02
cron: 53 3 * * *
decorate: true
decoration_config:
skip_cloning: true
extra_refs:
- base_ref: release-ocm-2.8
org: openshift
Expand Down Expand Up @@ -64,8 +62,6 @@ periodics:
cluster: build02
cron: 14 0 * * *
decorate: true
decoration_config:
skip_cloning: true
extra_refs:
- base_ref: release-ocm-2.8
org: openshift
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ postsubmits:
- ^release-ocm-2\.8$
cluster: build02
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/is-promotion: "true"
ci.openshift.io/generator: prowgen
Expand Down Expand Up @@ -67,8 +65,6 @@ postsubmits:
- ^release-ocm-2\.8$
cluster: build02
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/is-promotion: "true"
ci-operator.openshift.io/variant: mce
Expand Down Expand Up @@ -129,8 +125,6 @@ postsubmits:
- ^release-ocm-2\.8$
cluster: build02
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/variant: mce
ci.openshift.io/generator: prowgen
Expand Down Expand Up @@ -189,8 +183,6 @@ postsubmits:
- ^release-ocm-2\.8$
cluster: build02
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/variant: mce
ci.openshift.io/generator: prowgen
Expand Down Expand Up @@ -249,8 +241,6 @@ postsubmits:
- ^release-ocm-2\.8$
cluster: build02
decorate: true
decoration_config:
skip_cloning: true
labels:
ci.openshift.io/generator: prowgen
job-release: "4.13"
Expand Down Expand Up @@ -308,8 +298,6 @@ postsubmits:
- ^release-ocm-2\.8$
cluster: build02
decorate: true
decoration_config:
skip_cloning: true
labels:
ci.openshift.io/generator: prowgen
job-release: "4.13"
Expand Down Expand Up @@ -367,8 +355,6 @@ postsubmits:
- ^release-ocm-2\.8$
cluster: build02
decorate: true
decoration_config:
skip_cloning: true
labels:
ci.openshift.io/generator: prowgen
job-release: "4.13"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ presubmits:
cluster: build02
context: ci/prow/e2e-ai-operator-ztp
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/cloud: packet-edge
ci-operator.openshift.io/cloud-cluster-profile: packet-assisted
Expand Down Expand Up @@ -90,8 +88,6 @@ presubmits:
cluster: build02
context: ci/prow/format-check
decorate: true
decoration_config:
skip_cloning: true
labels:
ci.openshift.io/generator: prowgen
job-release: "4.13"
Expand Down Expand Up @@ -147,8 +143,6 @@ presubmits:
cluster: build02
context: ci/prow/images
decorate: true
decoration_config:
skip_cloning: true
labels:
ci.openshift.io/generator: prowgen
job-release: "4.13"
Expand Down Expand Up @@ -203,8 +197,6 @@ presubmits:
cluster: build02
context: ci/prow/lint
decorate: true
decoration_config:
skip_cloning: true
labels:
ci.openshift.io/generator: prowgen
job-release: "4.13"
Expand Down Expand Up @@ -260,8 +252,6 @@ presubmits:
cluster: build02
context: ci/prow/mce-images
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/variant: mce
ci.openshift.io/generator: prowgen
Expand Down Expand Up @@ -317,8 +307,6 @@ presubmits:
cluster: build02
context: ci/prow/unit-test
decorate: true
decoration_config:
skip_cloning: true
labels:
ci.openshift.io/generator: prowgen
job-release: "4.13"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ periodics:
cluster: build02
cron: 46 2 * * *
decorate: true
decoration_config:
skip_cloning: true
extra_refs:
- base_ref: release-ocm-2.9
org: openshift
Expand Down Expand Up @@ -64,8 +62,6 @@ periodics:
cluster: build02
cron: 19 23 * * *
decorate: true
decoration_config:
skip_cloning: true
extra_refs:
- base_ref: release-ocm-2.9
org: openshift
Expand Down
Loading

0 comments on commit bec9e9c

Please sign in to comment.