Skip to content

Add cleanup_32bit.py tool#2983

Draft
Vogtinator wants to merge 12 commits intoopenSUSE:masterfrom
Vogtinator:32bitcleanup
Draft

Add cleanup_32bit.py tool#2983
Vogtinator wants to merge 12 commits intoopenSUSE:masterfrom
Vogtinator:32bitcleanup

Conversation

@Vogtinator
Copy link
Copy Markdown
Member

This uses code from cleanup_rings to figure out which packages are needed
for a 32bit build and runtime environment for steam and wine.

Draft because the API in cleanup_rings had to be changed and that broke cleanup_rings.

@Vogtinator Vogtinator requested a review from DimStar77 July 3, 2023 14:49
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jul 3, 2023

Codecov Report

❌ Patch coverage is 0% with 111 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (master@44bcd82). Learn more about missing BASE report.
⚠️ Report is 660 commits behind head on master.

Files with missing lines Patch % Lines
osclib/cleanup_rings.py 0.00% 63 Missing ⚠️
cleanup_32bit.py 0.00% 48 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master    #2983   +/-   ##
=========================================
  Coverage          ?   28.87%           
=========================================
  Files             ?       85           
  Lines             ?    14516           
  Branches          ?        0           
=========================================
  Hits              ?     4191           
  Misses            ?    10325           
  Partials          ?        0           

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

Comment thread cleanup_32bit.py Outdated
def run(self, prj: str, arch: str):
Config(self.apiurl, prj)
cr = CleanupRings(StagingAPI(self.apiurl, prj))
cr.whitelist = set(["wine", "wine-nine-standalone", "wine:staging"])
Copy link
Copy Markdown
Member

@dirkmueller dirkmueller Jul 4, 2023

Choose a reason for hiding this comment

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

Needed or requiredset perhaps? whitelist is pretty generic ( and non inclusive) terminology . And it's not a list but a set..

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It's actually a list in CleanupRings still, can be changed in a later refactor commit after I got this one working

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It's a dict now with more info, renamed to force_required

Comment thread cleanup_32bit.py Outdated
for providedby in fileinfo.findall('requires_ext/providedby[@name]'):
name = providedby.get('name')
# Those are not built as i586
if "libgcc" in name or "libstdc++" in name:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe 'startswith'?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Changed

Only used for the old Leap setup.

The concept would still work for TW, but baselibs.conf is not enough of an
indication (anymore?) whether it needs to be built.
This uses code from cleanup_rings to figure out which packages are needed
for a 32bit build and runtime environment for steam and wine.
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