-
-
Notifications
You must be signed in to change notification settings - Fork 66
collate_junit_reports action fails on version 3.15.3 #335
Comments
Just debugged across versions and I can confidently say that this has broken between version 3.14.2 and 3.14.3. |
@lyndsey-ferguson any plans to get to this? |
@jdoshi-indeed I don't think I'll have time to look into this until December. I have placed this at the top of the list in the kanban board for this project. |
@lyndsey-ferguson Could I help you? Of course I would need some guidance from you. |
Hello @jdoshi-indeed, yes I would appreciate any help and I can provide guidance. I do not think you even need a lot of experience in Ruby, just a little willpower to push through the obstacles of lack-of-knowledge. You can use these fastlane instructions on debugging in the same way that you can in the plugin. You can see that it is crashing here: fastlane-plugin-test_center-3.15.3/lib/fastlane/plugin/test_center/actions/collate_junit_reports.rb:13 Here's what I suggest (forgive me if I miss a step):
You can use this documentation to figure out how to use the debugging commands. If there are still problems, please let me know and attach the console output as a text file to this issue (makes it easier for me to review). If it works, please let me know. |
HI @lyndsey-ferguson , I compared the files across version 3.14.2 and 3.14.3. On line 13 in newer version code is looking for package name attribute I believe but sometimes, junit reports may not have one. I am not sure how to handle such case. Could you look into it? Thanks, |
Can you post an example of such a Junit XML file? You can see that the name attribute is referenced in other places such as line 19. |
Hi @lyndsey-ferguson , Please find sample xml attached. Thanks, |
New Issue Checklist
fastlane-plugin-test_center
to the latest versionIssue Description
I am using collate_junit_reports action. It still works on a very old version on my Jenkins environment but when I tried collating on my desktop with latest version it failed.
Complete output when running fastlane, including the stack trace and command used
+------+---------------------------------------------------------------+-------------+
| fastlane summary |
+------+---------------------------------------------------------------+-------------+
| Step | Action | Time (in s) |
+------+---------------------------------------------------------------+-------------+
| 1 | Verifying fastlane version | 0 |
| 2 | default_platform | 0 |
| 3 | trainer -p ./test_output/testresult2021.03.30-04.31.26.xcresu | 2 |
| 4 | trainer -p ./test_output/testresult2021.03.30-04.44.12.xcresu | 2 |
| 5 | trainer -p ./test_output/testresult2021.03.30-04.49.41.xcresu | 2 |
| 6 | trainer -p ./test_output/testresult.xcresult -o ./test_output | 2 |
| 💥 | collate_junit_reports | 0 |
+------+---------------------------------------------------------------+-------------+
[11:26:36]: fastlane finished with errors
Looking for related GitHub issues on fastlane/fastlane...
➡️ Undefined method `status' for nil:NilClass (NoMethodError)
fastlane/fastlane#17910 [open] 32 💬
2 weeks ago
➡️ update_project_provisioning.rb:74:in
block (2 levels) in run': \e[31m[!] undefined method
[]' for nil:NilClass\e[0m (NoMethodError)https://github.com/fastlane/fastlane/issues/18486 [open] 1 💬
a week ago
➡️ [Swift] undefined method `each' for nil:NilClass - Cannot Create Group Within FastlaneSwiftRunner Project
fastlane/fastlane#15184 [open] 56 💬
a week ago
and 323 more at: https://github.com/fastlane/fastlane/search?q=undefined%20method%20%60value%27%20for%20nil&type=Issues&utf8=✓
🔗 You can ⌘ + double-click on links to open them directly in your browser.
Traceback (most recent call last):
28: from /Users/jinesh/.rbenv/versions/2.6.3/bin/fastlane:23:in
<main>' 27: from /Users/jinesh/.rbenv/versions/2.6.3/bin/fastlane:23:in
load'26: from /Users/jinesh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/fastlane-2.179.0/bin/fastlane:23:in
<top (required)>' 25: from /Users/jinesh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/fastlane-2.179.0/fastlane/lib/fastlane/cli_tools_distributor.rb:122:in
take_off'24: from /Users/jinesh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/fastlane-2.179.0/fastlane/lib/fastlane/commands_generator.rb:41:in
start' 23: from /Users/jinesh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/fastlane-2.179.0/fastlane/lib/fastlane/commands_generator.rb:352:in
run'22: from /Users/jinesh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in
run!' 21: from /Users/jinesh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/fastlane-2.179.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in
run!'20: from /Users/jinesh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in
run_active_command' 19: from /Users/jinesh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in
run'18: from /Users/jinesh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in
call' 17: from /Users/jinesh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/fastlane-2.179.0/fastlane/lib/fastlane/commands_generator.rb:108:in
block (2 levels) in run'16: from /Users/jinesh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/fastlane-2.179.0/fastlane/lib/fastlane/command_line_handler.rb:36:in
handle' 15: from /Users/jinesh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/fastlane-2.179.0/fastlane/lib/fastlane/lane_manager.rb:47:in
cruise_lane'14: from /Users/jinesh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/fastlane-2.179.0/fastlane/lib/fastlane/runner.rb:45:in
execute' 13: from /Users/jinesh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/fastlane-2.179.0/fastlane/lib/fastlane/runner.rb:45:in
chdir'12: from /Users/jinesh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/fastlane-2.179.0/fastlane/lib/fastlane/runner.rb:49:in
block in execute' 11: from /Users/jinesh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/fastlane-2.179.0/fastlane/lib/fastlane/lane.rb:33:in
call'10: from Fastfile:650:in
block (2 levels) in parsing_binding' 9: from /Users/jinesh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/fastlane-2.179.0/fastlane/lib/fastlane/fast_file.rb:159:in
method_missing'8: from /Users/jinesh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/fastlane-2.179.0/fastlane/lib/fastlane/runner.rb:157:in
trigger_action_by_name' 7: from /Users/jinesh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/fastlane-2.179.0/fastlane/lib/fastlane/runner.rb:229:in
execute_action'6: from /Users/jinesh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/fastlane-2.179.0/fastlane/lib/fastlane/runner.rb:229:in
chdir' 5: from /Users/jinesh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/fastlane-2.179.0/fastlane/lib/fastlane/runner.rb:255:in
block in execute_action'4: from /Users/jinesh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/fastlane-2.179.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in
execute_action' 3: from /Users/jinesh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/fastlane-2.179.0/fastlane/lib/fastlane/runner.rb:263:in
block (2 levels) in execute_action'2: from /Users/jinesh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/fastlane-plugin-test_center-3.15.3/lib/fastlane/plugin/test_center/actions/collate_junit_reports.rb:13:in
run' 1: from /Users/jinesh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/fastlane-plugin-test_center-3.15.3/lib/fastlane/plugin/test_center/actions/collate_junit_reports.rb:13:in
map'/Users/jinesh/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/fastlane-plugin-test_center-3.15.3/lib/fastlane/plugin/test_center/actions/collate_junit_reports.rb:13:in
block in run': [!] undefined method
value' for nil:NilClass (NoMethodError)Environment
🚫 fastlane environment 🚫
Stack
System Locale
`./fastlane/Appfile`
fastlane gems
Loaded fastlane plugins:
Loaded gems
generated on: 2021-04-09
encrypted.zip
The text was updated successfully, but these errors were encountered: