Skip to content

Update core and release version - #314

Merged
cretz merged 3 commits into
temporalio:mainfrom
cretz:update-core
May 1, 2023
Merged

Update core and release version#314
cretz merged 3 commits into
temporalio:mainfrom
cretz:update-core

Conversation

@cretz

@cretz cretz commented Apr 28, 2023

Copy link
Copy Markdown
Contributor

What was changed

Update core for some critical updates and set a new release version in preparation for a new release

@cretz
cretz requested a review from a team April 28, 2023 14:17
Comment on lines 2132 to +2136
async def test_workflow_patch_memoized(client: Client):
# TODO(cretz): Patches have issues on older servers since core needs patch
# metadata support for some fixes. Unskip for local server only once we
# upgrade to https://github.com/temporalio/sdk-python/issues/272.
pytest.skip("Needs SDK metadata support")

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.

@Sushisource - I was getting similar issues here as I was with .NET on querying during patch workflows. Here's a CI log snippet:

RuntimeError: Missing start workflow, workflow could have unexpectedly been removed from cache
2023-04-28T14:26:00.938272Z  WARN temporal_sdk_core::worker::workflow: Failing legacy query request run_id=0496c65c-616f-40b1-983f-eae49114d7df failure=Failure { failure: Some(Failure { message: "Missing start workflow, workflow could have unexpectedly been removed from cache", source: "", stack_trace: "  File \"/home/runner/work/sdk-python/sdk-python/temporalio/worker/_workflow.py\", line 190, in _handle_activation\n    workflow = self._create_workflow_instance(act)\n               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n  File \"/home/runner/work/sdk-python/sdk-python/temporalio/worker/_workflow.py\", line 288, in _create_workflow_instance\n    raise RuntimeError(\n", encoded_attributes: None, cause: None, failure_info: Some(ApplicationFailureInfo(ApplicationFailureInfo { r#type: "RuntimeError", non_retryable: false, details: None })) }), force_cause: Unspecified }

I assume this is due to the server version we're using not supporting internal flags, so I skipped this test the same as I did the .NET one. I may have misdiagnosed and it was a fluke test because I can't break locally. May be worth investigating.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

1.20 has sdk metadata support.

Comment thread pyproject.toml
[tool.poetry]
name = "temporalio"
version = "1.1.0"
version = "1.2.0"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why do a minor instead of a patch?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is it due to behavior changes in Core?

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.

In general, for the SDK releases I've found always assuming minor except for emergency hotfixes makes for a clearer stream of releases. Last release was over two months ago, so this can be a standard release IMO (there just aren't enough features to have a regular release cadence). But for the pure definition of semver, this and the other things done in the last two months are technically a patch. If a minor is bothersome enough I can change it.

@cretz
cretz merged commit a4224a2 into temporalio:main May 1, 2023
@cretz
cretz deleted the update-core branch May 1, 2023 12:07
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.

2 participants