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

check-volume-levels.sh: Shellcheck fixes. #1062

Conversation

greg-intel
Copy link
Contributor

@greg-intel greg-intel commented Jun 15, 2023

[skip ci] due to this test not being part of ci testing. Test doesn't pass consistently, fails on volume level checks.

Three instances of...
SC2295 (info): Expansions inside ${..} need to be quoted separately, otherwise they match as patterns.

Added quotes to $search in these lines:
CAP_SWITCH=${tmp#*$search}-->CAP_SWITCH=${tmp#*"$search"}

Tested/verified on jf-adlp-rvp-nocodec-8

@greg-intel greg-intel requested a review from a team as a code owner June 15, 2023 22:20
@marc-hb
Copy link
Collaborator

marc-hb commented Jun 26, 2023

There has been no testing at all for this PR, @greg-intel can you investigate why?

@marc-hb marc-hb marked this pull request as draft June 26, 2023 20:25
@greg-intel greg-intel marked this pull request as ready for review June 26, 2023 20:31
@greg-intel
Copy link
Contributor Author

There has been no testing at all for this PR, @greg-intel can you investigate why?

I thought that was because it was a draft, but I don't see that being a condition in the PR Builder. Going to run a SOFCI TEST on this...

@greg-intel
Copy link
Contributor Author

There has been no testing at all for this PR, @greg-intel can you investigate why?

[skip ci] due to this test not being part of ci testing. Test doesn't pass consistently, fails on volume level checks.

CI Testing doesn't test this. Sorry I forgot until a moment ago.

@marc-hb
Copy link
Collaborator

marc-hb commented Jun 26, 2023

I demoted it to a draft because the lack of testing showed all green and I didn't want it to be merged by accident.

[skip ci] due to this test not being part of ci testing. Test doesn't pass consistently, fails on volume level checks.

CI Testing doesn't test this.

This is very strange, looking like nothing I've seen before. [SKIP CI] is usually in the PR title, not in the PR description. Also, there is still a jenkins line, it's not totally missing. Example:

thesofproject/sof#7263 [SKIP CI]

Screenshot 2023-06-26 at 16 49 59

@marc-hb marc-hb marked this pull request as draft June 27, 2023 00:20
@marc-hb
Copy link
Collaborator

marc-hb commented Jun 27, 2023

wow, another super unusual and strange thing: demoting to draft disables/hides the Github Actions in this PR. This is really not normal! This other draft that I just submitted has all test running as usual:

#1068

Screenshot 2023-06-26 at 17 23 45

@marc-hb
Copy link
Collaborator

marc-hb commented Jun 27, 2023

I suspect this PR has been somehow "corrupted" at the Github level. Since we're not going to debug Github, can you please resubmit the same commit in a different and new PR? Don't close or touch this one yet, not before we're sure the other PR works fine.

@greg-intel greg-intel force-pushed the shellcheck-check-volume-levels branch from a401674 to bae5afa Compare June 27, 2023 20:28
Originally skipped CI, due to the test itself not being part of ci testing.
The test doesn't pass consistently, even run in isolation, as it fails on
volume level checks.

Three instances of...
SC2295 (info): Expansions inside ${..} need to be quoted separately,
otherwise they match as patterns.

Added quotes to $search in this line:
CAP_SWITCH=${tmp#*$search} -->  CAP_SWITCH=${tmp#*$search}#*"$search"}

Tested/verified on jf-adlp-rvp-nocodec-8

Signed-off-by: Greg Galloway <[email protected]>
@greg-intel greg-intel force-pushed the shellcheck-check-volume-levels branch from bae5afa to 95bc7c4 Compare June 27, 2023 22:52
@marc-hb
Copy link
Collaborator

marc-hb commented Jun 29, 2023

Replaced by commit a23d969 / #1070

@marc-hb marc-hb closed this Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants