Skip to content

Commit 0a1907e

Browse files
fix: provider CI health checks (#750)
* Fix provider CI health checks * Sync generated Colab notebooks * Address bot review feedback * Align docs audit timeout metadata * Address review feedback on CI retries
1 parent 242a890 commit 0a1907e

13 files changed

Lines changed: 159 additions & 104 deletions

File tree

.agents/recipes/docs-and-references/recipe.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: docs-and-references
33
description: Audit documentation freshness - docstrings vs signatures, broken links, architecture refs, docs site content accuracy
44
trigger: schedule
55
tool: claude-code
6-
timeout_minutes: 20
7-
max_turns: 30
6+
timeout_minutes: 40
7+
max_turns: 50
88
permissions:
99
contents: write
1010
---

.github/workflows/agentic-ci-issue-triage.yml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,27 @@ jobs:
5555
echo "Claude CLI version: $(claude --version 2>&1 || true)"
5656
5757
if [ -n "$ANTHROPIC_BASE_URL" ] && [ -n "$ANTHROPIC_API_KEY" ]; then
58-
HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" \
59-
--max-time 30 \
60-
-X POST "${ANTHROPIC_BASE_URL}/v1/messages" \
61-
-H "Content-Type: application/json" \
62-
-H "x-api-key: ${ANTHROPIC_API_KEY}" \
63-
-H "anthropic-version: 2023-06-01" \
64-
-d "{\"model\":\"${AGENTIC_CI_MODEL}\",\"max_tokens\":5,\"messages\":[{\"role\":\"user\",\"content\":\"hi\"}]}")
65-
if [ "$HTTP_CODE" -lt 200 ] || [ "$HTTP_CODE" -ge 300 ]; then
66-
echo "::error::API pre-flight failed with HTTP ${HTTP_CODE}"
67-
exit 1
68-
fi
69-
echo "API pre-flight passed (HTTP ${HTTP_CODE})"
58+
for ATTEMPT in 1 2 3; do
59+
if ! HTTP_CODE=$(curl -sS -o /dev/null -w "%{http_code}" \
60+
--max-time 30 \
61+
-X POST "${ANTHROPIC_BASE_URL}/v1/messages" \
62+
-H "Content-Type: application/json" \
63+
-H "x-api-key: ${ANTHROPIC_API_KEY}" \
64+
-H "anthropic-version: 2023-06-01" \
65+
-d "{\"model\":\"${AGENTIC_CI_MODEL}\",\"max_tokens\":5,\"messages\":[{\"role\":\"user\",\"content\":\"hi\"}]}"); then
66+
HTTP_CODE="000"
67+
fi
68+
if [ "$HTTP_CODE" -ge 200 ] && [ "$HTTP_CODE" -lt 300 ]; then
69+
echo "API pre-flight passed (HTTP ${HTTP_CODE})"
70+
break
71+
fi
72+
if [ "$ATTEMPT" = "3" ]; then
73+
echo "::error::API pre-flight failed with HTTP ${HTTP_CODE}"
74+
exit 1
75+
fi
76+
echo "API pre-flight failed with HTTP ${HTTP_CODE}; retrying (${ATTEMPT}/3)"
77+
sleep $((ATTEMPT * 10))
78+
done
7079
fi
7180
7281
- name: Run issue triage recipe

.github/workflows/build-notebooks.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,12 @@ jobs:
8787
echo "No previous successful run found, proceeding without cache"
8888
fi
8989
- name: Convert and execute notebooks
90-
run: make convert-execute-notebooks ${{ inputs.use_cache && 'USE_CACHE=1' || '' }}
90+
run: |
91+
if [ "$GITHUB_EVENT_NAME" = "schedule" ]; then
92+
export DATA_DESIGNER_SKIP_NVIDIA_VISION_HEALTH_CHECK=1
93+
export DATA_DESIGNER_FLUX_2_PRO_CREATE_NUM_RECORDS=2
94+
fi
95+
make convert-execute-notebooks ${{ inputs.use_cache && 'USE_CACHE=1' || '' }}
9196
- name: Upload notebooks as artifacts
9297
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
9398
with:

docs/colab_notebooks/4-providing-images-as-context.ipynb

Lines changed: 40 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "4ca15f91",
5+
"id": "6cf6b900",
66
"metadata": {
77
"nemo_colab_inject": true
88
},
@@ -12,15 +12,15 @@
1212
},
1313
{
1414
"cell_type": "markdown",
15-
"id": "2cd80b1e",
15+
"id": "9336f640",
1616
"metadata": {},
1717
"source": [
1818
"# 🎨 Data Designer Tutorial: Providing Images as Context for Vision-Based Data Generation"
1919
]
2020
},
2121
{
2222
"cell_type": "markdown",
23-
"id": "f4907fbd",
23+
"id": "439d7fec",
2424
"metadata": {},
2525
"source": [
2626
"#### 📚 What you'll learn\n",
@@ -37,7 +37,7 @@
3737
},
3838
{
3939
"cell_type": "markdown",
40-
"id": "64041401",
40+
"id": "e3b8eb25",
4141
"metadata": {},
4242
"source": [
4343
"### 📦 Import Data Designer\n",
@@ -49,7 +49,7 @@
4949
},
5050
{
5151
"cell_type": "markdown",
52-
"id": "a272a017",
52+
"id": "8d8e8db6",
5353
"metadata": {
5454
"nemo_colab_inject": true
5555
},
@@ -62,7 +62,7 @@
6262
{
6363
"cell_type": "code",
6464
"execution_count": null,
65-
"id": "786e739e",
65+
"id": "43eba549",
6666
"metadata": {
6767
"nemo_colab_inject": true
6868
},
@@ -75,7 +75,7 @@
7575
{
7676
"cell_type": "code",
7777
"execution_count": null,
78-
"id": "c71603f7",
78+
"id": "d4430cdf",
7979
"metadata": {
8080
"nemo_colab_inject": true
8181
},
@@ -95,13 +95,14 @@
9595
{
9696
"cell_type": "code",
9797
"execution_count": null,
98-
"id": "798b74f0",
98+
"id": "39965c9f",
9999
"metadata": {},
100100
"outputs": [],
101101
"source": [
102102
"# Standard library imports\n",
103103
"import base64\n",
104104
"import io\n",
105+
"import os\n",
105106
"import uuid\n",
106107
"\n",
107108
"# Third-party imports\n",
@@ -118,7 +119,7 @@
118119
},
119120
{
120121
"cell_type": "markdown",
121-
"id": "fcc79cd5",
122+
"id": "091fe0ae",
122123
"metadata": {},
123124
"source": [
124125
"### ⚙️ Initialize the Data Designer interface\n",
@@ -131,7 +132,7 @@
131132
{
132133
"cell_type": "code",
133134
"execution_count": null,
134-
"id": "d0c5ad95",
135+
"id": "aec3b66d",
135136
"metadata": {},
136137
"outputs": [],
137138
"source": [
@@ -140,7 +141,7 @@
140141
},
141142
{
142143
"cell_type": "markdown",
143-
"id": "dde957c8",
144+
"id": "cc437623",
144145
"metadata": {},
145146
"source": [
146147
"### 🏗️ Initialize the Data Designer Config Builder\n",
@@ -155,16 +156,21 @@
155156
{
156157
"cell_type": "code",
157158
"execution_count": null,
158-
"id": "ed9f9c8d",
159+
"id": "70641660",
159160
"metadata": {},
160161
"outputs": [],
161162
"source": [
162-
"config_builder = dd.DataDesignerConfigBuilder()"
163+
"config_builder = dd.DataDesignerConfigBuilder()\n",
164+
"if os.environ.get(\"DATA_DESIGNER_SKIP_NVIDIA_VISION_HEALTH_CHECK\"):\n",
165+
" for model_config in config_builder.model_configs:\n",
166+
" if model_config.alias == \"nvidia-vision\":\n",
167+
" model_config.skip_health_check = True\n",
168+
" break"
163169
]
164170
},
165171
{
166172
"cell_type": "markdown",
167-
"id": "1cfa8352",
173+
"id": "d46b40e2",
168174
"metadata": {},
169175
"source": [
170176
"### 🌱 Seed Dataset Creation\n",
@@ -181,7 +187,7 @@
181187
{
182188
"cell_type": "code",
183189
"execution_count": null,
184-
"id": "ad5dcc9e",
190+
"id": "69a574fc",
185191
"metadata": {},
186192
"outputs": [],
187193
"source": [
@@ -196,7 +202,7 @@
196202
{
197203
"cell_type": "code",
198204
"execution_count": null,
199-
"id": "94f73f6a",
205+
"id": "af034de4",
200206
"metadata": {},
201207
"outputs": [],
202208
"source": [
@@ -241,7 +247,7 @@
241247
{
242248
"cell_type": "code",
243249
"execution_count": null,
244-
"id": "641d0d6f",
250+
"id": "8edc7072",
245251
"metadata": {},
246252
"outputs": [],
247253
"source": [
@@ -259,7 +265,7 @@
259265
{
260266
"cell_type": "code",
261267
"execution_count": null,
262-
"id": "4cc6da4d",
268+
"id": "c8dc4c96",
263269
"metadata": {},
264270
"outputs": [],
265271
"source": [
@@ -269,7 +275,7 @@
269275
{
270276
"cell_type": "code",
271277
"execution_count": null,
272-
"id": "82d962de",
278+
"id": "f993932b",
273279
"metadata": {},
274280
"outputs": [],
275281
"source": [
@@ -280,7 +286,7 @@
280286
},
281287
{
282288
"cell_type": "markdown",
283-
"id": "5a8fcb53",
289+
"id": "7c8ac017",
284290
"metadata": {},
285291
"source": [
286292
"### 🧩 Media context and model capabilities\n",
@@ -317,7 +323,7 @@
317323
{
318324
"cell_type": "code",
319325
"execution_count": null,
320-
"id": "571b94a9",
326+
"id": "1ea97eea",
321327
"metadata": {},
322328
"outputs": [],
323329
"source": [
@@ -339,7 +345,7 @@
339345
},
340346
{
341347
"cell_type": "markdown",
342-
"id": "f591a975",
348+
"id": "c2975763",
343349
"metadata": {},
344350
"source": [
345351
"### 🔁 Iteration is key – preview the dataset!\n",
@@ -356,7 +362,7 @@
356362
{
357363
"cell_type": "code",
358364
"execution_count": null,
359-
"id": "25cdbea4",
365+
"id": "44a36e82",
360366
"metadata": {},
361367
"outputs": [],
362368
"source": [
@@ -366,7 +372,7 @@
366372
{
367373
"cell_type": "code",
368374
"execution_count": null,
369-
"id": "6a2e9028",
375+
"id": "e8c1e22a",
370376
"metadata": {},
371377
"outputs": [],
372378
"source": [
@@ -377,7 +383,7 @@
377383
{
378384
"cell_type": "code",
379385
"execution_count": null,
380-
"id": "f29e5a7a",
386+
"id": "db06e0d0",
381387
"metadata": {},
382388
"outputs": [],
383389
"source": [
@@ -387,7 +393,7 @@
387393
},
388394
{
389395
"cell_type": "markdown",
390-
"id": "48dd0ead",
396+
"id": "5d9f8a3a",
391397
"metadata": {},
392398
"source": [
393399
"### 📊 Analyze the generated data\n",
@@ -400,7 +406,7 @@
400406
{
401407
"cell_type": "code",
402408
"execution_count": null,
403-
"id": "e0570168",
409+
"id": "afafea71",
404410
"metadata": {},
405411
"outputs": [],
406412
"source": [
@@ -410,7 +416,7 @@
410416
},
411417
{
412418
"cell_type": "markdown",
413-
"id": "95fa4cea",
419+
"id": "b215ce02",
414420
"metadata": {},
415421
"source": [
416422
"### 🔎 Visual Inspection\n",
@@ -421,7 +427,7 @@
421427
{
422428
"cell_type": "code",
423429
"execution_count": null,
424-
"id": "622d3d4a",
430+
"id": "e520ad19",
425431
"metadata": {
426432
"lines_to_next_cell": 2
427433
},
@@ -445,7 +451,7 @@
445451
},
446452
{
447453
"cell_type": "markdown",
448-
"id": "a4e4b2ee",
454+
"id": "12830a2d",
449455
"metadata": {},
450456
"source": [
451457
"### 🆙 Scale up!\n",
@@ -458,7 +464,7 @@
458464
{
459465
"cell_type": "code",
460466
"execution_count": null,
461-
"id": "1fa4a946",
467+
"id": "400f74d8",
462468
"metadata": {},
463469
"outputs": [],
464470
"source": [
@@ -468,7 +474,7 @@
468474
{
469475
"cell_type": "code",
470476
"execution_count": null,
471-
"id": "cbdb22bc",
477+
"id": "1ad0695d",
472478
"metadata": {},
473479
"outputs": [],
474480
"source": [
@@ -481,7 +487,7 @@
481487
{
482488
"cell_type": "code",
483489
"execution_count": null,
484-
"id": "e3c86efa",
490+
"id": "3dc2ec79",
485491
"metadata": {},
486492
"outputs": [],
487493
"source": [
@@ -493,7 +499,7 @@
493499
},
494500
{
495501
"cell_type": "markdown",
496-
"id": "2ac40b13",
502+
"id": "d82cf6ec",
497503
"metadata": {},
498504
"source": [
499505
"## ⏭️ Next Steps\n",

0 commit comments

Comments
 (0)