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

Add test for publish_distro #2989

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

andrii-suse
Copy link
Contributor

I am investigating how to improve publish_distro script, so having some kind of tests with debug output will help to track what exactly changes.

@Vogtinator
Copy link
Member

I'm wondering to which extent tests on this level actually work in practice. If the design and mechanisms are changed like #2954, then this might not be the case...

@codecov-commenter
Copy link

codecov-commenter commented Jul 14, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (master@3bf8fdf). Learn more about missing BASE report.
Report is 296 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #2989   +/-   ##
=========================================
  Coverage          ?   28.45%           
=========================================
  Files             ?       85           
  Lines             ?    14698           
  Branches          ?        0           
=========================================
  Hits              ?     4183           
  Misses            ?    10515           
  Partials          ?        0           

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

@andrii-suse
Copy link
Contributor Author

I'm wondering to which extent tests on this level actually work in practice. If the design and mechanisms are changed like #2954, then this might not be the case...

My understanding that it is OK if tests sometimes don't cover everything.
And It is good if they cover at least something and help to visually track changes in functionality.

@@ -24,4 +24,3 @@ rsync -avvhiH t/tmp/ftp-stage/pub/opensuse//distribution/leap/15.5/repo --link-d
rsync -avhiH t/tmp/ftp-stage/pub/opensuse/source//distribution/leap/15.5/ --link-dest=t/tmp/ftp-stage/pub/opensuse/source//distribution/leap/15.5 t/tmp/ftp/pub/opensuse/source//distribution/leap/15.5 --delete-after
rsync -avhiH t/tmp/ftp-stage/pub/opensuse/debug//distribution/leap/15.5/ --link-dest=t/tmp/ftp-stage/pub/opensuse/debug//distribution/leap/15.5 t/tmp/ftp/pub/opensuse/debug//distribution/leap/15.5 --delete-after
curl -X POST -F version=111.11 https://openqa.opensuse.org/snapshot-changes/opensuse/15.5/current
stage/pub/opensuse/debug//distribution/leap/15.5 t/tmp/ftp/pub/opensuse/debug//distribution/leap/15.5 --delete-after
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 have no idea why that line is truncated like this, but it has gone when stdout was replaced with stderr for logs when --dry flag is set

@lkocman lkocman self-requested a review July 31, 2023 13:18
@lkocman
Copy link
Contributor

lkocman commented Jul 31, 2023

I mean I'm supportive of any test coverage, however, ... I was hoping we'd eventually replace what we have :-)

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