blob: 0a453e6ea10336c537f582a5bf27239d20f2195e [file] [log] [blame] [edit]
# Copyright (C) 2024 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# A --stdout_stderr_regex_allowlist file that expects minimal logs.
# This file works best with the following flags:
#
# To bazel:
# --config=silent (See silent.bazelrc)
# To pkg_install:
# -q
#
# Example:
# tools/bazel \
# --stdout_stderr_regex_allowlist=$(realpath build/kernel/kleaf/spotless_log_regex.txt) \
# run --config=silent //common:kernel_aarch64_dist \
# -- --log=warning
# Conventions:
# If you want to match the whole line, use `^pattern$`.
# If you want to match part of the line, use `^.*pattern.*$`
# This ensures that the patterns work no matter re.match() or re.search()
# is used.
# https://github.com/bazelbuild/bazel/issues/4867
^Starting local Bazel server and connecting to it...$
^Extracting Bazel installation...$
# Allow ignored ABI difference warning
^WARNING: ABI DIFFERENCES HAVE BEEN DETECTED!$
^WARNING: Use '.*' to see and fail on ABI difference.$
# Allow empty lines
^$