Skip to content

fix: testdata location in cli tests#1921

Merged
matthiasbruns merged 2 commits into
open-component-model:mainfrom
matthiasbruns:fix/testdata_move_cli
Mar 8, 2026
Merged

fix: testdata location in cli tests#1921
matthiasbruns merged 2 commits into
open-component-model:mainfrom
matthiasbruns:fix/testdata_move_cli

Conversation

@matthiasbruns

@matthiasbruns matthiasbruns commented Mar 8, 2026

Copy link
Copy Markdown
Contributor

What this PR does / why we need it

This PR fixes the testdata location in cli tests after it has been moved in the helm module

Which issue(s) this PR fixes

Contributes: open-component-model/ocm-project#883

Summary by CodeRabbit

  • Tests
    • Adjusted Helm chart test data path used by integration tests to match the restructured test directory layout.
  • Chores
    • Bumped a Helm-related dependency used by the CLI and integration test modules to a newer upstream revision.

On-behalf-of: SAP <matthias.bruns@sap.com>
Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
@github-actions github-actions Bot added the kind/bugfix Bug label Mar 8, 2026
@matthiasbruns matthiasbruns marked this pull request as ready for review March 8, 2026 11:57
@matthiasbruns matthiasbruns requested a review from a team as a code owner March 8, 2026 11:57
@coderabbitai

coderabbitai Bot commented Mar 8, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 4d8ab656-f0b4-40a0-b6a6-9f4bbdc521ab

📥 Commits

Reviewing files that changed from the base of the PR and between bd61318 and aa2e5ca.

⛔ Files ignored due to path filters (2)
  • cli/go.sum is excluded by !**/*.sum
  • cli/integration/go.sum is excluded by !**/*.sum
📒 Files selected for processing (2)
  • cli/go.mod
  • cli/integration/go.mod

📝 Walkthrough

Walkthrough

Updated a Helm chart test path in an integration test and bumped the ocm helm binding dependency versions in two go.mod files. No functional logic or exported APIs were changed.

Changes

Cohort / File(s) Summary
Helm Transformer Test Path Update
cli/integration/download_resource_integration_test.go
Adjusted Helm chart testdata path in Test_Integration_HelmTransformer: changed bindings/go/helm/input/testdata/provenance/mychart-0.1.0.tgzbindings/go/helm/testdata/provenance/mychart-0.1.0.tgz.
CLI module dependency bump
cli/go.mod
Updated ocm.software/open-component-model/bindings/go/helm pseudo-version from v0.0.0-20260304112256-b1226ed291dbv0.0.0-20260308114111-a3c1debc152d.
Integration module dependency bump (indirect)
cli/integration/go.mod
Bumped indirect dependency ocm.software/open-component-model/bindings/go/helm to v0.0.0-20260308114111-a3c1debc152d (previously v0.0.0-20260304112256-b1226ed291db).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 A tiny hop, a path made right,
Charts aligned beneath moonlight,
Versions nudged, nothing to fear,
Tests will hum — the meadow's clear. 🌙🐇

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main change: adjusting testdata location in CLI tests following a directory move in the helm module.
Linked Issues check ✅ Passed The PR addresses integration test updates required by issue #883, adjusting test data paths after the helm module testdata restructuring to ensure tests work with the new structure.
Out of Scope Changes check ✅ Passed All changes (test data path adjustment and dependency version bumps) are directly related to fixing test failures caused by the helm module testdata directory move.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added the size/xs Extra small label Mar 8, 2026
On-behalf-of: SAP <matthias.bruns@sap.com>
Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
@github-actions github-actions Bot added the size/s Small label Mar 8, 2026
@matthiasbruns matthiasbruns enabled auto-merge (squash) March 8, 2026 12:36
@matthiasbruns matthiasbruns merged commit 69440bd into open-component-model:main Mar 8, 2026
25 checks passed
@coderabbitai coderabbitai Bot mentioned this pull request Mar 9, 2026
1 task
@matthiasbruns matthiasbruns linked an issue Mar 10, 2026 that may be closed by this pull request
8 tasks
frewilhelm pushed a commit to frewilhelm/open-component-model that referenced this pull request Mar 12, 2026
<!-- markdownlint-disable MD041 -->
#### What this PR does / why we need it
This PR fixes the `testdata` location in cli tests after it has been
moved in the helm module

#### Which issue(s) this PR fixes
Contributes:
open-component-model/ocm-project#883

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Tests**
* Adjusted Helm chart test data path used by integration tests to match
the restructured test directory layout.
* **Chores**
* Bumped a Helm-related dependency used by the CLI and integration test
modules to a newer upstream revision.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
morri-son pushed a commit to morri-son/open-component-model that referenced this pull request Mar 18, 2026
<!-- markdownlint-disable MD041 -->
#### What this PR does / why we need it
This PR fixes the `testdata` location in cli tests after it has been
moved in the helm module

#### Which issue(s) this PR fixes
Contributes:
open-component-model/ocm-project#883

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Tests**
* Adjusted Helm chart test data path used by integration tests to match
the restructured test directory layout.
* **Chores**
* Bumped a Helm-related dependency used by the CLI and integration test
modules to a newer upstream revision.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
Signed-off-by: Gerald Morrison (SAP) <gerald.morrison@sap.com>
@coderabbitai coderabbitai Bot mentioned this pull request Apr 16, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bugfix Bug size/s Small size/xs Extra small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement helm chart download transformer

3 participants