forked from konflux-ci/build-definitions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Temporarily block buildah-remote-oci-ta PRs
If they increase the file size (tektoncd/pipeline#8388) Signed-off-by: Adam Cmiel <acmiel@redhat.com>
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |