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

Backport public support to release-3 #808

Merged
merged 2 commits into from
Nov 29, 2023
Merged

Conversation

LilithHafner
Copy link
Member

Copy link

codecov bot commented Nov 17, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (2ad6ee4) 81.92% compared to head (df2b47d) 82.33%.

Files Patch % Lines
src/compatmacro.jl 95.65% 1 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##           release-3     #808      +/-   ##
=============================================
+ Coverage      81.92%   82.33%   +0.40%     
=============================================
  Files              4        4              
  Lines            791      815      +24     
=============================================
+ Hits             648      671      +23     
- Misses           143      144       +1     

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

@lgoettgens
Copy link

The failure in 1.2 and older seems to be genuine (see https://github.com/JuliaLang/Compat.jl/actions/runs/6909455727/job/18800838907?pr=808#step:6:172).

Comment on lines +123 to +124
symbols = _get_symbols(symbols_expr)
if VERSION >= v"1.11.0-DEV.469"

Choose a reason for hiding this comment

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

Suggested change
symbols = _get_symbols(symbols_expr)
if VERSION >= v"1.11.0-DEV.469"
if VERSION >= v"1.11.0-DEV.469"
symbols = _get_symbols(symbols_expr)

This should fix it, as the old julia versions no longer traverse the faulty path via _get_symbols.

Copy link
Member Author

Choose a reason for hiding this comment

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

I want to keep the parsing outside the version check so that folks get errors consistently on all versions.
With that change, @compat 1+1 == 2 would expand to nothing on old versions of Julia and throw on new versions of Julia.

I've tried to implement a fix that actually supports @var_str while still throwing on invalid inputs on all versions.

Choose a reason for hiding this comment

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

Great! That sounds like a good idea :)

@lgoettgens
Copy link

Gentle bump

@LilithHafner LilithHafner merged commit ad19117 into release-3 Nov 29, 2023
32 of 35 checks passed
@LilithHafner LilithHafner deleted the lh/backport-public branch November 29, 2023 23:48
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.

2 participants