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

[GHA] Creating a new version only tracks relevant files to git #3306

Closed
wants to merge 1 commit into from

Conversation

CristianLara
Copy link
Contributor

Fixes an issue where unrelated files were getting added to the docusaurus-versions branch. In particular the changes from running tutorials (the tutorials themselves, the dbs) were getting persisted and causing problems for future runs of the tutorials.

Fixes an issue where unrelated files were getting added to the `docusaurus-versions` branch. In particular the changes from running tutorials (the tutorials themselves, the dbs) were getting persisted and causing problems for future runs of the tutorials.
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Feb 4, 2025
@CristianLara
Copy link
Contributor Author

CristianLara commented Feb 4, 2025

Couple more things will need to happen to fully fix this:

  1. Remove the accidentally committed files from docusaurus-versions, PR for this coming soon
  2. Propagate this change to docusaurus-versions branch by catching it up with main once this lands.

@facebook-github-bot
Copy link
Contributor

@CristianLara has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@@ -75,7 +75,7 @@ jobs:
yarn
yarn docusaurus docs:version ${{ inputs.new_version }}
git add --all
git add versioned_docs/ versioned_sidebars/ versions.json
Copy link
Contributor Author

Choose a reason for hiding this comment

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

could have also just done git add . since these are the only modified files in the website/ directory... but after the previous bug I'd rather be as specific as possible

Copy link
Contributor

Choose a reason for hiding this comment

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

And thanks to the merge in l42, we should always be up to date with main for the rest of the repo, so we won't fall behind anywhere else. Versioned docs are only generated as part of this workflow, so we don't have to worry about merge conflicts either.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.75%. Comparing base (a4c8fe5) to head (0f7c8a6).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3306   +/-   ##
=======================================
  Coverage   95.75%   95.75%           
=======================================
  Files         525      525           
  Lines       52467    52467           
=======================================
  Hits        50240    50240           
  Misses       2227     2227           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -75,7 +75,7 @@ jobs:
yarn
yarn docusaurus docs:version ${{ inputs.new_version }}
git add --all
git add versioned_docs/ versioned_sidebars/ versions.json
Copy link
Contributor

Choose a reason for hiding this comment

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

And thanks to the merge in l42, we should always be up to date with main for the rest of the repo, so we won't fall behind anywhere else. Versioned docs are only generated as part of this workflow, so we don't have to worry about merge conflicts either.

@facebook-github-bot
Copy link
Contributor

@CristianLara merged this pull request in e2082ae.

facebook-github-bot pushed a commit to pytorch/botorch that referenced this pull request Feb 4, 2025
Summary:
Fixes an issue where unrelated files could get added to the `docusaurus-versions` branch. This broke GHA in the Ax repo since this was adding the results of running tutorials. Botorch doesn't run tutorials in CI but we still fix this to avoid other possible issues down the road.

Same fix as the Ax counterpart: facebook/Ax#3306

Pull Request resolved: #2726

Reviewed By: saitcakmak

Differential Revision: D69128162

Pulled By: CristianLara

fbshipit-source-id: 95c798cf5c10a1fe2ed21b719a64afdf8d53ff0e
@saitcakmak saitcakmak deleted the gha-deploy-dont-track-run-tutorials branch February 6, 2025 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants