Skip to content

Commit

Permalink
hack: workaround for bootc
Browse files Browse the repository at this point in the history
Do not merge. This is a temporary pipeline to for rpm-ostree images.

The image update here pulls in this change:
konflux-ci/release-service-utils#311

It makes it so that in the event that the layer data is absent, a `null`
value won't be sent to pyxis which would be rejected by pyxis' input
validation.
  • Loading branch information
ralphbean committed Nov 11, 2024
1 parent 80bfa1f commit 5fc1258
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 18 deletions.
8 changes: 7 additions & 1 deletion tasks/create-pyxis-image/create-pyxis-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ spec:
description: The relative path in the workspace to the stored pyxis data json
steps:
- name: create-pyxis-image
image: quay.io/konflux-ci/release-service-utils:221d71a4f6b1a50b36b685aa20d86d7df9de33fc
image: quay.io/konflux-ci/release-service-utils:f00c49df232d477ba843b4c48343d745dfebe747
env:
- name: pyxisCert
valueFrom:
Expand Down Expand Up @@ -164,6 +164,12 @@ spec:
"${PULLSPEC}" \
| tee "${MANIFEST_FILE}"
# Temporary - do not merge
# As a side-effect of the way they build without squashing, their final layer is always bit-wise identical. This causes upload to pyxis to fail which cannot tolerate duplicate "top_layer_id" values. Here - just delete the layers so that no layer information is uploaded. Requires https://github.com/konflux-ci/release-service-utils/pull/311

Check failure on line 168 in tasks/create-pyxis-image/create-pyxis-image.yaml

View workflow job for this annotation

GitHub Actions / yamllint

