Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
./y2packager/release_notes_fetchers/rpm_test.rb
unit test randomly failed in OBS (see Fails to build with ruby 2.6 #895).From a debugging session:
So the glob for the
RELEASE-NOTES.{de_DE,de,en}.txt
files returns"RELEASE-NOTES.en.txt", "RELEASE-NOTES.de.txt"
files (in this order!). So the order of the files might be different than in the input glob, the code does not expect this and uses the first one (via.first
).Additional Problems
The commandline tests always failed for me when running locally, however it was fine in Travis, Jenkins or OBS so I ignored that. This time I checked the details and the problem is that locally I have installed the byebug debugger. The test raises some exception and expect to print something in the exception handler. However when the debugger is installed YaST displays a popup asking to start the debugger. (In the test mode there is just dummy UI so in reality nothing is displayed in the end.)
The firewall test failed when started via
rake test:unit
by passed when started viarspec ./library/network/test/firewalld_wrapper_test.rb
. It turned out that when running in full test theYast::NetworkInterfaces.List
method returns some known interfaces, when running standalone the result is empty list.