Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

chore(local): catch bazel-do issues before push#62943

Merged
jhchabran merged 1 commit into
mainfrom
jh/sg-ci/bazel-prevent-execution-of-disallowed-commands
May 28, 2024
Merged

chore(local): catch bazel-do issues before push#62943
jhchabran merged 1 commit into
mainfrom
jh/sg-ci/bazel-prevent-execution-of-disallowed-commands

Conversation

@jhchabran

@jhchabran jhchabran commented May 28, 2024

Copy link
Copy Markdown
Contributor

Before this PR, you could end up pushing a bazel-do runtype build that is disallowed, which is not the nicest feedback loop as you'll only hear back about the problem once the CI picked it up.

Now the command straight up tells you before anything else. I also added a basic How-to covering this and linked to it in the extended usage description.

Changelog

  • Prevent pushing Bazel commands/flags that would end up being rejected by the CI due to the allow list.

Test plan

CI + locally tested.

@cla-bot cla-bot Bot added the cla-signed label May 28, 2024
@jhchabran jhchabran requested a review from a team May 28, 2024 12:50
@burmudar

Copy link
Copy Markdown
Contributor

@jhchabran one depguard failure but I've approved to not block

@jhchabran jhchabran force-pushed the jh/sg-ci/bazel-prevent-execution-of-disallowed-commands branch from 0de195c to 67d1e68 Compare May 28, 2024 12:59
@jhchabran jhchabran merged commit 21b2918 into main May 28, 2024
@jhchabran jhchabran deleted the jh/sg-ci/bazel-prevent-execution-of-disallowed-commands branch May 28, 2024 13:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants