Skip to content

Commit

Permalink
Upgrade CI (31 Jul 2024 13:21:54)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 31, 2024
1 parent b89080f commit 16f8f3a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 48 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/debug.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/operator_convert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
ANSIBLE_TAGS="operator_info"
cd $PROJECT_DIR
echo "Moving bundle for '$op' ..."
mv $PROJECT_DIR/operators/$op/ci.yaml /tmp/operator-test/operators/$op/
[ -e $PROJECT_DIR/operators/$op/ci.yaml ] && mv $PROJECT_DIR/operators/$op/ci.yaml /tmp/operator-test/operators/$op/ || echo "ci.yaml file does not exist, skipping ..."
rm -rf $PROJECT_DIR/operators/$op
mv /tmp/operator-test/operators/$op $PROJECT_DIR/operators/$op
find $PROJECT_DIR/operators/$op -name 'bundle.Dockerfile' -delete
Expand Down
14 changes: 3 additions & 11 deletions .github/workflows/operator_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ env:
INDEX_PATH_TO_SIGN: "not-defined"
SIGNATURE_ENDPOINT: "https://not-defined"
OPP_REVIEWERS_ENABLED: 0
TMPDIR: "/mnt"


OPP_ALLOW_FORCE_RELEASE: ${{ github.event.inputs.release }}
Expand Down Expand Up @@ -222,22 +223,13 @@ jobs:
OPP_OP_INFO_PARALLEL: 1
OPP_OP_INFO_PARALLEL_BATCH: 20

THIS_OPERATOR: ${{ needs.pr-check.outputs.opp_name }}
OPP_AUTO_LABEL: 1
ANSIBLE_FORCE_COLOR: 1
ANSIBLE_DISPLAY_SKIPPED_HOSTS: 0
ANSIBLE_STDOUT_CALLBACK: "yaml"
run: |
echo "Operators out of sync: ${OPP_FORCE_OPERATORS}"
OTHER_OPERATORS=$(echo ${OPP_FORCE_OPERATORS} | tr ' ' '\n' | grep -v "^${THIS_OPERATOR}$" | shuf | head -2 | xargs echo | tr ' ' ',')
if [ -n "${OTHER_OPERATORS}" ] ; then
OPP_FORCE_OPERATORS="${THIS_OPERATOR},${OTHER_OPERATORS}"
else
OPP_FORCE_OPERATORS="${THIS_OPERATOR}"
fi
echo "Syncing: ${OPP_FORCE_OPERATORS}"
OPP_FORCE_OPERATORS=${OPP_FORCE_OPERATORS// /,}
echo $OPP_FORCE_OPERATORS
[ "$OPP_AUTO_LABEL" = '1' ] && ANSIBLE_ARGS="-e automatic_cluster_version_label=true" || ANSIBLE_ARGS="-e automatic_cluster_version_label=false"
[ "$OPP_OP_INFO_PARALLEL" = '1' ] && ANSIBLE_ARGS="$ANSIBLE_ARGS -e op_info_parallel=true -e op_info_parallel_batch=$OPP_OP_INFO_PARALLEL_BATCH" || ANSIBLE_ARGS="$ANSIBLE_ARGS -e op_info_parallel=false"
echo $ANSIBLE_ARGS
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/operator_release_manual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ env:
INDEX_PATH_TO_SIGN: "not-defined"
SIGNATURE_ENDPOINT: "https://not-defined"
OPP_REVIEWERS_ENABLED: 0
TMPDIR: "/mnt"


OPP_ALLOW_FORCE_RELEASE: ${{ github.event.inputs.release }}
Expand Down Expand Up @@ -210,7 +211,7 @@ jobs:
for index in $(echo '${{ github.event.inputs.index }}' | jq -r .[]); do
TARGET_INDEX_RAW=$(echo $index|cut -d '-' -f1)
TARGET_INDEX_UNDERLINE=$(echo $TARGET_INDEX_RAW|tr '.' '_')
TARGET_INDEX_UNDERLINE=$(echo $TARGET_INDEX_RAW|tr '.' '_')
export OPP_FORCE_OPERATORS_$TARGET_INDEX_UNDERLINE="${{ github.event.inputs.list_of_operators }}"
echo "opp_uncomplete_operators_$TARGET_INDEX_UNDERLINE=${{ github.event.inputs.list_of_operators }}" >> $GITHUB_OUTPUT
done
Expand All @@ -229,16 +230,13 @@ jobs:
OPP_OP_INFO_PARALLEL: 1
OPP_OP_INFO_PARALLEL_BATCH: 20

THIS_OPERATOR: ${{ needs.pr-check.outputs.opp_name }}
OPP_AUTO_LABEL: 1
ANSIBLE_FORCE_COLOR: 1
ANSIBLE_DISPLAY_SKIPPED_HOSTS: 0
ANSIBLE_STDOUT_CALLBACK: "yaml"
run: |
OPP_FORCE_OPERATORS=${OPP_FORCE_OPERATORS// /,}
echo "Syncing: ${OPP_FORCE_OPERATORS}"
echo $OPP_FORCE_OPERATORS
[ "$OPP_AUTO_LABEL" = '1' ] && ANSIBLE_ARGS="-e automatic_cluster_version_label=true" || ANSIBLE_ARGS="-e automatic_cluster_version_label=false"
[ "$OPP_OP_INFO_PARALLEL" = '1' ] && ANSIBLE_ARGS="$ANSIBLE_ARGS -e op_info_parallel=true -e op_info_parallel_batch=$OPP_OP_INFO_PARALLEL_BATCH" || ANSIBLE_ARGS="$ANSIBLE_ARGS -e op_info_parallel=false"
echo $ANSIBLE_ARGS
Expand Down Expand Up @@ -347,7 +345,7 @@ jobs:
for index in $(echo '${{ github.event.inputs.index }}' | jq -r .[]); do
TARGET_INDEX_RAW=$(echo $index|cut -d '-' -f1)
TARGET_INDEX_UNDERLINE=$(echo $TARGET_INDEX_RAW|tr '.' '_')
TARGET_INDEX_UNDERLINE=$(echo $TARGET_INDEX_RAW|tr '.' '_')
export OPP_FORCE_OPERATORS_$TARGET_INDEX_UNDERLINE="${{ github.event.inputs.list_of_operators }}"
done
Expand Down

0 comments on commit 16f8f3a

Please sign in to comment.