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
qa/standalone/scrub/osd-scrub-repair: no -y to diff #18079
Conversation
The testing Label |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you run the test in a wide terminal you can see more of the line. I suggest that we change the value of DIFFCOLOPTS to reflect how we want to diff to be generated. It is possible that under circumstances like a terminal width below a certain value we don't put the -y in. I'd prefer we don't remove ${DIFFCOLOPTS} as the way to change this.
@liewegas The value of DIFFCOLOPTS is set in ceph-helpers.sh. I started using -y because it was hard to determine where the differences were since the line numbers don't mean anything with the inline JSON. We could replace the -y with much more context (-C) or as I previously suggested suppress the -y with narrow terminal widths. We could also allow an environment variable if set to replace the DIFFCOLOPTS. |
In this case there's no terminal.. it was run via teuthology, and there wasn't enough info to tell what was different. How about leaving the env var in there, but don't define it in the file, so when running it interactively you can add -y (or whatever)? |
@liewegas @dzafman |
3 suggestions.
DIFFCOLOPTS="-y -W 400" ../qa/run-standalone.sh osd-scrub-repair.sh
I assume the teuthology run had a diff -y without a -W showing that there was no terminal.
I like this one since we can see the complete lines and when -y is available where those differences are. |
With -y you can't see the entire line when it is long, which is needed to identify the diff failure in http://tracker.ceph.com/issues/21618 Instead, let the interactive user specify the option if they want it. Signed-off-by: Sage Weil <sage@redhat.com>
Opting for (1) for simplicity! |
@liewegas Maybe I'll make the changes later if osd-scrub-repair.sh and/or osd-scrub-snaps.sh tests are updated. |
With -y you can't see the entire line when it is long, which is
needed to identify the diff failure in
http://tracker.ceph.com/issues/21618
Signed-off-by: Sage Weil sage@redhat.com