Skip to content

gracefully fail on which check#211

Merged
openshift-merge-bot[bot] merged 1 commit intonetobserv:mainfrom
fishi0x01:check-deps-fix
Mar 5, 2025
Merged

gracefully fail on which check#211
openshift-merge-bot[bot] merged 1 commit intonetobserv:mainfrom
fishi0x01:check-deps-fix

Conversation

@fishi0x01
Copy link
Contributor

Description

If yq isnt installed, then status code returned will be 1. Krew installs plugin with set -e option, which means the script will silently exit at this point without further instructions on whats wrong.

In this PR we add || true to get status code 0 and continue script.

Dependencies

n/a

Checklist

If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that.

  • Is this PR backed with a JIRA ticket? If so, make sure it is written as a title prefix (in general, PRs affecting the NetObserv/Network Observability product should be backed with a JIRA ticket - especially if they bring user facing changes).
  • Does this PR require product documentation?
    • If so, make sure the JIRA epic is labelled with "documentation" and provides a description relevant for doc writers, such as use cases or scenarios. Any required step to activate or configure the feature should be documented there, such as new CRD knobs.
  • Does this PR require a product release notes entry?
    • If so, fill in "Release Note Text" in the JIRA.
  • Is there anything else the QE team should know before testing? E.g: configuration changes, environment setup, etc.
    • If so, make sure it is described in the JIRA ticket.
  • QE requirements (check 1 from the list):
    • Standard QE validation, with pre-merge tests unless stated otherwise.
    • Regression tests only (e.g. refactoring with no user-facing change).
    • No QE (e.g. trivial change with high reviewer's confidence, or per agreement with the QE team).

@openshift-ci
Copy link

openshift-ci bot commented Mar 5, 2025

Hi @fishi0x01. Thanks for your PR.

I'm waiting for a netobserv member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@msherif1234
Copy link
Contributor

/lgtm

@msherif1234
Copy link
Contributor

/ok-to-test

@github-actions
Copy link

github-actions bot commented Mar 5, 2025

New image:
quay.io/netobserv/network-observability-cli:206fdf0

It will expire after two weeks.

To use this build, update your commands using:

USER=netobserv VERSION=206fdf0 make commands

or download the updated commands.

@openshift-ci
Copy link

openshift-ci bot commented Mar 5, 2025

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by:

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

@codecov
Copy link

codecov bot commented Mar 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 23.70%. Comparing base (d7dff49) to head (1bf09db).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #211   +/-   ##
=======================================
  Coverage   23.70%   23.70%           
=======================================
  Files          11       11           
  Lines        1333     1333           
=======================================
  Hits          316      316           
  Misses       1000     1000           
  Partials       17       17           
Flag Coverage Δ
unittests 23.70% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@openshift-merge-bot openshift-merge-bot bot merged commit 0f58e58 into netobserv:main Mar 5, 2025
12 checks passed
@fishi0x01 fishi0x01 deleted the check-deps-fix branch March 5, 2025 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants