Skip to content

test: add issue regression test infrastructure and issue #194 test#379

Merged
robert-j-y merged 5 commits intomainfrom
devin/1769562192-issue-194-regression-test
Jan 28, 2026
Merged

test: add issue regression test infrastructure and issue #194 test#379
robert-j-y merged 5 commits intomainfrom
devin/1769562192-issue-194-regression-test

Conversation

@robert-j-y
Copy link
Contributor

@robert-j-y robert-j-y commented Jan 28, 2026

Description

Adds infrastructure for issue-specific regression tests and creates the first regression test for issue #194 (Grok 4 Fast Invalid JSON response).

Changes:

  • Creates e2e/issues/ directory for issue regression tests, separated from the main e2e suite
  • Adds vitest.issues.config.ts and pnpm test:issues script to run issue tests independently
  • Excludes issue tests from pnpm test:e2e to keep the main suite fast
  • Documents the issue regression test workflow in CONTRIBUTING.md
  • Adds regression test for issue Can not use grok 4 fast #194 covering generateText, streamText, and tool calls with x-ai/grok-4-fast

Why separate issue tests?
Issue regression tests may hit different models/APIs that could be slow or rate-limited, so they run separately from the main e2e suite.

Updates since last revision:

  • Resolved merge conflicts with main
  • Updated CONTRIBUTING.md test template to use "Reported error" and "Model" fields instead of "Issue" and "Root cause" fields
  • Added note clarifying that test comments should only include known facts, not speculative root cause analysis

Checklist

  • I have run pnpm stylecheck and pnpm typecheck
  • I have run pnpm test and all tests pass
  • I have added tests for my changes (if applicable)
  • I have updated documentation (if applicable)

Changeset

  • I have run pnpm changeset to create a changeset file

Note: A changeset is required for your changes to trigger a release. If your PR only contains docs, tests, or CI changes that don't need a release, run pnpm changeset --empty instead.

Empty changeset used since this is a test-only change that doesn't affect the public API.


Link to Devin run: https://app.devin.ai/sessions/ead0af897ddc4763992859f1447e8ec8
Requested by: Robert Yeakel (@robert-j-y)

devin-ai-integration bot and others added 4 commits January 28, 2026 01:06
- Create e2e/issues/ directory for issue-specific regression tests
- Add regression test for issue #194 (Grok 4 Fast Invalid JSON response)
- Document the e2e/issues/ pattern in CONTRIBUTING.md

The test verifies that Grok 4 Fast works correctly with:
- generateText (non-streaming)
- streamText (streaming)
- Tool calls

Issue: #194
Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai>
Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai>
- Exclude e2e/issues/ from vitest.e2e.config.ts
- Add vitest.issues.config.ts for issue-specific tests
- Add pnpm test:issues script to package.json
- Update CONTRIBUTING.md with test:issues documentation

Issue regression tests are now run separately to avoid slowing down
the main e2e suite with potentially slow/rate-limited API calls.

Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai>
- Update test comment to only include known facts (error message, model)
- Update CONTRIBUTING.md template to clarify only known facts should be included
- Add note about not including speculative root cause analysis

Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai>
@robert-j-y robert-j-y changed the title Devin/1769562192 issue 194 regression test test: add issue regression test infrastructure and issue #194 test Jan 28, 2026
Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai>
@robert-j-y robert-j-y merged commit 3fb39fa into main Jan 28, 2026
2 checks passed
@robert-j-y robert-j-y deleted the devin/1769562192-issue-194-regression-test branch January 28, 2026 02:37
kesavan-byte pushed a commit to osm-API/ai-sdk-provider that referenced this pull request Feb 13, 2026
…am#194 test (OpenRouterTeam#379)

* test: add e2e/issues directory with issue OpenRouterTeam#194 regression test

- Create e2e/issues/ directory for issue-specific regression tests
- Add regression test for issue OpenRouterTeam#194 (Grok 4 Fast Invalid JSON response)
- Document the e2e/issues/ pattern in CONTRIBUTING.md

The test verifies that Grok 4 Fast works correctly with:
- generateText (non-streaming)
- streamText (streaming)
- Tool calls

Issue: OpenRouterTeam#194
Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai>

* fix: remove internal repo reference from test comment

Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai>

* feat: separate issue regression tests from main e2e suite

- Exclude e2e/issues/ from vitest.e2e.config.ts
- Add vitest.issues.config.ts for issue-specific tests
- Add pnpm test:issues script to package.json
- Update CONTRIBUTING.md with test:issues documentation

Issue regression tests are now run separately to avoid slowing down
the main e2e suite with potentially slow/rate-limited API calls.

Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai>

* refactor: remove speculative root cause from test comments

- Update test comment to only include known facts (error message, model)
- Update CONTRIBUTING.md template to clarify only known facts should be included
- Add note about not including speculative root cause analysis

Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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.

1 participant