Commit ebdb9ca
committed
Perf and stability improve for lib/srv/regular
Parallelized and increased frequency of checks for many tests.
Stabilized the following tests.
* TestAllowedLabels
* TestDirectTCPIP
* TestLockInForce
* TestTCPIPForward
* TestAgentForward
* TestX11Forward
Original flaky behavior for the above tests can be reproduced using
[stress](https://pkg.go.dev/golang.org/x/tools/cmd/stress) with the
following command:
```
go test -o flaky.test ./... && \
stress -p 30 -failfast ./flaky.test -test.run="TestName"
```
The following tests still show up when running the full test suite for
`lib/srv/regular` under `stress`.
* TestMultipleExecCommands
* TestSessionAuditLog1 parent c64bb4c commit ebdb9ca
5 files changed
Lines changed: 325 additions & 115 deletions
File tree
- lib
- client
- srv/regular
- session
- networking/x11
- reexec
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
931 | 931 | | |
932 | 932 | | |
933 | 933 | | |
| 934 | + | |
934 | 935 | | |
935 | | - | |
| 936 | + | |
936 | 937 | | |
937 | 938 | | |
938 | | - | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
939 | 951 | | |
| 952 | + | |
940 | 953 | | |
941 | | - | |
942 | 954 | | |
943 | 955 | | |
944 | 956 | | |
| |||
947 | 959 | | |
948 | 960 | | |
949 | 961 | | |
950 | | - | |
951 | 962 | | |
952 | 963 | | |
953 | 964 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2460 | 2460 | | |
2461 | 2461 | | |
2462 | 2462 | | |
2463 | | - | |
2464 | 2463 | | |
2465 | 2464 | | |
| 2465 | + | |
| 2466 | + | |
| 2467 | + | |
| 2468 | + | |
| 2469 | + | |
| 2470 | + | |
2466 | 2471 | | |
2467 | 2472 | | |
2468 | 2473 | | |
2469 | 2474 | | |
2470 | 2475 | | |
2471 | | - | |
| 2476 | + | |
2472 | 2477 | | |
| 2478 | + | |
| 2479 | + | |
| 2480 | + | |
| 2481 | + | |
| 2482 | + | |
| 2483 | + | |
| 2484 | + | |
| 2485 | + | |
| 2486 | + | |
| 2487 | + | |
| 2488 | + | |
| 2489 | + | |
2473 | 2490 | | |
2474 | 2491 | | |
2475 | 2492 | | |
2476 | 2493 | | |
| 2494 | + | |
| 2495 | + | |
| 2496 | + | |
| 2497 | + | |
| 2498 | + | |
| 2499 | + | |
| 2500 | + | |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
| 2504 | + | |
| 2505 | + | |
2477 | 2506 | | |
2478 | 2507 | | |
2479 | 2508 | | |
| |||
2483 | 2512 | | |
2484 | 2513 | | |
2485 | 2514 | | |
| 2515 | + | |
2486 | 2516 | | |
2487 | 2517 | | |
2488 | 2518 | | |
| |||
2525 | 2555 | | |
2526 | 2556 | | |
2527 | 2557 | | |
| 2558 | + | |
2528 | 2559 | | |
2529 | 2560 | | |
2530 | 2561 | | |
| |||
2548 | 2579 | | |
2549 | 2580 | | |
2550 | 2581 | | |
2551 | | - | |
2552 | | - | |
2553 | | - | |
2554 | | - | |
2555 | | - | |
| 2582 | + | |
2556 | 2583 | | |
2557 | 2584 | | |
2558 | 2585 | | |
| |||
0 commit comments