oamg / leapp-repository

Leapp repositories containing actors for the Leapp framework (https://github.com/oamg/leapp). Currently provides leapp repositories for in-place upgrades of RHEL systems.
Apache License 2.0
48 stars 144 forks source link

Add unit tests for scansourcefiles actor #1190

Closed tomasfratrik closed 5 months ago

tomasfratrik commented 6 months ago

Test if files are correctly tracked by actor. Create mocked existent/non-existent, modified/non-modified, rpm owned/not-owned files. Also test non-existent version files.

Jira: OAMG-10367

github-actions[bot] commented 6 months ago

Thank you for contributing to the Leapp project!

Please note that every PR needs to comply with the Leapp Guidelines and must pass all tests in order to be mergeable. If you want to request a review or rebuild a package in copr, you can use following commands as a comment:

Packit will automatically schedule regression tests for this PR's build and latest upstream leapp build. If you need a different version of leapp, e.g. from PR#42, use /packit test oamg/leapp#42 Note that first time contributors cannot run tests automatically - they will be started by a reviewer.

It is possible to schedule specific on-demand tests as well. Currently 2 test sets are supported, beaker-minimal and kernel-rt, both can be used to be run on all upgrade paths or just a couple of specific ones. To launch on-demand tests with packit:

See other labels for particular jobs defined in the .packit.yaml file.

Please open ticket in case you experience technical problem with the CI. (RH internal only)

Note: In case there are problems with tests not being triggered automatically on new PR/commit or pending for a long time, please contact leapp-infra.

tomasfratrik commented 5 months ago

My notes:

I will squash commits, and write proper commit message after approved, or when it is finalized.

pirat89 commented 5 months ago

/packit build

pirat89 commented 5 months ago

/packit rebuild-failed

pirat89 commented 5 months ago

/packit rebuild-failed

pirat89 commented 5 months ago

/packit build

tomasfratrik commented 5 months ago

When splitting _get_rpm_name I forgot to check warnmsg, should be fixed now.

pirat89 commented 5 months ago

@fernflower seems that automatic building is broken by general.

pirat89 commented 5 months ago

/packit build