Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
9 changes: 9 additions & 0 deletions .github/workflows/cicd-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,15 @@ jobs:
MODEL_API_KEY: ${{ secrets[matrix.model_api_key_secret_name] }}
run: bash tests/e2e/run_inference_provider_e2e.sh

- name: Upload provider E2E artifacts
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: ${{ matrix.provider }}-e2e-results-${{ github.run_id }}-${{ github.run_attempt }}
path: ${{ runner.temp }}/nemo-gym-${{ matrix.provider }}-e2e/results
if-no-files-found: warn
retention-days: 7

Nemo_CICD_Test:
needs: [pre-flight, classify_changes, unit_tests, container_build, gpu_e2e_tests, provider_e2e_tests]
if: always() && !cancelled()
Expand Down
1 change: 1 addition & 0 deletions tests/e2e/inference_provider_smoke.jsonl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"responses_create_params": {"input": [{"content": "You are a helpful personal assistant that aims to be helpful and reduce any pain points the user has.", "role": "developer"}, {"content": "What is the current weather in San Francisco? Use the get_weather tool to check.", "role": "user"}], "tools": [{"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string", "description": ""}}, "required": ["city"], "additionalProperties": false}, "strict": true, "type": "function", "description": ""}]}}
3 changes: 2 additions & 1 deletion tests/e2e/run_inference_provider_e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,10 @@ GYM_PID=$!
"$VENV_DIR/bin/gym" eval run \
--no-serve \
--agent example_single_tool_call_simple_agent \
--input "$ROOT_DIR/resources_servers/example_single_tool_call/data/example.jsonl" \
--input "$ROOT_DIR/tests/e2e/inference_provider_smoke.jsonl" \
--output "$RESULTS_DIR/rollouts.jsonl" \
--limit 1 \
--temperature 0 \
--max-output-tokens 4096

"$VENV_DIR/bin/python" "$ROOT_DIR/tests/e2e/verify_inference_provider_rollout.py" \
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/test_ci_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ def test_provider_e2e_matrix_selects_config_model_and_secret_by_name() -> None:
assert "E2E_MODEL" in script
assert "MODEL_API_KEY" in script
assert "--model-api-key" not in script
assert "resources_servers/example_single_tool_call/data/example.jsonl" in script
assert "tests/e2e/inference_provider_smoke.jsonl" in script
assert "--max-output-tokens 4096" in script

env_config = (REPO_ROOT / "tests" / "e2e" / "inference_provider_env.yaml").read_text()
Expand Down
Loading