BrainAPI is a knowledge graph–powered AI memory layer that transforms unstructured data into structured knowledge, enabling intelligent search, recommendations, and contextual memory for AI agents and applications.
Python ai-agentsai-memoryknowledge-graphknowledge-managementknowledge-representationreccomendation-system
Wait for SSM instead of the GitHub runner API.
Christian2db3c616bee7
diff --git a/.github/workflows/heavy-validation.yaml b/.github/workflows/heavy-validation.yamlindex 50a6c1a..6da083d 100644--- a/.github/workflows/heavy-validation.yaml+++ b/.github/workflows/heavy-validation.yaml@@ -41,20 +41,21 @@ jobs:fiaws ec2 wait instance-running --instance-ids "$INSTANCE_ID"echo "instance running"- - name: Wait for the GitHub runner to come online+ - name: Wait for SSM and the runner serviceenv:- GH_TOKEN: ${{ github.token }}+ INSTANCE_ID: ${{ vars.AWS_HEAVY_RUNNER_INSTANCE_ID }}run: |set -euo pipefailfor i in $(seq 1 40); do- status="$(gh api "repos/${GITHUB_REPOSITORY}/actions/runners" --jq '.runners[] | select(.name=="brainapi-heavy") | .status' | head -n 1 || true)"- echo "attempt $i runner status=${status:-missing}"- if [[ "$status" == "online" ]]; then+ ping="$(aws ssm describe-instance-information --filters "Key=InstanceIds,Values=${INSTANCE_ID}" --query 'InstanceInformationList[0].PingStatus' --output text 2>/dev/null || true)"+ echo "attempt $i ssm=${ping:-missing}"+ if [[ "$ping" == "Online" ]]; then+ sleep 20exit 0fisleep 15done- echo "Timed out waiting for brainapi-heavy runner" >&2+ echo "Timed out waiting for SSM on ${INSTANCE_ID}" >&2exit 1heavy-smoke-and-restore: