Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NO-JIRA: ci/prow-entrypoint.sh: don't use grep -q at the end of pipeline #1485

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Apr 15, 2024

Unlike grep, grep -q will exit 0 as soon as a match is found. This will cause whatever is writing into grep to hit SIGPIPE. And if it's not equipped to handle that signal, it'll be terminated and the overall if-condition will always fail due to -o pipefail.

See also ostreedev/ostree#3203.

Unlike `grep`, `grep -q` will exit 0 as soon as a match is found. This
will cause whatever is writing into `grep` to hit `SIGPIPE`. And if it's
not equipped to handle that signal, it'll be terminated and the overall
if-condition will always fail due to `-o pipefail`.

See also ostreedev/ostree#3203.
@jlebon
Copy link
Member Author

jlebon commented Apr 15, 2024

Should unblock coreos/coreos-assembler#3652.

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 15, 2024
Copy link
Contributor

@prestist prestist left a comment

Choose a reason for hiding this comment

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

Thank you, this lgtm.

Copy link
Member

@travier travier left a comment

Choose a reason for hiding this comment

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

/lgtm

@travier
Copy link
Member

travier commented Apr 15, 2024

/retitle NO-JIRA: ci/prow-entrypoint.sh: don't use grep -q at the end of pipeline

@openshift-ci openshift-ci bot changed the title ci/prow-entrypoint.sh: don't use grep -q at the end of pipeline NO-JIRA: ci/prow-entrypoint.sh: don't use grep -q at the end of pipeline Apr 15, 2024
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Apr 15, 2024
@openshift-ci-robot
Copy link

@jlebon: This pull request explicitly references no jira issue.

In response to this:

Unlike grep, grep -q will exit 0 as soon as a match is found. This will cause whatever is writing into grep to hit SIGPIPE. And if it's not equipped to handle that signal, it'll be terminated and the overall if-condition will always fail due to -o pipefail.

See also ostreedev/ostree#3203.

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.

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 15, 2024
Copy link
Contributor

openshift-ci bot commented Apr 15, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jlebon, prestist, travier

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

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [jlebon,prestist,travier]

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

Copy link
Contributor

openshift-ci bot commented Apr 15, 2024

@jlebon: all tests passed!

Full PR test history. Your PR dashboard.

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/test-infra repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit e189ca8 into openshift:master Apr 15, 2024
7 checks passed
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. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants