Commit b5c8b5c
authored
system-tests: plumb workflow attributes through RegisterWithContract (#22108)
* system-tests: plumb workflow attributes through RegisterWithContract
The WorkflowRegistryV2 UpsertWorkflow binding accepts an attributes []byte,
but the test-helpers path hard-coded it to nil. Thread an attributes
parameter through WithAttributes option -> WorkflowRegistrationConfig ->
RegisterWithContract -> registerWorkflowV2 -> UpsertWorkflow so tests can
register workflows whose spec.Attributes the CRE syncer's IsConfidential
check will see.
V1 path unchanged. Existing callers pass nil and behave identically.
* WithAttributes: defensively clone input slice
Prevents caller-mutation-after-pass from inadvertently changing the stored
workflow attributes. Raised by Copilot review on #22108.
* reorder RegisterWithContract params: attributes before artifactsDirInContainer
Groups contract-payload parameters (configURL, secretsURL, attributes)
before deployment-specific trailing args (artifactsDirInContainer).
Matches usage in confidential-compute engine tests.1 parent ba066e3 commit b5c8b5c
3 files changed
Lines changed: 19 additions & 3 deletions
File tree
- core/scripts/cre/environment/environment
- system-tests
- lib/cre/workflow
- tests/test-helpers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
478 | | - | |
| 478 | + | |
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
95 | | - | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| |||
223 | 224 | | |
224 | 225 | | |
225 | 226 | | |
| 227 | + | |
226 | 228 | | |
227 | 229 | | |
228 | 230 | | |
| |||
247 | 249 | | |
248 | 250 | | |
249 | 251 | | |
250 | | - | |
| 252 | + | |
251 | 253 | | |
252 | 254 | | |
253 | 255 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
| 339 | + | |
339 | 340 | | |
340 | 341 | | |
341 | 342 | | |
| |||
644 | 645 | | |
645 | 646 | | |
646 | 647 | | |
| 648 | + | |
647 | 649 | | |
648 | 650 | | |
649 | 651 | | |
| |||
721 | 723 | | |
722 | 724 | | |
723 | 725 | | |
| 726 | + | |
724 | 727 | | |
725 | 728 | | |
726 | 729 | | |
| |||
729 | 732 | | |
730 | 733 | | |
731 | 734 | | |
| 735 | + | |
732 | 736 | | |
733 | 737 | | |
734 | 738 | | |
| |||
744 | 748 | | |
745 | 749 | | |
746 | 750 | | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
747 | 761 | | |
748 | 762 | | |
749 | 763 | | |
| |||
0 commit comments