buildbuddy-io / buildbuddy

BuildBuddy is an open source Bazel build event viewer, result store, remote cache, and remote build execution platform.

Home Page:https://buildbuddy.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[CLI] Several "too many files open" errors for some builds

erikkerber opened this issue · comments

Describe the bug
You'll have to forgive me that I'm not sure I can to a great job describing this setup and repro.

bazel run //tools/some:tool -- -m some/file.yaml -y some/file.yaml

Then my output gets hundreds of these before failing:

--- WARNING: open /Users/ekerber/Developer/slack/slack-objc/App/Source/EmbeddedFrameworkIntegrations/SlackUI: too many open files
--- WARNING: open /Users/ekerber/Developer/slack/slack-objc/App/Source/EmbeddedFrameworkIntegrations/SlackPlatform: too many open files
--- WARNING: open /Users/ekerber/Developer/slack/slack-objc/App/Source/ChannelDetails/Bookmarks: too many open files
--- WARNING: open /Users/ekerber/Developer/slack/slack-objc/Modules/Foundation/Reactive/Implementation/Combine: too many open files
--- WARNING: open /Users/ekerber/Developer/slack/slack-objc/App/Source/ChannelDetails/Tests: too many open files
--- WARNING: open /Users/ekerber/Developer/slack/slack-objc/App/Source/EmbeddedFrameworkIntegrations/SlackInstrumentation: too many open files
--- WARNING: open /Users/ekerber/Developer/slack/slack-objc/UnlayeredModules/EmbeddedFrameworks/SlackUI/Source/Alerts: too many open files
--- WARNING: open /Users/ekerber/Developer/slack/slack-objc/UnlayeredModules/EmbeddedFrameworks/SlackUI/Source/Extensions: too many open files
--- WARNING: open /Users/ekerber/Developer/slack/slack-objc/App/Source/Files/Coordinators: too many open files
--- WARNING: fcntl /Users/ekerber/Developer/slack/slack-objc/Modules/UIInfra/SlackKit/ReferenceImages_64/SlackKitTests.SKPageControllerSnapshotTests: too many open files

To Reproduce
Steps to reproduce the behavior:

  1. CLI 5.0.25
  2. Run a build that takes in files within the workspace as arguments (?)
  3. See error

Expected behavior

Behavior with the wrapper is identical to behavior without the wrapper

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: macOS 14.1
  • Bazel 7.0.0rc5 (repros w/6.4 too)

@erikkerber I sent #5491 for this. But I wonder if you could reproduce the same issue using https://github.com/bazelbuild/bazelisk?

@sluongng Do you mean do I reproduce it when installing the CLI via bazelisk? That is what I am currently doing yes.