Skip to content

Backport release/1.32.0 labeled fixes - #11919

Merged
awln-temporal merged 7 commits into
release/v1.32.xfrom
awln/backport-release-1.32-labeled-fixes
Sep 3, 2026
Merged

awln-temporal merged 7 commits into
release/v1.32.xfrom
awln/backport-release-1.32-labeled-fixes

Conversation

@awln-temporal

Copy link
Copy Markdown
Contributor

What changed?

Backports the remaining merged PRs labeled release/1.32.0 onto release/v1.32.x, in main merge order:

  • #11599 Optimize Visibility PostgreSQL upgrade schema v1.14
  • #11723 Validate history pagination branch token against mutable state
  • #11800 Capture panics in Visibility query converter
  • #11813 Capture panic in ServiceErrorInterceptor
  • #11829 Return empty Elasticsearch page token when the result is smaller than the page
  • #11839 Fix FirstWorkflowTaskBackoff accumulation upon Continue-As-New
  • #11801 Fix Visibility SQL query conversion

#11265 and #11564 were already present on release/v1.32.x and are not duplicated here.

Testing

  • Targeted unit tests for Visibility query conversion, RPC interception, History branch-token validation, and Continue-As-New backoff
  • make GOLANGCI_LINT_FIX=false GOLANGCI_LINT_BASE_REV=origin/release/v1.32.x lint-code

rodrigozhou and others added 7 commits September 3, 2026 12:46
## What changed?
Apply same optimizations in
#10371 for v1.14.

## Why?
Better upgrade script.

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

## Potential risks
## What changed?
`GetWorkflowExecutionHistory` and `GetWorkflowExecutionHistoryReverse`
now check `branch_token` in the page token against the token in mutable
state.

## Why?
To confirm if it is still the correct branch after conflict resolution.

## How did you test it?
- [x] built
- [x] run locally and tested manually
- [x] covered by existing tests
- [x] added new unit test(s)
- [x] added new functional test(s)
## What changed?
Capture any panics in Visibility query converter.

## Why?
Visibility query converter is complex, and at times might make
assumptions that might not hold (due to bugs in the store query
converter implementation for example). Capturing at top level, and
returning an error instead.

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

## Potential risks
## What changed?
Capture panic in `ServiceErrorInterceptor`

## Why?
`ServiceErrorInterceptor` is a top-level interceptor for frontend,
history and matching. Capturing panics to make sure unhandled panics
won't crash the service.

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

## Potential risks
…s less than page size (#11829)

## What changed?
Return empty page token when result size is less than page size in
Visibility with Elasticsearch.
This is a partial revert of
#10540.

## Why?
Since we disabled partial results in search queries, always returning
page token is unnecessary.

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

## Potential risks
## What changed?
- Fix FirstWorkflowTaskBackoff Accumulation upon ContinueAsNew

## Why?
- Today if workflow continueAsNew before executionTime, the calculated
lifetime will be negative and causing backoff to keep accumulating via
continueAsNew.

## How did you test it?
- [x] built
- [ ] run locally and tested manually
- [ ] covered by existing tests
- [x] added new unit test(s)
- [x] added new functional test(s)
## What changed?
- Fix parsing ExecutionStatus in tuple (eg: `ExecutionStatus IN
('Running', 'Completed')`)
- Fix parsing negative double values (eg: `CustomDouble > -1.5` was
returning an error)
- Return error when comparing non-bool types with boolean value (eg:
`StartTime = true` was not returning an error).
- Return error when comparing Text type search attribute with an empty
string/no tokens (eg: `CustomText = ' '`). It was already returning an
error with PostgreSQL and SQLite, now also returning an error with MySQL
and Elasticsearch.
- Added unit tests covering all Visibility stores to make sure they all
behave the same. One exception: `ExecutionStatus STARTS_WITH` works with
Elasticsearch, but not with SQL. That's because in Elasticsearch we
store as string, while in SQL we store as int.

## Why?
Bug fixes, and comprehensive unit tests to ensure uniform behavior.

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

## Potential risks
@awln-temporal
awln-temporal requested review from a team as code owners September 3, 2026 16:54
@awln-temporal
awln-temporal merged commit 4b02728 into release/v1.32.x Sep 3, 2026
73 of 74 checks passed
@awln-temporal
awln-temporal deleted the awln/backport-release-1.32-labeled-fixes branch September 3, 2026 19:42
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.

4 participants