line too long
echo "Delete the layers, just for rhel-bootc"
jq '.layers = []' "${MANIFEST_FILE}" > "${MANIFEST_FILE}.tmp"
mv "${MANIFEST_FILE}.tmp" "${MANIFEST_FILE}"
# Augment that manifest with further information about the layers, decompressed
# This requires pulling the layers to decompress and then measure them
while IFS= read -r BLOB_DETAIL;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
- name: data
steps:
- name: setup-values
image: quay.io/konflux-ci/release-service-utils:221d71a4f6b1a50b36b685aa20d86d7df9de33fc
image: quay.io/konflux-ci/release-service-utils:f00c49df232d477ba843b4c48343d745dfebe747
script: |
#!/usr/bin/env sh
set -eux
Expand Down Expand Up @@ -70,7 +70,7 @@ spec:
- name: data
steps:
- name: check-result
image: quay.io/konflux-ci/release-service-utils:221d71a4f6b1a50b36b685aa20d86d7df9de33fc
image: quay.io/konflux-ci/release-service-utils:f00c49df232d477ba843b4c48343d745dfebe747
script: |
#!/usr/bin/env sh
set -eux
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
- name: data
steps:
- name: setup-values
image: quay.io/konflux-ci/release-service-utils:221d71a4f6b1a50b36b685aa20d86d7df9de33fc
image: quay.io/konflux-ci/release-service-utils:f00c49df232d477ba843b4c48343d745dfebe747
script: |
#!/usr/bin/env sh
set -eux
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
- name: data
steps:
- name: setup-values
image: quay.io/konflux-ci/release-service-utils:221d71a4f6b1a50b36b685aa20d86d7df9de33fc
image: quay.io/konflux-ci/release-service-utils:f00c49df232d477ba843b4c48343d745dfebe747
script: |
#!/usr/bin/env bash
set -eux
Expand Down Expand Up @@ -85,7 +85,7 @@ spec:
- name: data
steps:
- name: check-result
image: quay.io/konflux-ci/release-service-utils:221d71a4f6b1a50b36b685aa20d86d7df9de33fc
image: quay.io/konflux-ci/release-service-utils:f00c49df232d477ba843b4c48343d745dfebe747
script: |
#!/usr/bin/env bash
set -eux
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
- name: data
steps:
- name: setup-values
image: quay.io/konflux-ci/release-service-utils:221d71a4f6b1a50b36b685aa20d86d7df9de33fc
image: quay.io/konflux-ci/release-service-utils:f00c49df232d477ba843b4c48343d745dfebe747
script: |
#!/usr/bin/env bash
set -eux
Expand Down Expand Up @@ -85,7 +85,7 @@ spec:
- name: data
steps:
- name: check-result
image: quay.io/konflux-ci/release-service-utils:221d71a4f6b1a50b36b685aa20d86d7df9de33fc
image: quay.io/konflux-ci/release-service-utils:f00c49df232d477ba843b4c48343d745dfebe747
script: |
#!/usr/bin/env bash
set -eux
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
- name: data
steps:
- name: setup-values
image: quay.io/konflux-ci/release-service-utils:221d71a4f6b1a50b36b685aa20d86d7df9de33fc
image: quay.io/konflux-ci/release-service-utils:f00c49df232d477ba843b4c48343d745dfebe747
script: |
#!/usr/bin/env bash
set -eux
Expand Down Expand Up @@ -63,7 +63,7 @@ spec:
- name: data
steps:
- name: check-result
image: quay.io/konflux-ci/release-service-utils:221d71a4f6b1a50b36b685aa20d86d7df9de33fc
image: quay.io/konflux-ci/release-service-utils:f00c49df232d477ba843b4c48343d745dfebe747
script: |
#!/usr/bin/env bash
set -eux
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
- name: data
steps:
- name: setup-values
image: quay.io/konflux-ci/release-service-utils:221d71a4f6b1a50b36b685aa20d86d7df9de33fc
image: quay.io/konflux-ci/release-service-utils:f00c49df232d477ba843b4c48343d745dfebe747
script: |
#!/usr/bin/env bash
set -eux
Expand Down Expand Up @@ -69,7 +69,7 @@ spec:
- name: data
steps:
- name: check-result
image: quay.io/konflux-ci/release-service-utils:221d71a4f6b1a50b36b685aa20d86d7df9de33fc
image: quay.io/konflux-ci/release-service-utils:f00c49df232d477ba843b4c48343d745dfebe747
script: |
#!/usr/bin/env bash
set -eux
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
- name: data
steps:
- name: setup-values
image: quay.io/konflux-ci/release-service-utils:221d71a4f6b1a50b36b685aa20d86d7df9de33fc
image: quay.io/konflux-ci/release-service-utils:f00c49df232d477ba843b4c48343d745dfebe747
script: |
#!/usr/bin/env bash
set -eux
Expand Down Expand Up @@ -68,7 +68,7 @@ spec:
- name: data
steps:
- name: check-result
image: quay.io/konflux-ci/release-service-utils:221d71a4f6b1a50b36b685aa20d86d7df9de33fc
image: quay.io/konflux-ci/release-service-utils:f00c49df232d477ba843b4c48343d745dfebe747
script: |
#!/usr/bin/env bash
set -eux
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
- name: data
steps:
- name: setup-values
image: quay.io/konflux-ci/release-service-utils:221d71a4f6b1a50b36b685aa20d86d7df9de33fc
image: quay.io/konflux-ci/release-service-utils:f00c49df232d477ba843b4c48343d745dfebe747
script: |
#!/usr/bin/env bash
set -eux
Expand Down Expand Up @@ -66,7 +66,7 @@ spec:
- name: data
steps:
- name: check-result
image: quay.io/konflux-ci/release-service-utils:221d71a4f6b1a50b36b685aa20d86d7df9de33fc
image: quay.io/konflux-ci/release-service-utils:f00c49df232d477ba843b4c48343d745dfebe747
script: |
#!/usr/bin/env bash
set -eux
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
- name: data
steps:
- name: setup-values
image: quay.io/konflux-ci/release-service-utils:221d71a4f6b1a50b36b685aa20d86d7df9de33fc
image: quay.io/konflux-ci/release-service-utils:f00c49df232d477ba843b4c48343d745dfebe747
script: |
#!/usr/bin/env bash
set -eux
Expand Down Expand Up @@ -69,7 +69,7 @@ spec:
- name: data
steps:
- name: check-result
image: quay.io/konflux-ci/release-service-utils:221d71a4f6b1a50b36b685aa20d86d7df9de33fc
image: quay.io/konflux-ci/release-service-utils:f00c49df232d477ba843b4c48343d745dfebe747
script: |
#!/usr/bin/env bash
set -eux
Expand Down

0 comments on commit 5fc1258

Please sign in to comment.