Skip to content

[Nexthop] Restrict stable_hashes tarball extraction to hashes and manifests only#1212

Open
benoit-nexthop wants to merge 1 commit into
facebook:mainfrom
nexthop-ai:fix-use-stable-hashes
Open

[Nexthop] Restrict stable_hashes tarball extraction to hashes and manifests only#1212
benoit-nexthop wants to merge 1 commit into
facebook:mainfrom
nexthop-ai:fix-use-stable-hashes

Conversation

@benoit-nexthop
Copy link
Copy Markdown
Contributor

Pre-submission checklist

  • I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running pip install -r requirements-dev.txt && pre-commit install
  • pre-commit run

Summary

The tarball at fboss/oss/stable_commits/latest_stable_hashes.tar.gz contains stale copies of build/fbcode_builder/getdeps/*.py and other build infrastructure files. Extracting it wholesale was silently overwriting the repo's current versions, including build/fbcode_builder/getdeps/cli.py, reverting local changes and fixes that might exist in the current branch / fork.

Scope the extraction to the two directories it is actually meant to update: build/deps/github_hashes/ and build/fbcode_builder/manifests/.

Had to fix various ruff-related complaints in docker-build.py to keep pre-commit check happy.

Test Plan

Not needed.

The tarball at fboss/oss/stable_commits/latest_stable_hashes.tar.gz
contains stale copies of build/fbcode_builder/getdeps/*.py and other
build infrastructure files dated 2026-05-14. Extracting it wholesale
was silently overwriting the repo's current versions, including
build/fbcode_builder/getdeps/cli.py, reverting the conflict-fix that
removed the check_built guard from TestCmd and breaking CI with
"project fboss has not been built".

Scope the extraction to the two directories it is actually meant to
update: build/deps/github_hashes/ and build/fbcode_builder/manifests/.

Had to fix various ruff-related complaints in docker-build.py to keep
pre-commit check happy.
@benoit-nexthop benoit-nexthop requested a review from a team as a code owner May 20, 2026 02:46
@meta-cla meta-cla Bot added the CLA Signed label May 20, 2026
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.

1 participant