Skip to content

Replace errors.As with errors.AsType - #11674

Open
stephanos wants to merge 3 commits into
mainfrom
stephanos/go127-errorsastype
Open

Replace errors.As with errors.AsType#11674
stephanos wants to merge 3 commits into
mainfrom
stephanos/go127-errorsastype

Conversation

@stephanos

@stephanos stephanos commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Go 1.27 prerequisite that applies the errorsastype Go fixer and its required error-interface updates.

@stephanos
stephanos marked this pull request as ready for review August 20, 2026 06:00
@stephanos
stephanos requested a review from a team August 20, 2026 06:00
@stephanos
stephanos requested review from a team as code owners August 20, 2026 06:00
@github-actions

github-actions Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Claude finished @stephanos's task in 4m 49s —— View job


Reviewed 77 files, 2 findings.
· stephanos/go127-errorsastype

Comment thread common/persistence/faultinjection/store_fault_generator_test.go Outdated
Comment thread service/history/ndc/mutable_state_initializer.go Outdated
@stephanos stephanos added the reliability-2026 Reliability related changes label Aug 20, 2026
assert.Contains(t, err.Error(), "fault injection error")
var reErr *serviceerror.ResourceExhausted
if errors.As(err, &reErr) {
assert.ErrorAs(t, err, &reErr)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Manual change here

@stephanos
stephanos force-pushed the stephanos/go127-errorsastype branch from f66586a to fdbf8c6 Compare August 20, 2026 14:31
Base automatically changed from stephanos/go127-tooling to main August 20, 2026 16:47
@stephanos
stephanos force-pushed the stephanos/go127-errorsastype branch from fdbf8c6 to d94e33a Compare August 20, 2026 16:47
@stephanos
stephanos requested review from moody-temporal and removed request for Shivs11 August 20, 2026 16:47
@stephanos
stephanos force-pushed the stephanos/go127-errorsastype branch from d94e33a to cff209d Compare August 20, 2026 17:14
@stephanos
stephanos changed the base branch from main to stephanos/go127-slicesbackward August 20, 2026 17:18
@stephanos
stephanos force-pushed the stephanos/go127-errorsastype branch from cff209d to e010d5c Compare August 20, 2026 17:18
@stephanos
stephanos force-pushed the stephanos/go127-slicesbackward branch 2 times, most recently from 4edeebb to a3c5707 Compare August 21, 2026 03:12
@stephanos
stephanos force-pushed the stephanos/go127-errorsastype branch from e010d5c to 0f203b4 Compare August 21, 2026 03:20
@stephanos
stephanos changed the base branch from stephanos/go127-slicesbackward to main August 21, 2026 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reliability-2026 Reliability related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant