Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit 66b990b

Browse files
authored
Bring ErrorCode enums into sync (#3129)
ErrorCode enums on Python & C# side had gotten out of sync. This can cause the CLI to fail to parse responses.
1 parent 5048e6d commit 66b990b

File tree

3 files changed

+67
-5
lines changed

3 files changed

+67
-5
lines changed

docs/webhook_events.md

Lines changed: 55 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,17 @@ If webhook is set to have Event Grid message format then the payload will look a
11731173
471,
11741174
472,
11751175
473,
1176-
474
1176+
474,
1177+
475,
1178+
476,
1179+
477,
1180+
478,
1181+
479,
1182+
480,
1183+
481,
1184+
482,
1185+
483,
1186+
484
11771187
],
11781188
"title": "ErrorCode"
11791189
},
@@ -1809,7 +1819,17 @@ If webhook is set to have Event Grid message format then the payload will look a
18091819
471,
18101820
472,
18111821
473,
1812-
474
1822+
474,
1823+
475,
1824+
476,
1825+
477,
1826+
478,
1827+
479,
1828+
480,
1829+
481,
1830+
482,
1831+
483,
1832+
484
18131833
],
18141834
"title": "ErrorCode"
18151835
}
@@ -2744,7 +2764,17 @@ If webhook is set to have Event Grid message format then the payload will look a
27442764
471,
27452765
472,
27462766
473,
2747-
474
2767+
474,
2768+
475,
2769+
476,
2770+
477,
2771+
478,
2772+
479,
2773+
480,
2774+
481,
2775+
482,
2776+
483,
2777+
484
27482778
],
27492779
"title": "ErrorCode"
27502780
}
@@ -3461,7 +3491,17 @@ If webhook is set to have Event Grid message format then the payload will look a
34613491
471,
34623492
472,
34633493
473,
3464-
474
3494+
474,
3495+
475,
3496+
476,
3497+
477,
3498+
478,
3499+
479,
3500+
480,
3501+
481,
3502+
482,
3503+
483,
3504+
484
34653505
],
34663506
"title": "ErrorCode"
34673507
},
@@ -5529,7 +5569,17 @@ If webhook is set to have Event Grid message format then the payload will look a
55295569
471,
55305570
472,
55315571
473,
5532-
474
5572+
474,
5573+
475,
5574+
476,
5575+
477,
5576+
478,
5577+
479,
5578+
480,
5579+
481,
5580+
482,
5581+
483,
5582+
484
55335583
],
55345584
"title": "ErrorCode"
55355585
},

src/ApiService/ApiService/OneFuzzTypes/Enums.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public enum ErrorCode {
3939
UNEXPECTED_DATA_SHAPE = 482,
4040
UNABLE_TO_SEND = 483,
4141
NODE_DELETED = 484,
42+
// NB: if you update this enum, also update enums.py
4243
}
4344

4445
public enum VmState {

src/pytypes/onefuzztypes/enums.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,17 @@ class ErrorCode(Enum):
281281
PROXY_FAILED = 472
282282
INVALID_CONFIGURATION = 473
283283
UNABLE_TO_CREATE_CONTAINER = 474
284+
UNABLE_TO_DOWNLOAD_FILE = 475
285+
VM_UPDATE_FAILED = 476
286+
UNSUPPORTED_FIELD_OPERATION = 477
287+
ADO_VALIDATION_INVALID_PAT = 478
288+
ADO_VALIDATION_INVALID_FIELDS = 479
289+
GITHUB_VALIDATION_INVALID_PAT = 480
290+
GITHUB_VALIDATION_INVALID_REPOSITORY = 481
291+
UNEXPECTED_DATA_SHAPE = 482
292+
UNABLE_TO_SEND = 483
293+
NODE_DELETED = 484
294+
# NB: if you update this enum, also update Enums.cs
284295

285296

286297
class HeartbeatType(Enum):

0 commit comments

Comments
 (0)