Skip to content

Conversation

@pandatix
Copy link
Member

What is the problem/feature ?

Resolves #1060

TL;DR: the cache is not getting systematically reconstructed through scenarios operations.

What contains this PR ?

This PR proposes to change the behavior of DecodeOCI such it downloads the OCI artifact iif the resulting directory does not exist in the cache. This avoids downloading multiple times the OCI artifact throughout reuses of the same reference (e.g., the Kubernetes ExposedMonopod recipe).

Further, I systematically reviewed all iac.LoadStack and iac.NewStack calls on the basis they are used for instance management (thus uses the OCI artifact). For all these, I made sure there is a call before to scenario.DecodeOCI, thus the cache gets reconstructed.

I admit I did not test the cache reconstruction, as I didn't add/change a behavior but added an intermediate step that we know works.

Furthermore, I update the Go dependencies to fix all failing workflows due to various version drifts. The major problem was in Pulumi changes in the config of the integration module, which seems to no longer work with non-plaintext-strings... something I'll look into more deeply in the upcoming days, maybe after GreHack25.

What are the impacts ?

The cache gets reconstructed whenever required, i.e., when there is a scenario operation.

@pandatix pandatix added bug Something isn't working enhancement New feature or request dependencies Pull requests that update a dependency file go Pull requests that update Go code chall-manager Related to chall-manager labels Nov 21, 2025
@github-actions
Copy link

The latest Buf updates on your PR. Results from workflow CI / buf-lint (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedNov 21, 2025, 8:31 PM

@pandatix pandatix requested a review from NicoFgrx November 21, 2025 22:05
@pandatix pandatix merged commit 1444b0d into main Nov 22, 2025
13 checks passed
@pandatix pandatix deleted the fix/oci-cache branch November 22, 2025 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working chall-manager Related to chall-manager dependencies Pull requests that update a dependency file enhancement New feature or request go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: OCI local cache not reconstructed

3 participants