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

Add compatibility date for Pyodide 0.26.4 #3268

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hoodmane
Copy link
Contributor

No description provided.

@hoodmane hoodmane requested review from a team as code owners December 24, 2024 13:26
@hoodmane hoodmane force-pushed the hoodmane/python-workers-v2-compat-date branch from 45c5971 to 76beac7 Compare December 24, 2024 13:29
@hoodmane hoodmane requested a review from danlapid December 24, 2024 13:30
@@ -673,4 +673,11 @@ struct CompatibilityFlags @0x8f8c1b68151b6cef {
tailWorkerUserSpans @69 :Bool
$compatEnableFlag("tail_worker_user_spans")
$experimental;

pythonWorkersV2 @70 :Bool
Copy link
Collaborator

Choose a reason for hiding this comment

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

Again the V2 looks wrong to me, I don't know if that's the way we should go down.
We'll eventually have v2, v3, v4, v5 ... but that's not very descriptive of what they are and why the user should use one or the other.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was thinking that we'll just add a bunch of $impliedByAfterDate's and the user passes python_workers and a date.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In any case, I think it's okay to change the name as long as it's marked experimental. I also don't think "pyodide v0.26.4" means that much to the end users. Calendar versioning would be reasonable like pythonWorkers_2024_12.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah calendar versioning seems better than pyodide versioning, I agree the pyodide version doesn't tell the user much

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My only reluctance is that I don't see any compat flags with underscores in their names. But camel case doesn't really work for dates...

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think I see what you mean.
Alright so let's document this above the python_workers flag.
And let's rename the flag to pythonWorkers20241218.
And we'll document that this

  1. pyodide versions are updated by pythonWorkersYYYYMMDD flags
  2. These flags will remain experimental forever
  3. Users update pyodide version by updating their compat date which will enable the flag via the impliedByAfterDate
  4. Anything else?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Does experimental just stop the user from setting the flag directly with the enable flag and still allow it to be set by implies_by_after_date?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Anyways, if that doesn't work we can always remove both experimental and the enable_flag once we add an impliedByAfterDate.

Copy link
Collaborator

@danlapid danlapid Dec 24, 2024

Choose a reason for hiding this comment

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

Does experimental just stop the user from setting the flag directly

yes.

still allow it to be set by implies_by_after_date?

I don't know, but if not then we need another approach here.

Copy link
Collaborator

Choose a reason for hiding this comment

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

doesn't work we can always remove both experimental

Yeah that would work, add that to the documentation above

@hoodmane hoodmane force-pushed the hoodmane/python-workers-v2-compat-date branch 4 times, most recently from 6682892 to 521fe8c Compare December 24, 2024 15:10
@hoodmane hoodmane force-pushed the hoodmane/python-workers-v2-compat-date branch from 521fe8c to 379fb1e Compare December 24, 2024 15:14
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.

2 participants