Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include batch details in batch mismatch error #2483

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

inahga
Copy link
Contributor

@inahga inahga commented Jan 12, 2024

This should make investigation of a BatchMismatch error a bit easier, by propagating error information from the helper into the leader. This would be to mainly to spot trends in report counts or checksums.

This also comes with the happy extension of supporting arbitrary fields in a ProblemDocument and slightly more test coverage on the helper's checksum/report count calculation.

@inahga inahga requested a review from a team as a code owner January 12, 2024 22:12
@divergentdave
Copy link
Collaborator

FWIW, I think this extra information in JSON bodies would go against RFC 7807, as "extension members" are determined by the problem type definition, and DAP only defines the "task_id" extension member. It would be safe to template more information into the "detail" member. (It's possible this has changed in the more recent "problem details-bis" RFC, but I haven't looked over that yet, nor has DAP updated its reference.)

@inahga
Copy link
Contributor Author

inahga commented Jan 16, 2024

Ah I think you're right--and this hasn't changed in RFC 9457. I will template the info into the detail field.

@inahga inahga force-pushed the inahga/batch-mismatch-error branch from ca17875 to 7231945 Compare January 16, 2024 19:34
@inahga inahga force-pushed the inahga/batch-mismatch-error branch from 7231945 to 42431b8 Compare January 23, 2024 22:49
@inahga inahga enabled auto-merge (squash) January 23, 2024 22:49
@inahga inahga merged commit 2b64b2a into main Jan 23, 2024
8 checks passed
@inahga inahga deleted the inahga/batch-mismatch-error branch January 23, 2024 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants