FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Snapshot record then reply testing by mateusz834 · Pull Request #740 · splunk/splunk-sdk-python · GitHub

Repository navigation

Snapshot record then reply testing - #740

Merged
mateusz834 merged 1 commit into
developfrom
dev/MP/snapshots
Apr 27, 2026
Merged

mateusz834 merged 1 commit into
developfrom
dev/MP/snapshots

Conversation

mateusz834 commented Apr 23, 2026 •
edited
Loading

Copy link
Copy Markdown
Member

This change implements snapshot, record then reply testing for all integration tests.

Re-enables recently skipped (flaky) tests:

  • test_agent_understands_other_agents (snapshot was edited manually)
  • test_supervisor_resumes_subagent_thread_across_invocations
  • test_supervisor_resumes_subagent_thread_across_invocations_structured

Introduces a deterministic thread_id mock generator, such that snapshots are deterministic, for:

  • test_supervisor_resumes_subagent_thread_across_invocations
  • test_supervisor_resumes_subagent_thread_across_invocations_structured

Modified test_tool_execution_service_access using tool middleware, to make the test deterministic.

E2E tests still call the LLMs directly.

mateusz834 force-pushed the dev/MP/snapshots branch 16 times, most recently from 1198d47 to d029c1d Compare April 24, 2026 06:45
mateusz834 marked this pull request as ready for review April 24, 2026 06:45
mateusz834 requested review from Ickerday and szykol and removed request for szykol April 24, 2026 07:16
Comment thread tests/ai_testlib.py Resolved
Comment thread tests/integration/ai/test_agent.py Resolved
Comment thread tests/ai_testlib.py Resolved

ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I really like the solution.

Comment thread tests/integration/ai/test_agent.py Resolved
Comment thread tests/ai_testlib.py Resolved
Comment thread tests/ai_testlib.py Resolved
Comment thread tests/ai_testlib.py Resolved
Comment thread tests/ai_testlib.py Resolved
mateusz834 force-pushed the dev/MP/snapshots branch 2 times, most recently from 32aadd8 to 6aa74cd Compare April 27, 2026 08:15
This change implements snapshot, record then reply testing
for all integration tests.

Re-enables recently skipped (falky) tests:

- test_agent_understands_other_agents (snapshot was edited manually)
- test_supervisor_resumes_subagent_thread_across_invocations
- test_supervisor_resumes_subagent_thread_across_invocations_structured

Introduces a deterministic thread_id mock generator, such that
snapshots are deterministic, for:

- test_supervisor_resumes_subagent_thread_across_invocations
- test_supervisor_resumes_subagent_thread_across_invocations_structured

Modified test_tool_execution_service_access using tool middleware, to make
the test deterministic.
mateusz834 merged commit 1984965 into develop Apr 27, 2026
4 of 6 checks passed
mateusz834 deleted the dev/MP/snapshots branch April 27, 2026 13:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL