Skip to content

Commit c2fdacc

Browse files
committed
Set incompatible_strict_action_env and announce_rc in CI
1 parent 029a4dc commit c2fdacc

File tree

5 files changed

+5
-1
lines changed

5 files changed

+5
-1
lines changed

.bazelci/presubmit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ buildifier:
3434
build_flags:
3535
- "--keep_going"
3636
- "--build_tag_filters=-integration-test"
37+
- "--announce_rc"
3738
test_targets:
3839
- "--"
3940
- "..."

.bazelrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ build --incompatible_default_to_explicit_init_py
2020
# Ensure ongoing compatibility with this flag.
2121
common --incompatible_disallow_struct_provider_syntax
2222

23+
common --incompatible_strict_action_env
24+
2325
# Windows makes use of runfiles for some rules
2426
build --enable_runfiles
2527

examples/bzlmod/.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ test --test_output=errors --enable_runfiles
77

88
# Windows requires these for multi-python support:
99
build --enable_runfiles
10+
build --incompatible_strict_action_env
1011
common:bazel7.x --incompatible_python_disallow_native_rules

tests/integration/custom_commands_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import logging
1615
import unittest
1716

1817
from tests.integration import runner

tests/integration/runner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ def setUp(self):
8282
self.tmp_dir = outer_test_tmpdir / "bit_tmp"
8383
self.bazel_env = {
8484
"PATH": os.environ["PATH"],
85+
"HOME": os.environ["HOME"],
8586
"TEST_TMPDIR": str(self.test_tmp_dir),
8687
"TMP": str(self.tmp_dir),
8788
# For some reason, this is necessary for Bazel 6.4 to work.

0 commit comments

Comments
 (0)