Skip to content

Add Python development compatibility flag for tests#2560

Merged
hoodmane merged 1 commit intomainfrom
hoodmane/python-dev-compat-flag
Aug 21, 2024
Merged

Add Python development compatibility flag for tests#2560
hoodmane merged 1 commit intomainfrom
hoodmane/python-dev-compat-flag

Conversation

@hoodmane
Copy link
Copy Markdown
Contributor

This also moves toward deriving the bundle name from the compat date.

@hoodmane hoodmane requested review from a team as code owners August 20, 2024 14:29
@hoodmane hoodmane force-pushed the hoodmane/python-dev-compat-flag branch from daa0378 to 1664ace Compare August 20, 2024 15:41
kj::HttpHeaders headers(table);

kj::String url = kj::str("https://pyodide.runtime-playground.workers.dev/pyodide-capnp-bin/pyodide-", version, ".capnp.bin");
kj::String url = kj::str("https://pyodide.runtime-playground.workers.dev/pyodide-capnp-bin/pyodide_", version, ".capnp.bin");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I went ahead and reuploaded pyodide-0.26.0a2_2024-03-01_0.capnp.bin with the underscore, but we should add testing for loading pyodide through the URL since ideally we'd like CI to tell us that the file was missing.

$pythonSnapshotRelease(pyodide = "0.26.0a2", pyodideRevision = "2024-03-01",
packages = "2024-03-01", backport = 0);
packages = "2024-03-01", backport = 0)
$impliedByAfterDate(name = "pythonWorkersDevPyodide", date = "2000-01-01");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not sure if I'm understanding this bit. If I set my compatibility date to 2024-02-29, does this mean the python_workers_development flag will be set automatically?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I believe that it says if pythonWorkersDevPyodide is on and the compat date is after 2000-01-01 (aka always) then pythonWorkers should be on too.

],
compatibilityDate = "2024-05-02",
compatibilityFlags = ["python_workers"],
compatibilityFlags = ["python_workers_development"],
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I wonder if we can do a find-and-replace on this string to generate the two variants of tests we talked about. I'll fiddle around with the bazel and make a PR.

Copy link
Copy Markdown
Contributor

@garrettgu10 garrettgu10 left a comment

Choose a reason for hiding this comment

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

🚀🚀🚀🚀🚀

@hoodmane hoodmane force-pushed the hoodmane/python-dev-compat-flag branch from 1664ace to 5b2ebce Compare August 21, 2024 07:36
@hoodmane hoodmane requested a review from a team as a code owner August 21, 2024 07:36
@hoodmane hoodmane force-pushed the hoodmane/python-dev-compat-flag branch 2 times, most recently from 905cc6f to f55c29a Compare August 21, 2024 09:04
@hoodmane hoodmane force-pushed the hoodmane/python-dev-compat-flag branch from f55c29a to c2daf51 Compare August 21, 2024 09:08
@hoodmane hoodmane force-pushed the hoodmane/python-dev-compat-flag branch from c2daf51 to 791f222 Compare August 21, 2024 09:28
@hoodmane hoodmane merged commit 0ef4968 into main Aug 21, 2024
@hoodmane hoodmane deleted the hoodmane/python-dev-compat-flag branch August 21, 2024 14:28
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.

3 participants