Skip to content

Rebase patches onto upstream v1.36.0#17

Merged
MariusVolkhart merged 1 commit into
mainfrom
fix/upstream-v1.36.0-patch-conflict
Jun 25, 2026
Merged

Rebase patches onto upstream v1.36.0#17
MariusVolkhart merged 1 commit into
mainfrom
fix/upstream-v1.36.0-patch-conflict

Conversation

@MariusVolkhart

Copy link
Copy Markdown
Member

Patches failed to apply against upstream v1.36.0. Upstream refactored Nexus token handling — WorkflowRunOperationToken was renamed to the generalized OperationToken, and OperationTokenUtil gained a loadOperationToken/loadWorkflowRunOperationToken split. The Jackson→Moshi patch (0001) targeted the old class and method shape, so three hunks rejected.

Resolution

Ported patch 0001 to the v1.36.0 layout:

  • OperationToken: Jackson @JsonProperty/@JsonInclude → Moshi @Json(name=…); dropped the now-unused Jackson-annotated constructor, since Moshi's reflective adapter sets fields directly via OperationTokenTypeAdapter.
  • OperationTokenUtil: retyped the adapter to OperationToken, swapped ObjectMapper for the Moshi adapter, and made the token-type comparison null-safe.
  • WorkflowRunTokenTest: ObjectMapper → Moshi adapter; new Integer(1)Integer.valueOf(1).
  • Dropped the obsolete jackson3Tests Gradle suite (upstream reworked it).

Bumped .upstream-version to v1.36.0. Patches 0002–0005 are unchanged apart from regenerated base commit hashes.

Verification

  • Fresh v1.36.0 clone + all 5 patches: git am applies clean.
  • :temporal-sdk:compileJava succeeds (Java 21 toolchain).
  • WorkflowRunTokenTest and MoshiJsonPayloadConverterTest pass.

Closes #14
Closes #13

🤖 Generated with Claude Code

Upstream v1.36.0 refactored Nexus token handling: WorkflowRunOperationToken
was renamed to the generalized OperationToken, and OperationTokenUtil gained a
loadOperationToken/loadWorkflowRunOperationToken split. The Jackson-to-Moshi
patch targeted the old class and method shape, so it no longer applied.

Port patch 0001 to the new layout:
- OperationToken: Jackson @JsonProperty/@JsonInclude -> Moshi @JSON(name),
  drop the now-unused Jackson constructor (Moshi's reflective adapter sets
  fields directly via OperationTokenTypeAdapter)
- OperationTokenUtil: retype adapter to OperationToken, swap ObjectMapper for
  the Moshi adapter, null-safe enum comparison
- WorkflowRunTokenTest: ObjectMapper -> Moshi adapter
- Drop the obsolete jackson3Tests Gradle suite (upstream reworked it)

Bump .upstream-version to v1.36.0. Patches 0002-0005 are unchanged except for
regenerated base commit hashes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@MariusVolkhart MariusVolkhart merged commit ac6f851 into main Jun 25, 2026
5 checks passed
@MariusVolkhart MariusVolkhart deleted the fix/upstream-v1.36.0-patch-conflict branch June 25, 2026 17:50
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.

Patch conflict on upstream v1.36.0 Patch conflict on upstream v1.36.0

1 participant