Skip to content

Comments

SG-419020 Fix ruamel module missing __init__.py file#1087

Open
carlos-villavicencio-adsk wants to merge 3 commits intomasterfrom
ticket/SG-41902_fix_ruamel_import
Open

SG-419020 Fix ruamel module missing __init__.py file#1087
carlos-villavicencio-adsk wants to merge 3 commits intomasterfrom
ticket/SG-41902_fix_ruamel_import

Conversation

@carlos-villavicencio-adsk
Copy link
Contributor

@carlos-villavicencio-adsk carlos-villavicencio-adsk commented Feb 10, 2026

The issue appears to be related to the following change where the folder ruamel_yaml was changed to ruamel/yaml without an __init__.py being added
2482c47

Another fix

On #1066 we bundled packaging.version.parse but removed support for any shape of string to be compared, causing crashes when passing values such as unknown.

@codecov
Copy link

codecov bot commented Feb 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.63%. Comparing base (b8b3764) to head (e4d0474).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1087      +/-   ##
==========================================
- Coverage   79.65%   79.63%   -0.02%     
==========================================
  Files         198      198              
  Lines       20620    20624       +4     
==========================================
  Hits        16424    16424              
- Misses       4196     4200       +4     
Flag Coverage Δ
Linux 79.10% <100.00%> (+<0.01%) ⬆️
Python-3.10 79.45% <100.00%> (-0.02%) ⬇️
Python-3.11 79.35% <100.00%> (-0.01%) ⬇️
Python-3.13 79.35% <100.00%> (+<0.01%) ⬆️
Python-3.9 79.42% <100.00%> (+<0.01%) ⬆️
Windows 79.13% <100.00%> (-0.02%) ⬇️
macOS 79.11% <100.00%> (+<0.01%) ⬆️

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

☔ 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.

@carlos-villavicencio-adsk carlos-villavicencio-adsk requested a review from a team February 11, 2026 19:57
Copy link
Member

Choose a reason for hiding this comment

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

Why is there a change on this file??

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This file didn't exist.

Comment on lines +222 to +227
try:
version_a = version_parse(a)
version_b = version_parse(b)
except InvalidVersion:
# If the version is invalid by `packaging.version.parse`, compare lexicographically
return a > b
Copy link
Member

Choose a reason for hiding this comment

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

can we have a log or a warning in those cases?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think it's a good idea. See #1056

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.

3 participants