Skip to content

Accept published_at field for CrossBuildEnvReleaseSpec and add publish date information to MetadataView#349

Merged
agriyakhetarpal merged 10 commits into
mainfrom
publish-date-for-xbuildenvs
May 21, 2026
Merged

Accept published_at field for CrossBuildEnvReleaseSpec and add publish date information to MetadataView#349
agriyakhetarpal merged 10 commits into
mainfrom
publish-date-for-xbuildenvs

Conversation

@agriyakhetarpal

@agriyakhetarpal agriyakhetarpal commented May 20, 2026

Copy link
Copy Markdown
Member

This is a companion PR to pyodide/pyodide#6248. I'm trying to add metadata about when the cross-build environments are published, so consumers of such information can use it however they like.

  • CrossBuildEnvReleaseSpec now takes in a published_at field with ISO 8601 timestamps
  • MetadataView, i.e., the table and the JSON, have a "Published" column and a published_at field. They are currently blank and null, but will work once the corresponding Pyodide PR is merged and deployed to GitHub Pages, i.e., the published_at dates are included in the live JSON file.

@agriyakhetarpal agriyakhetarpal changed the title Accept published_at field for CrossBuildEnvReleaseSpec Accept published_at field for CrossBuildEnvReleaseSpec and add publish date information to MetadataView May 20, 2026
@agriyakhetarpal agriyakhetarpal marked this pull request as ready for review May 20, 2026 05:24
@ryanking13

Copy link
Copy Markdown
Member

Thanks. But this means the older versions of pyodide-build will suddenly stop working because of the remote metadata file change. I should've made pyodide-build robust on the spec changes...

@ryanking13

ryanking13 commented May 20, 2026

Copy link
Copy Markdown
Member

One workaround that I can think of is changing the metadata url, say, keeping the

https://pyodide.github.io/pyodide/api/pyodide-cross-build-environments.json

point to the old metadata file without the publiched_at key, freeze it.

and then, we make a new v2 url with a new metadata file with the new keys

https://pyodide.github.io/pyodide/api/v2/pyodide-cross-build-environments.json

and update the url in pyodide-build (+ allow extra keys)

@agriyakhetarpal

Copy link
Copy Markdown
Member Author

Oh, thanks for raising this. Good idea. I think we should loosen our requirements for the spec going forward at the same time, so that we don't need to introduce a v3 unless we really really need it...

@agriyakhetarpal

Copy link
Copy Markdown
Member Author

I'll update this PR with the changes in a bit!

@agriyakhetarpal agriyakhetarpal marked this pull request as draft May 20, 2026 08:13
@agriyakhetarpal

Copy link
Copy Markdown
Member Author

Okay, we didn't exactly need a lot of changes here. I'm keeping this as draft until we have the v2 URL live on GitHub Pages.

agriyakhetarpal added a commit to pyodide/pyodide-build-environment-nightly that referenced this pull request May 21, 2026
- Adds a script to add v2 metadata for nightly cross-build environments
in a JSON file (see generated JSON file)
- The `publish.yml` workflow file now pushes a commit to `main`. I chose
to not use a PR because it adds a bit of churn, but I can change the
approach if asked
- Added a `pages.yml` workflow to deploy the file on GitHub Pages

There is no v1 file here, just v2, because it's the first time we are
doing it and it doesn't make sense to go with the old spec.

I will follow this up by putting together a PR in pyodide-build to use
this metadata for those who would like to use nightly and nightly-debug
builds.

xref pyodide/pyodide#6248,
pyodide/pyodide-build#349

@ryanking13 ryanking13 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! Let's merge this after we start publishing v2 metadata. I left a minor comment otherwise looks good.

Comment thread pyodide_build/views.py Outdated
agriyakhetarpal and others added 3 commits May 21, 2026 14:55
Co-Authored-By: Gyeongjae Choi <def6488@gmail.com>
@agriyakhetarpal agriyakhetarpal marked this pull request as ready for review May 21, 2026 09:48
@agriyakhetarpal agriyakhetarpal merged commit 04ac2d2 into main May 21, 2026
11 checks passed
@agriyakhetarpal agriyakhetarpal deleted the publish-date-for-xbuildenvs branch May 21, 2026 09:54
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