Repository navigation
Commit c8315cc
committed
test(e2e): classify hermetic test worlds as unclassified context scope
The context system never infers a scope from a harness: without
memory.default_scope or SESSION_CONTEXT_SCOPE a session/start raises
ScopeError (HTTP 409 context_scope_unavailable). The in-process conftest
autouse fixture already classifies tests as 'unclassified', but three
spawn paths built environments that never carried it, so ~170
integration/e2e tests failed at session start after the context-memory
merge:
- _playwright_helpers._isolated_child_env: the hermetic base env for
every spawned studyloop web server
- e2e/_env.build_test_world: the TestWorld verbatim environment
- test_harness_matrix._build_env: a class-scoped fixture that snapshots
os.environ BEFORE the function-scoped autouse monkeypatch runs
Each now sets SESSION_CONTEXT_SCOPE=unclassified explicitly — the same
choice the in-process fixture makes, made at the same trust boundary.1 parent 51a5fca commit c8315cc
3 files changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
90 | 96 | | |
91 | 97 | | |
92 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
263 | 268 | | |
264 | 269 | | |
265 | 270 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
144 | 150 | | |
145 | 151 | | |
146 | 152 | | |
| |||
0 commit comments