-
Notifications
You must be signed in to change notification settings - Fork 272
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
[Bug]: Cypress unexpectedly exited when running OSD integ test #1708
Comments
Looks like it is because of the default browser Electron cypress-io/cypress#5965 In FTRpo's CI, the same test cases are passing with browser Chrome. https://github.com/opensearch-project/opensearch-dashboards-functional-test/actions/runs/1936788918 |
Possible directions:
|
After the FTRepo changed Github action to use default browser, it has the same error. https://github.com/opensearch-project/opensearch-dashboards-functional-test/runs/5430672181?check_suite_focus=true
|
@peterzhuamazon If having Chrome installed in the Docker image is easy to do, I would prefer taking this approach. |
cc @seraphjiang |
The download feature may be the reason why Electron failed. |
In FTRepo, the tests are successfully by running against Chrome https://github.com/opensearch-project/opensearch-dashboards-functional-test/runs/5437424313?check_suite_focus=true |
Research a bit. Find that it is feasible to install Chrome for x86 64 However, I could not find such for arm 64. Looks like the report plugin has handled such https://github.com/opensearch-project/dashboards-reports/blob/main/.github/workflows/dashboards-reports-test-and-build-workflow.yml @joshuali925 could you please share some experiences here? |
In FTRepo's Github action workflow, the tests are stably passing https://github.com/opensearch-project/opensearch-dashboards-functional-test/runs/5476767197?check_suite_focus=true |
chrome doesn't have arm64 build, need to use chromium. The reporting headless chromium is built from source and has arm64 version so you can try it. details see https://github.com/opensearch-project/dashboards-reports/tree/main/dashboards-reports/rendering-engine/headless-chrome |
Some existing error in Electron
|
Adding instructions to run against reporting chromium just for reference:
module.exports = (on, config) => {
return {
browsers: config.browsers.concat({
name: 'headless_shell',
channel: 'stable',
family: 'chromium',
displayName: 'headless_shell',
version: '77.0.3844.0',
path: '.chromium/headless_shell',
majorVersion: '77'
}),
}
}
|
Describe the bug
When running OSD integ test, either from cli
./test.sh integ-test manifests/1.3.0/opensearch-dashboards-1.3.0-test.yml
or Jenkins. We can see that the test suite failed because of the following error.To reproduce
locally run
./test.sh integ-test manifests/1.3.0/opensearch-dashboards-1.3.0-test.yml
or rerun Jenkins job
http://jenki-jenki-fpgmrv2ryxko-1366042710.us-east-1.elb.amazonaws.com/job/integ-test-opensearch-dashboards/
See the following sample output. Scroll all the way to the bottom.
https://ci.opensearch.org/ci/dbc/integ-test-opensearch-dashboards/1.3.0/1484/linux/x64/test-results/b94f426463b24046a2ed33c5be290508/integ-test/functionalTestDashboards/without-security/test-results/stdout.txt
Expected behavior
No response
Screenshots
If applicable, add screenshots to help explain your problem.
Host / Environment
No response
Additional context
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: