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

[flaxy test] test_443_build_app_and_assert_that_tns_core_modules_could_be_updated #376

Open
dtopuzov opened this issue Sep 24, 2019 · 0 comments

Comments

@dtopuzov
Copy link
Contributor

Error Message

App not build correctly after updating tns-core modules! Logs: /home/nsbuilduser/workspace/rc-android-runtime-android-runtime-tests-linux/node_modules/.bin/tns run android --path TestApp --device emulator-5562
====>
Searching for devices...
Your application will be deployed only on the device specified by the provided index or identifier.
Preparing project...
File change detected. Starting incremental webpack compilation...

webpack is watching the files…

Hash: 1d78443a7c95385c97b0
Version: webpack 4.27.1
Time: 1615ms
Built at: 09/21/2019 6:05:26 AM
              Asset       Size   Chunks             Chunk Names
          bundle.js   28.5 KiB   bundle  [emitted]  bundle
       package.json  112 bytes           [emitted]  
         runtime.js   71.4 KiB  runtime  [emitted]  runtime
tns-java-classes.js    0 bytes           [emitted]  
          vendor.js   4.05 MiB   vendor  [emitted]  vendor
Entrypoint bundle = runtime.js vendor.js bundle.js
[./ sync ^\.\/app\.(css|scss|less|sass)$] . sync nonrecursive ^\.\/app\.(css|scss|less|sass)$ 174 bytes {bundle} [built]
[./ sync recursive (?<!\bApp_Resources\b.*)\.(xml|css|js|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$] . sync (?<!\bApp_Resources\b.*)\.(xml|css|js|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$ 270 bytes {bundle} [built]
[./app-root.xml] 309 bytes {bundle} [optional] [built]
[./app.css] 1.15 KiB {bundle} [optional] [built]
[./app.js] 2.22 KiB {bundle} [built]
[./main-page.js] 1.77 KiB {bundle} [optional] [built]
[./main-page.xml] 1.93 KiB {bundle} [optional] [built]
[./main-view-model.js] 881 bytes {bundle} [built]
[./package.json] 99 bytes {bundle} [optional] [built]
    + 193 hidden modules
Webpack compilation complete. Watching for file changes.
Webpack build done!
Project successfully prepared (android)
Building project...
Gradle build...
	 + setting applicationId
	 + applying user-defined configuration from /home/nsbuilduser/workspace/rc-android-runtime-android-runtime-tests-linux/TestApp/app/App_Resources/Android/app.gradle
	 + using android X library androidx.legacy:legacy-support-v4:1.0.0
	 + adding nativescript runtime package dependency: nativescript-optimized-with-inspector
	 + adding aar plugin dependency: /home/nsbuilduser/workspace/rc-android-runtime-android-runtime-tests-linux/TestApp/node_modules/nativescript-ui-dataform/platforms/android/TNSDataForm-release.aar
	 + adding aar plugin dependency: /home/nsbuilduser/workspace/rc-android-runtime-android-runtime-tests-linux/TestApp/node_modules/nativescript-ui-autocomplete/platforms/android/TNSAutoComplete-release.aar
	 + adding aar plugin dependency: /home/nsbuilduser/workspace/rc-android-runtime-android-runtime-tests-linux/TestApp/node_modules/nativescript-ui-core/platforms/android/TNSCore-release.aar
	 + adding aar plugin dependency: /home/nsbuilduser/workspace/rc-android-runtime-android-runtime-tests-linux/TestApp/node_modules/tns-core-modules-widgets/platforms/android/widgets-release.aar
Exception in thread "main" java.io.IOException: Couldn't find '/home/nsbuilduser/workspace/rc-android-runtime-android-runtime-tests-linux/TestApp/platforms/android/build-tools/sbg-bindings.txt' bindings input file. Most probably there's an error in the JS Parser execution. You can run JS Parser with verbose logging by executing "node '/home/nsbuilduser/workspace/rc-android-runtime-android-runtime-tests-linux/TestApp/platforms/android/build-tools/jsparser/js_parser.js' enableErrorLogging".
	at org.nativescript.staticbindinggenerator.Generator.generateBindings(Generator.java:126)
	at org.nativescript.staticbindinggenerator.Generator.writeBindings(Generator.java:97)
	at org.nativescript.staticbindinggenerator.Main.main(Main.java:53)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:runSbg'.
> Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 12s
Unable to apply changes on device: emulator-5562. Error is: Command ./gradlew failed with exit code 1.

Stacktrace

Traceback (most recent call last):
  File "/usr/lib/python2.7/unittest/case.py", line 329, in run
    testMethod()
  File "/home/nsbuilduser/workspace/rc-android-runtime-android-runtime-tests-linux/tests/runtimes/android/android_runtime_tests.py", line 498, in test_443_build_app_and_assert_that_tns_core_modules_could_be_updated
    assert test_result, "App not build correctly after updating tns-core modules! Logs: " + File.read(log.log_file)
AssertionError: App not build correctly after updating tns-core modules! Logs: /home/nsbuilduser/workspace/rc-android-runtime-android-runtime-tests-linux/node_modules/.bin/tns run android --path TestApp --device emulator-5562
====>
Searching for devices...
Your application will be deployed only on the device specified by the provided index or identifier.
Preparing project...
File change detected. Starting incremental webpack compilation...

webpack is watching the files…

Hash: 1d78443a7c95385c97b0
Version: webpack 4.27.1
Time: 1615ms
Built at: 09/21/2019 6:05:26 AM
              Asset       Size   Chunks             Chunk Names
          bundle.js   28.5 KiB   bundle  [emitted]  bundle
       package.json  112 bytes           [emitted]  
         runtime.js   71.4 KiB  runtime  [emitted]  runtime
tns-java-classes.js    0 bytes           [emitted]  
          vendor.js   4.05 MiB   vendor  [emitted]  vendor
Entrypoint bundle = runtime.js vendor.js bundle.js
[./ sync ^\.\/app\.(css|scss|less|sass)$] . sync nonrecursive ^\.\/app\.(css|scss|less|sass)$ 174 bytes {bundle} [built]
[./ sync recursive (?<!\bApp_Resources\b.*)\.(xml|css|js|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$] . sync (?<!\bApp_Resources\b.*)\.(xml|css|js|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$ 270 bytes {bundle} [built]
[./app-root.xml] 309 bytes {bundle} [optional] [built]
[./app.css] 1.15 KiB {bundle} [optional] [built]
[./app.js] 2.22 KiB {bundle} [built]
[./main-page.js] 1.77 KiB {bundle} [optional] [built]
[./main-page.xml] 1.93 KiB {bundle} [optional] [built]
[./main-view-model.js] 881 bytes {bundle} [built]
[./package.json] 99 bytes {bundle} [optional] [built]
    + 193 hidden modules
Webpack compilation complete. Watching for file changes.
Webpack build done!
Project successfully prepared (android)
Building project...
Gradle build...
	 + setting applicationId
	 + applying user-defined configuration from /home/nsbuilduser/workspace/rc-android-runtime-android-runtime-tests-linux/TestApp/app/App_Resources/Android/app.gradle
	 + using android X library androidx.legacy:legacy-support-v4:1.0.0
	 + adding nativescript runtime package dependency: nativescript-optimized-with-inspector
	 + adding aar plugin dependency: /home/nsbuilduser/workspace/rc-android-runtime-android-runtime-tests-linux/TestApp/node_modules/nativescript-ui-dataform/platforms/android/TNSDataForm-release.aar
	 + adding aar plugin dependency: /home/nsbuilduser/workspace/rc-android-runtime-android-runtime-tests-linux/TestApp/node_modules/nativescript-ui-autocomplete/platforms/android/TNSAutoComplete-release.aar
	 + adding aar plugin dependency: /home/nsbuilduser/workspace/rc-android-runtime-android-runtime-tests-linux/TestApp/node_modules/nativescript-ui-core/platforms/android/TNSCore-release.aar
	 + adding aar plugin dependency: /home/nsbuilduser/workspace/rc-android-runtime-android-runtime-tests-linux/TestApp/node_modules/tns-core-modules-widgets/platforms/android/widgets-release.aar
Exception in thread "main" java.io.IOException: Couldn't find '/home/nsbuilduser/workspace/rc-android-runtime-android-runtime-tests-linux/TestApp/platforms/android/build-tools/sbg-bindings.txt' bindings input file. Most probably there's an error in the JS Parser execution. You can run JS Parser with verbose logging by executing "node '/home/nsbuilduser/workspace/rc-android-runtime-android-runtime-tests-linux/TestApp/platforms/android/build-tools/jsparser/js_parser.js' enableErrorLogging".
	at org.nativescript.staticbindinggenerator.Generator.generateBindings(Generator.java:126)
	at org.nativescript.staticbindinggenerator.Generator.writeBindings(Generator.java:97)
	at org.nativescript.staticbindinggenerator.Main.main(Main.java:53)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:runSbg'.
> Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 12s
Unable to apply changes on device: emulator-5562. Error is: Command ./gradlew failed with exit code 1.

Standard Output

06:04:59 =============================================================
06:04:59 START TEST:  test_443_build_app_and_assert_that_tns_core_modules_could_be_updated
06:04:59 
06:04:59 Kill tns processes.
06:04:59 Kill gradle processes.
06:04:59 Execute command: /home/nsbuilduser/workspace/rc-android-runtime-android-runtime-tests-linux/node_modules/.bin/tns run android --path TestApp --device emulator-5562 >> /home/nsbuilduser/workspace/rc-android-runtime-android-runtime-tests-linux/out/logs/command_2019_09_21_06_04_59_916280.txt 2>&1 &
06:05:00 OUTPUT REDIRECTED: /home/nsbuilduser/workspace/rc-android-runtime-android-runtime-tests-linux/out/logs/command_2019_09_21_06_04_59_916280.txt

06:05:10 npm i tns-core-modules@next (at /home/nsbuilduser/workspace/rc-android-runtime-android-runtime-tests-linux/TestApp).
06:05:14 Execute command: /home/nsbuilduser/workspace/rc-android-runtime-android-runtime-tests-linux/node_modules/.bin/tns plugin add [email protected]  --path /home/nsbuilduser/workspace/rc-android-runtime-android-runtime-tests-linux/TestApp
06:05:20 OUTPUT: 
Successfully installed plugin nativescript-ui-dataform.

06:05:20 Execute command: /home/nsbuilduser/workspace/rc-android-runtime-android-runtime-tests-linux/node_modules/.bin/tns run android --path TestApp --device emulator-5562 >> /home/nsbuilduser/workspace/rc-android-runtime-android-runtime-tests-linux/out/logs/command_2019_09_21_06_05_20_750845.txt 2>&1 &
06:05:21 OUTPUT REDIRECTED: /home/nsbuilduser/workspace/rc-android-runtime-android-runtime-tests-linux/out/logs/command_2019_09_21_06_05_20_750845.txt

History:
http://nsbuild01.telerik.com:8080/build/view/RC%20View/view/android-runtime%20tests/job/rc-android-runtime-android-runtime-tests-linux/107/testReport/android_runtime_tests/AndroidRuntimeTests/test_443_build_app_and_assert_that_tns_core_modules_could_be_updated/history/

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

No branches or pull requests

1 participant