1

昨天一直在编译开源 Appium 工具,今天是 Selenium。

在 Windows 上的项目之间,我必须安装不同版本的 JDK、ruby、python 2.7(我有 3.6)、git、ffmpeg、opencv4nodejs、nodejs、npm、choco 和各种其他随机工具和实用程序。制作。捆绑工具。蚂蚁。

无论如何,我已经比以前走得更远了,但现在在过去的几个小时里我被困住了。

go.bat clean执行罚款 go.bat <anything else>似乎失败,无论它是否与test_java, test_htmlunit, build,test_firefox等等一起使用。

但是,我无法追踪实际错误来自多少英里的 rake/buck 东西。

一个例子:

go.bat test_java

输出:

$ ./go.bat test_java

C:\Users\mayom\selenium>java -Xmx4096m -XX:MetaspaceSize=1024m -XX:ReservedCodeCacheSize=512m -client -jarthird_party/jruby/jruby-complete.jar -XC -S rake test_java python buckw kill python buckw build - -stamp-build=detect --deep //java/client/test/org/openqa/selenium/atoms:test 正在启动新的 Buck 守护进程...解析 BUCK 文件:在 1.7 秒内完成 创建操作图:在 0.4 秒内完成145/223 JOBS 1.2s //javascript/webdriver:key BUILT 146/223 JOBS 4.1s //java/client/src/org/openqa/selenium/remote:remote-gen-manifest BUILT 147/223 JOBS 4.8s // third_party/java/jetty:jetty-gen-manifest BUILT 148/223 JOBS 4.5s //java/client/src/org/openqa/selenium:core-gen-manifest BUILT 149/223 JOBS 1.9s //java/client/ src/org/openqa/selenium/remote:remote-lib-build-info BUILT 150/223 JOBS 1.3s //java/client/src/org/openqa/selenium:core-lib-build-info BUILT 151/223 JOBS 2.7s //third_party/java/jetty:jetty-lib-build-info BUILT 181/223 JOBS 1.3s //java/client/src/org/openqa/selenium/ remote:remote-lib-build-info#class-abi BUILT 185/223 JOBS 1.3s //third_party/java/jetty:jetty-lib-build-info#class-abi BUILT 189/223 JOBS 0.2s //javascript/ atom:events BUILT 197/223 JOBS 0.8s //javascript/atoms:inject BUILT 198/223 JOBS 1.4s //java/client/src/org/openqa/selenium:core-lib-build-info#class-abi BUILT 199/223 JOBS 0.8s //javascript/atoms:locators BUILT 200/223 JOBS 0.9s //javascript/atoms:html5 BUILT 201/223 JOBS 0.5s //javascript/atoms:devices BUILT 206/223 JOBS 0.4s // javascript/atoms:action BUILT 207/223 JOBS 0.2s //javascript/webdriver/atoms:atoms-lib STILL BUILDING //third_party/java/jetty:move-services (20 seconds) STILL BUILDING //javascript/atoms/fragments:execute_script (20 seconds) STILL BUILDING //javascript/webdriver/atoms:inputs (20 seconds)

