• Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • 4.9.0
    • None
    • None
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • False
    • No
    • Rox Sprint 4.9C - Global

      Operator-bundle build in nightlies breaks due to tags like 4.9.x-nightly-20250710 hitting the version parsing logic

      [1/2] STEP 41/41: RUN . /cachi2/cachi2.env &&     mkdir -p build/ &&     rm -rf build/bundle &&     cp -a bundle build/ &&     cp -v ../config-controller/config/crd/bases/config.stackrox.io_securitypolicies.yaml build/bundle/manifests/ &&     ./bundle_helpers/patch-csv.py       --use-version "${OPERATOR_IMAGE_TAG}"       --first-version 4.0.0       --related-images-mode=konflux       --operator-image "${OPERATOR_IMAGE_REF}"       --add-supported-arch amd64       --add-supported-arch arm64       --add-supported-arch ppc64le       --add-supported-arch s390x       < bundle/manifests/rhacs-operator.clusterserviceversion.yaml       > build/bundle/manifests/rhacs-operator.clusterserviceversion.yaml
      '../config-controller/config/crd/bases/config.stackrox.io_securitypolicies.yaml' -> 'build/bundle/manifests/config.stackrox.io_securitypolicies.yaml'
      2025-07-10 02:00:20,833 patch-csv.py: Replaced: quay.io/stackrox-io/stackrox-operator:0.0.1 with registry.redhat.io/advanced-cluster-security/rhacs-rhel8-operator@sha256:f6eed8c7d5bcd322d3123879e0cd1d0be41c8666fca90a86756a367bcdc65f71
      2025-07-10 02:00:20,834 patch-csv.py: Replaced: quay.io/stackrox-io/stackrox-operator:0.0.1 with registry.redhat.io/advanced-cluster-security/rhacs-rhel8-operator@sha256:f6eed8c7d5bcd322d3123879e0cd1d0be41c8666fca90a86756a367bcdc65f71
      Traceback (most recent call last):
        File "/stackrox/operator/./bundle_helpers/patch-csv.py", line 244, in <module>
          main()
        File "/stackrox/operator/./bundle_helpers/patch-csv.py", line 233, in main
          patch_csv(doc,
        File "/stackrox/operator/./bundle_helpers/patch-csv.py", line 81, in patch_csv
          replaced_xyz = calculate_replaced_version(
        File "/stackrox/operator/./bundle_helpers/patch-csv.py", line 135, in calculate_replaced_version
          current_xyz = XyzVersion.parse_from(version)
        File "/stackrox/operator/./bundle_helpers/patch-csv.py", line 21, in parse_from
          x, y, z = (int(c) for c in version_str.split('-', maxsplit=1)[0].split('.'))
        File "/stackrox/operator/./bundle_helpers/patch-csv.py", line 21, in <genexpr>
          x, y, z = (int(c) for c in version_str.split('-', maxsplit=1)[0].split('.'))
      ValueError: invalid literal for int() with base 10: 'x'
      subprocess exited with status 1
      

      Looks like we need to force-convert .x to .0.

              msugakov@redhat.com Misha Sugakov
              msugakov@redhat.com Misha Sugakov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: