Skip to content

Conversation

@junngo
Copy link
Contributor

@junngo junngo commented Oct 23, 2025

I added individual job log entries under the “Log parsing status” section to make each item easier to distinguish.

before:
before_Log_parsing_status
after:
after_Log_parsing_status

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

@junngo junngo force-pushed the display-job-log-status branch from 71d9917 to 7f28a13 Compare October 23, 2025 13:29
@gmierz gmierz self-requested a review October 23, 2025 14:41
Copy link
Collaborator

@gmierz gmierz left a 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.

@junngo junngo force-pushed the display-job-log-status branch 2 times, most recently from 8069226 to e1a86ac Compare October 24, 2025 14:01
Copy link
Contributor Author

@junngo junngo left a 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.

Copy link
Collaborator

@gmierz gmierz left a 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.

@junngo junngo force-pushed the display-job-log-status branch from e1a86ac to 4e467f4 Compare October 27, 2025 15:28
{/* Raw Log */}
<LogItem
logUrls={logUrlsUseful}
logUrls={logUrls}
Copy link
Contributor Author

@junngo junngo Oct 27, 2025

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

Copy link
Collaborator

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:

Copy link
Collaborator

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.

Copy link
Contributor Author

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 :)

@junngo junngo force-pushed the display-job-log-status branch from 4e467f4 to fb9a38b Compare October 27, 2025 16:02
const { logUrls, logViewerUrl, logViewerFullUrl } = props;
const logUrlsUseful = logUrls.filter(
(logUrl) => logUrl.name !== 'perfherder-data-resource-usage.json',
(logUrl) => !logUrl.name.startsWith('perfherder-data'),
Copy link
Contributor Author

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.

Copy link
Collaborator

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:

and "perfherder-data" in artifact_link

Copy link
Contributor Author

@junngo junngo Oct 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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.

@junngo junngo force-pushed the display-job-log-status branch from fb9a38b to eff4f92 Compare October 28, 2025 13:52
@junngo junngo force-pushed the display-job-log-status branch from eff4f92 to 923c4dc Compare October 28, 2025 14:30
Copy link
Collaborator

@gmierz gmierz left a 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!

@gmierz gmierz merged commit 885dc00 into mozilla:master Oct 28, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants