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

Override browser default from chromium to electron as Cypress 9.5.4 does not run with chromium 114+ #4383

Merged

Conversation

peterzhuamazon
Copy link
Member

Description

Override browser default from chromium to electron as Cypress 9.5.4 does not run with chromium 114+

Issues Resolved

Closes #4241

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…oes not run with chromium 114+

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
Copy link

codecov bot commented Jan 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f2fcdab) 91.35% compared to head (8be6b7a) 91.35%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4383   +/-   ##
=======================================
  Coverage   91.35%   91.35%           
=======================================
  Files         190      190           
  Lines        6197     6197           
=======================================
  Hits         5661     5661           
  Misses        536      536           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tianleh
Copy link
Member

tianleh commented Jan 29, 2024

Any reason to update "opensearchstaging/ci-runner:ci-runner-rockylinux8-opensearch-dashboards-integtest to an old version?

@peterzhuamazon
Copy link
Member Author

Hi @tianleh v4 is pointed to the latest version (which is 4.3), and v4.2 is just 4.2 here.

Comment on lines +24 to +27
"tar": "-u 1000 -e BROWSER_PATH=electron",
"rpm": "--entrypoint=/usr/lib/systemd/systemd -u root --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:rw --cgroupns=host -e BROWSER_PATH=electron",
"deb": "--entrypoint=/usr/lib/systemd/systemd -u root --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:rw --cgroupns=host -e BROWSER_PATH=electron",
"zip": "-u ContainerAdministrator -e BROWSER_PATH=electron",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this variable resolved? Sorry if I missed previous PR related to this change

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/opensearch-project/opensearch-dashboards-functional-test/blob/main/integtest.sh#L90-L94

We can either define it here or change the default of FTrepo.

In talk with the repo maintainer now.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me to use an env variable.

@peterzhuamazon
Copy link
Member Author

Have discussed with @tianleh and since integtest.sh is only for open source, we can safely change it to electron as default. We will run the above changes in Jenkins for a while before switching the ftrepo settings.

Thanks.

@peterzhuamazon peterzhuamazon merged commit 93cdfa4 into opensearch-project:main Jan 30, 2024
13 checks passed
@peterzhuamazon peterzhuamazon deleted the switch-to-electron branch January 30, 2024 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

[BUG] Integration tests for dashboards failing with the image/latest we are currently using
3 participants