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

Bazel postsubmit build is failing at HEAD on MacOS #20437

Closed
sgowroji opened this issue Dec 5, 2023 · 11 comments
Closed

Bazel postsubmit build is failing at HEAD on MacOS #20437

sgowroji opened this issue Dec 5, 2023 · 11 comments
Labels
breakage P1 I'll work on this now. (Assignee required) team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: bug

Comments

@sgowroji
Copy link
Member

sgowroji commented Dec 5, 2023

CI:https://buildkite.com/bazel/bazel-bazel/builds/25852#018c37b0-3cb4-4829-826b-eced53b34e5f

Platform: MacOS

Logs:

//src/test/java/com/google/devtools/build/lib/rules/cpp:CppSysrootTest   FAILED in 3 out of 3 in 21.2s
//src/test/java/com/google/devtools/build/lib/rules/objc:BazelJ2ObjcLibraryTest FAILED in 3 out of 3 in 64.1s
//src/test/shell/integration:minimal_jdk_test                            FAILED in 3 out of 3 in 54.8s
//src/test/shell/bazel/android:android_instrumentation_test_integration_test FAILED in 12 out of 12 in 45.1s
//src/test/java/com/google/devtools/build/lib/rules/objc:ObjcRulesTests  FAILED in 60 out of 60 in 35.3s

CC Greenteam @meteorcloudy

@sgowroji sgowroji added type: bug breakage untriaged team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website labels Dec 5, 2023
@meteorcloudy meteorcloudy added the P1 I'll work on this now. (Assignee required) label Dec 5, 2023
@meteorcloudy
Copy link
Member

//src/test/java/com/google/devtools/build/lib/rules/cpp:CppSysrootTest

@comius testSysroot failing

//src/test/shell/integration:minimal_jdk_test

@justinhorvitz First failure: https://buildkite.com/bazel/bazel-bazel/builds/25817#018c2609-2671-4b30-aedb-240fe80ba467

//src/test/shell/bazel/android:android_instrumentation_test_integration_test

@katre Can you take a look at this one?

//src/test/java/com/google/devtools/build/lib/rules/objc:BazelJ2ObjcLibraryTest
//src/test/java/com/google/devtools/build/lib/rules/objc:ObjcRulesTests

9) checkWithoutLinkingApiCannotCreateObjcProviderWithSdkFramework(com.google.devtools.build.lib.rules.objc.ObjcStarlarkTest)
value of:
    throwable.getMessage()
expected to contain:
    Key 'sdk_framework' no longer supported in ObjcProvider (use CcInfo instead).
but was:
    ERROR /workspace/examples/objc_starlark/BUILD:7:13: in objc_library rule //examples/objc_starlark:lib: 

@comius Maybe related to 648fc4f ?

@comius
Copy link
Contributor

comius commented Dec 5, 2023

Objc failures are very likely connected to my change. I’ll have a look

katre added a commit to katre/bazel that referenced this issue Dec 5, 2023
katre added a commit to katre/bazel that referenced this issue Dec 5, 2023
copybara-service bot pushed a commit that referenced this issue Dec 5, 2023
Still seeing problems with finding python: https://buildkite.com/bazel/bazel-bazel/builds/25852#018c37b0-3cb4-4829-826b-eced53b34e5f

Part of #20437 and #18776.

Closes #20440.

PiperOrigin-RevId: 588180701
Change-Id: I8a0181f96df7612c72ce5e33336690f3a0efef15
@justinhorvitz
Copy link
Contributor

From //src/test/shell/integration:minimal_jdk_test:

test_size_less_than_370MB FAILED: Size of install_base is 452504 kB, expected it to be less than 378880 kB.

It seems likely that de87119 put it over the threshold by adding a new dependency (the dependency already existed for internal blaze). Is there something special about the test's threshold or can we increase it?

@meteorcloudy
Copy link
Member

In the past, we've been increasing the size of this limit (check the history). This change does introduce a ~ 20% increase, does that look correct to you?

@meteorcloudy
Copy link
Member

meteorcloudy commented Dec 6, 2023

@katre It seems 5232ab2 is also causing more build failure on macOS arm64:
https://buildkite.com/bazel/bazel-bazel/builds/25834#018c34dc-35c1-4db7-86d2-5a3dd8ae1854

(13:47:26) ERROR: /private/var/tmp/_bazel_buildkite/1c0ceab0af4031157e5d6c93b5a52b2e/external/androidsdk/BUILD.bazel:13:25: Extracting interface @androidsdk//:dx_jar_import failed: missing input file '@androidsdk//:build-tools/31.0.0/lib/dx.jar'
(13:47:26) ERROR: /private/var/tmp/_bazel_buildkite/1c0ceab0af4031157e5d6c93b5a52b2e/external/androidsdk/BUILD.bazel:13:25: Extracting interface @androidsdk//:dx_jar_import failed: 1 input file(s) do not exist
(13:47:27) ERROR: /private/var/tmp/_bazel_buildkite/1c0ceab0af4031157e5d6c93b5a52b2e/external/androidsdk/BUILD.bazel:13:25 Extracting interface @androidsdk//:dx_jar_import failed: 1 input file(s) do not exist

#16521 is still not fixed.

@meteorcloudy
Copy link
Member

meteorcloudy commented Dec 6, 2023

New failures from

//src/test/java/com/google/devtools/build/lib/rules/cpp:CcToolchainTest
//src/test/java/com/google/devtools/build/lib/rules/cpp:CcImportConfiguredTargetTest

https://buildkite.com/bazel/bazel-bazel/builds/25868#018c3ee7-5caa-4331-a975-37407a2528b9

@justinhorvitz
Copy link
Contributor

In the past, we've been increasing the size of this limit (check the history). This change does introduce a ~ 20% increase, does that look correct to you?

Yes, it seems "correct" because the fastutil dep is known to be heavy. We're currently only using a couple classes from it, but there are plenty more opportunities to use it more for optimizations, so hopefully it's tolerable to keep.

copybara-service bot pushed a commit that referenced this issue Dec 6, 2023
To prevent further regressions on macOS.

Related: #20437
PiperOrigin-RevId: 588402302
Change-Id: I91fba9cad88c45626a51ee05b527bf7a3b66199b
@meteorcloudy
Copy link
Member

@justinhorvitz SG, can you please bump the size to fix the test?

@meteorcloudy
Copy link
Member

I just re-enabled macOS presubmit and disabled the test, you can just remove the lines in ff0d6db

@katre
Copy link
Member

katre commented Dec 6, 2023

I'll take a look, thanks.

katre added a commit to katre/bazel that referenced this issue Dec 6, 2023
@sgowroji
Copy link
Member Author

Hi @meteorcloudy, We can close this issue as the above CI is green now. Thanks!

Wyverald pushed a commit that referenced this issue Jan 3, 2024
Still seeing problems with finding python: https://buildkite.com/bazel/bazel-bazel/builds/25852#018c37b0-3cb4-4829-826b-eced53b34e5f

Part of #20437 and #18776.

Closes #20440.

PiperOrigin-RevId: 588180701
Change-Id: I8a0181f96df7612c72ce5e33336690f3a0efef15
Wyverald pushed a commit that referenced this issue Jan 3, 2024
To prevent further regressions on macOS.

Related: #20437
PiperOrigin-RevId: 588402302
Change-Id: I91fba9cad88c45626a51ee05b527bf7a3b66199b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breakage P1 I'll work on this now. (Assignee required) team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: bug
Projects
None yet
Development

No branches or pull requests

5 participants