`/gradlew build` failing with the following error ...
# getting-started
c
/gradlew build
failing with the following error :
Copy code
> Task :datahub-web:emberWorkspaceTest FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':datahub-web:emberWorkspaceTest'.
> Process 'command '/home/shubham.gupta2/datahub/datahub-web/build/yarn/yarn-v1.13.0/bin/yarn'' finished with non-zero exit value 1
can someone help with this? This is hosted on an EC2 instance
Copy code
| Launcher Chrome not found. Not installed?
 |
 |
 | Stack Trace and Error Report: /tmp/error.dump.eaa9093d2be81a69e334c61446b6c274.log
 | error Command failed with exit code 1.
 | info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.
 | `yarn test` failed with exit code 1
Stopping 2 active children

Report:
  1 packages finished `test` with error: @nacho-ui/core
  1 packages finished `test` successfully: @datahub/pdsc
  15 packages have not started running `test`: @datahub/data-models, @datahub/datasets-core, @datahub/entities, @datahub/metadata-types, @datahub/shared, @datahub/user, @datahub/utils, @nacho-ui/animations, @nacho-ui/avatars, @nacho-ui/button, @nacho-ui/dropdown, @nacho-ui/pill, @nacho-ui/search, @nacho-ui/table, datahub-web
  1 packages have been skipped: @datahub/eslint-plugin

Aborted execution due to previous error
error Command failed with exit code 1.
info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.
It seems to be linked to this https://datahubspace.slack.com/archives/CV2KB471C/p1600688369007000, but I am using the latest repo which incorporates the fixes for this
Just noticed that the fixes are for dockerfile. Tried installing chrome manually on the EC2 instance and rebuilt gradle, but getting the same error with this stacktrace:
Copy code
| Built project successfully. Stored in "/tmp/tests-dist-202096-22624-1c0vvq0.0xeu".
 | not ok 1 Chrome - [undefined ms] - error
 |     ---
 |         message: >
 |             Error: Browser exited unexpectedly
 |             Non-zero exit code: 1
 |             Stderr:
 |              [@nacho-ui/nacho-core/1006/102245.147752:ERROR:<http://zygote_host_impl_linux.cc|zygote_host_impl_linux.cc>(90)] Running as root without --no-sandbox is not supported. See <https://crbug.com/638180>.
 |
 |
 |         browser log: |
 |             [object Object]
 |             [object Object]
 |             [object Object]
 |     ...
 |
 | 1..1
 | # tests 1
 | # pass  0
 | # skip  0
 | # fail  1
 | Testem finished with non-zero exit code. Tests failed.
 |
 | error Command failed with exit code 1.
 | info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.
 | `yarn test` failed with exit code 1
Stopping 2 active children

Report:
  1 packages finished `test` with error: @nacho-ui/core
  1 packages finished `test` successfully: @datahub/pdsc
  15 packages have not started running `test`: @datahub/data-models, @datahub/datasets-core, @datahub/entities, @datahub/metadata-types, @datahub/shared, @datahub/user, @datahub/utils, @nacho-ui/animations, @nacho-ui/avatars, @nacho-ui/button, @nacho-ui/dropdown, @nacho-ui/pill, @nacho-ui/search, @nacho-ui/table, datahub-web
  1 packages have been skipped: @datahub/eslint-plugin

Aborted execution due to previous error
error Command failed with exit code 1.
info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.

> Task :datahub-web:emberWorkspaceTest FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':datahub-web:emberWorkspaceTest'.
> Process 'command '/home/shubham.gupta2/datahub/datahub-web/build/yarn/yarn-v1.13.0/bin/yarn'' finished with non-zero exit value 1
b
@witty-hydrogen-79411 ^^^
a
You can skip this test if you want.
./gradlew build -x :datahub-web:emberWorkspaceTest
- this gradle task alone takes so much time.
👍 1
w
yes, you can skip it
Not very familiar with that error, seems there is some issue with chrome?
c
I guess it is not able to open chrome on the EC2 instance