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

🧑‍🌾 CmdLine test regressions on gz-launch5-win #202

Open
Crola1702 opened this issue Oct 17, 2022 · 4 comments
Open

🧑‍🌾 CmdLine test regressions on gz-launch5-win #202

Crola1702 opened this issue Oct 17, 2022 · 4 comments
Assignees
Labels
bug Something isn't working 🏯 fortress Ignition Fortress

Comments

@Crola1702
Copy link
Contributor

Environment

  • OS Version:
    • Windows
  • Source build
    • ign-launch5 branch

Description

  • Expected behavior: No test regressions
  • Actual behavior: 6 CmdLine test regressions

Steps to reproduce

  1. Run a job in ign_launch-win CI
  2. See test regressions fail.

Output

CmdLine.HelpVsCompletionFlags:

C:\Jenkins\workspace\ign_launch-ign-5-win\ws\gz-launch\src\cmd\ign_TEST.cc:136
Expected: (std::string::npos) != (helpOutput.find(flag)), actual: 18446744073709551615 vs 18446744073709551615
Library error: ignition-tools-backward.dll not found. Improved backtrace generation will be disabled
C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/cmdlaunch5.rb:40:in ``': Invalid argument - C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/bin/Release/ign-launch.exe --version (Errno::EINVAL)
	from C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/cmdlaunch5.rb:40:in `execute'
	from C:/Jenkins/workspace/ign_launch-ign-5-win/ws/install/ignition-tools/bin//ign:301:in `<main>'

CmdLine.Ls:

C:\Jenkins\workspace\ign_launch-ign-5-win\ws\gz-launch\src\cmd\ign_TEST.cc:70
Value of: output.find("CMakeFiles") != std::string::npos
  Actual: false
Expected: true
Library error: ignition-tools-backward.dll not found. Improved backtrace generation will be disabled
C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/cmdlaunch5.rb:40:in ``': Invalid argument - C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/bin/Release/ign-launch.exe --version (Errno::EINVAL)
	from C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/cmdlaunch5.rb:40:in `execute'
	from C:/Jenkins/workspace/ign_launch-ign-5-win/ws/install/ignition-tools/bin//ign:301:in `<main>'

CmdLine.EchoSelf:

C:\Jenkins\workspace\ign_launch-ign-5-win\ws\gz-launch\src\cmd\ign_TEST.cc:80
Expected equality of these values:
  filePath
    Which is: "C:\\Jenkins\\workspace\\ign_launch-ign-5-win\\ws\\gz-launch\\test\\config\\echo.ign"
  output
    Which is: "Library error: ignition-tools-backward.dll not found. Improved backtrace generation will be disabled\nC:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/cmdlaunch5.rb:40:in ``': Invalid argument - C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/bin/Release/ign-launch.exe --version (Errno::EINVAL)\n\tfrom C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/cmdlaunch5.rb:40:in `execute'\n\tfrom C:/Jenkins/workspace/ign_launch-ign-5-win/ws/install/ignition-tools/bin//ign:301:in `<main>'\n"
With diff:
@@ -1,1 +1,4 @@
-C:\\Jenkins\\workspace\\ign_launch-ign-5-win\\ws\\gz-launch\\test\\config\\echo.ign
+Library error: ignition-tools-backward.dll not found. Improved backtrace generation will be disabled
+C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/cmdlaunch5.rb:40:in ``': Invalid argument - C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/bin/Release/ign-launch.exe --version (Errno::EINVAL)
+\tfrom C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/cmdlaunch5.rb:40:in `execute'
+\tfrom C:/Jenkins/workspace/ign_launch-ign-5-win/ws/install/ignition-tools/bin//ign:301:in `<main>'\n

Library error: ignition-tools-backward.dll not found. Improved backtrace generation will be disabled
C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/cmdlaunch5.rb:40:in ``': Invalid argument - C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/bin/Release/ign-launch.exe --version (Errno::EINVAL)
	from C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/cmdlaunch5.rb:40:in `execute'
	from C:/Jenkins/workspace/ign_launch-ign-5-win/ws/install/ignition-tools/bin//ign:301:in `<main>'

CmdLine.HelpSelf:

C:\Jenkins\workspace\ign_launch-ign-5-win\ws\gz-launch\src\cmd\ign_TEST.cc:88
Expected: (std::string::npos) != (output.find("Introspect Ignition launch")), actual: 18446744073709551615 vs 18446744073709551615
Library error: ignition-tools-backward.dll not found. Improved backtrace generation will be disabled
C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/cmdlaunch5.rb:40:in ``': Invalid argument - C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/bin/Release/ign-launch.exe --version (Errno::EINVAL)
	from C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/cmdlaunch5.rb:40:in `execute'
	from C:/Jenkins/workspace/ign_launch-ign-5-win/ws/install/ignition-tools/bin//ign:301:in `<main>'

CmdLine.EchoErb:

C:\Jenkins\workspace\ign_launch-ign-5-win\ws\gz-launch\src\cmd\ign_TEST.cc:97
Expected equality of these values:
  "erb1234"
  output
    Which is: "Library error: ignition-tools-backward.dll not found. Improved backtrace generation will be disabled\nC:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/cmdlaunch5.rb:40:in ``': Invalid argument - C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/bin/Release/ign-launch.exe --version (Errno::EINVAL)\n\tfrom C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/cmdlaunch5.rb:40:in `execute'\n\tfrom C:/Jenkins/workspace/ign_launch-ign-5-win/ws/install/ignition-tools/bin//ign:301:in `<main>'\n"
With diff:
@@ -1,1 +1,4 @@
-erb1234
+Library error: ignition-tools-backward.dll not found. Improved backtrace generation will be disabled
+C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/cmdlaunch5.rb:40:in ``': Invalid argument - C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/bin/Release/ign-launch.exe --version (Errno::EINVAL)
+\tfrom C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/cmdlaunch5.rb:40:in `execute'
+\tfrom C:/Jenkins/workspace/ign_launch-ign-5-win/ws/install/ignition-tools/bin//ign:301:in `<main>'\n

Library error: ignition-tools-backward.dll not found. Improved backtrace generation will be disabled
C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/cmdlaunch5.rb:40:in ``': Invalid argument - C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/bin/Release/ign-launch.exe --version (Errno::EINVAL)
	from C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/cmdlaunch5.rb:40:in `execute'
	from C:/Jenkins/workspace/ign_launch-ign-5-win/ws/install/ignition-tools/bin//ign:301:in `<main>'

CmdLine.EchoBadErb:

C:\Jenkins\workspace\ign_launch-ign-5-win\ws\gz-launch\src\cmd\ign_TEST.cc:106
Expected: (std::string::npos) != (output.find("is wrong for erb")), actual: 18446744073709551615 vs 18446744073709551615
Library error: ignition-tools-backward.dll not found. Improved backtrace generation will be disabled
C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/cmdlaunch5.rb:40:in ``': Invalid argument - C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/bin/Release/ign-launch.exe --version (Errno::EINVAL)
	from C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/cmdlaunch5.rb:40:in `execute'
	from C:/Jenkins/workspace/ign_launch-ign-5-win/ws/install/ignition-tools/bin//ign:301:in `<main>'

They all have: ignition-tools-backward.dll not found in their output

@Crola1702 Crola1702 added the bug Something isn't working label Oct 17, 2022
@nkoenig nkoenig self-assigned this Oct 24, 2022
@Crola1702 Crola1702 added the 🏯 fortress Ignition Fortress label Oct 31, 2022
@Crola1702
Copy link
Contributor Author

@azeey azeey self-assigned this Apr 10, 2023
@azeey
Copy link
Contributor

azeey commented Apr 11, 2023

It turns out, at least from what I can tell, none of our libraries, except ign-launch2 and ign-launch5 run UNIT_ign_TEST/UNIT_gz_TEST on Windows 😅. I'm going to investigate why, but if anyone knows, please chime in.

@azeey
Copy link
Contributor

azeey commented Apr 12, 2023

I was able to resolve the error regarding the invalid path:

C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/cmdlaunch5.rb:40:in ``': Invalid argument - C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/bin/Release/ign-launch.exe --version (Errno::EINVAL)
	from C:/Jenkins/workspace/ign_launch-ign-5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/cmdlaunch5.rb:40:in `execute'
	from C:/Jenkins/workspace/ign_launch-ign-5-win/ws/install/ignition-tools/bin//ign:301:in `<main>'

with azeey@e6e7805, but now the UNIT_ign_TEST times out after 240s. Both the UNIT_Manager_TEST and now the UNIT_ign_TEST timeout while running dir or ls, which should return instantly. I'm also not sure if the UNIT_Manager_TEST ever passed. The original implementation (#120) indicates 6 failures, which is what we're seeing right now. So I propose we disable both tests on windows.

I'll try to apply azeey@e6e7805 to other gz libraries and hopefully enable UNIT_ign_TEST/UNIT_gz_TEST.

@azeey azeey moved this to In progress in Core development Jul 24, 2023
@Crola1702 Crola1702 moved this to Reported 📚 in Buildfarm Issues Aug 22, 2023
@Crola1702 Crola1702 moved this from Reported 📚 to Fixing / assigned🧑‍🔧 in Buildfarm Issues Aug 22, 2023
@Crola1702
Copy link
Contributor Author

This issue is failing consistently in gz-launch5-win

Reference build: https://build.osrfoundation.org/job/gz_launch-ign-launch5-win/36/

Log output is different this time:

C:\J\workspace\gz_launch-ign-launch5-win\ws\gz-launch\src\cmd\ign_TEST.cc:136
Expected: (std::string::npos) != (helpOutput.find(flag)), actual: 18446744073709551615 vs 18446744073709551615
Library error: ignition-tools-backward.dll not found. Improved backtrace generation will be disabled
C:/J/workspace/gz_launch-ign-launch5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/cmdlaunch5.rb:40:in ``': Invalid argument - C:/J/workspace/gz_launch-ign-launch5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/C:/J/workspace/gz_launch-ign-launch5-win/ws/build/ignition-launch5/bin/Release/ign-launch.exe --version (Errno::EINVAL)
	from C:/J/workspace/gz_launch-ign-launch5-win/ws/build/ignition-launch5/test/lib/Release/ruby/ignition/cmdlaunch5.rb:40:in `execute'
	from C:/J/workspace/gz_launch-ign-launch5-win/ws/install/ignition-tools/bin//ign:301:in `<main>'

@Crola1702 Crola1702 moved this from Fixing / assigned🧑‍🔧 to Reported 📚 in Buildfarm Issues Apr 12, 2024
@Crola1702 Crola1702 moved this from Reported 📚 to Fixing / assigned🧑‍🔧 in Buildfarm Issues Apr 12, 2024
@Crola1702 Crola1702 changed the title CmdLine test regressions on ign-launch5-win CmdLine test regressions on gz-launch5-win Apr 12, 2024
@Crola1702 Crola1702 changed the title CmdLine test regressions on gz-launch5-win 🧑‍🌾 CmdLine test regressions on gz-launch5-win Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 🏯 fortress Ignition Fortress
Projects
Status: In progress
Development

No branches or pull requests

3 participants