Skip to content

test(ci): run tests/integration in dedicated job - #22226

Closed
wesleysimplicio wants to merge 2 commits into
NousResearch:mainfrom
wesleysimplicio:ci/integration-job
Closed

test(ci): run tests/integration in dedicated job#22226
wesleysimplicio wants to merge 2 commits into
NousResearch:mainfrom
wesleysimplicio:ci/integration-job

Conversation

@wesleysimplicio

@wesleysimplicio wesleysimplicio commented May 9, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

test(ci): run tests/integration in dedicated job

Root cause

The detailed rationale from the original PR body is preserved below. This template update keeps the review structure consistent with #29640.

Fix

Why this shape

tests/integration/ is currently --ignored by the unit job and never run in CI, so integration regressions only surface locally or in production. Closes #22002.

Tests

  • Veja a descrição original preservada abaixo para detalhes de validação, testes e notas de verificação.
Original body

Related PRs / issues

Original body

Summary

test(ci): run tests/integration in dedicated job

What Changed

  • Standardized this PR body to the current Hermes Turbo template.
  • Preserved the original detailed description below for reference.

Fluxo

A mudança continua seguindo o fluxo original descrito na seção preservada abaixo, sem ampliar o escopo funcional deste PR.

Visão

A padronização melhora a revisão, reduz ruído e evita deriva de formatação entre PRs abertos.

Test Plan

  • Veja a descrição original preservada abaixo para detalhes de validação, testes e notas de verificação.
Original body

Summary

  • Adds an integration: job that runs tests/integration/ with the same Python 3.11 + uv setup as test: and e2e:.
  • 25-minute timeout (integration suite is slower than unit but bounded).
  • Runs in parallel with test: and e2e: so wall-clock CI stays flat.

Why

tests/integration/ is currently --ignored by the unit job and never run in CI, so integration regressions only surface locally or in production. Closes #22002.

Test plan

  • python3 -c "import yaml; yaml.safe_load(...)" parses cleanly.
  • Job appears as a separate check on PR; integration suite runs end-to-end.

Generated by Hermes Turbo


Generated by Hermes Turbo

Copilot AI review requested due to automatic review settings May 9, 2026 03:04

Copilot AI left a comment

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.

Pull request overview

Adds CI coverage for tests/integration/ by introducing a dedicated GitHub Actions job intended to run in parallel with existing unit (test) and end-to-end (e2e) jobs.

Changes:

  • Add a new integration job to .github/workflows/tests.yml.
  • Reuse the existing Python 3.11 + uv setup to run pytest against tests/integration/.
  • Set a longer timeout (25 minutes) and apply the same “empty API key” env guardrails as other test jobs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/tests.yml Outdated
- name: Run integration tests
run: |
source .venv/bin/activate
python -m pytest tests/integration -v --tb=short
Comment on lines +78 to +86
- name: Run integration tests
run: |
source .venv/bin/activate
python -m pytest tests/integration -v --tb=short
env:
OPENROUTER_API_KEY: ""
OPENAI_API_KEY: ""
NOUS_API_KEY: ""

@alt-glitch alt-glitch added type/test Test coverage or test infrastructure P3 Low — cosmetic, nice to have labels May 9, 2026
Default addopts in pyproject.toml includes "-m 'not integration'", so
the integration job was running 0 tests despite pointing at
tests/integration. Override addopts and pass "-m integration" so the
integration-marked tests actually execute.

Pass repository secrets through to env vars so tests that require live
API keys can run when secrets are configured; with empty secrets the
job behaves as before (tests requiring live keys will skip/fail per
their own guards).
@wesleysimplicio

Copy link
Copy Markdown
Contributor Author

Closing non-fix PR as requested — mantendo apenas PRs de fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low — cosmetic, nice to have type/test Test coverage or test infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: integration tests never run (--ignore=tests/integration)

3 participants