Skip to content
Back to skills

Test Integration

ASecurity

Run and extend Phoenix's executable integration documentation checks. Use when changing an integration doc, its runnable example, or the CI harness.

  • 12,550 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 10, 2026
ai-agentsjavascripttypescriptpythongojavabashnodetestingapidocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 10, 2026

npx -y skills add Arize-ai/phoenix --skill test-integration --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test Integration?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Test Integration
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/arize-ai-test-integration/badge)](https://www.skillsdirectory.com/skills/arize-ai-test-integration)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: test-integration
description: Run and extend Phoenix's executable integration documentation checks. Use when changing an integration doc, its runnable example, or the CI harness.
metadata:
  internal: true
---

# Integration documentation checks

The harness runs published Phoenix integration examples against a local Phoenix
server and verifies the result in Phoenix. The enabled set is deliberately
incremental: `scripts/testing/integration_docs/integrations.json` lists the
documents CI executes. `INTEGRATION_CHECKS.md` is only an onboarding inventory.

## Run checks locally

Start Phoenix at `http://127.0.0.1:6006`, set the credentials required by the
selected integration, then run:

```bash
make test-integration-docs
```

Run a single configured document with:

```bash
make test-integration-docs INTEGRATION_DOCS_ARGS="--doc docs/phoenix/integrations/llm-providers/openai/openai-tracing.mdx"
```

The runner parses the selected page before checking credentials, installs its
documented dependencies into a disposable environment, executes the example,
and verifies spans using the Phoenix API. Reports are written under
`ci-results/integration-docs/`. `PHOENIX_ENDPOINT` can override the local
endpoint.

For Ollama checks, also start Ollama and pull the configured model before
running the harness. The current Ollama entries use `llama3.2:1b`; Python uses
the native Ollama client, while Node.js and Go use the OpenAI SDK against
Ollama's local OpenAI-compatible endpoint. CI reads each integration's
`services` declaration, starts Ollama when that shard needs it, and pulls the
declared model. Ollama checks do not require a provider API key.

## CI behavior

- The workflow's `paths` filter starts it only for integration docs, the
  routed shared snippet, and harness files. Keep it a superset of
  `classify_changes.py` routing.
- Pull requests classify changed files. Enabled integration docs run only when
  changed; shared snippets are routed to the docs that consume them.
- Changes to the runner, routing config, workflow, or skill scripts run the
  full enabled set. Markdown-only edits (this skill, the inventory, the README)
  do not trigger checks.
- Monday's scheduled workflow and manual dispatch run all enabled docs. A
  manual `docs` input accepts space-separated paths from `integrations.json`.
- Selected docs are distributed deterministically across a matrix of shards;
  shard reports are merged into one artifact, job summary, and PR comment.
  No-op runs post nothing; the comment is edited in place on later pushes and
  skipped on fork PRs.
- Each invocation uses a unique Phoenix project, so shards do not contend for
  shared project state.
- Local services are declared per integration in `integrations.json` and
  prepared only in the shards assigned to those docs.

## Add an integration

1. Confirm the page has clearly delimited install, setup, and run sections that
   the runner can extract. Add an adapter only when the existing extractors do
   not support the example structure.
2. Add an entry to `integrations.json` with a stable id, document path,
   language, required environment variables, setup rules, output expectations,
   and a verifier that checks the page's promised behavior.
3. Add the page to `INTEGRATION_CHECKS.md` and document any routing needs in
   `scripts/skip_config.json`.

The skip configuration supports AX-style `always_skip`, `lint_only`, and
`skip_if_missing_env` routes. A lint-only document is extracted, its documented
dependencies are installed, and its Python example is bytecode-compiled,
JavaScript is syntax-checked, TypeScript is compiled with `tsc`, Go is compiled with `go vet`, or .NET is compiled with `dotnet build`, without contacting the model provider. Conditional
documents run normally when their configured environment variables are set;
otherwise the report records the configured skip reason.
4. Run the document locally against Phoenix and inspect both the generated
   report and the spans in its unique project before enabling it in CI.

Keep credentials in environment variables. Do not put API keys in docs,
fixtures, or reports.

Files in this skill

  • INTEGRATION_CHECKS.md16.9 KB
  • SKILL.md4.1 KB
  • scripts/skip_config.json14.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.