Skip to content

Bug 2062732 - Fix submit_time when using replicates=true - #9775

Open
mstange wants to merge 1 commit into
mozilla:masterfrom
mstange:push-tklxqwxqtqop
Open

Bug 2062732 - Fix submit_time when using replicates=true#9775
mstange wants to merge 1 commit into
mozilla:masterfrom
mstange:push-tklxqwxqtqop

Conversation

@mstange

@mstange mstange commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

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

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.

The fix is super short; most of this patch is the test.

r? @gmierz

@netlify

netlify Bot commented Aug 11, 2026

Copy link
Copy Markdown

Deploy Preview for treeherder ready!

Name Link
🔨 Latest commit 50191e4
🔍 Latest deploy log https://app.netlify.com/projects/treeherder/deploys/6a7b67bd2ab5d8000828fab7
😎 Deploy Preview https://deploy-preview-9775--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.

@mstange mstange changed the title Fix submit_time when using replicates=true Bug 2062732 - Fix submit_time when using replicates=true Aug 11, 2026
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.
@mstange

mstange commented Aug 11, 2026

Copy link
Copy Markdown
Contributor Author

I still see "submit_time": null on the deploy preview - is the preview only for the front-end code and not for the server-side python code? https://deploy-preview-9775--treeherder.netlify.app/api/performance/summary/?repository=mozilla-central&framework=1&signature=301819&all_data=true&startday=2026-08-01T00:00:00&endday=2026-08-08T00:00:00&replicates=true

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