Skip to content

Run every functional test on every pull request (0.261.494) - #1985

Merged
Paul Lizer (paullizer) merged 15 commits into
microsoft:Developmentfrom
paullizer:claude/full-suite-ci
Nov 28, 2026
Merged

Paul Lizer (paullizer) merged 15 commits into
microsoft:Developmentfrom
paullizer:claude/full-suite-ci

Conversation

@paullizer

@paullizer Paul Lizer (paullizer) commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Before this change, pull requests ran only about 155 of the roughly 2,000 Python functional test files: the ones named in a workflow or picked by the Cosmos DB contract check. That gap is why the suite fell behind the application. This PR runs every functional test, Python and JavaScript, on every pull request to Development and main, and keeps functional_tests/known_failures.txt from growing.

  • New workflow .github/workflows/functional-test-suite.yml has three parts:
    • eight Python shards (run_tests.py functional --shard K/8);
    • the JavaScript suite (run_tests.py js);
    • a shrink-only guard.
  • scripts/check_known_failures_shrink.py fails a PR whose list has an entry the base branch's list doesn't. Removing entries and editing reasons is allowed.
  • scripts/run_tests.py functional runs each test file in its own pytest process, several at once, so pytest-xdist is no longer needed (no new dependencies). Options:
    • --shard K/N runs one slice of the files;
    • --jobs N sets how many files run at once;
    • --file-timeout SECONDS stops a file that hangs (default 900).
      Files listed whole are skipped, because naming them on the command line would collect them.
  • Docs: docs/contributing/testing.md has a new Continuous integration section and drops the old "never list a CI-run test" rule, since entries can't be added at all now. New feature doc: FUNCTIONAL_TEST_SUITE_CI.md.
  • Version 0.261.493, with release notes.

Testing

  • functional_tests/test_functional_suite_ci_runner.py covers three things: the guard reports only new entries, the shards cover every file exactly once, and the workflow wires up every job.
  • Against origin/Development the guard reports no new entries. Against a commit from before the list existed, it reports all 2,629 entries.
  • The known-failures list was built on Windows. This PR's own workflow run is the first time the whole suite runs on Linux. Any difference will be fixed in this PR, not listed.

🤖 Generated with Claude Code

Adds the Functional test suite workflow: eight Python shards, the JavaScript
suite, and a guard that fails a pull request when known_failures.txt gains an
entry. run_tests.py functional now runs each file in its own pytest process
with --shard, --jobs and --file-timeout, and no longer needs pytest-xdist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
argparse.REMAINDER swallowed --shard and --jobs after the suite name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@paullizer Paul Lizer (paullizer) changed the title Run every functional test on every pull request (0.261.492) Run every functional test on every pull request (0.261.493) Nov 28, 2026
@paullizer
Paul Lizer (paullizer) marked this pull request as ready for review November 28, 2026 15:40
The guard and JavaScript jobs do not install pytest, but imported the parser
from the pytest plugin. The parser now lives in known_failures_list.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It added application\single_app to Python's path, which fails on Linux.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- run_tests.py downloads tiktoken's encodings before running tests, since many
  tests block the network and a fresh runner has no tokenizer cache.
- conftest.py points SESSION_FILE_DIR at a temp folder; app.py's default
  /app/flask_session cannot be created outside the container on Linux.
- test_support/node_tools.esbuild_command runs esbuild directly where it is the
  native binary (Linux, macOS) and through node where it is the JS launcher.
- Test file paths use forward slashes instead of Windows backslashes.
- The inline citation test decodes Node output as UTF-8 (it failed on Windows),
  and the V1 bootstrap test no longer depends on whether the V2 bundle is built.
  Both now pass everywhere, so their 37 known-failure entries are removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
route_backend_agents builds combined model endpoints for the agent settings
routes; the harness copied the routes without build_combined_model_endpoints and
sanitize_model_endpoints_for_frontend.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ary check

Workflows reach conversations through conversation_reference_inputs, not as
required capabilities, so conversation_* registry entries are not task tools.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
functions_keyvault imports model_endpoint_ca_bundles, which needs
azure.core.exceptions and azure.storage.blob. The harness replaced azure with
a stub that had neither, so 141 identity tests failed; they pass again and come
off the known-failures list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@paullizer Paul Lizer (paullizer) changed the title Run every functional test on every pull request (0.261.493) Run every functional test on every pull request (0.261.494) Nov 28, 2026
- functions_request_intent resolves log_event on first use, so generated-file
  exports import without Azure packages again (the cold-import contract tests
  caught this).
- The image chat route and mixed-source tests give the copied route code the
  real request-intent helpers it now calls.
- The deliverables repair test expects the planner's two shared corrections
  (PLAN_REPAIR_ATTEMPTS = 2 since 0.261.422), and the planner comment says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The export, streaming and image setup tests give the copied route code the
  request-intent helpers, resolve_context_limits and CONTEXT_LIMITS_REQUEST_FIELD
  it now uses (the constant is read from the route source, not copied).
- The export evidence test writes a complete message and expects the message
  double to assign the ETag, as it now does.
- inventory_store clears the Excel inventory cache around each test: the cache is
  keyed by id(storage) without a namespace, and a freed store's id was reused by
  the next test's store on Linux. Production always passes a namespace.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Its imports are part of the reviewed fingerprint of the file's legacy
MemoryContainer double; adding 'import importlib' made the Cosmos boundary
review treat the double as changed. The request-intent modules are loaded with
__import__ instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…calls

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… worker

It hung on Linux and Windows: the batch-window fakes took 13 arguments where the
worker now passes 16, so the rolling-pool task failed and the test waited forever
for checkpoints. The fakes take the new arguments, and the copied export and
publication helpers get the names they now use (request-intent checks, run
re-authorization, the semantic checkpoint context, public source visibility,
storage failure codes, generated artifact addresses and publication policy).
The source-version message check uses the current wording. 80 tests pass in
about a minute.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@paullizer
Paul Lizer (paullizer) merged commit 2ade4a8 into microsoft:Development Nov 28, 2026
24 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.

1 participant