Skip to content

Commit 4e2d83f

Browse files
committed
merge(main): sync trace timing PR
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
2 parents 361984e + 1870a53 commit 4e2d83f

264 files changed

Lines changed: 10764 additions & 2261 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/brev-nightly-e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ jobs:
4949
secrets:
5050
BREV_API_KEY: ${{ secrets.BREV_API_KEY }}
5151
BREV_ORG_ID: ${{ secrets.BREV_ORG_ID }}
52-
NVIDIA_API_KEY: ${{ secrets.NVIDIA_API_KEY }}
52+
NVIDIA_INFERENCE_API_KEY: ${{ secrets.NVIDIA_INFERENCE_API_KEY }}

.github/workflows/e2e-branch-validation.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ name: E2E / Branch Validation
4848
# all — Runs credential-sanitization + telegram-injection (NOT full,
4949
# which destroys the sandbox the security tests need).
5050
#
51-
# Required secrets: BREV_API_KEY + BREV_ORG_ID (or legacy BREV_API_TOKEN), NVIDIA_API_KEY
51+
# Required secrets: BREV_API_KEY + BREV_ORG_ID (or legacy BREV_API_TOKEN), NVIDIA_INFERENCE_API_KEY
5252
# Instance cost: Brev CPU credits (~$0.10/run for 4x16 instance)
5353

5454
on:
@@ -157,7 +157,7 @@ on:
157157
required: false
158158
BREV_ORG_ID:
159159
required: false
160-
NVIDIA_API_KEY:
160+
NVIDIA_INFERENCE_API_KEY:
161161
required: true
162162

163163
permissions:
@@ -253,7 +253,7 @@ jobs:
253253
env:
254254
NEMOCLAW_RUN_BRANCH_VALIDATION_E2E: "1"
255255
BREV_API_TOKEN: ${{ inputs.brev_token || secrets.BREV_API_TOKEN }}
256-
NVIDIA_API_KEY: ${{ secrets.NVIDIA_API_KEY }}
256+
NVIDIA_INFERENCE_API_KEY: ${{ secrets.NVIDIA_INFERENCE_API_KEY }}
257257
GITHUB_TOKEN: ${{ github.token }}
258258
INSTANCE_NAME: ${{ env.BREV_E2E_INSTANCE_NAME }}
259259
TEST_SUITE: ${{ inputs.test_suite }}

.github/workflows/e2e-script.yaml

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,12 @@ on:
5858
type: string
5959
default: ""
6060
nvidia_api_key:
61-
description: Pass the NVIDIA_API_KEY secret to the script.
61+
description: Pass the NVIDIA_INFERENCE_API_KEY secret to the script.
62+
required: false
63+
type: boolean
64+
default: false
65+
nvidia_secret_as_compatible_api_key:
66+
description: Expose NVIDIA_INFERENCE_API_KEY as COMPATIBLE_API_KEY for CI-only OpenAI-compatible inference.
6267
required: false
6368
type: boolean
6469
default: false
@@ -78,7 +83,7 @@ on:
7883
type: boolean
7984
default: false
8085
secrets:
81-
NVIDIA_API_KEY:
86+
NVIDIA_INFERENCE_API_KEY:
8287
required: false
8388
BRAVE_API_KEY:
8489
required: false
@@ -212,6 +217,28 @@ jobs:
212217
echo "::warning::Docker Hub login failed after 3 attempts; continuing with anonymous pulls."
213218
fi
214219
220+
- name: Export CI compatible inference environment
221+
if: ${{ inputs.nvidia_secret_as_compatible_api_key }}
222+
env:
223+
NVIDIA_INFERENCE_API_KEY: ${{ secrets.NVIDIA_INFERENCE_API_KEY }}
224+
shell: bash
225+
run: |
226+
set -euo pipefail
227+
228+
if [ -z "${NVIDIA_INFERENCE_API_KEY:-}" ]; then
229+
echo "::error::NVIDIA_INFERENCE_API_KEY secret is required for CI compatible inference." >&2
230+
exit 1
231+
fi
232+
233+
{
234+
printf 'NEMOCLAW_E2E_USE_NVIDIA_SECRET_AS_COMPATIBLE=1\n'
235+
printf 'NEMOCLAW_PROVIDER=custom\n'
236+
printf 'NEMOCLAW_ENDPOINT_URL=https://inference-api.nvidia.com/v1\n'
237+
printf 'NEMOCLAW_MODEL=nvidia/nvidia/nemotron-3-super-v3\n'
238+
printf 'NEMOCLAW_COMPAT_MODEL=nvidia/nvidia/nemotron-3-super-v3\n'
239+
printf 'COMPATIBLE_API_KEY=%s\n' "${NVIDIA_INFERENCE_API_KEY}"
240+
} >> "$GITHUB_ENV"
241+
215242
- name: Run E2E script
216243
uses: ./workflow-actions/.github/actions/run-e2e-script
217244
with:
@@ -225,7 +252,7 @@ jobs:
225252
env:
226253
BRAVE_API_KEY: ${{ inputs.brave_api_key && secrets.BRAVE_API_KEY || '' }}
227254
GITHUB_TOKEN: ${{ inputs.github_token && github.token || '' }}
228-
NVIDIA_API_KEY: ${{ inputs.nvidia_api_key && secrets.NVIDIA_API_KEY || '' }}
255+
NVIDIA_INFERENCE_API_KEY: ${{ inputs.nvidia_api_key && secrets.NVIDIA_INFERENCE_API_KEY || '' }}
229256
TELEGRAM_BOT_TOKEN_REAL: ${{ inputs.messaging_live_secrets && secrets.TELEGRAM_BOT_TOKEN_REAL || '' }}
230257
TELEGRAM_CHAT_ID_E2E: ${{ inputs.messaging_live_secrets && secrets.TELEGRAM_CHAT_ID_E2E || '' }}
231258
DISCORD_BOT_TOKEN_REAL: ${{ inputs.messaging_live_secrets && secrets.DISCORD_BOT_TOKEN_REAL || '' }}

0 commit comments

Comments
 (0)