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

WebGL issues with WDI5 on Jenkins #614

Closed
apoorvavishwanatha opened this issue May 15, 2024 · 5 comments
Closed

WebGL issues with WDI5 on Jenkins #614

apoorvavishwanatha opened this issue May 15, 2024 · 5 comments

Comments

@apoorvavishwanatha
Copy link

Hi,

We are trying to run some WDI5 tests on Jenkins in a docker container that contain test cases on a 3D Viewer (this component: https://ui5.sap.com/#/entity/sap.ui.vk.tutorial.VIT/sample/sap.ui.vk.tutorial.VIT.06)

These do not seem to run on jenkins, and it seems like the root cause is that WebGL is not enabled with the chromedriver. Is there any specific wdio configuration that we can use to force the browser to run with WebGL enabled?

These are the current flags we are using in the wdio.conf.js file under goog:chromeOptions for browserName: "chrome"
args:

"--headless",
"--incognito",
"--disable-dev-shm-usage",
"--window-size=1366,768",
"--no-sandbox",
"--disable-extensions",
"--ignore-certificate-errors",
"--disable-gpu",
"--ignore-urlfetcher-cert-requests"

These are the dev dependency versions:

"devDependencies": {
		"@wdio/cli": "^8.16.0",
		"@wdio/junit-reporter": "^8.24.2",
		"@wdio/local-runner": "^8.16.0",
		"@wdio/mocha-framework": "^8.16.0",
		"@wdio/spec-reporter": "^8.16.0",
		"@wdio/utils": "^8.16.0",
		"chromedriver": "^123.0.0",
		"prettier": "^3.1.1",
		"wdio-chromedriver-service": "^8.1.0",
		"wdio-docker-service": "^3.2.1",
		"wdio-timeline-reporter": "^5.1.0",
		"wdio-ui5-service": "^2.0.0",
		"xmlhttprequest-ssl": "^2.1.1"
}
@vobu
Copy link
Contributor

vobu commented May 22, 2024

never encountered this before, but did you try to not
--disable-gpu
?

@apoorvavishwanatha
Copy link
Author

@vobu we did, but didn't seem to work. Even with the current configuration, it seems like WebGL was enabled at random. Are there any specific wdio configurations recommended for use with threejs/3D apis?

@vobu
Copy link
Contributor

vobu commented May 23, 2024

i never had to run tests headless on a d3/threejs app - sorry, can't help here. i'd suggest you hop over to the wdio discord channel - chances are you'll get some advice there...

@apoorvavishwanatha
Copy link
Author

@vobu could you help me out with the channel link please?

@vobu
Copy link
Contributor

vobu commented May 23, 2024

@vobu vobu closed this as completed May 23, 2024
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

2 participants