-
Notifications
You must be signed in to change notification settings - Fork 385
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
Allow comparison of two report directories #1635
Allow comparison of two report directories #1635
Conversation
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.
Please extend the documentation and the help messages that the base name and the new name can be local directories too.
for res in baseline_dir_results: | ||
if res.report_hash not in new_hashes: | ||
filtered_reports.append(res) | ||
print(base_hashes) |
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.
I think these prints were left from debugging.
3bd65be
to
9fd7d97
Compare
9fd7d97
to
355de6d
Compare
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.
It would be nice to print out the whole path or product url and run name at the end of the comparison output. So the user can see what was compared.
If there is a local report directory with the same name as a run the local directory will be used for comparison and not the remote run at the server.
533aa6d
to
b139ca6
Compare
@gyorb Done. I have also refactored the code a little bit. Now we are handling cases when basename parameter is a report directory and newname is a remote run. I have also added test cases to this. |
b139ca6
to
a574a2c
Compare
a574a2c
to
249ae60
Compare
249ae60
to
c1167dd
Compare
c1167dd
to
f12a4c1
Compare
args.basename, | ||
os.path.abspath(args.newname)) | ||
print_diff_results(reports) | ||
LOG.info("Compared remote run %s and local report directory %s", |
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.
remote run can be multiple runs if a user gave a wildcard pattern like run*
, the printed text should reflect that.
The same issue applies to other places where run names are used for comparison.
It could help if we would print out the matching run names in these cases.
* It is possible to compare two report directory. * Handle cases when basename is a report directory and newname is a remote run. * Filter the results of local comparison. * Test cases for local comparison.
f12a4c1
to
3eb925f
Compare
No description provided.