Skip to content

feat(back): Added structured logs when available in the list of logs …#9473

Open
benoitgoupilleau wants to merge 1 commit into
mozilla:masterfrom
benoitgoupilleau:feature/AddStructuredLogsInLinks
Open

feat(back): Added structured logs when available in the list of logs …#9473
benoitgoupilleau wants to merge 1 commit into
mozilla:masterfrom
benoitgoupilleau:feature/AddStructuredLogsInLinks

Conversation

@benoitgoupilleau
Copy link
Copy Markdown
Contributor

Before being parsed, structured logs should be added to the list of logs for a job.
This change adds it to the list when it exists

@benoitgoupilleau benoitgoupilleau force-pushed the feature/AddStructuredLogsInLinks branch from 321d8f2 to f67608d Compare May 4, 2026 07:32
"queue",
"v1",
f"task/{{taskId}}/runs/{{runId}}/artifacts/{artifact_path}",
).format(taskId=task_id, runId=run_id),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is there a reason the variable substitution is not part of the f-string but an additional format call?

name = artifact.get("name", "")
if name.endswith("_raw.log"):
logs.append(_ref("structured_log", name))
return logs
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please check the frontend only see one log. When the perf team added one additional artifact to parse some time ago, the log buttons turned into menus because of that. This should be avoided.

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.

2 participants