mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Merge pull request #59283 from mikedanese/bzlint
Automatic merge from submit-queue (batch tested with PRs 58444, 59283, 59437, 59325, 59449). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. bzl: make integration tests actually work #59283 ```release-note NONE ```
This commit is contained in:
commit
fbf7805e3c
@ -1,3 +1,5 @@
|
||||
startup --expand_configs_in_place
|
||||
|
||||
# Show us information about failures.
|
||||
build --verbose_failures
|
||||
test --test_output=errors
|
||||
@ -13,4 +15,10 @@ build --sandbox_tmpfs_path=/tmp
|
||||
build --sandbox_fake_username
|
||||
|
||||
# Enable go race detection.
|
||||
test --features=race
|
||||
test:unit --features=race
|
||||
test:unit --test_tag_filters=-e2e,-integration
|
||||
test:unit --flaky_test_attempts=3
|
||||
|
||||
build:integration --build_tag_filters=integration
|
||||
test:integration --jobs 4
|
||||
test:integration --test_tag_filters=integration
|
||||
|
@ -544,7 +544,7 @@ else
|
||||
# We don't want to build any of the release artifacts when running tests.
|
||||
# Some things in vendor don't build due to empty target lists for cross-platform rules.
|
||||
bazel-test:
|
||||
bazel test --build_tag_filters=-e2e,-integration --test_tag_filters=-e2e,-integration --flaky_test_attempts=3 -- \
|
||||
bazel test --config=unit -- \
|
||||
//... \
|
||||
//hack:verify-all \
|
||||
-//build/... \
|
||||
@ -562,7 +562,8 @@ bazel-test-integration:
|
||||
@echo "$$BAZEL_TEST_INTEGRATION_HELP_INFO"
|
||||
else
|
||||
bazel-test-integration:
|
||||
bazel test //test/integration/...
|
||||
bazel build --config integration //test/integration/...
|
||||
bazel test --config integration //test/integration/...
|
||||
endif
|
||||
|
||||
ifeq ($(PRINT_HELP),y)
|
||||
|
@ -38,7 +38,7 @@ http_archive(
|
||||
|
||||
load("@bazel_skylib//:lib.bzl", "versions")
|
||||
|
||||
versions.check(minimum_bazel_version = "0.8.0")
|
||||
versions.check(minimum_bazel_version = "0.10.0")
|
||||
|
||||
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains", "go_download_sdk")
|
||||
load("@io_bazel_rules_docker//docker:docker.bzl", "docker_repositories", "docker_pull")
|
||||
|
Loading…
Reference in New Issue
Block a user