-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
t/t0014: fix: eliminate additional lines from trace #2655
Conversation
@dscho and I had some prior discussion about this issue in the comments of #2495. I think we shouldn't look for busybox commands that start with Your approach of filtering more strictly certainly narrows down what this test does to be closer to it's original intention, though. |
I just wanted the test to work and not crap out on aditional trace information, whatever that is. The sed command aims for the trace of the argument from run_command, so... why not aim for it directly? |
I wondered why the CI builds don't fail. After a while I figured it out: But yes, I still think that it would be a lot better to turn this into a config option that piggy-backs onto the "very early" config in |
Now. All very well, but what about all the unknown cases due to future structural changes? The test shouldn‘t rely on getting only one line with run_command from trace. I mean, good that CI didn’t have the issue, *bad* that you have the issue on a windows box trying to do development (or whatever) for at least 6 months now. It should be portable code if possible.
Von meinem iPhone gesendet
… Am 02.06.2020 um 22:44 schrieb Johannes Schindelin ***@***.***>:
I wondered why the CI builds don't fail. After a while I figured it out: busybox.exe is missing when those tests are run, therefore this line is simply not printed.
But yes, I still think that it would be a lot better to turn this into a config option that piggy-backs onto the "very early" config in trace2_initialize().
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
What I am trying to say is: I'd rather focus on fixing the underlying issue than on some fix that ignores the actual problem: that line that your patch excludes, that line never should be printed in the first place. |
Agreed.
…------ Originalnachricht ------
Von: "Johannes Schindelin" <[email protected]>
An: "git-for-windows/git" <[email protected]>
Cc: "Jens Glathe" <[email protected]>; "Author"
<[email protected]>
Gesendet: 03.06.2020 08:32:20
Betreff: Re: [git-for-windows/git] t/t0014: fix: eliminate additional
lines from trace (#2655)
What I am trying to say is: I'd rather focus on fixing the underlying
issue than on some fix that ignores the actual problem: this line that
your patch excludes, that line never should be printed in the first
place.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2655 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH5GA6E7EXWCFQTSHTWX2TLRUXU7JANCNFSM4NQVXJOQ>.
|
For some reason, this test case was indented with 4 spaces instead of 1 horizontal tab. The other test cases in the same test script are fine. Signed-off-by: Jens Glathe <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
trace on git for windows delivers extra info which makes test 'run-command formats empty args properly' fail: $ cat actual.raw 10:49:28.858579 exec-cmd.c:237 trace: resolved executable dir: C:/git-sdk-64/mingw64/bin 10:49:28.872991 git.c:702 trace: exec: git-frotz a '' b ' ' c 10:49:28.872991 run-command.c:663 trace: run_command: git-frotz a '' b ' ' c 10:49:28.872991 run-command.c:663 trace: run_command: 'C:\git-sdk-64\mingw64\bin\busybox.exe' --help git: 'frotz' ist kein Git-Befehl. Siehe 'git --help'. sed delivers 2 lines back. increase the recognition string Signed-off-by: Jens Glathe <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
@jglathe thank you for contributing this fix. I had hoped to get around doing something more concrete about the BusyBox story, but obviously did not find the time. Therefore, I (finally!) admit that it is better to have your patch than no solution for the bug at all. Please accept my apologies for taking so long to come around. |
…xtra_info t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
…xtra_info t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
…xtra_info t/t0014: fix: eliminate additional lines from trace
…xtra_info t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
t/t0014: fix: eliminate additional lines from trace
…xtra_info t/t0014: fix: eliminate additional lines from trace
…xtra_info t/t0014: fix: eliminate additional lines from trace
trace on git for windows delivers extra info which makes test
'run-command formats empty args properly' fail:
$ cat actual.raw
10:49:28.858579 exec-cmd.c:237 trace: resolved executable dir: C:/git-sdk-64/mingw64/bin
10:49:28.872991 git.c:702 trace: exec: git-frotz a '' b ' ' c
10:49:28.872991 run-command.c:663 trace: run_command: git-frotz a '' b ' ' c
10:49:28.872991 run-command.c:663 trace: run_command: 'C:\git-sdk-64\mingw64\bin\busybox.exe' --help
git: 'frotz' ist kein Git-Befehl. Siehe 'git --help'.
sed delivers 2 lines back. increase the recognition string