Commit 8794594
Expand Rust E2E coverage (#1250)
* Expand Rust E2E coverage
Add a replay-backed Rust E2E suite matching the .NET coverage, update Rust SDK session lifecycle support for session filesystem and multi-client scenarios, and add reliability fixes for model caching and cancellation-safe pending session registration.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Address Rust E2E review feedback
Move struct-only E2E placeholders into unit tests, exercise invalid external-auth client options, avoid logging session IDs from test assertions, and harden failing Rust E2Es on CI.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix Rust CI after review updates
Allow inert use_logged_in_user(false) on external transports so shared E2E client options continue to work, while still rejecting true external auth requests.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Stabilize Rust selection attachment E2E
Use a workspace-relative selection file path so the replayed prompt is stable across platforms instead of containing platform-specific temp directory relatives.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Make Rust E2E CI fail fast
Add a per-test E2E timeout and run Rust CI tests serially with uncaptured output so stuck replay-backed tests expose the active test instead of hanging silently.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix Rust E2E suite runtime
Replace the global Rust E2E lock with bounded replay-test concurrency so the suite no longer serializes every replay-backed case. Wait for disconnected-client tool removal before sending the follow-up multi-client prompt to keep the concurrent run deterministic.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Use bounded Rust E2E concurrency in CI
Set libtest to four worker threads so GitHub-hosted runners actually exercise the harness concurrency limit instead of defaulting to the runner CPU count.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix Rust session tests for generated IDs
Update session_test fake servers to echo the session id requested by the SDK instead of returning arbitrary ids. This keeps the tests aligned with the SDK's session-id validation and prevents cargo test from failing before the E2E suite runs.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Address Rust E2E review feedback
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix Rust multi-client clippy
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 4901dff commit 8794594
164 files changed
Lines changed: 17958 additions & 783 deletions
File tree
- .github/workflows
- rust
- src
- tests
- e2e
- test/snapshots
- client_options
- client
- commands
- elicitation
- mcp_and_agents
- per-session-auth
- rpc_additional_edge_cases
- rpc_agents
- rpc_event_side_effects
- rpc_mcp_and_skills
- rpc_mcp_config
- rpc_server
- rpc_session_state
- rpc_shell_and_fleet
- rpc_shell_edge_cases
- rpc_tasks_and_handlers
- rust_multi_client
- session_config
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
97 | 98 | | |
| 99 | + | |
98 | 100 | | |
99 | 101 | | |
100 | | - | |
| 102 | + | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
| 188 | + | |
| 189 | + | |
187 | 190 | | |
188 | 191 | | |
189 | 192 | | |
| |||
202 | 205 | | |
203 | 206 | | |
204 | 207 | | |
205 | | - | |
| 208 | + | |
206 | 209 | | |
207 | 210 | | |
208 | 211 | | |
209 | 212 | | |
210 | 213 | | |
211 | 214 | | |
212 | 215 | | |
| 216 | + | |
| 217 | + | |
213 | 218 | | |
214 | 219 | | |
215 | 220 | | |
216 | 221 | | |
217 | 222 | | |
218 | 223 | | |
219 | 224 | | |
220 | | - | |
| 225 | + | |
221 | 226 | | |
222 | 227 | | |
223 | 228 | | |
| |||
229 | 234 | | |
230 | 235 | | |
231 | 236 | | |
| 237 | + | |
232 | 238 | | |
233 | 239 | | |
234 | 240 | | |
235 | 241 | | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
236 | 252 | | |
237 | 253 | | |
238 | 254 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
270 | 279 | | |
271 | 280 | | |
272 | 281 | | |
| |||
873 | 882 | | |
874 | 883 | | |
875 | 884 | | |
| 885 | + | |
876 | 886 | | |
877 | 887 | | |
878 | 888 | | |
| |||
900 | 910 | | |
901 | 911 | | |
902 | 912 | | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
903 | 931 | | |
904 | 932 | | |
905 | 933 | | |
| |||
1138 | 1166 | | |
1139 | 1167 | | |
1140 | 1168 | | |
| 1169 | + | |
1141 | 1170 | | |
1142 | 1171 | | |
1143 | 1172 | | |
| |||
1752 | 1781 | | |
1753 | 1782 | | |
1754 | 1783 | | |
1755 | | - | |
1756 | | - | |
1757 | | - | |
1758 | | - | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
1759 | 1795 | | |
1760 | 1796 | | |
1761 | 1797 | | |
| |||
1828 | 1864 | | |
1829 | 1865 | | |
1830 | 1866 | | |
| 1867 | + | |
1831 | 1868 | | |
1832 | 1869 | | |
1833 | 1870 | | |
| |||
1879 | 1916 | | |
1880 | 1917 | | |
1881 | 1918 | | |
| 1919 | + | |
1882 | 1920 | | |
1883 | 1921 | | |
1884 | 1922 | | |
1885 | 1923 | | |
| 1924 | + | |
1886 | 1925 | | |
1887 | 1926 | | |
1888 | 1927 | | |
| |||
2405 | 2444 | | |
2406 | 2445 | | |
2407 | 2446 | | |
2408 | | - | |
| 2447 | + | |
2409 | 2448 | | |
2410 | 2449 | | |
2411 | 2450 | | |
2412 | 2451 | | |
2413 | | - | |
2414 | | - | |
2415 | | - | |
2416 | | - | |
2417 | | - | |
2418 | | - | |
2419 | | - | |
2420 | | - | |
2421 | | - | |
2422 | | - | |
2423 | | - | |
2424 | | - | |
2425 | | - | |
2426 | | - | |
2427 | | - | |
2428 | | - | |
2429 | | - | |
2430 | | - | |
2431 | | - | |
2432 | | - | |
2433 | | - | |
2434 | | - | |
2435 | | - | |
2436 | | - | |
2437 | | - | |
2438 | | - | |
2439 | | - | |
2440 | | - | |
| 2452 | + | |
2441 | 2453 | | |
2442 | 2454 | | |
2443 | 2455 | | |
2444 | 2456 | | |
2445 | 2457 | | |
2446 | 2458 | | |
| 2459 | + | |
| 2460 | + | |
| 2461 | + | |
| 2462 | + | |
| 2463 | + | |
| 2464 | + | |
| 2465 | + | |
| 2466 | + | |
| 2467 | + | |
| 2468 | + | |
| 2469 | + | |
| 2470 | + | |
| 2471 | + | |
| 2472 | + | |
| 2473 | + | |
| 2474 | + | |
| 2475 | + | |
| 2476 | + | |
| 2477 | + | |
| 2478 | + | |
| 2479 | + | |
| 2480 | + | |
| 2481 | + | |
| 2482 | + | |
| 2483 | + | |
| 2484 | + | |
| 2485 | + | |
| 2486 | + | |
| 2487 | + | |
| 2488 | + | |
| 2489 | + | |
| 2490 | + | |
| 2491 | + | |
| 2492 | + | |
| 2493 | + | |
| 2494 | + | |
| 2495 | + | |
| 2496 | + | |
| 2497 | + | |
| 2498 | + | |
| 2499 | + | |
| 2500 | + | |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
| 2504 | + | |
| 2505 | + | |
| 2506 | + | |
| 2507 | + | |
| 2508 | + | |
| 2509 | + | |
| 2510 | + | |
| 2511 | + | |
| 2512 | + | |
| 2513 | + | |
| 2514 | + | |
| 2515 | + | |
| 2516 | + | |
| 2517 | + | |
| 2518 | + | |
| 2519 | + | |
| 2520 | + | |
| 2521 | + | |
| 2522 | + | |
| 2523 | + | |
| 2524 | + | |
| 2525 | + | |
| 2526 | + | |
| 2527 | + | |
| 2528 | + | |
| 2529 | + | |
| 2530 | + | |
| 2531 | + | |
| 2532 | + | |
| 2533 | + | |
| 2534 | + | |
| 2535 | + | |
| 2536 | + | |
| 2537 | + | |
| 2538 | + | |
| 2539 | + | |
| 2540 | + | |
| 2541 | + | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
| 2549 | + | |
| 2550 | + | |
| 2551 | + | |
| 2552 | + | |
| 2553 | + | |
| 2554 | + | |
| 2555 | + | |
| 2556 | + | |
| 2557 | + | |
| 2558 | + | |
| 2559 | + | |
| 2560 | + | |
| 2561 | + | |
| 2562 | + | |
| 2563 | + | |
| 2564 | + | |
| 2565 | + | |
| 2566 | + | |
| 2567 | + | |
| 2568 | + | |
| 2569 | + | |
| 2570 | + | |
| 2571 | + | |
| 2572 | + | |
| 2573 | + | |
| 2574 | + | |
| 2575 | + | |
| 2576 | + | |
| 2577 | + | |
| 2578 | + | |
| 2579 | + | |
2447 | 2580 | | |
0 commit comments