E2E: the security suite gets its own shard (#83)
The security suite grew to 32 tests (161 s locally), and on Diffinery the shard it shared with passkeys, registry and email took 544 s of tests, making the end-to-end workflow the longest part of a main sync (693 s, while CI, Deploy and the live test took 422 s). It now runs in a fourth shard. Claude-Session: https://claude.ai/code/session_01Ruyx3Qr4jYrZEpPi466deb Co-authored-by: Claude <noreply@anthropic.com>
Canberk Demirci authored · GitHub committed signed1 parent 526abbdcommit 293e7ae2d25bf9e5cf71b96b0ee6940c80c51f69Browse files
1 file changed+6−2
modified.github/workflows/e2e.yml+6−2View file
| @@ -28,7 +28,9 @@ | ||
| 28 | 28 | shard: core |
| 29 | 29 | - name: agent reviews, tasks, Today |
| 30 | 30 | shard: agents |
| 31 | - - name: passkeys, registry, email, security | |
| 31 | + - name: security | |
| 32 | + shard: security | |
| 33 | + - name: passkeys, registry, email | |
| 32 | 34 | shard: rest |
| 33 | 35 | steps: |
| 34 | 36 | - uses: actions/checkout@v4 |
| @@ -47,10 +49,12 @@ | ||
| 47 | 49 | # Shards of similar length; a new test file runs in "rest" unless it's added to another. |
| 48 | 50 | core='/e2e\.test\.mjs$' |
| 49 | 51 | agents='/(agentic|review|tasks)\.test\.mjs$' |
| 52 | + security='/security\.test\.mjs$' | |
| 50 | 53 | case "${{ matrix.shard }}" in |
| 51 | 54 | core) files=$(ls test/e2e/*.test.mjs | grep -E "$core") ;; |
| 52 | 55 | agents) files=$(ls test/e2e/*.test.mjs | grep -E "$agents") ;; |
| 53 | - *) files=$(ls test/e2e/*.test.mjs | grep -vE "$core|$agents") ;; | |
| 56 | + security) files=$(ls test/e2e/*.test.mjs | grep -E "$security") ;; | |
| 57 | + *) files=$(ls test/e2e/*.test.mjs | grep -vE "$core|$agents|$security") ;; | |
| 54 | 58 | esac |
| 55 | 59 | echo "$files" |
| 56 | 60 | node --test --test-concurrency=1 --test-timeout=600000 $files |