Commit 2f1d59f
authored
fix(e2e): clean up stale credential providers before test runs (#698)
E2e tests create API key credential providers that leak when CI kills
the process before afterAll teardown runs. Over multiple runs these
accumulate and hit the account-level limit, causing all deploys to fail.
Add cleanupStaleCredentialProviders() in beforeAll that lists all E2e*
providers older than 1 hour and deletes them, preventing accumulation
regardless of how previous runs terminated.
Constraint: Only deletes providers with E2e prefix to avoid touching non-test resources
Constraint: 1-hour age threshold avoids deleting providers from a concurrent test run
Confidence: high
Scope-risk: narrow1 parent 9c7f143 commit 2f1d59f
1 file changed
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| 50 | + | |
| 51 | + | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
| |||
329 | 332 | | |
330 | 333 | | |
331 | 334 | | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
332 | 366 | | |
333 | 367 | | |
334 | 368 | | |
| |||
0 commit comments