Skip to content

compiler: Fix SizeOf reconstruction#2946

Merged
FabioLuporini merged 1 commit into
mainfrom
hotfix-sizeof
Jun 5, 2026
Merged

compiler: Fix SizeOf reconstruction#2946
FabioLuporini merged 1 commit into
mainfrom
hotfix-sizeof

Conversation

@FabioLuporini
Copy link
Copy Markdown
Contributor

Hotfix

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.47%. Comparing base (bad445e) to head (12df74b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2946      +/-   ##
==========================================
+ Coverage   83.45%   83.47%   +0.02%     
==========================================
  Files         249      249              
  Lines       52241    52276      +35     
  Branches     4500     4503       +3     
==========================================
+ Hits        43598    43638      +40     
+ Misses       7883     7880       -3     
+ Partials      760      758       -2     
Flag Coverage Δ
pytest-gpu-aomp-amdgpuX 68.58% <64.00%> (-0.02%) ⬇️
pytest-gpu-gcc- 78.22% <100.00%> (+0.03%) ⬆️
pytest-gpu-icx- 78.14% <100.00%> (+0.98%) ⬆️
pytest-gpu-nvc-nvidiaX 69.11% <64.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 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.

return self.arguments[0]

@cached_property
def ctype(self):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks quite weird to have to compare those str

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

SizeOf was fundamentally broken even before the tweaks in the last merged PR. The new tests exposes them. I admit it gave me a headache or two this morning to come up with something "sufficiently clean", I guess that's the best I can do for now

if not all(c == '*' for c in str(stars)):
raise ValueError("`stars` must be a string of zero or more `*` characters")

if not isinstance(intype, (str, ReservedWord)):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not sure i understand how can end up here. Line 983-990 already enforce that, it cannot be not a str at this point

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

reconstruction voodoo IIRC

@FabioLuporini
Copy link
Copy Markdown
Contributor Author

(approved offline, merging)

@FabioLuporini FabioLuporini merged commit 58df797 into main Jun 5, 2026
42 checks passed
@FabioLuporini FabioLuporini deleted the hotfix-sizeof branch June 5, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants