NativeScript/nativescript-tooling-qa

[flaky test] run_tests.TnsRunJSTests.test_115_tns_run_android_add_remove_files_and_folders

dtopuzov opened this issue · 0 comments

Error Message

Output does not contain ['JS: renamed file synced!!!']

Stacktrace

Traceback (most recent call last):
  File "/usr/lib/python2.7/unittest/case.py", line 329, in run
    testMethod()
  File "/home/nsbuilduser/workspace/master-cli-run-linux/tests/cli/run/tests/run_tests.py", line 306, in test_115_tns_run_android_add_remove_files_and_folders
    TnsLogs.wait_for_log(log_file=result.log_file, string_list=strings)
  File "/home/nsbuilduser/workspace/master-cli-run-linux/products/nativescript/tns_logs.py", line 338, in wait_for_log
    assert False, "Output does not contain {0}".format(not_found_list)
AssertionError: Output does not contain ['JS: renamed file synced!!!']

Standard Output

02:28:51 =============================================================
02:28:51 START TEST:  test_115_tns_run_android_add_remove_files_and_folders
02:28:51 
02:28:51 Kill tns processes.
02:28:51 Kill gradle processes.
02:28:51 Open home screen of emulator-5568.
02:28:54 The logcat on emulator-5568 is cleared.
02:28:54 Copy /home/nsbuilduser/workspace/master-cli-run-linux/data/temp/TestApp/app to /home/nsbuilduser/workspace/master-cli-run-linux/TestApp/app
02:28:54 Execute command: /home/nsbuilduser/workspace/master-cli-run-linux/node_modules/.bin/tns run android --path TestApp --emulator >> /home/nsbuilduser/workspace/master-cli-run-linux/out/logs/command_2019_09_25_02_28_54_690913.txt 2>&1 &
02:28:55 OUTPUT REDIRECTED: /home/nsbuilduser/workspace/master-cli-run-linux/out/logs/command_2019_09_25_02_28_54_690913.txt

02:29:05 Can not define if app should be restarted or not.
02:29:23 'Successfully synced application org.nativescript.TestApp on device' found.
02:29:23 All items found
02:29:25 taps left found on Emulator-Api29-Google.
02:29:27 TAP found on Emulator-Api29-Google.
02:29:28 Image of emulator-5568 saved at /home/nsbuilduser/workspace/master-cli-run-linux/out/images/Emulator-Api29-Google/initial_state.png
02:29:29 compileSdkVersion="29" found in AndroidManifest.xml
02:29:32 'JS: test.js synced!!!' found.
02:29:32 All items found
02:29:32 
02:29:32 ##### REPLACE FILE CONTENT #####
02:29:32 File: /home/nsbuilduser/workspace/master-cli-run-linux/TestApp/app/test_2.js
02:29:32 Old String: test.js
02:29:32 New String: renamed file
02:29:32 
02:29:33 
02:29:33 ##### REPLACE FILE CONTENT #####
02:29:33 File: /home/nsbuilduser/workspace/master-cli-run-linux/TestApp/app/app.js
02:29:33 Old String: test.js
02:29:33 New String: test_2.js
02:29:33 
02:30:33 NOT FOUND: ['JS: renamed file synced!!!']
02:30:33 ##### ACTUAL LOG #####

02:30:33 [VERIFIED]File change detected. Starting incremental webpack compilation...
Hash: abcbc8958131d9bfa684
Version: webpack 4.27.1
Time: 61ms
Built at: 09/25/2019 2:29:32 AM
                                    Asset       Size   Chunks             Chunk Names
     6a09ece24fbc82db9886.hot-update.json   48 bytes           [emitted]  
bundle.6a09ece24fbc82db9886.hot-update.js  548 bytes   bundle  [emitted]  bundle
                                bundle.js   29.1 KiB   bundle  [emitted]  bundle
                               runtime.js   71.4 KiB  runtime  [emitted]  runtime
 + 1 hidden asset
Entrypoint bundle = runtime.js vendor.js bundle.js bundle.6a09ece24fbc82db9886.hot-update.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]
[./test.js] 225 bytes {bundle} [built] [failed] [1 error]
    + 200 hidden modules

ERROR in ./test.js
Module build failed (from ../node_modules/nativescript-dev-webpack/hmr/hot-loader.js):
Error: ENOENT: no such file or directory, open '/home/nsbuilduser/workspace/master-cli-run-linux/TestApp/app/test.js'
 @ ./app.js 61:0-20
Webpack compilation complete. Watching for file changes.
Webpack build done!
Successfully transferred bundle.6a09ece24fbc82db9886.hot-update.js on device emulator-5568.
Successfully transferred 6a09ece24fbc82db9886.hot-update.json on device emulator-5568.
JS: HMR: Checking for updates to the bundle with hmr hash 6a09ece24fbc82db9886.
JS: HMR: Ignored an update to unaccepted module: 
JS: HMR:          ➭ ./test.js
JS: HMR:          ➭ ./app.js
JS: HMR: Cannot apply update with hmr hash 6a09ece24fbc82db9886.
JS: HMR: Aborted because ./test.js is not accepted
JS: Update propagation: ./test.js -> ./app.js
Refreshing application on device emulator-5568...
Successfully transferred bundle.js on device emulator-5568.
Successfully transferred runtime.js on device emulator-5568.
Successfully transferred vendor.js on device emulator-5568.
JS: HMR: Cannot apply update. A previous update aborted. Application needs to be restarted in order to apply the changes.
Restarting application on device emulator-5568...
File change detected. Starting incremental webpack compilation...
Hash: ab36883e5a1b167e869d
Version: webpack 4.27.1
Time: 68ms
Built at: 09/25/2019 2:29:33 AM
                                    Asset      Size   Chunks             Chunk Names
     abcbc8958131d9bfa684.hot-update.json  48 bytes           [emitted]  
bundle.abcbc8958131d9bfa684.hot-update.js  8.27 KiB   bundle  [emitted]  bundle
                                bundle.js  29.9 KiB   bundle  [emitted]  bundle
                               runtime.js  71.4 KiB  runtime  [emitted]  runtime
 + 1 hidden asset
Entrypoint bundle = runtime.js vendor.js bundle.js bundle.abcbc8958131d9bfa684.hot-update.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.js] 2.33 KiB {bundle} [built]
[./test_2.js] 276 bytes {bundle} [built]
    + 199 hidden modules
Successfully synced application org.nativescript.TestApp on device emulator-5568.
Webpack compilation complete. Watching for file changes.
Webpack build done!
Successfully transferred bundle.abcbc8958131d9bfa684.hot-update.js on device emulator-5568.
Successfully transferred abcbc8958131d9bfa684.hot-update.json on device emulator-5568.
Refreshing application on device emulator-5568...
JS: HMR: Hot Module Replacement Enabled. Waiting for signal.
Successfully synced application org.nativescript.TestApp on device emulator-5568.

02:30:33 ######################