Skip to content

Add Pyodide lockFileURL test #2209

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 2 commits into from
Oct 7, 2024

Conversation

WebReflection
Copy link
Contributor

Description

This MR adds a test that:

  • uses both numpy and matplotlib as packages and load from CDN on fresh start
  • takes time to bootstrap without any cache
  • takes time to bootstrap via lockFileURL and the storage cache
  • produces OK as result if the lockFileURL was faster

Changes

  • Added integration test for lockFileURL

Checklist

  • I have checked make build works locally.
  • I have created / updated documentation for this change (if applicable).

@WebReflection WebReflection force-pushed the pyodide-lockfile-test branch from fe46131 to c87ee14 Compare October 4, 2024 11:48
@WebReflection
Copy link
Contributor Author

In all fairness, this test is not taking into account that saving to the storage the lockfile might add up logic on the second run ... however, this is also good as regression test in general as it's easy to spot when or if the cache is working ... let's see on CI how this goes, I can have dozen OK locally though.

@WebReflection WebReflection requested a review from ntoll October 4, 2024 11:55
@WebReflection WebReflection force-pushed the pyodide-lockfile-test branch from 259efad to e008036 Compare October 7, 2024 11:19
@WebReflection WebReflection merged commit febbb03 into pyscript:main Oct 7, 2024
2 checks passed
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