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

try turn back on macos #3504

Closed
wants to merge 3 commits into from
Closed

try turn back on macos #3504

wants to merge 3 commits into from

Conversation

jessfraz
Copy link
Contributor

No description provided.

Signed-off-by: Jess Frazelle <[email protected]>
Copy link

qa-wolf bot commented Aug 17, 2024

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

Copy link

vercel bot commented Aug 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Aug 17, 2024 9:39pm

@jessfraz jessfraz changed the title updates try turn back on macos Aug 17, 2024
Signed-off-by: Jess Frazelle <[email protected]>
Signed-off-by: Jess Frazelle <[email protected]>
@jessfraz
Copy link
Contributor Author

@ryanrosello-og thought you might have ideas on this one, on macOS the tests hang on can’t wait on console but on windows/ubuntu they are fine, in this PR I tried not using the playwright version of google chrome and instead use the one in brew and it had same issue, it’s super weird

@ryanrosello-og
Copy link
Contributor

ryanrosello-og commented Aug 18, 2024

hello @jessfraz

I had a crack at this and found the following:

  • From the Github doco, apparently they already have Google Chrome installed on the runner so we shouldn't need to mess around installing it ourselves:
2024-08-18_12-27-01
  • The current retry logic in the workflow wipes out useful artifacts like the tracefile so I created a branch (ryanrosello-og/troubleshoot-turn-on-macos) off your branch and hacked up the playwright.yml for troubleshooting:

The tests seems to be falling over here...

2024-08-18_12-42-41

I've never seen this error message before, I'm hoping this makes sense to you:

THREE.WebGLRenderer: A WebGL context could not be created. Reason:  Could not create a WebGL context, VENDOR = 0xffff, DEVICE = 0xffff, GL_VENDOR = Google Inc. (Google), GL_RENDERER = ANGLE (Google, Vulkan 1.3.0 (SwiftShader Device (LLVM 10.0.0) (0x0000C0DE)), SwiftShader driver-5.0.0), GL_VERSION = 21.0.19, Sandboxed = no, Optimus = no, AMD switchable = no, Reset notification strategy = 0x8252, ErrorMessage = BindToCurrentSequence failed: .
THREE.WebGLRenderer: A WebGL context could not be created. Reason:  Failed to create a WebGL2 context.
THREE.WebGLRenderer: A WebGL context could not be created. Reason:  Could not create a WebGL context, VENDOR = 0xffff, DEVICE = 0xffff, GL_VENDOR = Google Inc. (Google), GL_RENDERER = ANGLE (Google, Vulkan 1.3.0 (SwiftShader Device (LLVM 10.0.0) (0x0000C0DE)), SwiftShader driver-5.0.0), GL_VERSION = 21.0.19, Sandboxed = no, Optimus = no, AMD switchable = no, Reset notification strategy = 0x8252, ErrorMessage = BindToCurrentSequence failed: .
THREE.WebGLRenderer: A WebGL context could not be created. Reason:  Failed to create a WebGL2 context.
THREE.WebGLRenderer: Error creating WebGL context.
Error creating WebGL context.
Error: Error creating WebGL context.
    at new WebGLRenderer (http://localhost:3000/node_modules/.vite/deps/chunk-DEEFU7IG.js?v=3b43911a:16976:19)
    at new SceneInfra (http://localhost:3000/src/clientSideScene/sceneInfra.ts:185:21)
    at http://localhost:3000/src/lib/singletons.ts:14:27
Cannot access 'editorManager' before initialization
ReferenceError: Cannot access 'editorManager' before initialization
    at KclManager.setDiagnosticsForCurrentErrors (http://localhost:3000/src/lang/KclSingleton.ts:91:5)
    at set kclErrors (http://localhost:3000/src/lang/KclSingleton.ts:83:10)
    at KclManager.safeParse (http://localhost:3000/src/lang/KclSingleton.ts:163:20)
    at http://localhost:3000/src/lang/KclSingleton.ts:126:23

This is the tracefile:

trace.zip

You can view it using https://trace.playwright.dev/

Let me know what else I can help with 👍

@jessfraz
Copy link
Contributor Author

Yeah what I don’t understand is why the other os don’t have this same issue, it would at least make sense if they were consistent

@ryanrosello-og
Copy link
Contributor

ryanrosello-og commented Aug 19, 2024

i have some good news and some bad news @jessfraz :

Good news:
my googling found this existing open Playwright issue:
microsoft/playwright#30585

Bad news:
this was previously working but apparently some upstream project reverted the fix which then broke Playwright. Playwright v1.46.0, so it all goes well and issue is fixed we may see it fixed in next releases > v1.47

@ryanrosello-og
Copy link
Contributor

ryanrosello-og commented Aug 19, 2024

https://github.com/KittyCAD/modeling-app/commit/5c291d2c216a4ceb075bdd8e22e7416b7bb8ff49#diff-96a7f8b65f5a714b52cddef[…]cccf604d08789fde9ecb6429bac2
^ this change seemed to have worked :thinking_face:

2024-08-19_18-23-43

https://github.com/KittyCAD/modeling-app/actions/runs/10449661591/job/28932445400
6:26
I thought there was a requirement for the app to use the actual Google Chrome browser (which had some required codec) instead of Playwrights' own chromium browser

if we wanted to roll with this, then its going to need some logic when triggering the tests:

  • ubuntu-latest will use the "Google Chrome" project
  • windows-latest will use the "Google Chrome" project
  • macos-14 will use the "chromium" project

^ nope, false alarm. Copied and pasted "Desktop Safari" by accident. This still does not work

2024-08-19_18-43-39 2024-08-19_18-46-33

@ryanrosello-og
Copy link
Contributor

yeah nah, tried a bunch of other things as well, none of them worked :(

24f2351
1d570b9
c43bf6b

Looks like we'll have to wait for next Playwright release:
2024-08-19_20-47-48

@jessfraz
Copy link
Contributor Author

oh whoa okay nuts, I just like knowing the reason thank you! makes sense!

@jessfraz jessfraz closed this Aug 19, 2024
@jessfraz jessfraz deleted the turn-back-on-macos branch August 19, 2024 19:43
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

Successfully merging this pull request may close these issues.

2 participants