Skip to content

Conversation

@alanconway
Copy link
Contributor

Description

Fixed 2 issues, due to files not copied to image build:

  • added '2> /dev/null' to silence git command used to get current branch.build.
  • make targets using olm_deploy/ conditional on existence of directory.

/cc @xperimental
/assign @jcantrill

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 15, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alanconway

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 Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 15, 2025
# Set variables from environment or hard-coded default
export OPERATOR_NAME=cluster-logging-operator
export CURRENT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD;)
export CURRENT_BRANCH=$(shell git rev-parse --short HEAD 2> /dev/null)
Copy link
Contributor

@xperimental xperimental Dec 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export CURRENT_BRANCH=$(shell git rev-parse --short HEAD 2> /dev/null)
export CURRENT_BRANCH=$(shell git rev-parse --short HEAD 2> /dev/null)

fwiw: "current branch" is then also wrong as the output of rev-parse --short HEAD will always be a commit-hash.

# builds an operator-registry image containing the cluster-logging operator
cluster-logging-catalog-build: .target/cluster-logging-catalog-build
.target/cluster-logging-catalog-build: $(shell find olm_deploy -type f)
.target/cluster-logging-catalog-build:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we can just remove the dependency on this and the target below. The lower one is already phony, so its dependencies do not really matter anyway ... and I think this one can lose its indirection and be made phony as well.

# Set variables from environment or hard-coded default
export OPERATOR_NAME=cluster-logging-operator
export CURRENT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD;)
export CURRENT_BRANCH=$(shell git rev-parse --short HEAD 2> /dev/null)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not CURRENT_BRANCH anymore, maybe make sense to change variable name to CURRENT_REVISION or something like this

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 15, 2025

@alanconway: all tests passed!

Full PR test history. Your PR dashboard.

Details

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 kubernetes-sigs/prow repository. I understand the commands that are listed here.

@jcantrill
Copy link
Contributor

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants