Skip to content

Make reuse trigger cli args public#3402

Merged
fibonacci1729 merged 1 commit intomainfrom
pub-reuse-args
Feb 17, 2026
Merged

Make reuse trigger cli args public#3402
fibonacci1729 merged 1 commit intomainfrom
pub-reuse-args

Conversation

@fibonacci1729
Copy link
Collaborator

Downstream crates that might want to expose instance reuse arguments to operators currently can't because these fields are private. This PR makes the fields of CliArgs public as well as the Range type.

Signed-off-by: Brian Hardock <brian.hardock@fermyon.com>
Copy link
Contributor

@kate-goldenring kate-goldenring left a comment

Choose a reason for hiding this comment

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

@fibonacci1729 thank you. I am concerned we could run into this again if another field is added to CliArgs. One way to avoid this is by creating a public constructor -- it feels a little strange for other executors to be consuming a CliArgs struct, but this may just be a naming nit.

@fibonacci1729 fibonacci1729 enabled auto-merge (squash) February 17, 2026 18:38
@fibonacci1729 fibonacci1729 merged commit cf12275 into main Feb 17, 2026
17 checks passed
@fibonacci1729 fibonacci1729 deleted the pub-reuse-args branch February 17, 2026 20:18
@kate-goldenring
Copy link
Contributor

@fibonacci1729 thank you. I am concerned we could run into this again if another field is added to CliArgs. One way to avoid this is by creating a public constructor -- it feels a little strange for other executors to be consuming a CliArgs struct, but this may just be a naming nit.

@fibonacci1729 what were your thoughts on this point. Its a non-blocking comment but potentially an enhancement

@fibonacci1729
Copy link
Collaborator Author

Sorry @kate-goldenring I closed this tab earlier before hitting comment. 🤦

I agree that a constructor would prevent this in a future addition to the struct. Technically it's a breaking change to add any non-pub fields to CliArgs at the moment and a constructor could definitely mitigate this.

kate-goldenring added a commit to kate-goldenring/containerd-shim-spin that referenced this pull request Feb 18, 2026
- Bumps the dependencies to use a git reference just past Spin 3.6 to contain these two patches to Spin
that enable continued consumption of the Spin crates by the shim: spinframework/spin#3402 and spinframework/spin#3403
- Updates the shim to support packages pushed with wkg, a change introduced in Spin here spinframework/spin#3361
- Adds a wkg integration test
- Adds extensive unit tests for the Source struct (with the help of Claude). These tests point out some gaps in the implementation to better handle edge cases (most are edge cases are ignored)

Signed-off-by: Kate Goldenring <kate.goldenring@gmail.com>
kate-goldenring added a commit to kate-goldenring/containerd-shim-spin that referenced this pull request Feb 18, 2026
- Bumps the dependencies to use a git reference just past Spin 3.6 to contain these two patches to Spin
that enable continued consumption of the Spin crates by the shim: spinframework/spin#3402 and spinframework/spin#3403
- Updates the shim to support packages pushed with wkg, a change introduced in Spin here spinframework/spin#3361
- Adds a wkg integration test
- Adds extensive unit tests for the Source struct (with the help of Claude). These tests point out some gaps in the implementation to better handle edge cases (most are edge cases are ignored)

Signed-off-by: Kate Goldenring <kate.goldenring@gmail.com>
kate-goldenring added a commit to kate-goldenring/containerd-shim-spin that referenced this pull request Feb 18, 2026
- Bumps the dependencies to use a git reference just past Spin 3.6 to contain these two patches to Spin
that enable continued consumption of the Spin crates by the shim: spinframework/spin#3402 and spinframework/spin#3403
- Updates the shim to support packages pushed with wkg, a change introduced in Spin here spinframework/spin#3361
- Adds a wkg integration test
- Adds extensive unit tests for the Source struct (with the help of Claude). These tests point out some gaps in the implementation to better handle edge cases (most are edge cases are ignored)

Signed-off-by: Kate Goldenring <kate.goldenring@gmail.com>
kate-goldenring added a commit to kate-goldenring/containerd-shim-spin that referenced this pull request Feb 18, 2026
- Bumps the dependencies to use a git reference just past Spin 3.6 to contain these two patches to Spin
that enable continued consumption of the Spin crates by the shim: spinframework/spin#3402 and spinframework/spin#3403
- Updates the shim to support packages pushed with wkg, a change introduced in Spin here spinframework/spin#3361
- Adds a wkg integration test
- Adds extensive unit tests for the Source struct (with the help of Claude). These tests point out some gaps in the implementation to better handle edge cases (most are edge cases are ignored)

Signed-off-by: Kate Goldenring <kate.goldenring@gmail.com>
kate-goldenring added a commit to kate-goldenring/containerd-shim-spin that referenced this pull request Feb 19, 2026
- Bumps the dependencies to use a git reference just past Spin 3.6 to contain these two patches to Spin
that enable continued consumption of the Spin crates by the shim: spinframework/spin#3402 and spinframework/spin#3403
- Updates the shim to support packages pushed with wkg, a change introduced in Spin here spinframework/spin#3361
- Adds a wkg integration test
- Adds extensive unit tests for the Source struct (with the help of Claude). These tests point out some gaps in the implementation to better handle edge cases (most are edge cases are ignored)

Signed-off-by: Kate Goldenring <kate.goldenring@gmail.com>
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

Comments