Skip to content

Conversation

@MatthieuDartiailh
Copy link
Owner

@MatthieuDartiailh MatthieuDartiailh commented Jun 23, 2025

Some backward incompatible changes are also introduce regarding:

  • BINARY_OP that now requires a BinaryOp object as argument (for Instr)
  • FORMAT_VALUE that now requires a FormatValue object as argument
    This align the behavior of those instructions with others using an enum and hence requiring one.

@codecov-commenter
Copy link

codecov-commenter commented Jun 23, 2025

Codecov Report

❌ Patch coverage is 81.81818% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.43%. Comparing base (89f2451) to head (dc7da4d).

Files with missing lines Patch % Lines
src/bytecode/concrete.py 50.00% 5 Missing and 3 partials ⚠️
src/bytecode/instr.py 89.83% 5 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #166      +/-   ##
==========================================
- Coverage   96.14%   95.43%   -0.71%     
==========================================
  Files           7        7              
  Lines        2074     2146      +72     
  Branches      474      481       +7     
==========================================
+ Hits         1994     2048      +54     
- Misses         42       56      +14     
- Partials       38       42       +4     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@MatthieuDartiailh
Copy link
Owner Author

MatthieuDartiailh commented Jun 29, 2025

3.14 tests are passing locally with 3.14.0b3 without coverage measurement

@makslevental
Copy link
Contributor

makslevental commented Jul 24, 2025

Hey just curious is this ready to land? Anything I can do to help it along?

@MatthieuDartiailh
Copy link
Owner Author

Some test regarding FORMAT_VALUE and BUILD_INTERPOLATION are missing. The changelog need to be updated too and I did not review the docs. If you want to help with the tests you are welcome.

@makslevental
Copy link
Contributor

Will do - will send soon :)

@MatthieuDartiailh
Copy link
Owner Author

Actually tests are also missing for validation of the argument of the following instructions: BINARY_OP, FORMAT_VALUE, SPECIAL_METHOD, COMMON_CONSTANT, LOAD_SMALL_INT
For this you can extend: test_instr.py::InstrTest.test_invalid_arg

Comment on lines +212 to +264
if opcode.opmap[name] in FORMAT_VALUE_OPS:
Instr(name, (True, FormatValue.ASCII))
else:
Instr(name, (True, "arg"))
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI you did/do already have a test for arg validation for FORMAT_VALUE :)

Copy link
Contributor

Choose a reason for hiding this comment

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

Add some more tests anyway #167

@MatthieuDartiailh MatthieuDartiailh merged commit 12df292 into main Aug 21, 2025
14 checks passed
@MatthieuDartiailh MatthieuDartiailh deleted the 3.14-support branch August 21, 2025 08:20
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