Repository navigation
Normalize functional and UI tests to run offline and across versions (0.261.489) - #1983
Merged
Paul Lizer (paullizer) merged 5 commits intoNov 27, 2026
Conversation
…(0.261.489) Make the functional, JavaScript and UI test suites usable in forks and organizations without the SimpleChat team's Azure resources, and keep them passing across version bumps. - Run config.py against an in-memory Cosmos DB client when no account is configured; skip live-service tests with require_live_cosmos() and name the missing setting. - Isolate sys.modules stubs per test file so one file's stubs no longer break the files after it, while module-scoped fixtures keep working. - Replace exact VERSION comparisons with assert_app_version_at_least(). - Add functional_tests/known_failures.txt: listed tests run as strict expected failures (subtests judged with their test), listed files are not collected, and CI-run tests are never listed. The list can only shrink. - Run .mjs tests in scripts/run_tests.py js and report listed JS files. - Add scripts/normalize_test_headers.py and normalize test headers. - Delete 40 tests for removed features, debugging scripts and tests tied to one team's data. - Restore the Control Center Activity Logs auto-refresh and fix a duplicate Latest Features ID in Admin Settings, both found by the tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment on lines
+118
to
+121
| from test_support.module_isolation import ( # noqa: E402,F401 | ||
| pytest_make_collect_report, | ||
| pytest_runtest_protocol, | ||
| ) |
Rerun every functional and JavaScript test file after rebasing. Remove entries Development fixed and list the tests its latest merges broke (940 tests in 97 files that fail the same way on Development itself, with or without per-file isolation), plus 7 newly failing JavaScript files. Keep the run_tests.py output from crashing on characters the Windows console code page cannot print. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The browser-assets workflow installs only pytest, so the conftest failed to import azure.cosmos. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tests now verify local HTTPS certificates (REQUESTS_CA_BUNDLE for a self-signed one), return JSON through jsonify, check asset URLs by host, close the files they read, and drop unused variables. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Lizer (paullizer)
merged commit Nov 27, 2026
8021975
into
microsoft:Development
14 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
The functional, JavaScript and UI tests now run without the SimpleChat team's Azure resources, keep passing across version bumps (including a fork's), and record the tests that are still out of date in a list that can only shrink. Forks and organizations that customize SimpleChat can now tell their own regressions from failures that were already there.
config.pyimports against an in-memory Cosmos client (test_support/offline_cosmos.py). Tests that need a real deployment callrequire_live_cosmos(__file__), which skips them and names the missing setting.sys.modulesstay with that file, so they no longer break the files that run after it. Module-scoped fixtures keep working (test_support/module_isolation.py).VERSION = "..."comparisons are nowassert_app_version_at_least().functional_tests/known_failures.txthas 2,607 tests in 573 files and 22 whole files (4 Python files that can't be imported, 2 that hang, 16 JavaScript files). Each entry has a reason.SIMPLECHAT_IGNORE_KNOWN_FAILURES=1turns the list off.scripts/run_tests.py jsnow runs the 114.mjstests it used to miss.scripts/normalize_test_headers.py --check/--writekeeps file headers consistent.docs/contributing/testing.md,TEST_SUITE_NORMALIZATION.md, the fix and feature docs, and the release notes.Verification
test_export_evidence_cosmos_contract.py,test_global_identity_admin_routes.py,test_orchestration_deliverables.py,test_orchestration_document_loader_reliability.py,test_shared_agent_secret_responses.py,test_tabular_row_orchestration_scale.pyandtest_workflow_configuration.py.scripts/run_tests.py jswith the list active reports 112 of 128 files passed, 16 known failures and 0 failed.scripts/check_cosmos_response_boundaries.py --run-contractswith the network blocked: 2,416 passed, 0 review gaps. After the rebase, the boundary review still shows 0 gaps, andnormalize_test_headers.py --checkreports no changes needed.test_functional_known_failures_list.pycovers the plugin, including subtests.test_functional_module_isolation.pycovers the per-file isolation.Development regression found while rebasing
940 tests in 97 files passed before the rebase and now fail on Development 0.261.488 itself. They fail the same way with or without per-file isolation, so this PR didn't cause them. The tests' stubs and source checks predate application code merged since 3d69fa7, for example
CosmosAccessConditionFailedErrorimports andsanitize_plugin_invocation_value. They're listed with their reasons so the suite stays usable, and they're the first batch to fix. Seven JavaScript files started failing the same way and are listed too.Not covered
🤖 Generated with Claude Code