Skip to content

Commit

Permalink
Temporarily block buildah-remote-oci-ta PRs
Browse files Browse the repository at this point in the history
If they increase the file size
(tektoncd/pipeline#8388)

Signed-off-by: Adam Cmiel <acmiel@redhat.com>
  • Loading branch information
chmeliik committed Nov 22, 2024
1 parent 7fbc6e8 commit 4ec1637
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/temp-block-buildah.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Checkton
"on":
pull_request:
branches: [main]

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Check that the size of buildah-remote-oci-ta doesn't increase
run: |
#!/bin/bash
set -euo pipefail
buildah_remote_oci_ta=task/buildah-remote-oci-ta/0.2/buildah-remote-oci-ta.yaml
prev_size=$(git show main:"$buildah_remote_oci_ta" | wc -c)
current_size=$(wc -c "$buildah_remote_oci_ta")
if [[ "$current_size" -gt "$prev_size" ]]; then
cat << EOF >&2
This PR increases the size of $buildah_remote_oci_ta.
Due to https://github.com/tektoncd/pipeline/issues/8388, this is risky;
the resulting bundle may not be resolvable by Tekton.
Until the fix for the above issue is deployed in Konflux, your PR is blocked.
Sorry!
EOF
exit 1
fi

0 comments on commit 4ec1637

Please sign in to comment.