Skip to content

test: misc test cleanup — improve assertions, add diagnostics, fix markers#600

Merged
planetf1 merged 1 commit into
generative-computing:mainfrom
planetf1:fix/test-flaky-ollama-clean
Mar 6, 2026
Merged

test: misc test cleanup — improve assertions, add diagnostics, fix markers#600
planetf1 merged 1 commit into
generative-computing:mainfrom
planetf1:fix/test-flaky-ollama-clean

Conversation

@planetf1
Copy link
Copy Markdown
Contributor

@planetf1 planetf1 commented Mar 6, 2026

test: misc test cleanup — improve assertions, add diagnostics, fix markers

Type of PR

  • Bug Fix
  • New Feature
  • Documentation
  • Other

Description

Fixes #573

  • Strengthen test_generate_from_raw: check all results (not just index 0), add CONTEXT_WINDOW: 2048, timeout(150), and diagnostic assertion message
  • Improve test_generate_from_raw_with_format: add CONTEXT_WINDOW: 2048, check all results, validate all 4 outputs (xfail retained — see Ollama returns empty-body responses under sustained load in generate_from_raw #599)
  • Increase MAX_NEW_TOKENS to 2**10 in Ollama and OpenAI-Ollama format tests (prevents truncation of constrained JSON output)
  • Add FancyLogger.warning when generate_from_raw catches an exception
  • Mark researcher.py example as slow; add markers to query_clarification.py
  • Update slow marker description to ">1 minute"

Testing

  • Tests added to the respective file if code was changed
  • New code has 100% coverage if code was added
  • Ensure existing tests and github automation passes (a maintainer will kick off the github automation when the rest of the PR is populated)

@planetf1 planetf1 requested a review from a team as a code owner March 6, 2026 10:16
@mergify
Copy link
Copy Markdown

mergify Bot commented Mar 6, 2026

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🟢 Enforce conventional commit

Wonderful, this rule succeeded.

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert|release)(?:\(.+\))?:

@planetf1 planetf1 changed the title test: fix flaky ollama tests, remove stale xfails, add diagnostic logging test: misc test cleanup — remove stale xfails, improve assertions, fix markers Mar 6, 2026
@planetf1 planetf1 force-pushed the fix/test-flaky-ollama-clean branch from 071230e to 5f57294 Compare March 6, 2026 10:31
…rkers

- Strengthen test_generate_from_raw: check all results, add CONTEXT_WINDOW: 2048,
  timeout(150), and diagnostic assertion message
- Increase MAX_NEW_TOKENS to 2**10 in format tests (prevents JSON truncation)
- Add FancyLogger.warning when generate_from_raw catches an exception
- Mark researcher.py example as slow; add markers to query_clarification.py
- Update slow marker description to ">1 minute"
@planetf1 planetf1 force-pushed the fix/test-flaky-ollama-clean branch from 5f57294 to 0c45f44 Compare March 6, 2026 10:41
@planetf1 planetf1 changed the title test: misc test cleanup — remove stale xfails, improve assertions, fix markers test: misc test cleanup — improve assertions, add diagnostics, fix markers Mar 6, 2026
@planetf1 planetf1 added this pull request to the merge queue Mar 6, 2026
Merged via the queue into generative-computing:main with commit 3717cf9 Mar 6, 2026
5 checks passed
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.

Test issues (local, m1, 32GB)

2 participants