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

Fixes for osc-1.x #2918

Merged
merged 5 commits into from
Jan 25, 2023
Merged

Fixes for osc-1.x #2918

merged 5 commits into from
Jan 25, 2023

Conversation

dirkmueller
Copy link
Member

Starting with the minimal changes from #2879 again

@codecov-commenter
Copy link

codecov-commenter commented Jan 25, 2023

Codecov Report

Base: 28.51% // Head: 28.45% // Decreases project coverage by -0.06% ⚠️

Coverage data is based on head (a7831fd) compared to base (5f7806f).
Patch coverage: 90.47% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2918      +/-   ##
==========================================
- Coverage   28.51%   28.45%   -0.06%     
==========================================
  Files          84       84              
  Lines       14472    14507      +35     
==========================================
+ Hits         4126     4128       +2     
- Misses      10346    10379      +33     
Impacted Files Coverage Δ
metrics.py 15.90% <50.00%> (+0.22%) ⬆️
osclib/core.py 59.73% <91.42%> (+1.31%) ⬆️
check_maintenance_incidents.py 64.28% <100.00%> (ø)
check_tags_in_requests.py 54.97% <100.00%> (+0.26%) ⬆️
devel-project.py 51.74% <100.00%> (ø)
osclib/cache.py 33.33% <0.00%> (-17.55%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -72,7 +74,7 @@ def _check_requests(self, project, package, rev):
project = project[len(prefix):]
sr = srprefix
break
requests = osc.core.get_request_list(apiurl, project, package, None, ['new', 'review'], 'submit')
requests = get_request_list_with_history(apiurl, project, package, None, ['new', 'review'], 'submit')
Copy link
Member

Choose a reason for hiding this comment

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

This didn't use withfullhistory, so it should behave the same with the compatibility wrapper. Were you able to find the cause of the difference?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, the return values are different. I can search the details tomorrow. for now I'd like to get this in to have a green CI to iterate on improving the quality on this.

@@ -56,10 +56,52 @@ def groups_members(apiurl, groups):

return members

# osc uses xml.etree while we rely on lxml

def get_request_list_with_history(
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a deprecation warning or at least a # TODO comment?

Copy link
Member Author

Choose a reason for hiding this comment

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

there's one on the line below (63). I can make it a deprecation warning when everything else is green.

Copy link
Member

Choose a reason for hiding this comment

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

AFAIK a warning wouldn't make it less green than it was previously, wouldn't it?

Copy link
Member Author

Choose a reason for hiding this comment

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

It does not. just want to get to see that everything works before adding further code changes (that would restart the CI). do want to leave from work today at some point soon ;)

Copy link
Member

Choose a reason for hiding this comment

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

Ah, so it's just about the push, I see. In that case we'll need a separate PR anyway.

do want to leave from work today at some point soon ;)

Protip: You can do that while the CI is running - /me writes this reply from home 😛

@Vogtinator Vogtinator merged commit 394f8ee into openSUSE:master Jan 25, 2023
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