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

Cleanup handling of internal errors in Check dispatch #2029

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

josephschorr
Copy link
Member

No description provided.

@josephschorr josephschorr requested a review from a team as a code owner August 19, 2024 01:32
Copy link
Contributor

@tstirrat15 tstirrat15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -404,22 +398,12 @@ func (cc *ConcurrentChecker) checkDirect(ctx context.Context, crc currentRequest
return checkResultError(NewCheckFailureErr(it.Err()), emptyMetadata)
}

spiceerrors.DebugAssert(func() bool {
return tuple.OnrEqualOrWildcard(tpl.Subject, crc.parentReq.Subject)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious - is this somehow capturing the local context for logging purposes? Or do we have a good enough idea of what's going on here that we don't need (for example) the tuple string?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would panic when tests are being run, so we'd have a full stack trace

@josephschorr josephschorr added this pull request to the merge queue Aug 19, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 19, 2024
@josephschorr josephschorr added this pull request to the merge queue Aug 19, 2024
Merged via the queue into authzed:main with commit 4c86039 Aug 19, 2024
22 checks passed
@josephschorr josephschorr deleted the check-internal-errors branch August 19, 2024 15:27
@github-actions github-actions bot locked and limited conversation to collaborators Aug 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants