Skip to content

Fix build and CI #50

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

Merged
merged 8 commits into from
Jul 18, 2025
Merged

Fix build and CI #50

merged 8 commits into from
Jul 18, 2025

Conversation

krassowski
Copy link
Collaborator

@krassowski krassowski commented Jul 18, 2025

Copy link

Binder 👈 Launch a Binder on branch krassowski/jupyter-server-nbmodel/fix-build-and-ci

@krassowski
Copy link
Collaborator Author

Lint is failing:

Checking formatting...
[warn] package.json
[warn] README.md
[warn] src/plugin.ts
[warn] src/requestServer.ts
[warn] tsconfig.json
[warn] Code style issues found in 5 files. Run Prettier with --write to fix.

tsconfig.json is not valid json as trailing commas are not permitted, but this was added in #37

image

The package.json was reformatted in #37 too. I will just run jlpm lint and push a commit.

@krassowski
Copy link
Collaborator Author

And eslint was upgraded to v9 in #37 too (799c588) which does not work and would require a lot of work as it is a complete rewrite of eslint configuration system:

image
Oops! Something went wrong! :(

ESLint: 9.31.0

ESLint couldn't find an eslint.config.(js|mjs|cjs) file.

From ESLint v9.0.0, the default configuration file is now eslint.config.js.
If you are using a .eslintrc.* file, please follow the migration guide
to update your configuration file to the new format:

Reverrting that change too

@krassowski
Copy link
Collaborator Author

Some tests are timing out (related to #16), one test needs updating assertions:

E       assert {'status': 'error', 'execution_count': 1, 'outputs': '[{"output_type": "error", "ename": "ZeroDivisionError", "evalue": "division by zero", "traceback": ["\\u001b[31m---------------------------------------------------------------------------\\u001b[39m", "\\u001b[31mZeroDivisionError\\u001b[39m                         Traceback (most recent call last)", "\\u001b[36mCell\\u001b[39m\\u001b[36m \\u001b[39m\\u001b[32mIn[1]\\u001b[39m\\u001b[32m, line 1\\u001b[39m\\n\\u001b[32m----> \\u001b[39m\\u001b[32m1\\u001b[39m \\u001b[32;43m1\\u001b[39;49m\\u001b[43m \\u001b[49m\\u001b[43m/\\u001b[49m\\u001b[43m \\u001b[49m\\u001b[32;43m0\\u001b[39;49m\\n", "\\u001b[31mZeroDivisionError\\u001b[39m: division by zero"]}]'} == {'status': 'error', 'execution_count': 1, 'outputs': '[{"output_type": "error", "ename": "ZeroDivisionError", "evalue": "division by zero", "traceback": ["\\u001b[0;31m---------------------------------------------------------------------------\\u001b[0m", "\\u001b[0;31mZeroDivisionError\\u
E         
E         Common items:
E         {'execution_count': 1, 'status': 'error'}
E         Differing items:
E         {'outputs': '[{"output_type": "error", "ename": "ZeroDivisionError", "evalue": "division by zero", "traceback": ["\\u0...001b[43m \\u001b[49m\\u001b[32;43m0\\u001b[39;49m\\n", "\\u001b[31mZeroDivisionError\\u001b[39m: division by zero"]}]'} != {'outputs': '[{"output_type": "error", "ename": "ZeroDivisionError", "evalue": "division by zero", "traceback": ["\\u0...m \\u001b[49m\\u001b[38;5;241;43m0\\u001b[39;49m\\n", "\\u001b[0;31mZeroDivisionError\\u001b[0m: division by zero"]}]'}
E         
E         Full diff:
E           {
E               'execution_count': 1,
E               'outputs': '[{"output_type": "error", "ename": "ZeroDivisionError", "evalue": '
E               '"division by zero", "traceback": '
E         -     '["\\u001b[0;31m---------------------------------------------------------------------------\\u001b[0m", '
E         ?                --                                                                                      ^
E         +     '["\\u001b[31m---------------------------------------------------------------------------\\u001b[39m", '
E         ?                                                                                                      ^^
E         -     '"\\u001b[0;31mZeroDivisionError\\u001b[0m                         '
E         ?               --                            ^
E         +     '"\\u001b[31mZeroDivisionError\\u001b[39m                         '
E         ?                                           ^^
E         -     'Traceback (most recent call last)", "Cell \\u001b[0;32mIn[1], line '
E         +     'Traceback (most recent call last)", '
E         +     '"\\u001b[36mCell\\u001b[39m\\u001b[36m '
E         +     '\\u001b[39m\\u001b[32mIn[1]\\u001b[39m\\u001b[32m, line '
E         -     '1\\u001b[0m\\n\\u001b[0;32m----> 1\\u001b[0m '
E         ?               ^            --                  ^
E         +     '1\\u001b[39m\\n\\u001b[32m----> \\u001b[39m\\u001b[32m1\\u001b[39m '
E         ?               ^^                     ++++++++++++++++++++++         ^^
E         -     '\\u001b[38;5;241;43m1\\u001b[39;49m\\u001b[43m '
E         ?               ---- --
E         +     '\\u001b[32;43m1\\u001b[39;49m\\u001b[43m '
E         -     '\\u001b[49m\\u001b[38;5;241;43m/\\u001b[39;49m\\u001b[43m '
E         ?                         ---------            ---
E         +     '\\u001b[49m\\u001b[43m/\\u001b[49m\\u001b[43m '
E         -     '\\u001b[49m\\u001b[38;5;241;43m0\\u001b[39;49m\\n", '
E         ?                          ---- --
E         +     '\\u001b[49m\\u001b[32;43m0\\u001b[39;49m\\n", '
E         -     '"\\u001b[0;31mZeroDivisionError\\u001b[0m: division by zero"]}]',
E         ?               --                            ^
E         +     '"\\u001b[31mZeroDivisionError\\u001b[39m: division by zero"]}]',
E         ?                                           ^^
E               'status': 'error',
E           }

@krassowski krassowski marked this pull request as ready for review July 18, 2025 15:31
@echarles
Copy link
Member

Thx for taking care of this @krassowski and sorry for all the breakage...

CI is back green. Happy to merge if you think you are done with the repairs :)

image

@krassowski
Copy link
Collaborator Author

Yes, ready to go!

Copy link
Member

@echarles echarles left a comment

Choose a reason for hiding this comment

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

LGTM Thx @krassowski

@echarles echarles merged commit cf195be into datalayer:main Jul 18, 2025
6 checks passed
@krassowski krassowski deleted the fix-build-and-ci branch July 18, 2025 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

This CI is broken Make pytest unit tests more robust
2 participants