C:\Users\mayom\selenium\buck-out\gen\third_party\java\jetty\move-services__srcs>md tmp && cd tmp && jar xf C:\Users\mayom\selenium\buck-out\gen\third_party\ java\jetty\bundle-jars.jar && del META-INF/services/* && echo org.seleniumhq.jetty9.http.Http1FieldPreEncoder
1>META-INF\services\org.seleniumhq.jetty9.http.HttpFieldPreEncoder && jar cvf C :\Users\mayom\selenium\buck-out\gen\third_party\java\jetty\move-services\moved-bundle.jar *

参数格式不正确 - “服务”。

STILL BUILDING //javascript/atoms/fragments:execute_script (40 seconds) STILL BUILDING //javascript/webdriver/atoms:inputs (40 seconds) BUILT 209/223 JOBS 45.2s //javascript/atoms/fragments:execute_script BUILT 210/223 JOBS 50.8s //javascript/webdriver/atoms:inputs DOWNLOADED 0 ARTIFACTS, 0.00 BYTES, 100.0% CACHE MISS BUILDING: FINISHED IN 1m 2.4s (100%) 210/223 JOBS, 20 UPDATED BUILD FAILED 命令失败,退出代码为 1。标准错误:参数格式不正确 - “服务”。

When running <genrule>.
When building rule //third_party/java/jetty:move-services. go aborted! python buckw build --stamp-build=detect --deep

//java/client/test/org/openqa/selenium/atoms:测试失败,退出代码:1 C:/Users/mayom/selenium/rake-tasks/buck.rb:52:in block in buck_cmd' C:/Users/mayom/selenium/rake-tasks/buck.rb:36:inbuck_cmd' C:/Users/ mayom/selenium/rake-tasks/buck.rb:227:in `block in (root)' Tasks: TOP => test_java => //java/client/test/org/openqa/selenium/atoms:test:run = > //java/client/test/org/openqa/selenium/atoms:test (通过使用 --trace 运行任务查看完整跟踪)

如果我使用 --trace 运行它:

$ ./go.bat test_java --trace

C:\Users\mayom\selenium>java -Xmx4096m -XX:MetaspaceSize=1024m -XX:ReservedCodeCacheSize=512m -client -jarthird_party/jruby/jruby-complete.jar -XC -S rake test_java --trace 解析cpp/build .desc 解析 cpp/iedriverserver/build.desc 解析 javascript/build.desc 解析 javascript/android-atoms/build.desc 解析 javascript/atoms/build.desc 解析 javascript/atoms/fragments/build.desc 解析 javascript/chrome-driver /build.desc 解析 javascript/ie-driver/build.desc 解析 javascript/jsunit/build.desc 解析 javascript/node/build.desc 解析 javascript/remote/build.desc 解析 javascript/selenium-atoms/build.desc 解析 javascript /selenium-core/build.desc 解析 javascript/webdriver/build.desc 解析 javascript/webdriver/atoms/build.desc 解析 javascript/webdriver/atoms/fragments/build.desc 解析 javascript/webdriver/atoms/fragments/inject/build.desc 解析 javascript/webdriver/atoms/inject/build.desc 解析 py/build.desc 解析 rb/build.desc 解析third_party/closure/build.desc 解析third_party/ firebug/build.desc 解析third_party/jruby/build.desc 解析third_party/js/sizzle/build.desc 解析third_party/js/wgxpath/build.desc ** 调用test_java (first_time) ** 调用 //java/client/test /org/openqa/selenium/atoms:test:run (first_time) ** 调用 //java/client/test/org/openqa/selenium/atoms:test (first_time) ** 执行 //java/client/test/org /openqa/selenium/atoms:test python buckw kill python buckw build --stamp-build=detect --deep //java/client/test/org/openqa/selenium/atoms:test 开始新的 Buck 守护进程... PARSING BUCK文件:在 1.7 秒内完成创建动作图:在 0 内完成。5s BUILT 146/223 JOBS 3.9s //java/client/src/org/openqa/selenium/remote:remote-gen-manifest BUILT 147/223 JOBS 4.2s //java/client/src/org/openqa/selenium: core-gen-manifest BUILT 148/223 JOBS 4.4s //third_party/java/jetty:jetty-gen-manifest BUILT 155/223 JOBS 0.8s //java/client/src/org/openqa/selenium:core-lib- build-info#class-abi BUILT 179/223 JOBS 2.5s //third_party/java/jetty:jetty-lib-build-info BUILT 187/223 JOBS 2.8s //java/client/src/org/openqa/selenium/ remote:remote-lib-build-info BUILT 189/223 JOBS 0.8s //java/client/test/org/openqa/selenium/atoms:execute_script BUILT 191/223 JOBS 1.4s //third_party/java/jetty:jetty- lib-build-info#class-abi BUILT 195/223 JOBS 2.7s //java/client/src/org/openqa/selenium:core-lib-build-info BUILT 206/223 JOBS 0.7s //java/client/测试/组织/openqa/硒/原子:atom_inputs BUILT 207/223 JOBS 1.2s //java/client/src/org/openqa/selenium/remote:remote-lib-build-info#class-abi

C:\Users\mayom\selenium\buck-out\gen\third_party\java\jetty\move-services__srcs>md tmp && cd tmp && jar xf C:\Users\mayom\selenium\buck-out\gen\third_party\ java\jetty\bundle-jars.jar && del META-INF/services/* && echo org.seleniumhq.jetty9.http.Http1FieldPreEncoder
1>META-INF\services\org.seleniumhq.jetty9.http.HttpFieldPreEncoder && jar cvf C :\Users\mayom\selenium\buck-out\gen\third_party\java\jetty\move-services\moved-bundle.jar *

参数格式不正确 - “服务”。

已下载 0 个工件,0.00 字节,100.0% 缓存未构建:在 14.2 秒内完成 (100%) 212/223 作业,12 更新构建失败命令失败,退出代码为 1。标准错误:参数格式不正确 - “服务”。

When running <genrule>.
When building rule //third_party/java/jetty:move-services. Exception `RuntimeError' at

C:/Users/mayom/selenium/rake-tasks/buck.rb:52 - python buckw build --stamp-build=detect --deep //java/client/test/org/openqa/selenium/atoms:test failed退出代码:1 Exception #<Class:#<RuntimeError:0x1ee40b5c>>' at C:/Users/mayom/selenium/rake-tasks/buck.rb:52 - python buckw build --stamp-build=detect --deep //java/client/test/org/openqa/selenium/atoms:test failed with exit code: 1 Exception#>' at C:/Users/mayom/selenium/rake-tasks/buck.rb:52 - python buckw build --stamp-build=detect --deep //java/client/test/ org/openqa/selenium/atoms:test failed with exit code: 1 #<Class:#<RuntimeError:0x1ee40b5c>>' at C:/Users/mayom/selenium/rake-tasks/buck.rb:52 - python buckw build --stamp-build=detect --deep //java/client/test/org/openqa/selenium/atoms:test failed with exit code: 1 go aborted! python buckw build --stamp-build=detect --deep //java/client/test/org/openqa/selenium/atoms:test failed with exit code: 1 C:/Users/mayom/selenium/rake-tasks/buck.rb:52:inbuck_cmd' org/jruby/RubyIO.java:4902:in popen3' uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/jruby/open3_windows.rb:74:in popen3' C:/Users/mayom/selenium/rake-tasks/buck.rb 中的异常块: 36:in buck_cmd' C:/Users/mayom/selenium/rake-tasks/buck.rb:227:inblock in (root)' uri:classloader:/gems/rake-10.5.0/lib/rake/task.rb:240:in block in execute' org/jruby/RubyArray.java:1735:ineach' uri:classloader:/gems/rake-10.5.0/lib/ rake/task.rb:235:inexecute' uri:classloader:/gems/rake-10.5.0/lib/rake/task.rb:179:in块 in invoke_with_call_chain' uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/monitor.rb:214:in mon_synchronize' uri:classloader:/gems/rake-10.5.0/lib/rake/task.rb:172:in invoke_with_call_chain' uri:classloader:/gems/rake-10.5.0/lib/rake/task.rb:201:in block in invoke_prerequisites' org/jruby/RubyArray.java:1735:ineach' uri:classloader:/gems/rake-10.5.0/lib/rake/task.rb:199 :in invoke_prerequisites' uri:classloader:/gems/rake-10.5.0/lib/rake/task.rb:178:in块 in invoke_with_call_chain' uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/monitor.rb:214:in mon_synchronize' uri:classloader:/gems/rake-10.5.0/lib/rake/task.rb:172:in invoke_with_call_chain' uri:classloader:/gems/rake-10.5.0/lib/rake /task.rb:201:in block in invoke_prerequisites' org/jruby/RubyArray.java:1735:ineach' uri:classloader:/gems/rake-10.5.0/lib/rake/task.rb:199:in invoke_prerequisites' uri:classloader:/gems/rake-10.5.0/lib/rake/task.rb:178:inblock in invoke_with_call_chain' uri:classloader:/META-INF/jruby.home /lib/ruby/stdlib/monitor.rb:214:in mon_synchronize' uri:classloader:/gems/rake-10.5.0/lib/rake/task.rb:172:in invoke_with_call_chain' uri:classloader:/gems/rake-10.5.0/lib/rake/task.rb:165:in invoke' uri:classloader:/gems/rake-10.5.0/lib/rake/application.rb:150:in invoke_task' uri:classloader:/gems/rake -10.5.0/lib/rake/application.rb:106:in block in top_level' org/jruby/RubyArray.java:1735:in每个' uri:classloader:/gems/rake-10.5.0/lib/rake/application.rb:106:in block in top_level' uri:classloader:/gems/rake-10.5.0/lib/rake/application.rb:115:in run_with_threads' uri:classloader:/gems/rake-10.5.0/lib/rake/application.rb:100 :in top_level' uri:classloader:/gems/rake-10.5.0/lib/rake/application.rb:78:inblock in run' uri:classloader:/gems/rake-10.5.0/lib/rake/application.rb:176:in standard_exception_handling' uri:classloader:/gems/rake-10.5.0/lib/rake/application.rb:75:inrun' uri:classloader:/gems/rake-10.5.0/bin/rake:33 :in <main>' org/jruby/RubyKernel.java:973:inload' uri:classloader:/META-INF/jruby.home/bin/rake:1:in `' 任务:TOP => test_java => //java/client/test/org/openqa/selenium/atoms: test:run => //java/client/test/org/openqa/selenium/atoms:test

参数“服务”?我终其一生都找不到抱怨的来源。比我对 rake/buck 等有更深入了解的人将不胜感激。

4

0 回答 0