Skip to content

Commit cb9dc71

Browse files
Gkclaude
authored andcommitted
ci: add Argus QA trigger after staging integration
Creates a CueAPI cue for Argus to pick up and run SDK tests against the staging environment after staging-integration passes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3113ef3 commit cb9dc71

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/argus-qa.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Argus QA
2+
3+
on:
4+
workflow_run:
5+
workflows: ["SDK Staging Integration"]
6+
types: [completed]
7+
8+
jobs:
9+
trigger-argus:
10+
runs-on: ubuntu-latest
11+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
12+
steps:
13+
- name: Trigger Argus QA
14+
run: |
15+
FIRE_AT=$(date -u -d '+30 seconds' '+%Y-%m-%dT%H:%M:%SZ' 2>/dev/null || \
16+
date -u -v+30S '+%Y-%m-%dT%H:%M:%SZ')
17+
RESPONSE=$(curl -s -w "\n%{http_code}" -X POST https://api.cueapi.ai/v1/cues \
18+
-H "Authorization: Bearer ${{ secrets.ARGUS_API_KEY }}" \
19+
-H "Content-Type: application/json" \
20+
-d "{
21+
\"name\": \"argus-cueapi-python-${{ github.event.workflow_run.head_sha }}\",
22+
\"schedule\": {\"type\": \"once\", \"at\": \"${FIRE_AT}\"},
23+
\"transport\": \"worker\",
24+
\"payload\": {
25+
\"task\": \"sdk-qa\",
26+
\"repo\": \"cueapi-python\",
27+
\"commit\": \"${{ github.event.workflow_run.head_sha }}\",
28+
\"staging_url\": \"${{ secrets.CUEAPI_STAGING_URL }}\"
29+
}
30+
}")
31+
HTTP_CODE=$(echo "$RESPONSE" | tail -1)
32+
BODY=$(echo "$RESPONSE" | head -1)
33+
echo "Response ($HTTP_CODE): $BODY"
34+
if [ "$HTTP_CODE" != "201" ]; then
35+
echo "Failed to create Argus cue"
36+
exit 1
37+
fi
38+
echo "Argus will pick up SDK QA cue within 15 seconds."

0 commit comments

Comments
 (0)