Skip to content

Commit

Permalink
Upgrade CI (07 Aug 2024 16:34:29)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 7, 2024
1 parent 6d247eb commit c41b99a
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 12 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/debug.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

name: Debug
on:
workflow_dispatch:
inputs:
os:
required: true
type: choice
options:
- ubuntu-latest
- ubuntu-22.04
- ubuntu-20.04

jobs:
debug:
runs-on: "${{ github.event.inputs.os }}"
#container: quay.io/operator_testing/operator-test-playbooks:latest
steps:
- name: Run debug tests
run: |
set -x
id
uname -a
cat /etc/os-release
cat /etc/subuid
cat /etc/subgid
docker version
docker run -it --rm quay.io/quay/busybox date
sleep 5
echo done
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' ..."
[ -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 ..."
mv $PROJECT_DIR/operators/$op/ci.yaml /tmp/operator-test/operators/$op/
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
16 changes: 11 additions & 5 deletions .github/workflows/operator_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -222,16 +222,22 @@ 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"
TMPDIR: "/mnt/tmp"
run: |
sudo mkdir -p "${TMPDIR}"
sudo chmod 1777 "${TMPDIR}"
OPP_FORCE_OPERATORS=${OPP_FORCE_OPERATORS// /,}
echo $OPP_FORCE_OPERATORS
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_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
12 changes: 6 additions & 6 deletions .github/workflows/operator_release_manual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,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 +229,16 @@ 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"
TMPDIR: "/mnt/tmp"
run: |
sudo mkdir -p "${TMPDIR}"
sudo chmod 1777 "${TMPDIR}"
OPP_FORCE_OPERATORS=${OPP_FORCE_OPERATORS// /,}
echo $OPP_FORCE_OPERATORS
echo "Syncing: ${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 +347,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 c41b99a

Please sign in to comment.