Closed johnbent closed 1 year ago
All modified lines are covered by tests :white_check_mark:
Comparison is base (
8972468
) 91.33% compared to head (68978e8
) 91.37%.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
OK. I believe I correctly everything requested. Please LMK. Thanks for great feedback!
Regression tests also need updating
Cool. All tests passed! I might actually be getting better at this whole git/github thing!
Is it a thead thing?
From: John Bent @.> Reply-To: mar-file-system/GUFI @.> Date: Thursday, October 5, 2023 at 8:47 PM To: mar-file-system/GUFI @.> Cc: Subscribed @.> Subject: [EXTERNAL] Re: [mar-file-system/GUFI] Verbose stats and verbose error message (PR #142)
@johnbent commented on this pull request.
@@ -133,6 +139,9 @@ def run(argv, config_path):
paths = [os.path.normpath(os.path.sep.join([config.indexroot(), path]))
for path in args.paths]
@calccryptohttps://urldefense.com/v3/__https:/github.com/calccrypto__;!!Bt8fGhp8LhKGRg!AWSbL2p7cEdx_LMkbcZeA1z1RvXCvYUogioJFZ4kfibr8QbGRG-uDLmFcq55h1uq-B73VSpdQEnSK29G-yMnAyeM$ , here is where the verbose print is happening in gufi_stat. It's before the call to subprocess so I'm confused as to why the verbose is printed after the output. When I run ./test/regression/gufi_stat.shhttps://urldefense.com/v3/__http:/gufi_stat.sh__;!!Bt8fGhp8LhKGRg!AWSbL2p7cEdx_LMkbcZeA1z1RvXCvYUogioJFZ4kfibr8QbGRG-uDLmFcq55h1uq-B73VSpdQEnSK29G-1UWtDhZ$, it does show it backwards with the output first and then the verbose printout. But when I run the command at the command line, it shows the verbose printout before the output as expected. So, I'll keep looking but this is confusing.
β Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/mar-file-system/GUFI/pull/142*pullrequestreview-1661037349__;Iw!!Bt8fGhp8LhKGRg!AWSbL2p7cEdx_LMkbcZeA1z1RvXCvYUogioJFZ4kfibr8QbGRG-uDLmFcq55h1uq-B73VSpdQEnSK29G-9VqzCNp$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ACZXDGOFORVQAS3ELHG6CUDX55WKNAVCNFSM6AAAAAA5SKGROGVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTMNRRGAZTOMZUHE__;!!Bt8fGhp8LhKGRg!AWSbL2p7cEdx_LMkbcZeA1z1RvXCvYUogioJFZ4kfibr8QbGRG-uDLmFcq55h1uq-B73VSpdQEnSK29G-9N8B2Lz$. You are receiving this because you are subscribed to this thread.Message ID: @.***>
Yeah @garygrider , it was maybe sort of a thread thing. The parent was calling print which is buffered and then the parent was calling subprocess which makes a child and that child did some output which was showing up before the parent's print. But not when the parent was called directly from the command line but only when the script was called by another script. A bit weird but apparently, "This buffering is especially apparent when Python's output is redirected, which may happen when you run the code from another script."
My guess is its python π
From: John Bent @.> Reply-To: mar-file-system/GUFI @.> Date: Thursday, October 5, 2023 at 9:19 PM To: mar-file-system/GUFI @.> Cc: Gary Grider @.>, Mention @.***> Subject: [EXTERNAL] Re: [mar-file-system/GUFI] Verbose stats and verbose error message (PR #142)
@johnbent commented on this pull request.
In test/regression/gufi_stat.expectedhttps://urldefense.com/v3/__https:/github.com/mar-file-system/GUFI/pull/142*discussion_r1348201809__;Iw!!Bt8fGhp8LhKGRg!DP4FfUnzKchVW24a_-6V4FilsSedR3TSqtjXE6a-DHsnKaLujIZfpRoJES_uUqWIMLSiWJL-KIIymAbHZje_y89i$:
+'prefix/.hidden' prefix/.hidden 664 -rw-rw-r-- ? ? 81b4 regular file 9 - 0 1970-01-01 00:00:09 +0000 9 1970-01-01 00:00:09 +0000 9
+GUFI query is
gufi_stat_bin
-f %N %n %a %A %d %D %f %F %m %s %w %W %x %X %y %Y\n
prefix/.hidden
So weird. I just added sys.stdout.flush() to gufi_common.pyhttps://urldefense.com/v3/__http:/gufi_common.py__;!!Bt8fGhp8LhKGRg!DP4FfUnzKchVW24a_-6V4FilsSedR3TSqtjXE6a-DHsnKaLujIZfpRoJES_uUqWIMLSiWJL-KIIymAbHZur5c5gw$ and now suddenly a bunch of tests are failing. I'm looking into it but I'm not sure what's causing these errors.
β Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/mar-file-system/GUFI/pull/142*discussion_r1348201809__;Iw!!Bt8fGhp8LhKGRg!DP4FfUnzKchVW24a_-6V4FilsSedR3TSqtjXE6a-DHsnKaLujIZfpRoJES_uUqWIMLSiWJL-KIIymAbHZje_y89i$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ACZXDGP5KYB4ANMKA25NUJDX552DLAVCNFSM6AAAAAA5SKGROGVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTMNRRGA2TINBXGA__;!!Bt8fGhp8LhKGRg!DP4FfUnzKchVW24a_-6V4FilsSedR3TSqtjXE6a-DHsnKaLujIZfpRoJES_uUqWIMLSiWJL-KIIymAbHZsIKAkcD$. You are receiving this because you were mentioned.Message ID: @.***>
Two small changes here: