-
Notifications
You must be signed in to change notification settings - Fork 316
Closed
Labels
P3Would be nice, but probably next quarter at the earliestWould be nice, but probably next quarter at the earliesttype: customer issueThis issue is not a problem with the codebase, but an issue a customer is having.This issue is not a problem with the codebase, but an issue a customer is having.
Description
Hello:
I am making a sample repository for bazel, in order to see if it will fit my needs for ios development.
In order to create a test target for a swift library I am using ios_unit_test, and doing the following:
def swift_test_interface(
name,
srcs,
deps,
):
test_lib_name = name + "Lib"
swift_library(
name = test_lib_name,
srcs = srcs,
deps = deps,
)
ios_unit_test(
name = name,
deps = [":" + test_lib_name],
minimum_os_version = "10.0",
)When running unit tests for swift libraries:
Expectation: they run in the order of ms .
Reality: they are taking usually 15 seconds to run, or even more.
You can see this in CI here:
- https://dev.azure.com/acecilia/BazelVSBuckSample/_build/results?buildId=31&view=logs&jobId=12f1170f-54f2-53f3-20dd-22fc7dff55f9&taskId=59a85588-b0ba-5043-24c4-d9e29d89c6f6&lineStart=112&lineEnd=113&colStart=1&colEnd=89: the two tests I am executing are taking
19.2and21.5seconds to run.
The source code is here: https://github.com/acecilia/BazelVSBuckSample
I already tried to find a similar problem in the issues in this repository, and in the bazel github repository. The only issue that I could find that may be related to this is bazelbuild/bazel#2985 (comment).
Any idea why those tests are taking so long?
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P3Would be nice, but probably next quarter at the earliestWould be nice, but probably next quarter at the earliesttype: customer issueThis issue is not a problem with the codebase, but an issue a customer is having.This issue is not a problem with the codebase, but an issue a customer is having.