Skip to content

feat(profiles): accept compressed data #92003

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

Merged
merged 2 commits into from
May 22, 2025

Conversation

john-z-yang
Copy link
Member

@john-z-yang john-z-yang commented May 21, 2025

hack to start migrating profiles to zlib compression. This lets the function support both kinds of encoded strings (compressed and uncompressed)

The rollout plan is as follows:

  1. Rollout this change
  2. Rollout the pr where we can compress a portion of the profile activations
  3. Once 100% of all profiles activation is compressed, we can remove the delimiter symbol.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label May 21, 2025
@john-z-yang john-z-yang force-pushed the john/profiles-accept-compressed branch from d0201c5 to 8d216b6 Compare May 21, 2025 01:21
@getsentry getsentry deleted a comment from codecov bot May 21, 2025

def decode_payload(encoded: str) -> dict[str, Any]:

def decode_payload(encoded: str | bytes) -> dict[str, Any]:
Copy link
Member

Choose a reason for hiding this comment

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

We could eliminate bytes here and in the task signature as the profiles consumer is always sending str now.

Copy link
Member Author

@john-z-yang john-z-yang May 21, 2025

Choose a reason for hiding this comment

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

Sounds good, done. Removed tests that encodes into bytes as well

@john-z-yang john-z-yang force-pushed the john/profiles-accept-compressed branch from 8d216b6 to c6cafe6 Compare May 21, 2025 18:44
@john-z-yang john-z-yang requested a review from markstory May 21, 2025 18:48
@john-z-yang john-z-yang marked this pull request as ready for review May 21, 2025 18:48
@john-z-yang john-z-yang requested a review from a team as a code owner May 21, 2025 18:48
@john-z-yang john-z-yang force-pushed the john/profiles-accept-compressed branch from c6cafe6 to 1a6b2d3 Compare May 21, 2025 20:26
@john-z-yang john-z-yang merged commit e1308a3 into master May 22, 2025
60 checks passed
@john-z-yang john-z-yang deleted the john/profiles-accept-compressed branch May 22, 2025 15:27
roaga pushed a commit that referenced this pull request May 22, 2025
hack to start migrating profiles to zlib compression. This lets the
function support both kinds of encoded strings (compressed and
uncompressed)

The rollout plan is as follows:
1. Rollout this change
2. Rollout the pr where we can compress a portion of the profile
activations
3. Once 100% of all profiles activation is compressed, we can remove the
delimiter symbol.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants