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

Persist theme - Reload everything on a disconnect #3250

Merged
merged 8 commits into from
Aug 7, 2024
Merged

Conversation

lf94
Copy link
Contributor

@lf94 lf94 commented Aug 3, 2024

Closes #3106 (@franknoirot didn't set you as a reviewer on this one since I know you're traveling atm)

@lf94 lf94 requested review from jtran, jessfraz and Irev-Dev August 3, 2024 18:30
Copy link

qa-wolf bot commented Aug 3, 2024

A coverage request was created for this pull request.

Copy link

vercel bot commented Aug 3, 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 7, 2024 7:03am

@Irev-Dev
Copy link
Collaborator

Irev-Dev commented Aug 3, 2024

Is it possible that this broke the ability of the unit tests to connect to the engine? because build-test-web https://github.com/KittyCAD/modeling-app/actions/runs/10230111319/job/28304548336?pr=3250 failed and I tried a re-run.

Other branches are passing just fine so think something has gone awry here
#3254

I will try and take a look but you can run this test locally with yarn test:nowatch artifactGraph

@jessfraz
Copy link
Contributor

jessfraz commented Aug 4, 2024

We could do a playwright snapshot test here or otherwise make sure qawolf adds coverage

@Irev-Dev
Copy link
Collaborator

Irev-Dev commented Aug 4, 2024

Lee FYI I'll take a look at fixing the tests this morning.

@Irev-Dev Irev-Dev changed the title Reload everything on a disconnect Persist theme - Reload everything on a disconnect Aug 4, 2024
Comment on lines 366 to 380
if (!this.pingPongSpan.ping)
this.connect(this.engineCommandManager.disableWebRTC ? true : false)
Copy link
Collaborator

@Irev-Dev Irev-Dev Aug 4, 2024

Choose a reason for hiding this comment

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

@lf94 This is what I did to fix the unit tests (build-test-web), because I wasn't able to replicate the original issue i.e. #3265 would you mind double checking this doesn't cause other issues?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only seeing this comment now. Let's see what happens with the latest changes

Copy link
Collaborator

Choose a reason for hiding this comment

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

@lf94 replying to
#3250 (comment)

This is my fix for the failing artifact map unit tests

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh but it's broken again hmmm.

@Irev-Dev
Copy link
Collaborator

Irev-Dev commented Aug 4, 2024

@jessfraz I have a test for this ready to go, just hit another issue is all
#3264

Copy link
Collaborator

@Irev-Dev Irev-Dev left a comment

Choose a reason for hiding this comment

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

Actually I think #3265 is not a separate issue, but is introduced by this change as Test network and connection issues › simulate network down and network little widget seems to be consistently failing

@lf94 lf94 force-pushed the theme-not-persist branch from a4572d7 to 27db603 Compare August 6, 2024 01:10
@lf94
Copy link
Contributor Author

lf94 commented Aug 6, 2024

@Irev-Dev what's the artifact map stuff failing in the web test?

@Irev-Dev
Copy link
Collaborator

Irev-Dev commented Aug 6, 2024

@Irev-Dev what's the artifact map stuff failing in the web test?

So failure here
https://github.com/KittyCAD/modeling-app/actions/runs/10258606032/job/28381694429?pr=3250

Basically that test tries to connect to the real-dev engine websockets, but without webRTC, I did manage to fix it once earlier on this branch, but it's seems to be broken again not sure why.

@lf94
Copy link
Contributor Author

lf94 commented Aug 6, 2024

Ok should be no problem to fix

@lf94
Copy link
Contributor Author

lf94 commented Aug 6, 2024

Ah the issue must be because I removed the await and instead added this in the artifactGraph.test

  engineCommandManager.addEventListener(
    EngineCommandManagerEvents.SceneReady,
    async () => {

@lf94 lf94 force-pushed the theme-not-persist branch from 14b2503 to 0e38477 Compare August 6, 2024 21:44
* kurts attempts

* we're almost sane

* get tests working, praise be

---------

Co-authored-by: 49lf <ircsurfer33@gmail.com>
@Irev-Dev
Copy link
Collaborator

Irev-Dev commented Aug 7, 2024

So much effort to make the theme persist haha.

@Irev-Dev Irev-Dev merged commit 3f082c8 into main Aug 7, 2024
21 checks passed
@Irev-Dev Irev-Dev deleted the theme-not-persist branch August 7, 2024 07:11
This was referenced Aug 7, 2024
franknoirot added a commit that referenced this pull request Aug 7, 2024
@franknoirot franknoirot mentioned this pull request Aug 7, 2024
@Irev-Dev Irev-Dev mentioned this pull request Aug 8, 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

Successfully merging this pull request may close these issues.

Theme not persisted
3 participants