Skip to content

Sync WCI compute status to worker deployment version state#10908

Open
02strich wants to merge 1 commit into
mainfrom
stefan/wci-status
Open

Sync WCI compute status to worker deployment version state#10908
02strich wants to merge 1 commit into
mainfrom
stefan/wci-status

Conversation

@02strich

@02strich 02strich commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

What changed?

Add DescribeWorkerControllerInstanceStatus activity to fetch the WCI validation status and map it to a ComputeStatus. During handleSyncState, invoke syncVersionDataToComputeStatus to update the version state's ComputeStatus with the provider validation result. The sync is gated behind the "sync-compute-validation-status" workflow version for backward compatibility.

Why?

During creation of a new version there is a risk of the compute provider validation finishing before the version is created, and thereby the sync signal for the compute status being missed. This highlighted that there is no backstop for the status sync in this and other cases of missing the signal so adding one.

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

@02strich 02strich force-pushed the stefan/wci-status branch from 62afda2 to 2fa08f0 Compare July 2, 2026 20:17
@02strich 02strich marked this pull request as ready for review July 2, 2026 20:44
@02strich 02strich requested a review from a team as a code owner July 2, 2026 20:44
@ShahabT

ShahabT commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Please consider signal with start if the concern is dropping the signal during the race.

SyncVersionState is used in the hot path of changing routing configuration and I don't think we should make it depend on an external workflow unless strictly necessary.

@02strich 02strich force-pushed the stefan/wci-status branch from 2fa08f0 to 740c944 Compare July 6, 2026 17:40
@02strich

02strich commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

@ShahabT moved it to run to get it out of the hot path

@02strich 02strich force-pushed the stefan/wci-status branch from 740c944 to b5def95 Compare July 6, 2026 17:48
Add DescribeWorkerControllerInstanceStatus activity to fetch the WCI validation status and map it to a ComputeStatus. During handleSyncState, invoke syncVersionDataToComputeStatus to update the version state's ComputeStatus with the provider validation result. The sync is gated behind the "sync-compute-validation-status" workflow version for backward compatibility.
@02strich 02strich force-pushed the stefan/wci-status branch from b5def95 to 106f180 Compare July 6, 2026 17:48
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