Files
ShivamandVladyslav Simonenko 781cdcb80b Improve error when version override does not have the version present in the task queue (#9020)
## What changed?
- WISOTT

## Why?
- User experience.

## How did you test it?
- [x] built
- [ ] run locally and tested manually
- [x] covered by existing tests
- [ ] added new unit test(s)
- [ ] added new functional test(s)

## Potential risks
- None

---

> [!NOTE]
> Enhances error clarity and batch behavior around version overrides.
> 
> - Introduces `ErrPinnedVersionNotInTaskQueueSubstring` and
`FormatPinnedVersionNotInTaskQueueError` to produce detailed messages
(deployment, build ID, task queue, type)
> - Replaces generic errors in `validatePinnedVersionInTaskQueue` with
formatted message; updates related tests to expect new text
> - Adds operation-aware non-retryable detection in `batcher`
(`isNonRetryableError`) for
`BATCH_OPERATION_TYPE_UPDATE_EXECUTION_OPTIONS` using the new substring;
integrates into `handleTaskResult`
> - Removes frontend-added non-retryable string for
update-execution-options; responsibility moved to worker
> - Adds unit tests for new formatter and non-retryable detection
> 
> <sup>Written by [Cursor
Bugbot]() for commit
eb8942394b599c09cfa641f1c987aa85c73b9a94. This will update automatically
on new commits. Configure
[here]().</sup>
2026-01-26 16:57:06 -08:00
..
2026-01-06 19:21:57 -05:00