Skip to content
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

Bug 1901263: Add profileGroupId to schemas. #822

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

Mossop
Copy link
Contributor

@Mossop Mossop commented Jul 18, 2024

This adds the profileGroupId being added to the client side in bug 1901263 to the schemas wherever the clientId is present. I believe that every ping including clientId will include profileGroupId however since the new property is not marked as required in any schema (as it cannot be to avoid breaking older versions of Firefox) if new pings are introduced that do not include the property then it should not break anything.

Checklist for reviewer:

For glean changes:

  • Update templates/include/glean/CHANGELOG.md

For modifications to schemas in restricted namespaces (see CODEOWNERS):

@auto-assign auto-assign bot requested a review from akkomar July 18, 2024 15:25
@Mossop
Copy link
Contributor Author

Mossop commented Jul 18, 2024

I'm unsure what the failing test is about, I was seeing that locally too both with and without my change.

Copy link
Contributor

@akkomar akkomar left a comment

Choose a reason for hiding this comment

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

This changes the template, but misses rendered schemas. Can you also rebuild schemas following https://github.com/mozilla-services/mozilla-pipeline-schemas?tab=readme-ov-file#adding-a-new-schema?

@Mossop
Copy link
Contributor Author

Mossop commented Jul 24, 2024

This changes the template, but misses rendered schemas. Can you also rebuild schemas following https://github.com/mozilla-services/mozilla-pipeline-schemas?tab=readme-ov-file#adding-a-new-schema?

Done, and added to the validations. I'm completely unable to run tests for some reason though so I'm not sure if they are passing.

@akkomar akkomar mentioned this pull request Jul 24, 2024
5 tasks
@akkomar
Copy link
Contributor

akkomar commented Jul 24, 2024

Done, and added to the validations. I'm completely unable to run tests for some reason though so I'm not sure if they are passing.

Thank you. Integration tests do not run for forked PRs, I'm triggering them manually here.

There was an issue with dependencies causing tests to fail that I just fixed in #823. Can you rebase this PR on the latest main?

This adds the `profileGroupId` added to the client side in bug 1901263
to the schemas wherever the `clientId` is present. I believe that every
ping including `clientId` will include `profileGroupId` however since
the new property is not marked as required in any schema (as it cannot
be to avoid breaking older versions of Firefox) if new pings are
introduced that do not include the property then it should not break
anything.
@Mossop
Copy link
Contributor Author

Mossop commented Jul 25, 2024

Ok rebasing and switching to Linux allowed me to run the tests locally and they passed

@akkomar
Copy link
Contributor

akkomar commented Jul 25, 2024

Thank you, this is ready to be merged now.

@chutten just to double check since you seem to have been involved in the implementation - is this schema change good to be merged and land in BQ now?

@akkomar akkomar requested a review from chutten July 25, 2024 10:04
Copy link
Contributor

@chutten chutten left a comment

Choose a reason for hiding this comment

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

@chutten just to double check since you seem to have been involved in the implementation - is this schema change good to be merged and land in BQ now?

Adding an optional field sounds safe, and the client-side changes are lined up and ready to land as this does. So from my POV it seems good to merge.

@akkomar akkomar merged commit dcdbfbb into mozilla-services:main Jul 25, 2024
2 checks passed
@Mossop
Copy link
Contributor Author

Mossop commented Jul 25, 2024

Thanks, how long does it take for this to go to prod, or rather when can I land the client side pieces?

@akkomar
Copy link
Contributor

akkomar commented Jul 25, 2024

This change should land in BigQuery tomorrow.
You do not need to wait with client side pieces. Since additionalProperties are not set to false in https://github.com/mozilla-services/mozilla-pipeline-schemas/blob/main/schemas/telemetry/main/main.4.schema.json#L25, ping with this new field would pass validation and its value would end up in additionalProperties in BQ table.

dataops-pipeline-schemas added a commit that referenced this pull request Jul 26, 2024
5fd0d85	2024-07-25 17:36:47 -0400	Bug 1907663 - Add scale factor fields to gfx (#824)
dcdbfbb	2024-07-25 18:43:08 +0200	Bug 1901263: Add `profileGroupId` to schemas. (#822)
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