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

[wip] fix shellcheck errors higher than warnings #13971

Closed
wants to merge 4 commits into from

Conversation

upodroid
Copy link
Member

As part of enabling the shell style checks, we need to ensure that all shellcheck warnings have been addressed:

Most of them have been fixed except one:

 REDACTED  C02CW0CDP3YY  ~  Desktop  Git  serving   shellcheck-fixes  7✎  $  shellcheck test/*.sh -S warning

In test/e2e-common.sh line 568:
        for file in $(find -L "${source_dir}" -type f -name "*.yaml"); do
                    ^-- SC2044 (warning): For loops over find output are fragile. Use find -exec or a while read loop.

For more information:
  https://www.shellcheck.net/wiki/SC2044 -- For loops over find output are fr...

@knative-prow knative-prow bot added the area/test-and-release It flags unit/e2e/conformance/perf test issues for product features label May 10, 2023
@knative-prow knative-prow bot requested review from evankanderson and mgencur May 10, 2023 13:41
@knative-prow knative-prow bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 10, 2023
@knative-prow
Copy link

knative-prow bot commented May 10, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: upodroid

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:

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

@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 10, 2023

Verified

This commit was signed with the committer’s verified signature.
suemto suem
@codecov
Copy link

codecov bot commented May 10, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.05 ⚠️

Comparison is base (ea2a6c8) 86.25% compared to head (b49d986) 86.21%.

❗ Current head b49d986 differs from pull request most recent head 55933c0. Consider uploading reports for the commit 55933c0 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13971      +/-   ##
==========================================
- Coverage   86.25%   86.21%   -0.05%     
==========================================
  Files         199      199              
  Lines       14749    14759      +10     
==========================================
+ Hits        12722    12724       +2     
- Misses       1726     1733       +7     
- Partials      301      302       +1     

see 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

echo building "${file/$REPO_ROOT_DIR/}"
ko resolve $(ko_flags) -f "${file}" > "${ko_target}" || fail_test "failed to build test resource"
ko resolve "$(ko_flags)" -f "${file}" > "${ko_target}" || fail_test "failed to build test resource"
Copy link
Member

Choose a reason for hiding this comment

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

this can't be quoted

  • see the errors in the prow job

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

@knative-prow
Copy link

knative-prow bot commented May 10, 2023

@upodroid: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
istio-latest-no-mesh-tls_serving_main 55933c0 link true /test istio-latest-no-mesh-tls
istio-latest-no-mesh_serving_main 55933c0 link true /test istio-latest-no-mesh

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.

@dprotaso
Copy link
Member

seems like we want some variables to not be quoted so that the args are expanded in some command invocations

@upodroid
Copy link
Member Author

upodroid commented May 10, 2023

Yeah, it is whack a mole, for example I adjusted the net-istio fetch script to work with the variables being quoted. I'll dig around and make changes

@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 20, 2023
@knative-prow-robot
Copy link
Contributor

PR needs rebase.

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.

@dprotaso dprotaso changed the title fix shellcheck errors higher than warnings [wip] fix shellcheck errors higher than warnings Jun 6, 2023
@knative-prow knative-prow bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 6, 2023
@dprotaso
Copy link
Member

dprotaso commented Jun 6, 2023

marking as WIP

@upodroid
Copy link
Member Author

upodroid commented Jun 6, 2023

Got distracted, will get this ready by the end of the week

@dprotaso
Copy link
Member

@upodroid are you still working on this? Otherwise I'll close this and maybe open a good first issue

@upodroid
Copy link
Member Author

I'll work on it after the deprecate kntest PR is merged

@dprotaso
Copy link
Member

You should be unblocked now

@dprotaso
Copy link
Member

Going to close this out - feel free to re-open when you get a chance to pick up the work again

@dprotaso dprotaso closed this Sep 12, 2023
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. area/test-and-release It flags unit/e2e/conformance/perf test issues for product features do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants