-
Notifications
You must be signed in to change notification settings - Fork 205
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
Reduce use of project dir to be more flexible regarding custom test runs #2410
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2410 +/- ##
==========================================
+ Coverage 87.13% 87.22% +0.08%
==========================================
Files 169 169
Lines 11086 11075 -11
==========================================
Hits 9660 9660
+ Misses 1426 1415 -11
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
your tests have covered some diff, would you like to get to a 100% diff coverage?
Seems like |
* Locate needles relative to the job's needles directory (keeping legacy way to locate needles as a fallback for compatibility) * Don't try to update needles which can not be located * Don't use OpenQA::Utils::needle_info() to locate needles in file API * It is not required to parse the needle JSON here * The comment stating the needle path comes from the database was wrong. It was only deduced via needledir() which is now used directly. * No longer pass the project dir to isotovideo * See https://progress.opensuse.org/issues/56789 and https://progress.opensuse.org/issues/58184
I changed the needle lookup in By the way, the local |
The function is only used within that controller anymore.
This seems to be required at least for the test fixture needles used within our test suite. The previous needle_info() function had the same fallback.
The _basic_needle_info function already produces a log message in the different error cases.
This breaks needlediff in the web UI for needles in subdirectories: |
As discussed in the POO, this was broken by PR os-autoinst#2410 commit 36aa974 - it assumes you can always find a needle simply by sticking the needle filename on the end of a `needledir` call, but you can't, needles are allowed to be in subdirectories of needledir. This should hopefully fix that without breaking the custom run case by using the *whole* of the JSON file path - we just figure out the subdirectory component from it. This works for me in the 'needle is in a subdirectory of the normal needle dir' case, but I didn't test it in the custom run case. Signed-off-by: Adam Williamson <awilliam@redhat.com>
As discussed in the POO, this was broken by PR os-autoinst#2410 commit 36aa974 - it assumes you can always find a needle simply by sticking the needle filename on the end of a `needledir` call, but you can't, needles are allowed to be in subdirectories of needledir. This should hopefully fix that without breaking the custom run case by using the *whole* of the JSON file path - we just figure out the subdirectory component from it. This works for me in the 'needle is in a subdirectory of the normal needle dir' case, but I didn't test it in the custom run case. Signed-off-by: Adam Williamson <awilliam@redhat.com>
As discussed in the POO, this was broken by PR os-autoinst#2410 commit 36aa974 - it assumes you can always find a needle simply by sticking the needle filename on the end of a `needledir` call, but you can't, needles are allowed to be in subdirectories of needledir. This should hopefully fix that without breaking the custom run case by using the *whole* of the JSON file path - we just figure out the subdirectory component from it. This works for me in the 'needle is in a subdirectory of the normal needle dir' case, but I didn't test it in the custom run case. Signed-off-by: Adam Williamson <awilliam@redhat.com>
As discussed in the POO, this was broken by PR os-autoinst#2410 commit 36aa974 - it assumes you can always find a needle simply by sticking the needle filename on the end of a `needledir` call, but you can't, needles are allowed to be in subdirectories of needledir. This should hopefully fix that without breaking the custom run case by using the *whole* of the JSON file path - we just figure out the subdirectory component from it. This works for me in the 'needle is in a subdirectory of the normal needle dir' case, but I didn't test it in the custom run case. Signed-off-by: Adam Williamson <awilliam@redhat.com>
As discussed in the POO, this was broken by PR os-autoinst#2410 commit 36aa974 - it assumes you can always find a needle simply by sticking the needle filename on the end of a `needledir` call, but you can't, needles are allowed to be in subdirectories of needledir. This should hopefully fix that without breaking the custom run case by using the *whole* of the JSON file path - we just figure out the subdirectory component from it. This works for me in the 'needle is in a subdirectory of the normal needle dir' case, but I didn't test it in the custom run case. Signed-off-by: Adam Williamson <awilliam@redhat.com>
The os-autoinst part is still missing.