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

feat: restrict result tag sizes to 256 bytes #596

Merged
merged 2 commits into from
Oct 28, 2024
Merged

feat: restrict result tag sizes to 256 bytes #596

merged 2 commits into from
Oct 28, 2024

Conversation

ss2165
Copy link
Member

@ss2165 ss2165 commented Oct 25, 2024

Closes #595

@ss2165 ss2165 marked this pull request as ready for review October 25, 2024 13:40
@ss2165 ss2165 requested a review from a team as a code owner October 25, 2024 13:40
@ss2165 ss2165 requested a review from mark-koch October 25, 2024 13:40
@codecov-commenter
Copy link

codecov-commenter commented Oct 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.59%. Comparing base (242fa44) to head (674bf77).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #596   +/-   ##
=======================================
  Coverage   91.58%   91.59%           
=======================================
  Files          59       59           
  Lines        6311     6314    +3     
=======================================
+ Hits         5780     5783    +3     
  Misses        531      531           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -233,6 +233,9 @@ def check(self, args: list[ast.expr], ty: Type) -> tuple[ast.expr, Subst]:
raise InternalGuppyError(f"Invalid array type args: {type_args}")


TAG_MAX_LEN = 1 << 8
Copy link
Member Author

Choose a reason for hiding this comment

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

TODO: pick something lower to allow room for prefixes lower down the stack

Copy link
Collaborator

@mark-koch mark-koch left a comment

Choose a reason for hiding this comment

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

Can you add a test for the new error? The other result tests are in tests/error/misc_errors

@ss2165 ss2165 enabled auto-merge October 28, 2024 12:12
@ss2165 ss2165 added this pull request to the merge queue Oct 28, 2024
Merged via the queue into main with commit 4e8e00f Oct 28, 2024
3 checks passed
@ss2165 ss2165 deleted the ss/tag-size branch October 28, 2024 12:17
github-merge-queue bot pushed a commit that referenced this pull request Nov 12, 2024
🤖 I have created a release *beep* *boop*
---


## [0.13.0](v0.12.2...v0.13.0)
(2024-11-12)


### ⚠ BREAKING CHANGES

* `prelude` module renamed to `std`

### Features

* add `qubit` discard/measure methods
([#580](#580))
([242fa44](242fa44))
* Add `SizedIter` wrapper type
([#611](#611))
([2e9da6b](2e9da6b))
* conventional results post processing
([#593](#593))
([db96224](db96224))
* Improve compiler diagnostics
([#547](#547))
([90d465d](90d465d)),
closes [#551](#551)
[#553](#553)
[#586](#586)
[#588](#588)
[#587](#587)
[#590](#590)
[#600](#600)
[#601](#601)
[#606](#606)
* restrict result tag sizes to 256 bytes
([#596](#596))
([4e8e00f](4e8e00f)),
closes [#595](#595)


### Bug Fixes

* Mock guppy decorator during sphinx builds
([#622](#622))
([1cccc04](1cccc04))


### Documentation

* Add DEVELOPMENT.md
([#584](#584))
([1d29d39](1d29d39))
* Fix docs build ([#639](#639))
([bd6011c](bd6011c))


### Miscellaneous Chores

* Manually set last release commit
([#643](#643))
([b2d569b](b2d569b))


### Code Refactoring

* rename prelude to std
([#642](#642))
([1a68e8e](1a68e8e))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: Agustín Borgna <[email protected]>
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.

Restrict result tags to 200 bytes
4 participants