Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
any-sdk-json-schema-validation
Summary:

- `any-sdk` json schema validation.
- json schema validation incorpoarated into AOT checks.
  • Loading branch information
general-kroll-4-life committed Oct 12, 2025
commit 0e9eec019c54e07fd6657e3dd2c867c76c6e3fb7
2 changes: 1 addition & 1 deletion .github/workflows/aot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ jobs:
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}" &
./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}" "${{ github.workspace }}/stackql-any-sdk/cicd/schema-definitions" &
echo ""
done
done
Expand Down
6 changes: 4 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 @@ -12,14 +12,16 @@ providerRootFile="${3}"

serviceIdentifier="${4}"

jsonSchemaDir="${5}"

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

registryDir="${REPOSITORY_ROOT}/providers"

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

rc="$?"
Expand Down
4 changes: 3 additions & 1 deletion scripts/cicd/shell/aot-orchestration/01-aot-analyse-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ REPOSITORY_ROOT="$(realpath "${CUR_DIR}/../../../..")"

anySdkCliPath="${1}"

jsonSchemaDir="${2}"

for sd in ${REPOSITORY_ROOT}/providers/src/*/ ; do
echo ""
subdir="$(realpath "${sd}")"
Expand All @@ -14,7 +16,7 @@ for sd in ${REPOSITORY_ROOT}/providers/src/*/ ; do
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}" &
${REPOSITORY_ROOT}/scripts/cicd/shell/aot-analysis/01-aot-analysis-compact.sh ${anySdkCliPath} "${providerID}" "${subdir}/v00.00.00000/provider.yaml" "${serviceIdentifier}" "${jsonSchemaDir}" &
echo ""
done
done
Expand Down
Loading