-
Notifications
You must be signed in to change notification settings - Fork 372
Bug 1995932 - Add detailed log parsing status display in job detail panel #9031
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
Conversation
71d9917 to
7f28a13
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.
Thanks for the quick fix @junngo! We'll also need to handle this here:
| {!jobLogsAllParsed && <ListItem text="Log parsing not complete" />} |
We should double-check to see if there's any other code that is checking if all the job logs are parsed and exclude the perfherder artifacts from them.
8069226 to
e1a86ac
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.
Thanks for the review :) If there’s anything else that needs to be changed, please feel free to let me know.
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.
Looks much better now, thanks! I noticed that @Archaeopteryx landed a patch here that prevents a perfherder-data artifact from being interpreted as a log: e231e99
It looks like it's only targetting a specific artifact though so it would be good to modify that to catch any perfherder-data artifact.
e1a86ac to
4e467f4
Compare
| {/* Raw Log */} | ||
| <LogItem | ||
| logUrls={logUrlsUseful} | ||
| logUrls={logUrls} |
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.
Hi @Archaeopteryx, Sorry for the inconvenience. I've reverted the previous change. The filtered list is now injected via the code below [0][1]
If this doesn’t meet our standards, please feel free to leave a comment and I’ll update accordingly.
Thanks :)
[0]
ui/job-view/details/summary/SummaryPanel.jsx
[1]
https://github.com/mozilla/treeherder/pull/9031/files#diff-fa5ec09ffccd4ca6ea0a2554ffb352281db4896b75380d66deaf105c6f332bb8R71
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.
@junngo I think we still want to keep these changes since I don't see any modifications to where this LogUrls method is being used. We just need to make it apply to all perfherder-data artifacts.
See here for where this is being used:
| <LogUrls |
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.
Hi @junngo . The perfherder artifact had to be ignored by me because with more than one artifact treated as log, the buttons to open the parsed or plain text log(s) turn from buttons into button with menus and require more clicks for the desired action. Investigation of issues with the these logs is a common task of code sheriffs.
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.
Thanks, got it! I’ll make sure to keep ignoring the perfherder artifacts in this menu going forward :)
4e467f4 to
fb9a38b
Compare
| const { logUrls, logViewerUrl, logViewerFullUrl } = props; | ||
| const logUrlsUseful = logUrls.filter( | ||
| (logUrl) => logUrl.name !== 'perfherder-data-resource-usage.json', | ||
| (logUrl) => !logUrl.name.startsWith('perfherder-data'), |
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.
@gmierz Thanks for pointing that out :)
I updated the filtering logic to exclude all perfherder-data* artifacts instead of only perfherder-data-resource-usage.json.
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.
Ah sorry Jun, but I just noticed that we'll want to change this, and other checks to use includes instead of startswith so that we're consistent with how we pick up these artifacts here:
treeherder/treeherder/etl/job_loader.py
Line 192 in e231e99
| and "perfherder-data" in artifact_link |
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.
No problem :)
Would it make sense to use includes here[0][1] as well for consistency?
[0]
https://github.com/mozilla/treeherder/pull/9031/files#diff-fa5ec09ffccd4ca6ea0a2554ffb352281db4896b75380d66deaf105c6f332bb8R30
[1]
https://github.com/mozilla/treeherder/pull/9031/files#diff-fa5ec09ffccd4ca6ea0a2554ffb352281db4896b75380d66deaf105c6f332bb8R33
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.
Thanks, sparky :) I updated using includes for consistency.
fb9a38b to
eff4f92
Compare
eff4f92 to
923c4dc
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.
r+ looks great now, thanks @junngo!
I added individual job log entries under the “Log parsing status” section to make each item easier to distinguish.
before:


after:
bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1995932