Skip to content

Fix broken doc-push #1034

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 1 commit into from
Mar 28, 2025
Merged

Fix broken doc-push #1034

merged 1 commit into from
Mar 28, 2025

Conversation

kiukchung
Copy link
Contributor

Summary:
I fixed doc-build in #1033 by:

  1. pinning protobuf-3.20.x in torchx's dev-requirements.txt since apache-airflow (defined in docs/requirements.txt) was upgrading to protobuf>=5.x which is incompatible with kfp-1.8.x.
  2. installing doc/requirements.txt FIRST, then installing torchx so that the pinned version of protobuf is honored.

The above fixes doc-build but not doc-push because doc-push runs scripts/doc-push.sh which needed the same change as #2.

Differential Revision: D72059926

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 28, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D72059926

kiukchung added a commit that referenced this pull request Mar 28, 2025
Summary:

I fixed doc-build in #1033 by:

1. pinning `protobuf-3.20.x` in torchx's `dev-requirements.txt` since `apache-airflow` (defined in `docs/requirements.txt`) was upgrading to `protobuf>=5.x` which is incompatible with `kfp-1.8.x`.
2. installing `doc/requirements.txt` FIRST, then installing `torchx` so that the pinned version of `protobuf` is honored.

The above fixes `doc-build` but not `doc-push` because `doc-push` runs `scripts/doc-push.sh` which needed the same change as #2.

NOTE: this wasn't caught in #1033 because we don't run `doc-push` for PRs (doc-push only runs for releases and commits in trunk since it literally pushes the built docs to https://pytorch.org/torchx)

Differential Revision: D72059926
Summary:
Pull Request resolved: #1034

I fixed doc-build in #1033 by:

1. pinning `protobuf-3.20.x` in torchx's `dev-requirements.txt` since `apache-airflow` (defined in `docs/requirements.txt`) was upgrading to `protobuf>=5.x` which is incompatible with `kfp-1.8.x`.
2. installing `doc/requirements.txt` FIRST, then installing `torchx` so that the pinned version of `protobuf` is honored.

The above fixes `doc-build` but not `doc-push` because `doc-push` runs `scripts/doc-push.sh` which needed the same change as #2.

NOTE: this wasn't caught in #1033 because we don't run `doc-push` for PRs (doc-push only runs for releases and commits in trunk since it literally pushes the built docs to https://pytorch.org/torchx)

Differential Revision: D72059926
Copy link
Contributor

@tonykao8080 tonykao8080 left a comment

Choose a reason for hiding this comment

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

looks good

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D72059926

@kiukchung kiukchung merged commit cb2407f into main Mar 28, 2025
23 of 24 checks passed
@kiukchung kiukchung deleted the export-D72059926 branch March 28, 2025 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants