Commit fcb95eb
fix: prevent cache collision between integration and E2E tests
The integration tests were failing because they were sharing the same
cache key and path with E2E tests, causing cache collisions. When
integration tests restored a cache created by E2E tests, the data was
in the wrong database schema (E2E uses sharded schemas like shard_1,
while integration uses the default schema).
This fix:
- Gives integration tests a unique cache path (backups/integration.sql)
- Gives each E2E shard a unique cache path (backups/e2e-shard-N.sql)
- Passes the correct DATABASE_URL to cache-db action so seeding/restore
targets the same schema the tests will use
This ensures each test suite has its own isolated database cache and
prevents the flaky test failures where integration tests found empty
databases (0 results instead of expected data).
Co-Authored-By: Volnei Munhoz <[email protected]>1 parent 8e51eca commit fcb95eb
2 files changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
97 | 100 | | |
98 | 101 | | |
99 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
| |||
0 commit comments