Skip to content

Commit 16f8f3a

Browse files
Upgrade CI (31 Jul 2024 13:21:54)
1 parent b89080f commit 16f8f3a

File tree

4 files changed

+8
-48
lines changed

4 files changed

+8
-48
lines changed

.github/workflows/debug.yaml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/operator_convert.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
ANSIBLE_TAGS="operator_info"
7979
cd $PROJECT_DIR
8080
echo "Moving bundle for '$op' ..."
81-
mv $PROJECT_DIR/operators/$op/ci.yaml /tmp/operator-test/operators/$op/
81+
[ -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 ..."
8282
rm -rf $PROJECT_DIR/operators/$op
8383
mv /tmp/operator-test/operators/$op $PROJECT_DIR/operators/$op
8484
find $PROJECT_DIR/operators/$op -name 'bundle.Dockerfile' -delete

.github/workflows/operator_release.yaml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ env:
5050
INDEX_PATH_TO_SIGN: "not-defined"
5151
SIGNATURE_ENDPOINT: "https://not-defined"
5252
OPP_REVIEWERS_ENABLED: 0
53+
TMPDIR: "/mnt"
5354

5455

5556
OPP_ALLOW_FORCE_RELEASE: ${{ github.event.inputs.release }}
@@ -222,22 +223,13 @@ jobs:
222223
OPP_OP_INFO_PARALLEL: 1
223224
OPP_OP_INFO_PARALLEL_BATCH: 20
224225

225-
THIS_OPERATOR: ${{ needs.pr-check.outputs.opp_name }}
226226
OPP_AUTO_LABEL: 1
227227
ANSIBLE_FORCE_COLOR: 1
228228
ANSIBLE_DISPLAY_SKIPPED_HOSTS: 0
229229
ANSIBLE_STDOUT_CALLBACK: "yaml"
230230
run: |
231-
232-
echo "Operators out of sync: ${OPP_FORCE_OPERATORS}"
233-
OTHER_OPERATORS=$(echo ${OPP_FORCE_OPERATORS} | tr ' ' '\n' | grep -v "^${THIS_OPERATOR}$" | shuf | head -2 | xargs echo | tr ' ' ',')
234-
if [ -n "${OTHER_OPERATORS}" ] ; then
235-
OPP_FORCE_OPERATORS="${THIS_OPERATOR},${OTHER_OPERATORS}"
236-
else
237-
OPP_FORCE_OPERATORS="${THIS_OPERATOR}"
238-
fi
239-
240-
echo "Syncing: ${OPP_FORCE_OPERATORS}"
231+
OPP_FORCE_OPERATORS=${OPP_FORCE_OPERATORS// /,}
232+
echo $OPP_FORCE_OPERATORS
241233
[ "$OPP_AUTO_LABEL" = '1' ] && ANSIBLE_ARGS="-e automatic_cluster_version_label=true" || ANSIBLE_ARGS="-e automatic_cluster_version_label=false"
242234
[ "$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"
243235
echo $ANSIBLE_ARGS

.github/workflows/operator_release_manual.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ env:
6363
INDEX_PATH_TO_SIGN: "not-defined"
6464
SIGNATURE_ENDPOINT: "https://not-defined"
6565
OPP_REVIEWERS_ENABLED: 0
66+
TMPDIR: "/mnt"
6667

6768

6869
OPP_ALLOW_FORCE_RELEASE: ${{ github.event.inputs.release }}
@@ -210,7 +211,7 @@ jobs:
210211
211212
for index in $(echo '${{ github.event.inputs.index }}' | jq -r .[]); do
212213
TARGET_INDEX_RAW=$(echo $index|cut -d '-' -f1)
213-
TARGET_INDEX_UNDERLINE=$(echo $TARGET_INDEX_RAW|tr '.' '_')
214+
TARGET_INDEX_UNDERLINE=$(echo $TARGET_INDEX_RAW|tr '.' '_')
214215
export OPP_FORCE_OPERATORS_$TARGET_INDEX_UNDERLINE="${{ github.event.inputs.list_of_operators }}"
215216
echo "opp_uncomplete_operators_$TARGET_INDEX_UNDERLINE=${{ github.event.inputs.list_of_operators }}" >> $GITHUB_OUTPUT
216217
done
@@ -229,16 +230,13 @@ jobs:
229230
OPP_OP_INFO_PARALLEL: 1
230231
OPP_OP_INFO_PARALLEL_BATCH: 20
231232

232-
THIS_OPERATOR: ${{ needs.pr-check.outputs.opp_name }}
233233
OPP_AUTO_LABEL: 1
234234
ANSIBLE_FORCE_COLOR: 1
235235
ANSIBLE_DISPLAY_SKIPPED_HOSTS: 0
236236
ANSIBLE_STDOUT_CALLBACK: "yaml"
237237
run: |
238-
239238
OPP_FORCE_OPERATORS=${OPP_FORCE_OPERATORS// /,}
240-
241-
echo "Syncing: ${OPP_FORCE_OPERATORS}"
239+
echo $OPP_FORCE_OPERATORS
242240
[ "$OPP_AUTO_LABEL" = '1' ] && ANSIBLE_ARGS="-e automatic_cluster_version_label=true" || ANSIBLE_ARGS="-e automatic_cluster_version_label=false"
243241
[ "$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"
244242
echo $ANSIBLE_ARGS
@@ -347,7 +345,7 @@ jobs:
347345
348346
for index in $(echo '${{ github.event.inputs.index }}' | jq -r .[]); do
349347
TARGET_INDEX_RAW=$(echo $index|cut -d '-' -f1)
350-
TARGET_INDEX_UNDERLINE=$(echo $TARGET_INDEX_RAW|tr '.' '_')
348+
TARGET_INDEX_UNDERLINE=$(echo $TARGET_INDEX_RAW|tr '.' '_')
351349
export OPP_FORCE_OPERATORS_$TARGET_INDEX_UNDERLINE="${{ github.event.inputs.list_of_operators }}"
352350
done
353351

0 commit comments

Comments
 (0)