Repository navigation
ci: Read every line of the extra bazel options - #49292
Merged
Merged
Conversation
`BAZEL_BUILD_EXTRA_OPTIONS` (and the test and startup ones) can span lines, eg a workflow's `bazel-extra` from a folded YAML block whose expressions are on their own (more indented) lines. `read` only reads the first line, so the options on the others were silently dropped. The lines are joined before they are split. Signed-off-by: Ryan Northey <[email protected]>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the change to preserve multiline Bazel extra options.
No open issues 🎉
What changed in this PR
Fixes CI option parsing so multiline Bazel extra options are preserved rather than silently dropping all but the first line.
Changes:
- Replaces embedded newlines with spaces before splitting build, test, and startup extra options into arrays.
- Adds a comment explaining why multiline values need normalization.
| File | Description |
|---|---|
ci/build_setup.sh |
Normalizes multiline Bazel extra options before parsing them. |
Review effort: Balanced
jwendell
approved these changes
Nov 16, 2026
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
`ci/build_setup.sh` splits `BAZEL_BUILD_EXTRA_OPTIONS` (and the test and startup ones) with `read -ra`, which only reads the first line, so any options on later lines are silently dropped. The value can span lines: a workflow's `bazel-extra` from a folded (`>-`) YAML block keeps a line break before a more-indented line, eg an expression continued over several lines. This bit in envoy-ci-staging, where flags passed this way (`--modify_execution_info=...`) never reached bazel, with no error. No workflow on main currently passes a multi-line value, so this is latent here; the lines are now joined before they are split. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit bb5fb42) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
`ci/build_setup.sh` splits `BAZEL_BUILD_EXTRA_OPTIONS` (and the test and startup ones) with `read -ra`, which only reads the first line, so any options on later lines are silently dropped. The value can span lines: a workflow's `bazel-extra` from a folded (`>-`) YAML block keeps a line break before a more-indented line, eg an expression continued over several lines. This bit in envoy-ci-staging, where flags passed this way (`--modify_execution_info=...`) never reached bazel, with no error. No workflow on main currently passes a multi-line value, so this is latent here; the lines are now joined before they are split. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit bb5fb42) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
`ci/build_setup.sh` splits `BAZEL_BUILD_EXTRA_OPTIONS` (and the test and startup ones) with `read -ra`, which only reads the first line, so any options on later lines are silently dropped. The value can span lines: a workflow's `bazel-extra` from a folded (`>-`) YAML block keeps a line break before a more-indented line, eg an expression continued over several lines. This bit in envoy-ci-staging, where flags passed this way (`--modify_execution_info=...`) never reached bazel, with no error. No workflow on main currently passes a multi-line value, so this is latent here; the lines are now joined before they are split. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit bb5fb42) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
`ci/build_setup.sh` splits `BAZEL_BUILD_EXTRA_OPTIONS` (and the test and startup ones) with `read -ra`, which only reads the first line, so any options on later lines are silently dropped. The value can span lines: a workflow's `bazel-extra` from a folded (`>-`) YAML block keeps a line break before a more-indented line, eg an expression continued over several lines. This bit in envoy-ci-staging, where flags passed this way (`--modify_execution_info=...`) never reached bazel, with no error. No workflow on main currently passes a multi-line value, so this is latent here; the lines are now joined before they are split. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit bb5fb42) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
`ci/build_setup.sh` splits `BAZEL_BUILD_EXTRA_OPTIONS` (and the test and startup ones) with `read -ra`, which only reads the first line, so any options on later lines are silently dropped. The value can span lines: a workflow's `bazel-extra` from a folded (`>-`) YAML block keeps a line break before a more-indented line, eg an expression continued over several lines. This bit in envoy-ci-staging, where flags passed this way (`--modify_execution_info=...`) never reached bazel, with no error. No workflow on main currently passes a multi-line value, so this is latent here; the lines are now joined before they are split. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit bb5fb42) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
`ci/build_setup.sh` splits `BAZEL_BUILD_EXTRA_OPTIONS` (and the test and startup ones) with `read -ra`, which only reads the first line, so any options on later lines are silently dropped. The value can span lines: a workflow's `bazel-extra` from a folded (`>-`) YAML block keeps a line break before a more-indented line, eg an expression continued over several lines. This bit in envoy-ci-staging, where flags passed this way (`--modify_execution_info=...`) never reached bazel, with no error. No workflow on main currently passes a multi-line value, so this is latent here; the lines are now joined before they are split. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit bb5fb42) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
`ci/build_setup.sh` splits `BAZEL_BUILD_EXTRA_OPTIONS` (and the test and startup ones) with `read -ra`, which only reads the first line, so any options on later lines are silently dropped. The value can span lines: a workflow's `bazel-extra` from a folded (`>-`) YAML block keeps a line break before a more-indented line, eg an expression continued over several lines. This bit in envoy-ci-staging, where flags passed this way (`--modify_execution_info=...`) never reached bazel, with no error. No workflow on main currently passes a multi-line value, so this is latent here; the lines are now joined before they are split. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit bb5fb42) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
`ci/build_setup.sh` splits `BAZEL_BUILD_EXTRA_OPTIONS` (and the test and startup ones) with `read -ra`, which only reads the first line, so any options on later lines are silently dropped. The value can span lines: a workflow's `bazel-extra` from a folded (`>-`) YAML block keeps a line break before a more-indented line, eg an expression continued over several lines. This bit in envoy-ci-staging, where flags passed this way (`--modify_execution_info=...`) never reached bazel, with no error. No workflow on main currently passes a multi-line value, so this is latent here; the lines are now joined before they are split. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit bb5fb42) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
`ci/build_setup.sh` splits `BAZEL_BUILD_EXTRA_OPTIONS` (and the test and startup ones) with `read -ra`, which only reads the first line, so any options on later lines are silently dropped. The value can span lines: a workflow's `bazel-extra` from a folded (`>-`) YAML block keeps a line break before a more-indented line, eg an expression continued over several lines. This bit in envoy-ci-staging, where flags passed this way (`--modify_execution_info=...`) never reached bazel, with no error. No workflow on main currently passes a multi-line value, so this is latent here; the lines are now joined before they are split. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit bb5fb42) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
that referenced
this pull request
Nov 17, 2026
`ci/build_setup.sh` splits `BAZEL_BUILD_EXTRA_OPTIONS` (and the test and startup ones) with `read -ra`, which only reads the first line, so any options on later lines are silently dropped. The value can span lines: a workflow's `bazel-extra` from a folded (`>-`) YAML block keeps a line break before a more-indented line, eg an expression continued over several lines. This bit in envoy-ci-staging, where flags passed this way (`--modify_execution_info=...`) never reached bazel, with no error. No workflow on main currently passes a multi-line value, so this is latent here; the lines are now joined before they are split. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit bb5fb42) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
`ci/build_setup.sh` splits `BAZEL_BUILD_EXTRA_OPTIONS` (and the test and startup ones) with `read -ra`, which only reads the first line, so any options on later lines are silently dropped. The value can span lines: a workflow's `bazel-extra` from a folded (`>-`) YAML block keeps a line break before a more-indented line, eg an expression continued over several lines. This bit in envoy-ci-staging, where flags passed this way (`--modify_execution_info=...`) never reached bazel, with no error. No workflow on main currently passes a multi-line value, so this is latent here; the lines are now joined before they are split. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit bb5fb42) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
`ci/build_setup.sh` splits `BAZEL_BUILD_EXTRA_OPTIONS` (and the test and startup ones) with `read -ra`, which only reads the first line, so any options on later lines are silently dropped. The value can span lines: a workflow's `bazel-extra` from a folded (`>-`) YAML block keeps a line break before a more-indented line, eg an expression continued over several lines. This bit in envoy-ci-staging, where flags passed this way (`--modify_execution_info=...`) never reached bazel, with no error. No workflow on main currently passes a multi-line value, so this is latent here; the lines are now joined before they are split. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit bb5fb42) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
`ci/build_setup.sh` splits `BAZEL_BUILD_EXTRA_OPTIONS` (and the test and startup ones) with `read -ra`, which only reads the first line, so any options on later lines are silently dropped. The value can span lines: a workflow's `bazel-extra` from a folded (`>-`) YAML block keeps a line break before a more-indented line, eg an expression continued over several lines. This bit in envoy-ci-staging, where flags passed this way (`--modify_execution_info=...`) never reached bazel, with no error. No workflow on main currently passes a multi-line value, so this is latent here; the lines are now joined before they are split. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit bb5fb42) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
`ci/build_setup.sh` splits `BAZEL_BUILD_EXTRA_OPTIONS` (and the test and startup ones) with `read -ra`, which only reads the first line, so any options on later lines are silently dropped. The value can span lines: a workflow's `bazel-extra` from a folded (`>-`) YAML block keeps a line break before a more-indented line, eg an expression continued over several lines. This bit in envoy-ci-staging, where flags passed this way (`--modify_execution_info=...`) never reached bazel, with no error. No workflow on main currently passes a multi-line value, so this is latent here; the lines are now joined before they are split. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit bb5fb42) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
`ci/build_setup.sh` splits `BAZEL_BUILD_EXTRA_OPTIONS` (and the test and startup ones) with `read -ra`, which only reads the first line, so any options on later lines are silently dropped. The value can span lines: a workflow's `bazel-extra` from a folded (`>-`) YAML block keeps a line break before a more-indented line, eg an expression continued over several lines. This bit in envoy-ci-staging, where flags passed this way (`--modify_execution_info=...`) never reached bazel, with no error. No workflow on main currently passes a multi-line value, so this is latent here; the lines are now joined before they are split. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit bb5fb42) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 18, 2026
`ci/build_setup.sh` splits `BAZEL_BUILD_EXTRA_OPTIONS` (and the test and startup ones) with `read -ra`, which only reads the first line, so any options on later lines are silently dropped. The value can span lines: a workflow's `bazel-extra` from a folded (`>-`) YAML block keeps a line break before a more-indented line, eg an expression continued over several lines. This bit in envoy-ci-staging, where flags passed this way (`--modify_execution_info=...`) never reached bazel, with no error. No workflow on main currently passes a multi-line value, so this is latent here; the lines are now joined before they are split. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit bb5fb42) Signed-off-by: Ryan Northey <[email protected]>
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.
Commit Message: ci: Read every line of the extra bazel options
Additional Description:
ci/build_setup.shsplitsBAZEL_BUILD_EXTRA_OPTIONS(and the test and startup ones) withread -ra, which only reads the first line, so any options on later lines are silently dropped.The value can span lines: a workflow's
bazel-extrafrom a folded (>-) YAML block keeps a line break before a more-indented line, eg an expression continued over several lines. This bit in envoy-ci-staging, where flags passed this way (--modify_execution_info=...) never reached bazel, with no error.No workflow on main currently passes a multi-line value, so this is latent here; the lines are now joined before they are split.
Risk Level: low
Testing: CI, envoy-ci-staging
Docs Changes: n/a
Release Notes: n/a