Skip to content

Commit

Permalink
Add logic in package-fboss.py to copy production features as part
Browse files Browse the repository at this point in the history
Summary:
`package-fboss.py` is the script we use to copy all the OSS build outputs into
a unified tarball so that it can be transferred to a switch and run. This
extends the logic to add the newly synced production features files.

Reviewed By: srikrishnagopu

Differential Revision: D61280314

fbshipit-source-id: bcc1d356306ac1cb4c479801b6d4dbc77cfa64a3
  • Loading branch information
paulcruz74 authored and facebook-github-bot committed Aug 14, 2024
1 parent 2f8bc82 commit 6dee6e2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions fboss/oss/scripts/package-fboss.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,16 @@ def _copy_configs(self, tmp_dir_name):
os.path.join(tmp_dir_name, PackageFboss.DATA, "hw_sanity_tests"),
)

def _copy_production_features(self, tmp_dir_name):
production_features_path = os.path.join(
self.git_path, "fboss/oss/production_features"
)
print(f"Copying {production_features_path} to {tmp_dir_name}")
shutil.copytree(
"fboss/oss/production_features",
os.path.join(tmp_dir_name, PackageFboss.DATA, "production_features"),
)

def _copy_known_bad_tests(self, tmp_dir_name):
hw_known_bad_tests_path = os.path.join(
self.git_path, "fboss/oss/hw_known_bad_tests"
Expand Down Expand Up @@ -210,6 +220,7 @@ def _copy_binaries(self, tmp_dir_name):
self._copy_configs(tmp_dir_name)
self._copy_known_bad_tests(tmp_dir_name)
self._copy_unsupported_tests(tmp_dir_name)
self._copy_production_features(tmp_dir_name)

def _compress_binaries(self):
print("Compressing FBOSS Binaries...")
Expand Down

0 comments on commit 6dee6e2

Please sign in to comment.