Skip to content

Bug 2062730 - Return machine_name with each performance summary datum - #9776

Open
mstange wants to merge 2 commits into
mozilla:masterfrom
mstange:push-oxqtzyvpptss
Open

Bug 2062730 - Return machine_name with each performance summary datum#9776
mstange wants to merge 2 commits into
mozilla:masterfrom
mstange:push-oxqtzyvpptss

Conversation

@mstange

@mstange mstange commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Based on #9775.

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

This allows showing per-machine data in the graphs without requiring separate requests for each job's job details.

The potential costs of this change are:

  • Increased database query time
  • Increased response size

The query already looks at job submit times so it's already looking at the right table, so any query time regressions should be minor.
(Claude took a look in more detail and had more elaborate justifications but I didn't understand them so I'm not copying them here.)

The response size grows, but gzip mostly takes care of it because there aren't a lot of different machine names. I measured a 1050-row response as an example, and it grew by 16.8% raw and 3.2% gzipped ("0.6 bytes per row").

r? @gmierz

We were using the key `submit_time` in the hand-built datum dicts,
but then during serialization, `PerformanceDatumSerializer` was
looking for a `job__submit_time` key instead.
That's because we supply `source="job__submit_time"` in the serializer's
constructor.

The mismatch failed silently rather than raising: the field is declared
`required=False, default=None`, so every datum serialized with
`submit_time: null`, which left the graphs view with an Invalid Date for
its retrigger times.

Use `job__submit_time` so that the serializer finds the field.
This allows showing per-machine data in the graphs without requiring
separate requests for each job's job details.

The potential costs of this change are:
- Increased database query time
- Increased response size

The query already looks at job submit times so it's already looking
at the right table, so any query time regressions should be minor.
(Claude took a look in more detail and had more elaborate justifications
but I didn't understand them so I'm not copying them here.)

The response size grows, but gzip mostly takes care of it because there
aren't a lot of different machine names.
I measured a 1050-row response as an example, and it grew by 16.8% raw
and 3.2% gzipped ("0.6 bytes per row").
@netlify

netlify Bot commented Aug 11, 2026

Copy link
Copy Markdown

Deploy Preview for treeherder ready!

Name Link
🔨 Latest commit 39b05f3
🔍 Latest deploy log https://app.netlify.com/projects/treeherder/deploys/6a7b7131ca49850008689a99
😎 Deploy Preview https://deploy-preview-9776--treeherder.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@Archaeopteryx
Archaeopteryx requested a review from gmierz August 12, 2026 16:38
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.

1 participant