Skip to content

Add test for publish_distro#2989

Draft
andrii-suse wants to merge 3 commits intoopenSUSE:masterfrom
andrii-suse:t_publish_distro
Draft

Add test for publish_distro#2989
andrii-suse wants to merge 3 commits intoopenSUSE:masterfrom
andrii-suse:t_publish_distro

Conversation

@andrii-suse
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@andrii-suse
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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