Skip to content

Conversation

@Zikstar
Copy link
Collaborator

@Zikstar Zikstar commented Oct 19, 2025

Description

Addresses issue #1152 : The launchForTesting apis are deprecated and there's some extra work to bring all the missing features from launchForTesting to the renderForTest api. This PR addresses addresses the first two of four left over work streams to fully deprecate the old api namely:

  • restoring from Snapshot
  • testing for idempotency

It also adds the functionality for

  • awaitForNextSnapshot() and awaitForNextOutput()
    which were important parts of the usage of the old api.

I still plan to do some work use the Adapter/Facade pattern to make launchForTesting use renderForTest under the hood in order to achieve goal 3, but that would be a separate PR.

@CLAassistant
Copy link

CLAassistant commented Oct 19, 2025

CLA assistant check
All committers have signed the CLA.

@Zikstar Zikstar changed the title Make renderForTest apis robust Add missing features to renderForTest Api Oct 19, 2025
@Zikstar Zikstar force-pushed the isaaco/update_render_for_test branch from c6a5c4a to 0150852 Compare October 19, 2025 22:42
@Zikstar Zikstar marked this pull request as ready for review October 19, 2025 22:59
@Zikstar Zikstar requested review from a team and zach-klippenstein as code owners October 19, 2025 22:59
Copy link
Contributor

@steve-the-edwards steve-the-edwards left a comment

Choose a reason for hiding this comment

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

I think we could improve the snapshot testing part of WorkflowTurbineTest as we could check the values inside the snapshot. Also i'm confused by one of the tests, but otherwise LGTM!

@Zikstar
Copy link
Collaborator Author

Zikstar commented Nov 5, 2025

I think we could improve the snapshot testing part of WorkflowTurbineTest as we could check the values inside the snapshot. Also i'm confused by one of the tests, but otherwise LGTM!

Sure! PR is now updated with your comments address @steve-the-edwards

@Zikstar Zikstar force-pushed the isaaco/update_render_for_test branch from f38cf9a to a9ffe88 Compare November 5, 2025 22:56
@Zikstar Zikstar force-pushed the isaaco/update_render_for_test branch from a9ffe88 to cb733ce Compare November 5, 2025 22:56
@Zikstar Zikstar merged commit 14d657e into square:main Nov 5, 2025
69 checks passed
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.

3 participants