Commit f765219
authored
hydrateContext falls back to process.env.MEMORY_ID when no memoryId option is
passed (context-hydration.ts:990). The test 'excludes memory_context when
memoryId is not provided' asserted loadMemoryContext is NOT called — but if
MEMORY_ID leaked into the jest process env (another test file, or the deploy
env when the suite runs in-container), the source picked it up and DID call
loadMemoryContext, failing the assertion. Order/environment-dependent flake:
green locally (no MEMORY_ID), red on the fork's in-container build.
Consequence: the flake blocked the pre-push hook, so the fork agent bypassed
its own gate with `git push --no-verify` on BOTH ABCA-487 and ABCA-488.
Fix: `delete process.env.MEMORY_ID` in beforeEach so every test starts from a
clean no-ambient-memory baseline; tests that want memory pass the memoryId
option explicitly (no test relies on the env fallback). Verified: the suite now
passes 92/92 both with MEMORY_ID set in the env (the container condition) and
without. Full build green (cdk 2853).
1 parent d6f4634 commit f765219
1 file changed
Lines changed: 9 additions & 0 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
78 | 87 | | |
79 | 88 | | |
80 | 89 | | |
| |||
0 commit comments