chore(healthcheck): fix DERP test flakes (#7211)

This commit is contained in:
Colin Adler
2023-04-19 20:03:05 -05:00
committed by GitHub
parent f60b5579a7
commit 5f5edb18b0
6 changed files with 161 additions and 41 deletions
+8
View File
@@ -103,6 +103,10 @@ curl -X GET http://coder-server:8080/api/v2/debug/health \
"stunport": 0,
"stuntestIP": "string"
},
"node_info": {
"tokenBucketBytesBurst": 0,
"tokenBucketBytesPerSecond": 0
},
"round_trip_ping": 0,
"stun": {
"canSTUN": true,
@@ -158,6 +162,10 @@ curl -X GET http://coder-server:8080/api/v2/debug/health \
"stunport": 0,
"stuntestIP": "string"
},
"node_info": {
"tokenBucketBytesBurst": 0,
"tokenBucketBytesPerSecond": 0
},
"round_trip_ping": 0,
"stun": {
"canSTUN": true,
+43
View File
@@ -5563,6 +5563,24 @@ Parameter represents a set value for the scope.
| `none` |
| `data` |
## derp.ServerInfoMessage
```json
{
"tokenBucketBytesBurst": 0,
"tokenBucketBytesPerSecond": 0
}
```
### Properties
| Name | Type | Required | Restrictions | Description |
| ------------------------------------------------------------------------------------------ | ------- | -------- | ------------ | ------------------------------------------------------------------------------------------------------------------------ |
| `tokenBucketBytesBurst` | integer | false | | Tokenbucketbytesburst is how many bytes the server will allow to burst, temporarily violating TokenBucketBytesPerSecond. |
| Zero means unspecified. There might be a limit, but the client need not try to respect it. |
| `tokenBucketBytesPerSecond` | integer | false | | Tokenbucketbytespersecond is how many bytes per second the server says it will accept, including all framing bytes. |
| Zero means unspecified. There might be a limit, but the client need not try to respect it. |
## healthcheck.AccessURLReport
```json
@@ -5607,6 +5625,10 @@ Parameter represents a set value for the scope.
"stunport": 0,
"stuntestIP": "string"
},
"node_info": {
"tokenBucketBytesBurst": 0,
"tokenBucketBytesPerSecond": 0
},
"round_trip_ping": 0,
"stun": {
"canSTUN": true,
@@ -5626,6 +5648,7 @@ Parameter represents a set value for the scope.
| `client_logs` | array of array | false | | |
| `healthy` | boolean | false | | |
| `node` | [tailcfg.DERPNode](#tailcfgderpnode) | false | | |
| `node_info` | [derp.ServerInfoMessage](#derpserverinfomessage) | false | | |
| `round_trip_ping` | integer | false | | |
| `stun` | [healthcheck.DERPStunReport](#healthcheckderpstunreport) | false | | |
| `uses_websocket` | boolean | false | | |
@@ -5655,6 +5678,10 @@ Parameter represents a set value for the scope.
"stunport": 0,
"stuntestIP": "string"
},
"node_info": {
"tokenBucketBytesBurst": 0,
"tokenBucketBytesPerSecond": 0
},
"round_trip_ping": 0,
"stun": {
"canSTUN": true,
@@ -5758,6 +5785,10 @@ Parameter represents a set value for the scope.
"stunport": 0,
"stuntestIP": "string"
},
"node_info": {
"tokenBucketBytesBurst": 0,
"tokenBucketBytesPerSecond": 0
},
"round_trip_ping": 0,
"stun": {
"canSTUN": true,
@@ -5813,6 +5844,10 @@ Parameter represents a set value for the scope.
"stunport": 0,
"stuntestIP": "string"
},
"node_info": {
"tokenBucketBytesBurst": 0,
"tokenBucketBytesPerSecond": 0
},
"round_trip_ping": 0,
"stun": {
"canSTUN": true,
@@ -5947,6 +5982,10 @@ Parameter represents a set value for the scope.
"stunport": 0,
"stuntestIP": "string"
},
"node_info": {
"tokenBucketBytesBurst": 0,
"tokenBucketBytesPerSecond": 0
},
"round_trip_ping": 0,
"stun": {
"canSTUN": true,
@@ -6002,6 +6041,10 @@ Parameter represents a set value for the scope.
"stunport": 0,
"stuntestIP": "string"
},
"node_info": {
"tokenBucketBytesBurst": 0,
"tokenBucketBytesPerSecond": 0
},
"round_trip_ping": 0,
"stun": {
"canSTUN": true,