Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/aot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,11 @@ jobs:
providerID="$(basename "${subdir}")"
echo "Processing provider '${providerID}' at subdirectory: '${subdir}'" 1>&2
echo ""
./scripts/cicd/shell/aot-analysis/01-aot-analysis-compact.sh ${{ github.workspace }}/stackql-any-sdk/build/anysdk "${providerID}" "${subdir}/v00.00.00000/provider.yaml" &
echo ""
for line in $(${{ github.workspace }}/stackql-any-sdk/build/anysdk interrogate services ${{ github.workspace }}/providers ${subdir}/v00.00.00000/provider.yaml); do
serviceIdentifier="${line}"
./scripts/cicd/shell/aot-analysis/01-aot-analysis-compact.sh ${{ github.workspace }}/stackql-any-sdk/build/anysdk "${providerID}" "${subdir}/v00.00.00000/provider.yaml" "${serviceIdentifier}" &
echo ""
done
done
echo ""
echo "All tasks initiated. Waiting for them to complete..."
Expand Down Expand Up @@ -138,7 +141,7 @@ jobs:

- name: Upload AOT analysis logs
uses: actions/upload-artifact@v4.3.1
if: success()
if: always()
with:
name: aot_analysis_logs
path: ./test/log
16 changes: 14 additions & 2 deletions scripts/cicd/shell/aot-analysis/01-aot-analysis-compact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,24 @@ providerID="${2}"

providerRootFile="${3}"

serviceIdentifier="${4}"

logDir="${REPOSITORY_ROOT}/test/log"

registryDir="${REPOSITORY_ROOT}/providers"

${anySdkExe} aot "${registryDir}" "${providerRootFile}" -v > "${logDir}/aot_${providerID}.log" 2>&1
if [ "${serviceIdentifier}" != "" ]; then
${anySdkExe} aot "${registryDir}" "${providerRootFile}" "${serviceIdentifier}" -v > "${logDir}/aot_${providerID}_${serviceIdentifier}.log" 2>&1
else
${anySdkExe} aot "${registryDir}" "${providerRootFile}" -v > "${logDir}/aot_${providerID}.log" 2>&1
fi

rc="$?"

echo "${rc}" > "${logDir}/rc_aot_${providerID}.txt"
if [ "${serviceIdentifier}" != "" ]; then
echo "${rc}" > "${logDir}/rc_aot_${providerID}_${serviceIdentifier}.txt"
echo "${SECONDS}" > "${logDir}/duration_seconds_aot_${providerID}_${serviceIdentifier}.txt"
else
echo "${rc}" > "${logDir}/rc_aot_${providerID}.txt"
echo "${SECONDS}" > "${logDir}/duration_seconds_aot_${providerID}.txt"
fi
30 changes: 30 additions & 0 deletions scripts/cicd/shell/aot-orchestration/01-aot-analyse-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env bash

CUR_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"

REPOSITORY_ROOT="$(realpath "${CUR_DIR}/../../../..")"

anySdkCliPath="${1}"

for sd in ${REPOSITORY_ROOT}/providers/src/*/ ; do
echo ""
subdir="$(realpath "${sd}")"
providerID="$(basename "${subdir}")"
echo "Processing provider '${providerID}' at subdirectory: '${subdir}'" 1>&2
echo ""
for line in $(${anySdkCliPath} interrogate services ${REPOSITORY_ROOT}/providers ${subdir}/v00.00.00000/provider.yaml); do
serviceIdentifier="${line}"
${REPOSITORY_ROOT}/scripts/cicd/shell/aot-analysis/01-aot-analysis-compact.sh ${anySdkCliPath} "${providerID}" "${subdir}/v00.00.00000/provider.yaml" "${serviceIdentifier}" &
echo ""
done
done

echo ""
echo "All tasks initiated. Waiting for them to complete..." 1>&2
echo ""

wait

echo ""
echo "All tasks completed." 1>&2
echo ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env bash

CUR_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"

REPOSITORY_ROOT="$(realpath "${CUR_DIR}/../../../..")"


rc='0'

for rcf in ${REPOSITORY_ROOT}/test/log/rc_* ; do
thisrc="$(cat "${rcf}")"
if [ "$thisrc" != "0" ]; then
echo "AOT analysis failure detected for: '${rcf}'" 1>&2
rc='1'
fi
done

if [ "$rc" != "0" ]; then
echo "AOT analysis failures detected." 1>&2
exit 1
fi

echo "All AOT analysis tasks completed successfully." 1>&2

Loading