Repository navigation
Run every functional test on every pull request (0.261.494) - #1985
Merged
Paul Lizer (paullizer) merged 15 commits intoNov 28, 2026
Merged
Paul Lizer (paullizer) merged 15 commits into
Paul Lizer (paullizer) merged 15 commits into
Conversation
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>
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>
- 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>
Paul Lizer (paullizer)
merged commit Nov 28, 2026
2ade4a8
into
microsoft:Development
24 checks passed
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.txtfrom growing..github/workflows/functional-test-suite.ymlhas three parts:run_tests.py functional --shard K/8);run_tests.py js);scripts/check_known_failures_shrink.pyfails 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 functionalruns each test file in its own pytest process, several at once, so pytest-xdist is no longer needed (no new dependencies). Options:--shard K/Nruns one slice of the files;--jobs Nsets how many files run at once;--file-timeout SECONDSstops a file that hangs (default 900).Files listed whole are skipped, because naming them on the command line would collect them.
docs/contributing/testing.mdhas 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.Testing
functional_tests/test_functional_suite_ci_runner.pycovers three things: the guard reports only new entries, the shards cover every file exactly once, and the workflow wires up every job.origin/Developmentthe guard reports no new entries. Against a commit from before the list existed, it reports all 2,629 entries.🤖 Generated with Claude Code