Skip to content

ci: add Fireworks inference provider e2e - #2712

Merged
chtruong814 merged 8 commits into
mainfrom
chtruong/inference-api-tests
Aug 24, 2026
Merged

chtruong814 merged 8 commits into
mainfrom
chtruong/inference-api-tests

Conversation

@chtruong814

@chtruong814 chtruong814 commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds a matrix-backed hosted-provider E2E job to cicd-main.yml, starting with Fireworks and accounts/fireworks/models/gpt-oss-20b.

The provider-neutral runner executes directly on ubuntu-latest without the private CI container. It builds and installs the Gym wheel in an isolated environment, then mirrors draft PR #2575's two-request tool loop using the existing example_single_tool_call fixture:

  1. The hosted model calls get_weather.
  2. Gym executes the tool and the hosted model produces the final answer.

The verifier checks the function call and matching tool output structurally without requiring deterministic model prose. It also requires a completed response, positive input/output token usage, and non-empty assistant output. The agent is bounded to two steps and each model response to 1024 output tokens.

The job remains part of the overall Nemo_CICD_Test gate. Adding another hosted provider requires another matrix row with its provider config, model, and API-key secret name.

The provider secret is resolved only into the provider test step environment and consumed through OmegaConf environment interpolation. It is not passed as a CLI argument or written into a config file.

Linear: https://linear.app/nvidia/issue/AUT-769/e2e-testing-with-an-inference-api-provider-fireworks

Testing

  • pre-commit run --all-files
  • python -m pytest tests/unit_tests/test_ci_environment.py -q — 36 passed
  • detect-secrets scan --exclude-files 'pyproject\.toml|\.github/workflows/config/\.secrets\.baseline' --disable-plugin KeywordDetector
  • YAML/JSON parsing, shell syntax, and git diff --check

The live hosted-provider request was not run locally because the credential was not accessed; the new CI job performs that validation with the repository secret.

Checklist

  • I have read the contributing guidelines.
  • The change is focused; unrelated "drive-by" edits are tracked as separate issues/PRs.
  • Tests added or updated and pass locally, or N/A for docs-only / non-code changes (so CI unit/server checks pass when applicable).
  • Pre-commit checks pass locally (pre-commit run --all-files) (so CI lint/format/copyright pass).
  • All commits have DCO sign-off (git commit -s) (so the DCO check passes).

@chtruong814
chtruong814 requested a review from a team as a code owner August 24, 2026 18:16
@chtruong814 chtruong814 changed the title test: add Fireworks inference provider e2e ci: add Fireworks inference provider e2e Aug 24, 2026
Signed-off-by: Charlie Truong <[email protected]>
@kajalj22

Copy link
Copy Markdown
Contributor

/claude review

@claude

claude Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

SHIP WITH CARE — the E2E harness and verifier are well-built; two things need a decision before this becomes a merge gate.

What this does: adds a provider_e2e_tests matrix job that builds the wheel, serves it from a local index, starts a Gym env pointed at Fireworks, runs one example_single_tool_call rollout, and verifies the full tool-call loop (get_weather call → matching function_call_output → non-empty assistant text). The verify_inference_provider_rollout.py checks are strict and the parametrized unit tests assert real rejection paths — good coverage.

Findings (inline):

  • RISK — Nemo_CICD_Test now hard-requires provider_e2e_tests == success for every non-docs PR, gating the whole merge queue on a live third-party API (Fireworks) with no retry and no soft-fail. An outage, rate-limit, model deprecation, or empty FIREWORKS secret blocks all merges. Consider making it report-only or soft-failing on provider-side errors.
  • NOTE — the .secrets.baseline regen removes the KeywordDetector plugin, the is_baseline_file filter, and the .oms.sig exclude — broader than the pinchbench cleanup and unrelated to the E2E feature. Removing KeywordDetector disables Secret Keyword scanning repo-wide. Suggest restoring the plugin or splitting into its own PR.

Nits verified clean: referenced config/data/script paths all exist; E2E_DIR absolute-path guard, rm -rf scoping, and cleanup trap are sound; verifier logic matches the Responses API shape.

Not approving — leaving the gate/secrets decisions to a maintainer.

Comment thread .github/workflows/cicd-main.yml Resolved
Comment thread .github/workflows/cicd-main.yml Outdated

- name: Install uv
run: |
curl -LsSf "https://astral.sh/uv/0.11.29/install.sh" | sh

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we reuse the dynamic version

ARG UV_VERSION=0.11.29
instead of hardcoding the uv version?

kajalj22
kajalj22 previously approved these changes Aug 24, 2026
kajalj22
kajalj22 previously approved these changes Aug 24, 2026
@chtruong814
chtruong814 enabled auto-merge (squash) August 24, 2026 21:26
@chtruong814
chtruong814 merged commit a2c39b6 into main Aug 24, 2026
41 checks passed
@chtruong814
chtruong814 deleted the chtruong/inference-api-tests branch August 24, 2026 21:31

This branch was previously deployed

1 inactive deployment
public — f6b81cd4 Deployed Aug 24, 2026 by copy-pr-bot[bot] via release / finalize / notify #1710
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants