Skip to content

Conversation

@travisb-nexthop
Copy link
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

This is the basic Distro Image CI where the Distro Image is built. This simply invokes the fboss-image build command against the sample from_source.json image manifest.

The resulting artifacts are not preserved in this PR.

As part of this it is necessary to remove -it from the docker command
because GHA's don't have a stdin. Further the sample image manifest now
requires all components be present, so add them.

Test Plan

Look at the new workflow results in this PR.

@meta-cla meta-cla bot added the CLA Signed label Dec 1, 2025
@travisb-nexthop
Copy link
Contributor Author

This is a stacked PR where the required PRs are represented as commits. The real change for this PR is this commit.

@travisb-nexthop travisb-nexthop marked this pull request as ready for review December 2, 2025 05:00
@travisb-nexthop travisb-nexthop marked this pull request as draft December 15, 2025 17:42
[Nexthop] Fix linting of Distro Image Shell scripts

The newly introduced shell linter causes the trivial rebasing of the
later Distro Image PRs to fail with many lint errors.

Rather than adding a lot of noise to those PRs, re-lint new shell
scripts separately.

There are two functional fixes in build_image.sh here which seem to
have been broken by previous linting efforts:

1. DOCKER_BUILD_ARGS optionally constructs arguments for `docker
   build`, it must not be quoted when used on the command line or
   docker will receive an invalid option (because it contains literal
   spaces).

2. DOCKER_ARGS is similarly constructed to factor out common options
   between the interactive and non-interactive cases. It must also not
   be quoted.

All other changes are automatically applied by pre-commit.
<!-- Thanks for submitting a pull request! We appreciate you spending
the time to work on these changes. Please provide enough information so
that others can review your pull request. -->

**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`

<!-- Explain the motivation for making this change and any other context
that you think would help reviewers of your code. What existing problem
does the pull request solve? -->

This is the start of the Distro Image CI where the Distro Image is
built. This simply invokes the `fboss-image build` command against the
sample `from_source.json` image manifest.

The resulting artifacts are not preserved in this PR.

As part of this it is necessary to remove `-it` from the docker command
because GHA's don't have a stdin. Further the sample image manifest now
requires all components be present, so add them.

<!-- Demonstrate the code is solid. Example: The exact commands you ran
and their output, screenshots / videos if the pull request changes the
user interface. How exactly did you verify that your PR solves the issue
you wanted to solve? -->

<!-- If a relevant Github issue exists for this PR, please make sure you
link that issue to this PR -->

Look at the new workflow in this PR.
@travisb-nexthop travisb-nexthop marked this pull request as ready for review December 15, 2025 19:37
@meta-codesync
Copy link

meta-codesync bot commented Dec 16, 2025

@kevin645 has imported this pull request. If you are a Meta employee, you can view this in D89304666.

@facebook-github-bot
Copy link
Contributor

@travisb-nexthop has updated the pull request. You must reimport the pull request before landing.

@travisb-nexthop
Copy link
Contributor Author

Imported as part of PR709

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.

2 participants