-
Notifications
You must be signed in to change notification settings - Fork 516
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
mc sends unnecessary status messages to stdout when it's a TTY #3499
Comments
Doesn't seem to be the case @kevinlul ? |
Is this a fresh environment? If the files already exist in |
Yes @kevinlul
|
As per the code it should never be printed
Are you sure your container has pulled the latest |
I should clarify that I'm running this against MinIO specifically and not the local file system. When I run your commands, which deal with the local file system, the output is okay. However, if I try it against a cluster then I get the message output. It seems like the position of the
|
@kevinlul yes position matters and we can't do much about it - its a Limitation of Go flag parsing. |
It doesn't matter |
So provide the flag in the beginning and we won't show the message that's it @kevinlul |
If this is intended behaviour then maybe this is a better topic for documentation? I learned of the flag from the admin client docs, section 6, and I really did not expect this at all. In the two ways it is used in that part of the docs, |
Not my intention TBH, it's a fundamental issue of Go parser position matters for behavior. So use it the way I just showed you, documentation can follow later. |
Alright. If the Go parser position issue cannot be worked around, I suggest sending diagnostic messages to stderr if possible to avoid clobbering regular output. I will keep in mind to put the |
Add dataset-groups relationship Add admin-only query string parameter to assume user identity for /api/datasets, /api/families, /api/participants, /api/analyses Filter the following endpoints by group permissions for the current user or assumed user identity (#117) * GET /api/datasets * GET /api/datasets/:id * PATCH /api/datasets/:id * GET /api/participants * PATCH /api/participants/:id * GET /api/families * GET /api/families/:id * PATCH /api/families/:id * GET /api/tissue_samples/:id * GET /api/analyses * GET /api/analyses/:id * PATCH /api/analyses/:id General cleanup * Fix up some endpoint names * Prefer first_or_404 to one_or_none, except if query uses contains_eager * Avoid referring to the db model as "table" in PATCH endpoints Update docs for how to run tests offline to avoid inconsistent behaviour madmin: put the --json flag first to avoid future grief with minio/mc#3499 Co-authored-by: Kevin Lu <6320810+kevinlul@users.noreply.github.com>
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions. |
Is the plan still to update the docs for this issue? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions. |
👀 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions. |
Is the plan still to update the docs for this issue? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions. |
The next-gen docs have already addressed this - the newer structure prioritizes optimal flag positioning We are building a redesigned replacement for docs.min.io - I have avoided completely dropping docs.min.io in the meantime because there is some information there that is still helpful. Instead it seems produent to simply redirect the pages that are no longer serving a useful purpose, such as the minio client quickstart guides and the admin quickstart guide. Rewriting the existing examples on the legacy docs would not be the best use of our resources. Please follow minio/docs#454 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions. |
Expected behavior
mc should behave consistently for testing so its output is parseable and informative logs shouldn't be in stdout but stderr
Actual behavior
On a first run in a tty, mc dumps versions of this to stdout before the proper output of its command, even with
--json
and--quiet
. This makes it difficult to test scripts reproducibly that expect structured output.Steps to reproduce the behavior
Example docker-compose
docker-compose up
: mc exits normally as expected, without any outputdocker-compose run --rm -T mc
: mc exits normally as expected, without any output since there is no TTYdocker-compose run --rm mc
: mc dumps the above message to stdoutmc --version
I found this to occur in
and
System information
I've confirmed this to happen in Docker environments on WSL2, macOS, and Linux.
The text was updated successfully, but these errors were encountered: