Skip to content

Update latest jupyter-ydoc + JupyterLab + Galata#1538

Merged
martinRenou merged 8 commits into
geojupyter:mainfrom
nakul-py:test-build-fix
Jun 19, 2026
Merged

Update latest jupyter-ydoc + JupyterLab + Galata#1538
martinRenou merged 8 commits into
geojupyter:mainfrom
nakul-py:test-build-fix

Conversation

@nakul-py

@nakul-py nakul-py commented Jun 19, 2026

Copy link
Copy Markdown
Member

Description

Checklist

  • PR has a descriptive title and content.
  • PR description contains references to any issues the PR resolves, e.g. Resolves #XXX.
  • PR has one of the labels: documentation, bug, enhancement, feature, maintenance
  • Checks are passing.
    Failing lint checks can be resolved with:
    • pre-commit run --all-files
    • jlpm run lint
  • If you wish to be cited for your contribution, CITATION.cff contains an author entry for yourself

📚 Documentation preview: https://jupytergis--1538.org.readthedocs.build/en/1538/
💡 JupyterLite preview: https://jupytergis--1538.org.readthedocs.build/en/1538/lite
💡 Specta preview: https://jupytergis--1538.org.readthedocs.build/en/1538/lite/specta

@github-actions

Copy link
Copy Markdown
Contributor

Binder 👈 Launch a Binder on branch nakul-py/jupytergis/test-build-fix

@martinRenou

Copy link
Copy Markdown
Member

Thanks @nakul-py ! I think this is going in the right direction

@martinRenou

Copy link
Copy Markdown
Member

friendly ping @davidbrochart

@davidbrochart

Copy link
Copy Markdown
Collaborator

Why are tests failing?

Comment thread packages/schema/src/doc.ts Outdated
Comment thread packages/schema/src/doc.ts Outdated
Comment thread packages/schema/src/doc.ts
@martinRenou

Copy link
Copy Markdown
Member

Why are tests failing?

We need to make dirty a getter. I guess we need a setter as well? I assume when the document is saved, the content provider will set this property to false?

@davidbrochart

Copy link
Copy Markdown
Collaborator

Since JupyterGISDoc extends YDocument, you don't have to redefine dirty?

@nakul-py

Copy link
Copy Markdown
Member Author

Since JupyterGISDoc extends YDocument, you don't have to redefine dirty?

Yes i think same, instead we can do

 get dirty(): boolean {
    return super.dirty;
  }

@davidbrochart

Copy link
Copy Markdown
Collaborator

Or nothing at all :)

@nakul-py nakul-py added the maintenance Fixing lint errors, changing project metadata, changing tooling, changing dependencies, etc. label Jun 19, 2026
@nakul-py

Copy link
Copy Markdown
Member Author

Got this new error

———————————————————————————————————————————————————————————————————————————————————
     @jupytergis/jupytergis-qgis:build
      src/plugins.ts(176,9): error TS2322: Type '() => JupyterGISDoc' is not assignable to type 'SharedDocumentFactory'.
        Type 'JupyterGISDoc' is not assignable to type 'YDocument<DocumentChange>'.
          Property 'onStateChanged' is protected but type 'YDocument<T>' is not a class derived from 'YDocument<T>'.
      
      

Comment thread packages/schema/src/interfaces.ts Outdated
@nakul-py

Copy link
Copy Markdown
Member Author

Now test build without lockfile passes after updating ydoc version but got other type mismatch error that fails the build.

@davidbrochart

Copy link
Copy Markdown
Collaborator

other type mismatch error

Which one?

@nakul-py

nakul-py commented Jun 19, 2026

Copy link
Copy Markdown
Member Author

Got this new error

———————————————————————————————————————————————————————————————————————————————————
     @jupytergis/jupytergis-qgis:build
      src/plugins.ts(176,9): error TS2322: Type '() => JupyterGISDoc' is not assignable to type 'SharedDocumentFactory'.
        Type 'JupyterGISDoc' is not assignable to type 'YDocument<DocumentChange>'.
          Property 'onStateChanged' is protected but type 'YDocument<T>' is not a class derived from 'YDocument<T>'.
      
      

This one

@martinRenou martinRenou changed the title test build? Update latest jupyter-ydoc + JupyterLab Jun 19, 2026
@nakul-py

Copy link
Copy Markdown
Member Author

I think both JupyterGISDoc and SharedDocumentFactory similar, we are hitting just common typescript type mismatch error.

So i think to suppress it we have to give JupyterGISDoc() a type assertion?

Comment thread yarn.lock Outdated
@nakul-py nakul-py marked this pull request as ready for review June 19, 2026 09:33
@nakul-py

Copy link
Copy Markdown
Member Author

Integration test failure are unrelated and 50 failed tests on every PR 😨

@martinRenou martinRenou changed the title Update latest jupyter-ydoc + JupyterLab Update latest jupyter-ydoc + JupyterLab + Galata Jun 19, 2026
@martinRenou

Copy link
Copy Markdown
Member

Integration test failure are unrelated and 50 failed tests on every PR 😨

This is due to using the new JupyterLab 4.6 in the CI with an outdated galata version in the ui-tests

@nakul-py

Copy link
Copy Markdown
Member Author

This is due to using the new JupyterLab 4.6 in the CI with an outdated galata version in the ui-tests

Ohhh i see

@martinRenou

Copy link
Copy Markdown
Member

Argh, we won't be able to have both lite and lab ui-tests running while jupyterlite 0.8.0 is not released.

@nakul-py

nakul-py commented Jun 19, 2026

Copy link
Copy Markdown
Member Author

Snapshots failure here. Why? 🤔

@nakul-py

Copy link
Copy Markdown
Member Author

bot please update snapshots

@martinRenou

Copy link
Copy Markdown
Member

Snapshots failure here. Why? 🤔

I think this is probably some UI change in JupyterLab. Good call on asking to update them 👍🏽

I'm surprised that the lite tests are passing, but 🤷🏽‍♂️

@nakul-py

nakul-py commented Jun 19, 2026

Copy link
Copy Markdown
Member Author

I'm surprised that the lite tests are passing

Yep sometimes lite tests automatic fails and pass

but the integration tests be like: Not today, You got work to do 😂.

@martinRenou

Copy link
Copy Markdown
Member

Remaining failure is just the flaky stac result, seen before.

Thanks @nakul-py for this! Let's get it in

@martinRenou martinRenou merged commit 247fc2b into geojupyter:main Jun 19, 2026
19 of 20 checks passed
@nakul-py nakul-py deleted the test-build-fix branch June 19, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Fixing lint errors, changing project metadata, changing tooling, changing dependencies, etc. Needs Port To JupyterCAD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants