Skip to content

Add backoff start for CAN#2913

Open
Sushisource wants to merge 1 commit into
masterfrom
sj/backoff-start-can
Open

Add backoff start for CAN#2913
Sushisource wants to merge 1 commit into
masterfrom
sj/backoff-start-can

Conversation

@Sushisource

Copy link
Copy Markdown
Member

What was changed

See title

Why?

Expose supported features on backend

Checklist

  1. Closes

  2. How was this tested:
    Simple unit test

  3. Any docs updates needed?

@Sushisource Sushisource requested a review from a team as a code owner June 11, 2026 21:08
initialVersioningBehavior);
}

public ContinueAsNewOptions(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I consider it a mistake that the original constructor is public; it should be deprecated with a comment directing users to use the builder, and the new constructor should be made private.

Comment on lines 27 to +40
public class SyncWorkflowContextTest {
SyncWorkflowContext context;
ReplayWorkflowContext mockReplayWorkflowContext = mock(ReplayWorkflowContext.class);
ExecutorService threadPool;
DeterministicRunner runner;

@Before
public void setUp() {
this.threadPool = Executors.newCachedThreadPool();
this.context = DummySyncWorkflowContext.newDummySyncWorkflowContext();
this.context.setReplayContext(mockReplayWorkflowContext);
when(mockReplayWorkflowContext.getWorkflowType())
.thenReturn(WorkflowType.newBuilder().setName("dummy-workflow").build());
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

threadPool, runner and the call to when should be moved inside the test that uses them.

Comment on lines +60 to +61
@Test
public void testContinueAsNewBackoffStartInterval() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: this test should be moved down as to not split up the two upsert SA tests.

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