[Nexthop] Integrate distro_cli unit tests into CMake#792
Closed
raghav-nexthop wants to merge 4 commits intofacebook:mainfrom
Closed
[Nexthop] Integrate distro_cli unit tests into CMake#792raghav-nexthop wants to merge 4 commits intofacebook:mainfrom
raghav-nexthop wants to merge 4 commits intofacebook:mainfrom
Conversation
Summary:
Here an RPM specfile and surrounding machinery is added to build an
FBOSS-compatible Linux kernel from vanilla Linux sources which is
compatible with CentOS. On top of this reference configuration,
additional local changes from `fboss-local-overrides.yaml` are applied
prior to building.
To use, inside an FBOSS build container, run:
# fboss-image/kernel/scripts/build_kernel.sh 6.4.3 out
...
Kernel RPM build complete!
Output files:
out/x86_64/kernel-modules-6.4.3-1.fboss.el9.x86_64.rpm
out/x86_64/kernel-headers-6.4.3-1.fboss.el9.x86_64.rpm
out/x86_64/kernel-core-6.4.3-1.fboss.el9.x86_64.rpm
out/x86_64/kernel-devel-6.4.3-1.fboss.el9.x86_64.rpm
out/BUILD/linux-6.4.3/kernel/config_data.gz
out/SRPMS/kernel-6.4.3-1.fboss.el9.src.rpm
out/kernel-6.4.3.rpms.tar.gz
out/kernel-6.4.3-1.fboss.el9.src.rpm
out/RPMS/x86_64/kernel-modules-6.4.3-1.fboss.el9.x86_64.rpm
out/RPMS/x86_64/kernel-headers-6.4.3-1.fboss.el9.x86_64.rpm
out/RPMS/x86_64/kernel-core-6.4.3-1.fboss.el9.x86_64.rpm
out/RPMS/x86_64/kernel-devel-6.4.3-1.fboss.el9.x86_64.rpm
# ls fboss-image/kernel/dist/build-6.4.3/out/
kernel-6.4.3-1.fboss.el9.src.rpm kernel-core-6.4.3-1.fboss.el9.x86_64.rpm kernel-headers-6.4.3-1.fboss.el9.x86_64.rpm
kernel-6.4.3.rpms.tar.gz kernel-devel-6.4.3-1.fboss.el9.x86_64.rpm kernel-modules-6.4.3-1.fboss.el9.x86_64.rpm
0277a47 to
3a4da29
Compare
This was referenced Jan 9, 2026
raghav-nexthop
added a commit
to nexthop-ai/fboss
that referenced
this pull request
Jan 9, 2026
Add Docker container and image management: - Docker container wrapper with exec/run capabilities - Docker image wrapper with build/pull/tag operations - Comprehensive unit tests for container and image operations Dependencies: Uses constants from PR facebook#792 Test Plan: - All tests passing: 37/37 tests pass - Files added: 6 files, +572 lines - Unit tests: docker_test.py (1 test), docker_image_test.py (4 tests) - Docker image builds successfully (3.61GB, 52 build steps)
2 tasks
raghav-nexthop
added a commit
to nexthop-ai/fboss
that referenced
this pull request
Jan 9, 2026
Add Docker container and image management: - Docker container wrapper with exec/run capabilities - Docker image wrapper with build/pull/tag operations - Build script for FBOSS builder Docker image - Comprehensive unit tests for Docker operations Dependencies: Uses constants from PR facebook#792 Test Plan: - All unit tests pass (docker_test.py, docker_image_test.py) - Docker image builds successfully with all build dependencies
raghav-nexthop
added a commit
to nexthop-ai/fboss
that referenced
this pull request
Jan 9, 2026
Add Docker container and image management: - Docker container wrapper with exec/run capabilities - Docker image wrapper with build/pull/tag operations - Build script for FBOSS builder Docker image - Comprehensive unit tests for Docker operations Dependencies: Uses constants from PR facebook#792 Test Plan: - All unit tests pass (docker_test.py, docker_image_test.py) - Docker image builds successfully with all build dependencies
Add CMake configuration and CI workflow for FBOSS Image Builder: - CMake test configuration for distro_cli unit tests - GitHub Actions workflow for automated testing - README documentation for the distro_cli tool Test Plan: - CMake configuration tested with pytest integration - CI workflow validates on pull requests
3a4da29 to
613ae64
Compare
Contributor
Author
|
New PR will be created. |
meta-codesync bot
pushed a commit
that referenced
this pull request
Jan 28, 2026
Summary: **Pre-submission checklist** - [x] 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` - [x] `pre-commit run` Here an RPM specfile and surrounding machinery is added to build an FBOSS-compatible Linux kernel from vanilla Linux sources which is compatible with CentOS. On top of this reference configuration, additional local changes from `fboss-local-overrides.yaml` are applied prior to building. This is a first in the series. The next one is #792 Pull Request resolved: #735 Test Plan: # fboss-image/kernel/scripts/build_kernel.sh 6.4.3 out ... Kernel RPM build complete! Output files: out/x86_64/kernel-modules-6.4.3-1.fboss.el9.x86_64.rpm out/x86_64/kernel-headers-6.4.3-1.fboss.el9.x86_64.rpm out/x86_64/kernel-core-6.4.3-1.fboss.el9.x86_64.rpm out/x86_64/kernel-devel-6.4.3-1.fboss.el9.x86_64.rpm out/BUILD/linux-6.4.3/kernel/config_data.gz out/SRPMS/kernel-6.4.3-1.fboss.el9.src.rpm out/kernel-6.4.3.rpms.tar.gz out/kernel-6.4.3-1.fboss.el9.src.rpm out/RPMS/x86_64/kernel-modules-6.4.3-1.fboss.el9.x86_64.rpm out/RPMS/x86_64/kernel-headers-6.4.3-1.fboss.el9.x86_64.rpm out/RPMS/x86_64/kernel-core-6.4.3-1.fboss.el9.x86_64.rpm out/RPMS/x86_64/kernel-devel-6.4.3-1.fboss.el9.x86_64.rpm # ls fboss-image/kernel/dist/build-6.4.3/out/ kernel-6.4.3-1.fboss.el9.src.rpm kernel-core-6.4.3-1.fboss.el9.x86_64.rpm kernel-headers-6.4.3-1.fboss.el9.x86_64.rpm kernel-6.4.3.rpms.tar.gz kernel-devel-6.4.3-1.fboss.el9.x86_64.rpm kernel-modules-6.4.3-1.fboss.el9.x86_64.rpm Reviewed By: kevin645 Differential Revision: D91489386 Pulled By: shiva-menta fbshipit-source-id: 2124e1d5fd9bdbc0221990676c15ae176ca4b696
dzarista
pushed a commit
to dzarista/fboss
that referenced
this pull request
Feb 19, 2026
Summary: **Pre-submission checklist** - [x] 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` - [x] `pre-commit run` Here an RPM specfile and surrounding machinery is added to build an FBOSS-compatible Linux kernel from vanilla Linux sources which is compatible with CentOS. On top of this reference configuration, additional local changes from `fboss-local-overrides.yaml` are applied prior to building. This is a first in the series. The next one is facebook#792 Pull Request resolved: facebook#735 Test Plan: # fboss-image/kernel/scripts/build_kernel.sh 6.4.3 out ... Kernel RPM build complete! Output files: out/x86_64/kernel-modules-6.4.3-1.fboss.el9.x86_64.rpm out/x86_64/kernel-headers-6.4.3-1.fboss.el9.x86_64.rpm out/x86_64/kernel-core-6.4.3-1.fboss.el9.x86_64.rpm out/x86_64/kernel-devel-6.4.3-1.fboss.el9.x86_64.rpm out/BUILD/linux-6.4.3/kernel/config_data.gz out/SRPMS/kernel-6.4.3-1.fboss.el9.src.rpm out/kernel-6.4.3.rpms.tar.gz out/kernel-6.4.3-1.fboss.el9.src.rpm out/RPMS/x86_64/kernel-modules-6.4.3-1.fboss.el9.x86_64.rpm out/RPMS/x86_64/kernel-headers-6.4.3-1.fboss.el9.x86_64.rpm out/RPMS/x86_64/kernel-core-6.4.3-1.fboss.el9.x86_64.rpm out/RPMS/x86_64/kernel-devel-6.4.3-1.fboss.el9.x86_64.rpm # ls fboss-image/kernel/dist/build-6.4.3/out/ kernel-6.4.3-1.fboss.el9.src.rpm kernel-core-6.4.3-1.fboss.el9.x86_64.rpm kernel-headers-6.4.3-1.fboss.el9.x86_64.rpm kernel-6.4.3.rpms.tar.gz kernel-devel-6.4.3-1.fboss.el9.x86_64.rpm kernel-modules-6.4.3-1.fboss.el9.x86_64.rpm Reviewed By: kevin645 Differential Revision: D91489386 Pulled By: shiva-menta fbshipit-source-id: 2124e1d5fd9bdbc0221990676c15ae176ca4b696
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pre-submission checklist
pip install -r requirements-dev.txt && pre-commit installpre-commit runSummary
Add cmake/FbossImageDistroCliTests.cmake to integrate distro_cli unit tests into the CMake build system:
This is a second in the series. The previous one is #735 The next one is #793
Test Plan
Unit tests: