Revert "OCPBUGS-83492: Allow :ref suffix in additionalLayerStores path for stargz-store to support lazy image pulling"#2823
Conversation
…h for stargz-store to support lazy image pulling"
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
Hello @BhargaviGudi! Some important instructions when contributing to openshift/api: |
|
@BhargaviGudi: This pull request references Jira Issue OCPBUGS-83492, which is valid. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Jira (bgudi@redhat.com), skipping review request. The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
📝 WalkthroughWalkthroughThis pull request removes support for an optional 🚥 Pre-merge checks | ✅ 12✅ Passed checks (12 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
machineconfiguration/v1/tests/containerruntimeconfigs.machineconfiguration.openshift.io/AdditionalStorageConfig.yaml (1)
59-68: Add a direct negative test for:refsuffix rejection.Given this PR’s main intent, consider adding a case like
/var/lib/stargz-store:ref(or replacing one generic invalid-char case) so the contract is explicitly guarded by tests.Proposed test addition
+ - name: Should fail if additionalLayerStores path ends with :ref suffix + initial: | + apiVersion: machineconfiguration.openshift.io/v1 + kind: ContainerRuntimeConfig + spec: + containerRuntimeConfig: + additionalLayerStores: + - path: /var/lib/stargz-store:ref + expectedError: "path must be absolute and contain only alphanumeric characters, '/', '.', '_', and '-'"🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@machineconfiguration/v1/tests/containerruntimeconfigs.machineconfiguration.openshift.io/AdditionalStorageConfig.yaml` around lines 59 - 68, Add a direct negative test that explicitly checks for rejection of paths with a ":ref" suffix by updating the test case named "Should fail if additionalLayerStores path contains invalid characters" in AdditionalStorageConfig.yaml: either replace the existing invalid example (/var/lib/stargz@store) or add a new case that uses a path like /var/lib/stargz-store:ref and keep the same expectedError string ("path must be absolute and contain only alphanumeric characters, '/', '.', '_', and '-'") so the suite verifies the contract forbids colon/ref suffixes.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In
`@machineconfiguration/v1/tests/containerruntimeconfigs.machineconfiguration.openshift.io/AdditionalStorageConfig.yaml`:
- Around line 59-68: Add a direct negative test that explicitly checks for
rejection of paths with a ":ref" suffix by updating the test case named "Should
fail if additionalLayerStores path contains invalid characters" in
AdditionalStorageConfig.yaml: either replace the existing invalid example
(/var/lib/stargz@store) or add a new case that uses a path like
/var/lib/stargz-store:ref and keep the same expectedError string ("path must be
absolute and contain only alphanumeric characters, '/', '.', '_', and '-'") so
the suite verifies the contract forbids colon/ref suffixes.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 1d752ed0-6f50-4a18-b9f2-e232a3de1c2e
⛔ Files ignored due to path filters (5)
machineconfiguration/v1/zz_generated.crd-manifests/0000_80_machine-config_01_containerruntimeconfigs-CustomNoUpgrade.crd.yamlis excluded by!**/zz_generated.crd-manifests/*machineconfiguration/v1/zz_generated.crd-manifests/0000_80_machine-config_01_containerruntimeconfigs-DevPreviewNoUpgrade.crd.yamlis excluded by!**/zz_generated.crd-manifests/*machineconfiguration/v1/zz_generated.crd-manifests/0000_80_machine-config_01_containerruntimeconfigs-TechPreviewNoUpgrade.crd.yamlis excluded by!**/zz_generated.crd-manifests/*machineconfiguration/v1/zz_generated.featuregated-crd-manifests/containerruntimeconfigs.machineconfiguration.openshift.io/AdditionalStorageConfig.yamlis excluded by!**/zz_generated.featuregated-crd-manifests/**machineconfiguration/v1/zz_generated.swagger_doc_generated.gois excluded by!**/zz_generated*
📒 Files selected for processing (5)
machineconfiguration/v1/tests/containerruntimeconfigs.machineconfiguration.openshift.io/AdditionalStorageConfig.yamlmachineconfiguration/v1/types.gopayload-manifests/crds/0000_80_machine-config_01_containerruntimeconfigs-CustomNoUpgrade.crd.yamlpayload-manifests/crds/0000_80_machine-config_01_containerruntimeconfigs-DevPreviewNoUpgrade.crd.yamlpayload-manifests/crds/0000_80_machine-config_01_containerruntimeconfigs-TechPreviewNoUpgrade.crd.yaml
|
Do we know why this wasn't picked up pre-merge? Is there a missing test? /retest |
|
Scheduling tests matching the |
|
/lgtm |
|
Tests from second stage were triggered manually. Pipeline can be controlled only manually, until HEAD changes. Use command to trigger second stage. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ngopalak-redhat, saschagrunert The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@BhargaviGudi: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/verified by CI |
|
@BhargaviGudi: This PR has been marked as verified by DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/retest-required |
This reverts commit 47e56c7 (PR #2806)
Reason for Revert:
The
:refsuffix should not be exposed in the user-facing API. Instead, the Machine Config Operator (MCO) should handle this implementation detail automatically.Correct Approach:
The
:refsuffix is an implementation detail of how stargz-store integrates with CRI-O'sadditionalLayerStores. This should be handled automatically by the MCO during the translation phase from ContainerRuntimeConfig CR to the node'sstorage.conffileRelated