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

Now quoting all #583

Merged
merged 3 commits into from
Sep 3, 2024
Merged

Now quoting all #583

merged 3 commits into from
Sep 3, 2024

Conversation

judovana
Copy link
Contributor

@judovana judovana commented Jul 12, 2024

This PR is trying to add quotes where possible. It should not harm, but to really enbale paths with spaces may go really deep into rabbit hole

@karianna karianna requested a review from llxia July 12, 2024 23:27
@smlambert
Copy link
Contributor

Needs some sample Grinders run against this PR

@llxia
Copy link
Contributor

llxia commented Jul 14, 2024

I would like to understand the need for this PR. IMHO, adding quotes where possible doesn't seem necessary. Please remember to follow the KISS principle.

@judovana
Copy link
Contributor Author

The non quoted strings are simply wrong. From time to time, someone use a string with space (does not meter if it is "vendor id" or "some path". All have spaces allowed. And will got a cryptic,. unrelated error later, which is wasting unnecessary time.
All should be quoted by default, unless it must not be (eg list of commands). So this PR is (I'm afraid one on few more) setting a correct precedent. Every body, including myself, from time to time hurry up with something with "there never can be a space" in mind, just to be bitten later. Do not quote have nothing to do with KISS, its bug.

@judovana
Copy link
Contributor Author

Needs some sample Grinders run against this PR

Sure thing, will do.

@judovana
Copy link
Contributor Author

@judovana
Copy link
Contributor Author

https://ci.adoptium.net/view/Test_grinder/job/Grinder/10674/

That is usntbale, but it is correct failure.

For sake of sanity, https://ci.adoptium.net/view/Test_grinder/job/Grinder/10678/ passed

@smlambert @sophia-guo @llxia pls reconsider

@judovana
Copy link
Contributor Author

judovana commented Aug 5, 2024

Ping please?

1 similar comment
@judovana
Copy link
Contributor Author

Ping please?

@smlambert
Copy link
Contributor

I am not enamoured with this PR. There was no report of anyone actually encountering difficulties without it.

We tend to not create fixes for problems that are not reported. This change has some potential for side-effects (especially given the quotes are around the entire variable=value part, and there was also no Grinders run against the PR branch, the ones listed were against a different branch.

@judovana
Copy link
Contributor Author

If I would not hit it, I would not be fixing it. On every other project here, the quoting is mandatory. Why not here? The believe of project maintainers that users do not use spaces (..in filesystem.., not speaking about others) is always misplaced.

The grinder run is correct. I did not now better way then to make custom branch in aqa-tests, where was only single change in get.sh to pull this-chnaged-pr. https://github.com/judovana/aqa-tests/commits/myTkg/ -> judovana/aqa-tests@537126f

Sure, feel free to close. But it will just bite later, and waste another developer's time, because the error caused by ill parsed space is appearing later, and is hard to read.

It does not metter if you quote "-param=my value" or -param="my value" or even -param=m"y v"alue. All three are correct. All three used by interpreter. I picked the oen which seems most readable. If you have another preference. I will change.

@judovana
Copy link
Contributor Author

May be a nit to consider - if it works, it is win win, and if it breaks anythiong, its one click to revert. So in all cases, it should do no harm.

@smlambert
Copy link
Contributor

I see, if you hit it, I would have expected to see an issue raised.

I have seen you raise PRs across the project that were not associated with an issue with a description that gives the reviewers context for the change (and suspected severity of the problem). Without an issue, it just looks like fidgeting.

@smlambert
Copy link
Contributor

Run a grinder by changing TKG_OWNER_BRANCH to judovana:allQuoted
Screenshot 2024-08-16 at 7 36 18 AM

@judovana
Copy link
Contributor Author

Here we go: https://ci.adoptium.net/view/Test_grinder/job/Grinder/10761/ - failed. PR may be the cause.

I have no reasons to fidget in enterprise ready project. The quoting seemed like so obvious bug with so obvious fix that I was not filling issue.

Unluckily this, or even openjdk, and many other big projects share this behaviour - issues do not get attention unless they are really critical. But PRs do have attention, as there is obvious volunteer to do the work.

All my PRs are based on simple effort to use that, and I keep stumbling around smaller or bigger bugs or missing features. I would say one would be happy that somebody is trying it on non default platforms and in various corenrcases:(

@judovana
Copy link
Contributor Author

The failure sounds like old JDK. Wil retry

@judovana
Copy link
Contributor Author

@smlambert smlambert merged commit 751ecc8 into adoptium:master Sep 3, 2024
3 checks passed
@judovana
Copy link
Contributor Author

judovana commented Sep 4, 2024

TY!

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.

4 participants