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
Adjust the existing Lua style guide #1004
Comments
Waiting for input from @kyukhin, @Totktonada, @Gerold103, @kostja |
We discussed it voicely with @igormunkin already, I'm okay. How many persons are necessary to form a quorum here? |
I am against so long names. Test-run barely can print |
@Gerold103 Are you propose to file an issue to tarantool/tarantool (or tarantool/luajit?) for each problem that is discussed within an LuaJIT / OpenResty / luavela / moonjit issue? Is it worth even if we'll just cherry-pick an existing commit from some of those repositories? Are there any other gains we'll get with this process other then good test-run output? Are there any other problems with Igor's proposal if we'll adjust test-run output? |
I propose you to think more on the new naming schema, and fix the test-run output. At least you could come up with shorter names such as |
So hot discussion :) I don't mind against short names, however personally I prefer to don't abbreviate things if possible, except maybe most common cases. Anyway, this is not a problem: test-run can be adjusted easily. Your opinion looks as a personal taste, just like my taste to avoid abbreviations.
It was unclear what do you propose: if you have objections, then you should describe your variant, right? |
Well, I was asked to 'give input', and I gave it - I didn't like the proposed solution. After you asked what do I propose - I started thinking about it and gave a few ideas such as use shorter repo names. |
As about me, I'd prefer the following format:
|
Observed during another review:
https://lists.tarantool.org/pipermail/tarantool-patches/2020-January/013595.html |
I like this idea. Let's make 2-letters optional non-tarantool repo reference. Examples:
|
Now we use the following convention within tarantool/luajit repository:
I guess the question is resolved: there is nothing more to discuss and we can finally update the documentation. @lenkis Are there any questions here? |
Considering the existing Lua style guide there is no mention for our test naming policy. This led to a little arguing in our patch list.
@Gerold103 claimed that we agreed to the following some time ago:
However, since we backport bugs related to the issues from other queues, the
gh-####
prefix is ambigious. Thereby I guess the following pattern is the most convenient one for LuaJIT related tests:Here are some examples:
LuaJIT-505-fold-bug-in-string-find.test.lua
tarantool-3196-bug-with-zero-hash-strings.test.lua
@kyukhin, @Totktonada, @Gerold103, @kostja, please dump your thoughts related to the naming policy here for the further Lua style guide amending.
Furthermore, all existing tests in LuaJIT suite seem to be written considering the current guideline and violate several practices mentioned by @Totktonada in the review:
Please consider applying these comments to the example in out style guide.
The text was updated successfully, but these errors were encountered: