Skip to content

Fix Swift registry check using wrong separator in object name search - #37

Draft
imatza-rh wants to merge 1 commit into
mainfrom
fix-swift-registry-check-pattern
Draft

Fix Swift registry check using wrong separator in object name search#37
imatza-rh wants to merge 1 commit into
mainfrom
fix-swift-registry-check-pattern

Conversation

@imatza-rh

Copy link
Copy Markdown
Contributor

Commit 1540a56 migrated Swift object search from grep to jq. The dot in the search target was a regex wildcard in grep matching /, but jq contains() treats it as literal. Fix: change . to / in the target variable.

Verified on titan35: old pattern 0 matches, new pattern 7 matches.

The JSON-output migration in commit 1540a56 changed the Swift object
search from grep (where '.' matches any character including '/') to
jq contains() (where '.' is a literal dot). This caused the search
target 'swift-check-NNNN.fooapp' to never match the actual Swift
object paths which use '/' as separator:
  files/docker/registry/v2/repositories/swift-check-NNNN/fooapp/...

Change the target separator from '.' to '/' to match the actual
object name structure in Swift.

Verified on live environment: old pattern matched 0 objects, new
pattern correctly matches 7 objects.

Fixes regression from 1540a56 (Harden verification OpenStack CLI
calls to use JSON output).

Assisted-By: Claude Code
Signed-off-by: Itay Matza <imatza@redhat.com>
@openshift-ci

openshift-ci Bot commented Sep 1, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ekuris-redhat

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the approved label Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants