close
The Wayback Machine - https://web.archive.org/web/20201013222030/https://github.com/angular/components/pull/19298
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: prevent bazel from logging warning on each invocation #19298

Merged
merged 1 commit into from May 13, 2020

Conversation

@crisbeto
Copy link
Member

@crisbeto crisbeto commented May 9, 2020

Each time ibazel is run, it logs something like:

INFO: Build completed successfully, 14 total actions

################################################################################
# Did you know iBazel can invoke programs like Gazelle, buildozer, and         #
# other BUILD file generators for you automatically based on bazel output?     #
# Documentation at: https://github.com/bazelbuild/bazel-watcher#output-runner  #
################################################################################

iBazel [3:24PM]: Use default regex

These changes avoid the annoying banner by adding a .bazel_fix_commands.json file according to https://github.com/bazelbuild/bazel-watcher#output-runner. Note that we it seems like we should be able to do the same by passing the --run_output=false flag, but I wasn't able to get it to work through the .bazelrc.

Each time ibazel is run, it logs something like:

```
INFO: Build completed successfully, 14 total actions

################################################################################
# Did you know iBazel can invoke programs like Gazelle, buildozer, and         #
# other BUILD file generators for you automatically based on bazel output?     #
# Documentation at: https://github.com/bazelbuild/bazel-watcher#output-runner  #
################################################################################

iBazel [3:24PM]: Use default regex
```

These changes avoid the annoying banner by adding a `.bazel_fix_commands.json` file according to https://github.com/bazelbuild/bazel-watcher#output-runner. Note that we it seems like we should be able to do the same by passing the `--run_output=false` flag, but I wasn't able to get it to work through the `.bazelrc`.
@crisbeto crisbeto requested review from jelbourn and angular/dev-infra-components as code owners May 9, 2020
@googlebot googlebot added the cla: yes label May 9, 2020
Copy link
Member

@devversion devversion left a comment

LGTM. Should we submit an issue upstream? I assume a comment in the file would be nice, but it's not JSON5 so we cannot right?

@crisbeto
Copy link
Member Author

@crisbeto crisbeto commented May 11, 2020

I don't know whether we should file an issue, because it's documented which makes me think that it works this way on purpose.

@devversion
Copy link
Member

@devversion devversion commented May 11, 2020

I don't think we should file an issue for the feature they are advertising for, but rather we should file an issue for the "ad banner" that is undesired in some Bazel projects. A way to reasonably disable the advertisement is not documented either.

Copy link
Member

@jelbourn jelbourn left a comment

LGTM

@mmalerba mmalerba merged commit 9377b49 into angular:master May 13, 2020
14 checks passed
14 checks passed
ci/angular: merge status All checks passed!
ci/circleci: api_golden_checks Your tests passed on CircleCI!
Details
ci/circleci: bazel_build Your tests passed on CircleCI!
Details
ci/circleci: build_release_packages Your tests passed on CircleCI!
Details
ci/circleci: e2e_tests Your tests passed on CircleCI!
Details
ci/circleci: integration_tests Your tests passed on CircleCI!
Details
ci/circleci: lint Your tests passed on CircleCI!
Details
ci/circleci: ngcc_compatibility Your tests passed on CircleCI!
Details
ci/circleci: tests_browserstack Your tests passed on CircleCI!
Details
ci/circleci: tests_local_browsers Your tests passed on CircleCI!
Details
ci/circleci: tests_saucelabs Your tests passed on CircleCI!
Details
ci/circleci: upload_release_packages Your tests passed on CircleCI!
Details
ci/circleci: view_engine_test Your tests passed on CircleCI!
Details
cla/google All necessary CLAs are signed
@angular-automatic-lock-bot
Copy link

@angular-automatic-lock-bot angular-automatic-lock-bot bot commented Jun 13, 2020

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.