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

Fixed evaluating release notes #897

Merged
merged 5 commits into from Feb 18, 2019
Merged

Fixed evaluating release notes #897

merged 5 commits into from Feb 18, 2019

Conversation

lslezak
Copy link
Member

@lslezak lslezak commented Feb 15, 2019

Problem

From a debugging session:

(byebug) p = File.join(directory, "**", "RELEASE-NOTES.{#{langs.join(",")}}.#{prefs.format}")
"/tmp/d20190215-22316-ra8tss/**/RELEASE-NOTES.{de_DE,de,en}.txt"
(byebug) Dir.glob(p)
["/tmp/d20190215-22316-ra8tss/usr/share/doc/release-notes/dummy/RELEASE-NOTES.en.txt",
"/tmp/d20190215-22316-ra8tss/usr/share/doc/release-notes/dummy/RELEASE-NOTES.de.txt"]

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 via rspec ./library/network/test/firewalld_wrapper_test.rb. It turned out that when running in full test the Yast::NetworkInterfaces.List method returns some known interfaces, when running standalone the result is empty list.

@lslezak lslezak marked this pull request as ready for review February 18, 2019 07:50
@coveralls
Copy link

coveralls commented Feb 18, 2019

Coverage Status

Coverage decreased (-0.01%) to 27.93% when pulling 4940b0c on testsuite_fix into cc403e5 on master.

package/yast2.changes Outdated Show resolved Hide resolved
@lslezak lslezak merged commit 55f2f4e into master Feb 18, 2019
@lslezak lslezak deleted the testsuite_fix branch February 18, 2019 08:33
@yast-bot
Copy link
Contributor

✔️ Internal Jenkins job #84 successfully finished
✔️ Created IBS submit request #184764

@yast-bot
Copy link
Contributor

✔️ Public Jenkins job #79 successfully finished
✔️ Created OBS submit request #676944

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.

None yet

4 participants