Skip to content

fix(cli): multi ctf repo race#965

Merged
matthiasbruns merged 9 commits into
open-component-model:mainfrom
fabianburth:fix/multi-ctf-race-cli
Oct 7, 2025
Merged

fix(cli): multi ctf repo race#965
matthiasbruns merged 9 commits into
open-component-model:mainfrom
fabianburth:fix/multi-ctf-race-cli

Conversation

@fabianburth

Copy link
Copy Markdown
Contributor

What this PR does / why we need it

This PR fixes is supposed to fix the race conditions occuring when multiple ctf instances operate on the same ctf archive. The actual fix is provided in #964 and #963. Here, a the archive instance and its lock are shared between multiple ctf repositories operating on the archive.

Which issue(s) this PR fixes

Contributes to open-component-model/ocm-project#564

@fabianburth fabianburth requested a review from a team as a code owner September 30, 2025 11:31
@fabianburth fabianburth marked this pull request as draft September 30, 2025 11:31
@fabianburth fabianburth force-pushed the fix/multi-ctf-race-cli branch from 4f5ebce to e7f615f Compare October 7, 2025 09:36
#### What this does
- Removes the internal CTF plugin implementation.
- Updates the OCI plugin to handle both OCI and CTF repositories through a unified provider mechanism.
- Adjusts `go.mod` to include required dependency updates.

#### Why this is needed
- Simplifies plugin management by unifying repository handling logic.
- Reduces code duplication and improves maintainability by leveraging the shared provider implementation.

#### Implications
- Existing CTF plugin functionality is integrated into the updated OCI plugin.
- Consumers relying on the standalone CTF plugin will need to adapt to the unified provider approach.

Signed-off-by: Fabian Burth <fabian.burth@sap.com>
#### What this does
- Updates the `go.mod` file to reference newer versions of the CTF and OCI bindings.
- Adjusts related dependencies to their latest versions (`configuration`, `repository`, etc.).
- Modifies tests to align with the updated dependency behavior.

#### Why this is needed
- Resolves compatibility issues with the latest versions of CTF and OCI.
- Keeps the CLI in sync with upstream improvements and bug fixes in dependency modules.

#### Implications
- The updated dependencies may require testing for potential regressions.
- Consumers must ensure compatibility with the adjusted versions of the bindings and respective APIs.

Signed-off-by: Fabian Burth <fabian.burth@sap.com>
… does not contain version

Signed-off-by: Fabian Burth <fabian.burth@sap.com>
… does not contain version

Signed-off-by: Fabian Burth <fabian.burth@sap.com>
#### What this does
- Removes the internal CTF plugin implementation.
- Updates the OCI plugin to handle both OCI and CTF repositories through a unified provider mechanism.
- Adjusts `go.mod` to include required dependency updates.

#### Why this is needed
- Simplifies plugin management by unifying repository handling logic.
- Reduces code duplication and improves maintainability by leveraging the shared provider implementation.

#### Implications
- Existing CTF plugin functionality is integrated into the updated OCI plugin.
- Consumers relying on the standalone CTF plugin will need to adapt to the unified provider approach.

Signed-off-by: Fabian Burth <fabian.burth@sap.com>
#### What this does
- Updates the `go.mod` file to reference newer versions of the CTF and OCI bindings.
- Adjusts related dependencies to their latest versions (`configuration`, `repository`, etc.).
- Modifies tests to align with the updated dependency behavior.

#### Why this is needed
- Resolves compatibility issues with the latest versions of CTF and OCI.
- Keeps the CLI in sync with upstream improvements and bug fixes in dependency modules.

#### Implications
- The updated dependencies may require testing for potential regressions.
- Consumers must ensure compatibility with the adjusted versions of the bindings and respective APIs.

Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
@fabianburth fabianburth force-pushed the fix/multi-ctf-race-cli branch from 8d9288b to e25f5da Compare October 7, 2025 09:49
@fabianburth fabianburth self-assigned this Oct 7, 2025
@fabianburth fabianburth marked this pull request as ready for review October 7, 2025 09:53
@matthiasbruns matthiasbruns merged commit fb1895d into open-component-model:main Oct 7, 2025
19 checks passed
@fabianburth fabianburth deleted the fix/multi-ctf-race-cli branch October 7, 2025 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants