-
Notifications
You must be signed in to change notification settings - Fork 191
Add workflow payload compression encoder #526
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
Changes from 15 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
f1d8248
Add workflow payload compression encoder
mistral-vibe a466079
Remove unused workflow encoding metadata
mistral-vibe 18ff480
Clean up workflow compression encoder
mistral-vibe a647ba6
Store workflow compression config in metadata
mistral-vibe 50ec6c7
Restore workflow event payload metadata encoding
mistral-vibe 7cb8174
Consolidate workflow payload encoding paths
mistral-vibe c78d437
Keep workflow compression payloads self-describing (#534)
lucasmrdt 8924e8c
temp: default payload compression on for staging preview
mistral-vibe 00b665f
Lower default compression threshold from 1MB to 1KB
mistral-vibe 45a8cfb
Revert compression threshold back to 1MB
mistral-vibe b9a5db7
Merge branch 'main' into vibe/workflow-payload-compression-a9710d
lucasmrdt 798282b
Merge branch 'main' into vibe/workflow-payload-compression-a9710d
mistral-vibe 37d843a
Use msgpack for compressed workflow payloads (#546)
lucasmrdt 806cc20
Merge branch 'main' into vibe/workflow-payload-compression-a9710d
lucasmrdt 8a4f680
Fix msgpack return typing
mistral-vibe a8271b2
Address workflow compression review comments
mistral-vibe 34ca677
Merge main into workflow compression branch
mistral-vibe 722d926
Clarify workflow event payload encoding
mistral-vibe 0ed8b7c
Revert "Clarify workflow event payload encoding"
mistral-vibe 9563c15
Make msgpack a workflow compression extra
mistral-vibe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,6 +11,7 @@ | |
| "offloaded", | ||
| "encrypted", | ||
| "encrypted-partial", | ||
| "compressed", | ||
| ], | ||
| UnrecognizedStr, | ||
| ] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| from __future__ import annotations | ||
|
|
||
| from typing import Any | ||
|
|
||
|
|
||
| class InMemoryBlobStorage: | ||
| def __init__(self) -> None: | ||
| self.blobs: dict[str, bytes] = {} | ||
|
|
||
| async def __aenter__(self) -> "InMemoryBlobStorage": | ||
| return self | ||
|
|
||
| async def __aexit__(self, *_args: Any) -> None: | ||
| pass | ||
|
|
||
| async def upload_blob(self, key: str, content: bytes) -> str: | ||
| self.blobs[key] = content | ||
| return key | ||
|
|
||
| async def get_blob(self, key: str) -> bytes: | ||
| return self.blobs[key] | ||
|
|
||
| async def get_blob_properties(self, key: str) -> dict[str, Any] | None: | ||
| if key not in self.blobs: | ||
| return None | ||
| return {"size": len(self.blobs[key]), "last_modified": "test"} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.