Skip to content

Implement JSON output for external consumers and update workflow#2079

Merged
atalman merged 5 commits into
pytorch:sitefrom
marco-s:patch-4
Jun 19, 2026
Merged

Implement JSON output for external consumers and update workflow#2079
atalman merged 5 commits into
pytorch:sitefrom
marco-s:patch-4

Conversation

@marco-s

@marco-s marco-s commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Description

This pull request enhances the gen_additional_platforms.py script to generate a new JSON bundle for external consumers. And, it updates the workflow to install required Python dependencies, adds automated error reporting and pull request creation.

Motivation

Make it easier for external consumers to get the additional platforms matrix information. This PR adds to #2072.

marco-s added 2 commits June 8, 2026 18:12
Added functionality to write a JSON bundle for external consumers, including schema version and generation timestamp.
@netlify

netlify Bot commented Jun 9, 2026

Copy link
Copy Markdown

Deploy Preview for pytorch-dot-org-preview ready!

Name Link
🔨 Latest commit 9034833
🔍 Latest deploy log https://app.netlify.com/projects/pytorch-dot-org-preview/deploys/6a343d2ec5c5a30008206e40
😎 Deploy Preview https://deploy-preview-2079--pytorch-dot-org-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment thread scripts/gen_additional_platforms.py
@fffrog

fffrog commented Jun 9, 2026

Copy link
Copy Markdown

Hi @marco-s , thank you for updats, it look good to me.

Parsing a Json is very easy compared to parsing a js file :D

@fffrog

fffrog commented Jun 9, 2026

Copy link
Copy Markdown

Hi @albanD, would you mind helping to review this PR, thank you in advance.

Why we need those changes

The JSON is easier to parse than JS file from WP side, so we need to save the output into JSON and release it in the master branch for website.

@can-gaa-hou

Copy link
Copy Markdown
Contributor

Thanks for fixing the CI error @marco-s

@albanD albanD left a comment

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.

Outputting json sounds fair. But the workflow update needs to be inspected a lot closer.

Comment thread .github/workflows/update-quick-start-module.yml Outdated
Comment thread .github/workflows/update-quick-start-module.yml Outdated
Comment thread .github/workflows/update-quick-start-module.yml
Comment thread .github/workflows/update-quick-start-module.yml Outdated
Comment thread .github/workflows/update-quick-start-module.yml Outdated
Pin action versions to commit SHA in the workflow and removed the issue creation step.
@marco-s

marco-s commented Jun 15, 2026

Copy link
Copy Markdown
Contributor Author

@atalman @malfet @albanD Yes, it makes sense to remove the "Create Issue" step and to pin the three third-party actions. I've updated the PR.

@marco-s

marco-s commented Jun 18, 2026

Copy link
Copy Markdown
Contributor Author

@fffrog @can-gaa-hou Want to tag you as well to make sure that we can continue with the review of this PR. Is there anything we need to address? Thank you for your help!

albanD
albanD previously approved these changes Jun 18, 2026
Comment thread scripts/gen_additional_platforms.py
Comment thread .github/workflows/update-quick-start-module.yml
@albanD albanD self-requested a review June 18, 2026 18:38
@albanD albanD dismissed their stale review June 18, 2026 18:38

Actually not ok

@albanD albanD left a comment

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.

Ok ok

@marco-s marco-s requested a review from atalman June 18, 2026 21:22
@atalman atalman merged commit b25a6b8 into pytorch:site Jun 19, 2026
11 of 13 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.

6 participants