Skip to content

Disable bazel's layering_check feature during CodeQL build. - #36500

Merged
alyssawilk merged 1 commit into
envoyproxy:mainfrom
asedeno:no_layering_check_during_codeql
Oct 8, 2024
Merged

alyssawilk merged 1 commit into
envoyproxy:mainfrom
asedeno:no_layering_check_during_codeql

Conversation

@asedeno

@asedeno asedeno commented Oct 8, 2024 •

Copy link
Copy Markdown
Contributor

It doesn't work without sandboxing, and this build uses --spawn_strategy=local.

bazelbuild/bazel#21592

Once we upgrade to a bazel 7.3.0+, this should no longer be needed.

Risk Level: Low; only affects CI CodeQL build

It doesn't work without sandboxing, and this build uses
`--spawn_strategy=local`.

bazelbuild/bazel#21592

Signed-off-by: Alejandro R. Sedeño <[email protected]>

@alyssawilk alyssawilk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean it sure looks like it works

@asedeno

asedeno commented Oct 8, 2024

Copy link
Copy Markdown
Contributor Author

The CodeQL run here didn't do anything, but building like it does inside the envoy docker has the same failures, and the one flag fixes it.

@phlax phlax left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks @asedeno

@alyssawilk
alyssawilk merged commit 7f4bd24 into envoyproxy:main Oct 8, 2024
@asedeno
asedeno deleted the no_layering_check_during_codeql branch October 8, 2024 16:57
Stevenjin8 pushed a commit to Stevenjin8/envoy that referenced this pull request Oct 10, 2024
…xy#36500)

It doesn't work without sandboxing, and this build uses
`--spawn_strategy=local`.

bazelbuild/bazel#21592

Once we upgrade to a bazel 7.3.0+, this should no longer be needed.

Risk Level: Low; only affects CI CodeQL build

Signed-off-by: Alejandro R. Sedeño <[email protected]>
Signed-off-by: Steven Jin Xuan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants