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

CI: Build a xDSL-embedding Pyodide distribution. #328

Merged
merged 5 commits into from Jan 13, 2023
Merged

CI: Build a xDSL-embedding Pyodide distribution. #328

merged 5 commits into from Jan 13, 2023

Conversation

PapyChacal
Copy link
Collaborator

@PapyChacal PapyChacal commented Jan 12, 2023

This PR now builds a custom Pyodide distribution, embedding xDSL and dependencies, so we can just import xdsl in JupyterLite, as desired. It should also improve startup time.
This can be previewed at papychacal.github.io/xdsl
Note you might need to clear your browser's cache for the page, especially if you get some "hash mismatch" error on importing xDSL.

The Pyodide build is cached, so it should take less than 5 minutes once cached.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link
Collaborator

@webmiche webmiche left a comment

Choose a reason for hiding this comment

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

Nice, this is certainly a good step in the right direction!

.github/workflows/jupyterlite.yml Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jan 12, 2023

Codecov Report

Base: 90.18% // Head: 88.87% // Decreases project coverage by -1.30% ⚠️

Coverage data is based on head (e920ca7) compared to base (63ef315).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #328      +/-   ##
==========================================
- Coverage   90.18%   88.87%   -1.31%     
==========================================
  Files          52       60       +8     
  Lines        7149     7595     +446     
  Branches     1176     1238      +62     
==========================================
+ Hits         6447     6750     +303     
- Misses        460      591     +131     
- Partials      242      254      +12     
Impacted Files Coverage Δ
xdsl/ir.py 84.74% <0.00%> (-0.29%) ⬇️
tests/test_ir.py 100.00% <0.00%> (ø)
xdsl/frontend/context.py 0.00% <0.00%> (ø)
xdsl/frontend/program.py 0.00% <0.00%> (ø)
xdsl/frontend/symref.py 0.00% <0.00%> (ø)
xdsl/frontend/dialects/builtin.py 87.50% <0.00%> (ø)
xdsl/frontend/exception.py 89.47% <0.00%> (ø)
tests/test_frontend_type_conversion.py 98.48% <0.00%> (ø)
xdsl/frontend/op_inserter.py 76.66% <0.00%> (ø)
xdsl/frontend/code_generation.py 0.00% <0.00%> (ø)
... and 2 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@georgebisbas georgebisbas left a comment

Choose a reason for hiding this comment

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

One minor proposal, than another review and we could merge I guess

.github/workflows/update_xdsl_pyodide_build.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@math-fehr math-fehr left a comment

Choose a reason for hiding this comment

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

Nice! Looks good to me!

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.

None yet

4 participants