microsoft / onefuzz

A self-hosted Fuzzing-As-A-Service platform
MIT License
2.82k stars 198 forks source link

Handle exception when a work item has too many revisions #3491

Open tevoinea opened 1 year ago

tevoinea commented 1 year ago

Information

Provide detailed reproduction steps (if any)

Alert! An Exception Has Been Detected!

Exception Type:
Microsoft.VisualStudio.Services.Common.VssServiceException

Exception Count:
1

Operation Name:

Outer Message:
Work item 123 has 11123 revisions, but currently, when updating via the API, only work items with up to 10000 revisions are supported.

Inner Message:

Correlation ID:

Event Time [UTC]:

2023-09-08T00:08:33.7738353Z

Expected result

What is the expected result of the above steps?

This is being caused by too many updates (like comments and iteration count) on a work item. Retrying is not useful since the number of revisions won't go down.

We need to clone the work item, and hard delete the original. This way, we can continue updating it without hitting the revision limit.

AB#165440