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 1640575 - Move "debug view tagging" to Rust #998

Merged
merged 5 commits into from
Jun 25, 2020

Conversation

brizental
Copy link
Contributor

@brizental brizental commented Jun 23, 2020

Fixes Bug 1640575.

As a bonus also fixes (or at least partially fixes) Bug 1605097, because persisting the tag was the best way I found to move it to Rust. Not anymore, this was defered to a later PR. Because the tag was not being persisted any longer, I had to drop the commit where I removed the debug view tag management from python in favour of the rust implementation. Since python instantiates a standalone upload manager to do the upload, without persisting the tag we don't pck up on it during upload. When I work on the PR to persist the headers I can bring the python commit back.

I realized after the fact that this could be broken down into smaller PRs, which can stil be done if you prefer since this is already broken down into coherent commits. Please let me know and I'll close this if necessary.

@auto-assign auto-assign bot requested a review from mdboom June 23, 2020 10:35
@brizental brizental requested a review from Dexterp37 June 23, 2020 11:15
Copy link
Contributor

@Dexterp37 Dexterp37 left a comment

Choose a reason for hiding this comment

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

Thanks @brizental !I took an high level look first, there's two major request I have:

  • let's defer updating the serialization format;
  • let's not provide a public API for this

What do you think?

glean-core/src/lib.rs Show resolved Hide resolved
glean-core/src/util.rs Outdated Show resolved Hide resolved
glean-core/src/upload/request.rs Show resolved Hide resolved
glean-core/src/lib.rs Show resolved Hide resolved
glean-core/src/ping/mod.rs Outdated Show resolved Hide resolved
glean-core/preview/src/lib.rs Outdated Show resolved Hide resolved
glean-core/preview/src/lib.rs Outdated Show resolved Hide resolved
@brizental brizental force-pushed the 1640575-debug-tag branch 2 times, most recently from fd5f5b1 to c79d79e Compare June 23, 2020 14:15
@brizental brizental requested a review from Dexterp37 June 23, 2020 14:16
Copy link
Contributor

@mdboom mdboom left a comment

Choose a reason for hiding this comment

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

This is great. 🐂-idize all the things!

glean-core/ffi/glean.h Outdated Show resolved Hide resolved
glean-core/ffi/src/lib.rs Outdated Show resolved Hide resolved
glean-core/src/lib.rs Show resolved Hide resolved
glean-core/src/upload/mod.rs Outdated Show resolved Hide resolved
@brizental brizental force-pushed the 1640575-debug-tag branch from c79d79e to fa9302c Compare June 24, 2020 08:13
@brizental brizental requested a review from mdboom June 24, 2020 08:15
@brizental brizental force-pushed the 1640575-debug-tag branch from fa9302c to 769bd4c Compare June 24, 2020 08:25
Copy link
Contributor

@Dexterp37 Dexterp37 left a comment

Choose a reason for hiding this comment

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

Looks good to me: let's take the "caching" part to a separate PR. Please let's file follow-ups for all the remaining issues: caching, C# and so on.

@brizental brizental force-pushed the 1640575-debug-tag branch from 769bd4c to 24144f8 Compare June 25, 2020 10:07
Copy link
Contributor

@mdboom mdboom left a comment

Choose a reason for hiding this comment

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

Thanks!

@brizental brizental merged commit b223c6e into mozilla:main Jun 25, 2020
@brizental brizental deleted the 1640575-debug-tag branch June 25, 2020 15:08
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.

4 participants