Commit dc1fb92
committed
feat(sdk): bridge probe suite and exit fault injection to DeviceRemote
Adds the DeviceRemote-side RPC proxy for the probe suite and per-exit
fault injection controls that already exist on DeviceLocal: DropExit,
StallExit, ShuffleExits, StartProbeSuite, StopProbeSuite,
ProbeSuiteRunning, and GetProbeResults. Desktop clients run the sdk in
a privileged service and talk to it only through DeviceRemote, so
without this bridge those seven controls are unreachable outside the
service process.
Also includes:
- normalizeProbeSuiteConfig: bounds every ProbeSuiteConfig field
before a run starts, since the config crosses a process boundary
over rpc and a hostile value (e.g. Concurrency 1<<30) would spawn
goroutines inside the privileged service.
- exportedList.MarshalJSON: an empty list now encodes as `[]` rather
than `null`, which GetProbeResults depends on for the c++ wrapper
that unwraps a list getter into a std::vector.
- cgo bindings regenerated via `go run ./gen` (GOOS=linux, to include
the unix-tagged declarations a Windows host cannot see), which also
catches up already-merged RoutingTier bindings that predated this
regeneration.
Unblocks urnetwork/windows#1, which calls these seven methods on
DeviceRemote and fails to compile against upstream sdk without them.1 parent eb99be6 commit dc1fb92
9 files changed
Lines changed: 1260 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| 324 | + | |
324 | 325 | | |
325 | 326 | | |
326 | 327 | | |
| |||
344 | 345 | | |
345 | 346 | | |
346 | 347 | | |
| 348 | + | |
347 | 349 | | |
348 | 350 | | |
| 351 | + | |
349 | 352 | | |
350 | 353 | | |
351 | 354 | | |
| |||
370 | 373 | | |
371 | 374 | | |
372 | 375 | | |
| 376 | + | |
373 | 377 | | |
374 | 378 | | |
375 | 379 | | |
376 | 380 | | |
| 381 | + | |
377 | 382 | | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
378 | 386 | | |
379 | 387 | | |
380 | 388 | | |
| |||
467 | 475 | | |
468 | 476 | | |
469 | 477 | | |
| 478 | + | |
470 | 479 | | |
471 | 480 | | |
472 | 481 | | |
| |||
490 | 499 | | |
491 | 500 | | |
492 | 501 | | |
| 502 | + | |
493 | 503 | | |
494 | 504 | | |
495 | 505 | | |
| |||
672 | 682 | | |
673 | 683 | | |
674 | 684 | | |
675 | | - | |
| 685 | + | |
676 | 686 | | |
677 | 687 | | |
678 | 688 | | |
| |||
1101 | 1111 | | |
1102 | 1112 | | |
1103 | 1113 | | |
| 1114 | + | |
| 1115 | + | |
1104 | 1116 | | |
1105 | 1117 | | |
1106 | 1118 | | |
| 1119 | + | |
1107 | 1120 | | |
1108 | 1121 | | |
1109 | 1122 | | |
| |||
1400 | 1413 | | |
1401 | 1414 | | |
1402 | 1415 | | |
| 1416 | + | |
1403 | 1417 | | |
1404 | 1418 | | |
1405 | 1419 | | |
| |||
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 | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| 332 | + | |
332 | 333 | | |
333 | 334 | | |
334 | 335 | | |
| |||
352 | 353 | | |
353 | 354 | | |
354 | 355 | | |
| 356 | + | |
355 | 357 | | |
356 | 358 | | |
| 359 | + | |
357 | 360 | | |
358 | 361 | | |
359 | 362 | | |
| |||
378 | 381 | | |
379 | 382 | | |
380 | 383 | | |
| 384 | + | |
381 | 385 | | |
382 | 386 | | |
383 | 387 | | |
384 | 388 | | |
| 389 | + | |
385 | 390 | | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
386 | 394 | | |
387 | 395 | | |
388 | 396 | | |
| |||
477 | 485 | | |
478 | 486 | | |
479 | 487 | | |
| 488 | + | |
480 | 489 | | |
481 | 490 | | |
482 | 491 | | |
| |||
500 | 509 | | |
501 | 510 | | |
502 | 511 | | |
| 512 | + | |
503 | 513 | | |
504 | 514 | | |
505 | 515 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
116 | 119 | | |
117 | 120 | | |
118 | 121 | | |
| |||
798 | 801 | | |
799 | 802 | | |
800 | 803 | | |
| 804 | + | |
801 | 805 | | |
802 | 806 | | |
803 | 807 | | |
| |||
827 | 831 | | |
828 | 832 | | |
829 | 833 | | |
| 834 | + | |
830 | 835 | | |
831 | 836 | | |
| 837 | + | |
832 | 838 | | |
833 | 839 | | |
834 | 840 | | |
| |||
853 | 859 | | |
854 | 860 | | |
855 | 861 | | |
| 862 | + | |
856 | 863 | | |
857 | 864 | | |
858 | 865 | | |
859 | 866 | | |
| 867 | + | |
860 | 868 | | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
861 | 872 | | |
862 | 873 | | |
863 | 874 | | |
| |||
917 | 928 | | |
918 | 929 | | |
919 | 930 | | |
| 931 | + | |
920 | 932 | | |
921 | 933 | | |
922 | 934 | | |
| |||
940 | 952 | | |
941 | 953 | | |
942 | 954 | | |
| 955 | + | |
943 | 956 | | |
944 | 957 | | |
945 | 958 | | |
| |||
2568 | 2581 | | |
2569 | 2582 | | |
2570 | 2583 | | |
| 2584 | + | |
| 2585 | + | |
| 2586 | + | |
| 2587 | + | |
| 2588 | + | |
2571 | 2589 | | |
2572 | 2590 | | |
2573 | 2591 | | |
| |||
0 commit comments