[bug] Running a basic task hangs indefinitely for large app
axeberg opened this issue · comments
Running a basic task in an existing large application hangs indefinitely
Firstly, hello 👋, and thank you for an awesome project!
We believe we are currently experiencing a bug related to using two different existing applications in our current setup. More specifically, the command only hangs for one of the applications.
We've setup a very basic command like this in our two applications:
language: 'javascript'
platform: 'bun'
tasks:
hello:
command: 'echo "hello from dashboard"'
platform: bun
Running this command in one of the applications works just fine, this application is smaller and has less dependencies.
Running this command in the other, larger application, causes the issue. I speculate looking at the log trace, that it might be related to the number of dependencies for this larger application that causes git hash-object --stdin-paths
to hang (see Additional Context for the full log file), here's the last two line that the trace log freezes at:
[DEBUG 07:48:36.154] moon_process::command_inspector Running command git ls-files --full-name --cached --modified --others --exclude-standard apps/dashboard --deduplicate env_vars={} working_dir="~/dev/work/monorepo-poc"
[DEBUG 07:48:36.345] moon_process::command_inspector Running command git hash-object --stdin-paths - (truncated) env_vars={} working_dir="~/dev/work/monorepo-poc"
Knowing it is a larger application I've left it running for 60+ minutes and nothing happens.
Other pertinent information can be found below, unfortunately I can't share the source here.
Workspace configuration:
$schema: "https://moonrepo.dev/schemas/workspace.json"
projects:
- "apps/dashboard"
- "apps/back-end"
- "packages/*"
vcs:
manager: "git"
defaultBranch: "main"
Toolchain configuration:
$schema: "https://moonrepo.dev/schemas/toolchain.json"
bun:
version: "1.1.3"
syncProjectWorkspaceDependencies: true
Steps to reproduce
- Initialize moonrepo with existing apps.
- Add moon workspace configuration.
- Add moon toolchain configuration.
- Add moon project configuration for application named
back-end
- Add moon project configuration for application named
dashboard
- Run command for
back-end
app:moon run back-end:hello
outputs:
▪▪▪▪ back-end:hello
hello from back-end
- Run command for
dashboard
app:moon run dashboard:hello
outputs nothing (hangs indefinitely)
Expected behavior
The task to execute and finish with the message hello from dashboard
.
Environment
System:
OS: macOS 14.4.1
CPU: (8) arm64 Apple M1 Pro
Memory: 129.56 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.12.1 - ~/.nvm/versions/node/v20.12.1/bin/node
npm: 10.5.0 - ~/.nvm/versions/node/v20.12.1/bin/npm
pnpm: 8.15.6 - /opt/homebrew/bin/pnpm
bun: 1.1.3 - /opt/homebrew/bin/bun
Watchman: 2024.04.08.00 - /opt/homebrew/bin/watchman
Managers:
Cargo: 1.72.0 - ~/.cargo/bin/cargo
CocoaPods: 1.15.2 - /opt/homebrew/bin/pod
Homebrew: 4.2.17 - /opt/homebrew/bin/brew
pip3: 24.0 - /opt/homebrew/bin/pip3
RubyGems: 3.0.3.1 - /usr/bin/gem
Utilities:
Make: 3.81 - /usr/bin/make
GCC: 15.0.0 - /usr/bin/gcc
Git: 2.39.3 - /usr/bin/git
Clang: 15.0.0 - /usr/bin/clang
Servers:
Apache: 2.4.58 - /usr/sbin/apachectl
Virtualization:
Docker: 25.0.5 - /usr/local/bin/docker
Docker Compose: 2.24.5 - /usr/local/bin/docker-compose
Languages:
Bash: 3.2.57 - /bin/bash
Go: 1.22.2 - /opt/homebrew/bin/go
Java: 11.0.22 - /usr/bin/javac
Perl: 5.34.1 - /usr/bin/perl
Python3: 3.12.2 - /opt/homebrew/bin/python3
Ruby: 2.6.10 - /usr/bin/ruby
Rust: 1.72.0 - ~/.cargo/bin/rustc
Databases:
SQLite: 3.39.2 - ~/Library/Android/sdk/platform-tools/sqlite3
Browsers:
Chrome: 123.0.6312.107
Safari: 17.4.1
Additional context
Running the command in the dashboard app with tracing outputs:
$ moon run dashboard:hello --log trace
[DEBUG 2024-04-11 07:48:29.968] moon_cli Running moon v1.23.4 (with ~/.moon/bin/moon) args=["moon", "run", "dashboard:hello", "--log", "trace"]
[TRACE 07:48:29.968] starbase::app Running startup phase with 5 systems
[DEBUG 07:48:29.968] moon_env:load_environments Creating moon environment, detecting store store="~/.moon"
[DEBUG 07:48:29.968] proto_core::proto:load_environments Creating proto environment, detecting store store="~/.proto"
[DEBUG 07:48:29.968] moon_workspace::workspace:load_workspace Attempting to find workspace root working_dir="~/dev/work/monorepo-poc"
[TRACE 07:48:29.968] starbase_utils::fs:load_workspace Traversing upwards to find a file/root file=".moon" dir="~/dev/work/monorepo-poc"
[DEBUG 07:48:29.968] moon_workspace::workspace:load_workspace Found a potential workspace root workspace_root="~/dev/work/monorepo-poc"
[DEBUG 07:48:29.968] moon_workspace::workspace:load_workspace Creating workspace workspace_root="~/dev/work/monorepo-poc" working_dir="~/dev/work/monorepo-poc"
[DEBUG 07:48:29.968] moon_workspace::workspace:load_workspace Loading .moon/workspace.yml workspace_root="~/dev/work/monorepo-poc"
[TRACE 07:48:29.969] schematic::config::loader:load_workspace Loading configuration config="WorkspaceConfig"
[TRACE 07:48:29.969] schematic::config::loader:load_workspace Creating layer from source config="WorkspaceConfig" source="~/dev/work/monorepo-poc/.moon/workspace.yml"
[TRACE 07:48:29.971] schematic::config::loader:load_workspace Merging partial layers into a final result config="WorkspaceConfig"
[TRACE 07:48:29.971] proto_core::proto_config:load_workspace Traversing upwards and loading .prototools files
[DEBUG 07:48:29.971] proto_core::proto_config:load_workspace Loading .prototools file="~/.proto/.prototools"
[TRACE 07:48:29.971] starbase_utils::fs:load_workspace Opening file file="~/.proto/.prototools"
[TRACE 07:48:29.971] starbase_utils::fs_lock:load_workspace Locking file file="~/.proto/.prototools"
[TRACE 07:48:29.971] starbase_utils::fs_lock:load_workspace Unlocking file file="~/.proto/.prototools"
[TRACE 07:48:29.972] schematic::config::loader:load_workspace Loading partial configuration config="ProtoConfig"
[TRACE 07:48:29.972] schematic::config::loader:load_workspace Creating layer from source config="ProtoConfig" source="<code>"
[TRACE 07:48:29.972] schematic::config::loader:load_workspace Merging partial layers into a final result config="ProtoConfig"
[DEBUG 07:48:29.972] proto_core::proto_config:load_workspace Loading local config only
[DEBUG 07:48:29.972] proto_core::proto_config:load_workspace Merged 0 configs
[DEBUG 07:48:29.972] moon_workspace::workspace:load_workspace Attempting to load .moon/toolchain.yml workspace_root="~/dev/work/monorepo-poc"
[TRACE 07:48:29.972] schematic::config::loader:load_workspace Loading configuration config="ToolchainConfig"
[TRACE 07:48:29.972] schematic::config::loader:load_workspace Creating layer from source config="ToolchainConfig" source="~/dev/work/monorepo-poc/.moon/toolchain.yml"
[TRACE 07:48:29.972] schematic::config::loader:load_workspace Merging partial layers into a final result config="ToolchainConfig"
[DEBUG 07:48:29.972] moon_workspace::workspace:load_workspace Attempting to load .moon/tasks.yml workspace_root="~/dev/work/monorepo-poc"
[DEBUG 07:48:29.973] moon_workspace::workspace:load_workspace Attempting to load .moon/tasks/**/*.yml workspace_root="~/dev/work/monorepo-poc"
[DEBUG 07:48:29.973] moon_workspace::workspace:load_workspace Loaded 0 task configs to inherit scopes=[]
[DEBUG 07:48:29.973] moon_cache::cache_engine:load_workspace Creating cache engine cache_dir="~/dev/work/monorepo-poc/.moon/cache" states_dir="~/dev/work/monorepo-poc/.moon/cache/states"
[DEBUG 07:48:29.973] moon_hash::hash_engine:load_workspace Creating hash engine hashes_dir="~/dev/work/monorepo-poc/.moon/cache/hashes" outputs_dir="~/dev/work/monorepo-poc/.moon/cache/outputs"
[DEBUG 07:48:29.973] moon_vcs::git:load_workspace Using git as a version control system
[DEBUG 07:48:29.973] moon_vcs::git:load_workspace Attempting to find a .git directory or file starting_dir="~/dev/work/monorepo-poc"
[DEBUG 07:48:29.973] moon_vcs::git:load_workspace Found a .git directory (repository root) git="~/dev/work/monorepo-poc/.git"
[DEBUG 07:48:29.973] moon_vcs::git:load_workspace Loading ignore rules from .gitignore ignore_file="~/dev/work/monorepo-poc/.gitignore"
[DEBUG 07:48:29.973] moon_process::command_inspector:load_workspace Running command git remote get-url origin env_vars={} working_dir="~/dev/work/monorepo-poc"
[DEBUG 07:48:29.985] moon_plugin::plugin_registry:create_plugin_registries Creating plugin registry kind="extension"
[TRACE 07:48:29.985] warpgate::loader:create_plugin_registries Creating plugin loader cache_dir="~/.moon/plugins/extensions"
[DEBUG 07:48:29.985] moon_plugin::plugin_registry:create_plugin_registries Creating plugin registry kind="platform"
[TRACE 07:48:29.985] warpgate::loader:create_plugin_registries Creating plugin loader cache_dir="~/.moon/plugins/platforms"
[DEBUG 07:48:29.985] moon_cli::systems::startup:install_proto Checking if proto is installed proto="~/.proto/tools/proto/0.32.2/proto"
[TRACE 07:48:29.986] starbase::app Running analyze phase with 1 systems
[TRACE 07:48:29.986] starbase::app Running execute phase with 3 systems
[DEBUG 07:48:29.986] moon_cache_item::cache_item:check_for_new_version Cache hit, reading item cache="~/dev/work/monorepo-poc/.moon/cache/states/moonVersion.json"
[TRACE 07:48:29.986] starbase_utils::fs:check_for_new_version Reading file file="~/dev/work/monorepo-poc/.moon/cache/states/moonVersion.json"
[TRACE 07:48:29.986] starbase_utils::json:check_for_new_version Reading JSON file file="~/dev/work/monorepo-poc/.moon/cache/states/moonVersion.json"
[DEBUG 07:48:29.986] moon_project_graph::project_graph_builder:run Building project graph
[DEBUG 07:48:29.986] moon_project_graph::project_graph_builder:run Locating projects with globs globs=["apps/dashboard", "apps/back-end", "packages/*"]
[DEBUG 07:48:32.068] moon_project_graph::project_graph_builder:run Extending project graph from subscribers
[DEBUG 07:48:32.068] log:run Loading names (aliases) from project package.json's log.target="moon:bun-platform" log.module_path="moon_bun_platform::bun_platform" log.file="crates/bun/platform/src/bun_platform.rs" log.line=142
[TRACE 07:48:32.068] log:run Loading ~/dev/work/monorepo-poc/apps/back-end/package.json log.target="moon:lang:config" log.module_path="moon_node_lang::package_json::cache_container" log.file="crates/node/lang/src/package_json.rs" log.line=11
[TRACE 07:48:32.068] starbase_utils::fs:run Reading file file="~/dev/work/monorepo-poc/apps/back-end/package.json"
[TRACE 07:48:32.068] starbase_utils::json:run Reading JSON file file="~/dev/work/monorepo-poc/apps/back-end/package.json"
[TRACE 07:48:32.068] log:run Loading ~/dev/work/monorepo-poc/apps/dashboard/package.json log.target="moon:lang:config" log.module_path="moon_node_lang::package_json::cache_container" log.file="crates/node/lang/src/package_json.rs" log.line=11
[TRACE 07:48:32.068] starbase_utils::fs:run Reading file file="~/dev/work/monorepo-poc/apps/dashboard/package.json"
[TRACE 07:48:32.070] starbase_utils::json:run Reading JSON file file="~/dev/work/monorepo-poc/apps/dashboard/package.json"
[DEBUG 07:48:32.070] moon_project_graph::project_graph_builder:run Attempting to load apps/back-end/moon.yml (optional) id="back-end" file="~/dev/work/monorepo-poc/apps/back-end/moon.yml"
[TRACE 07:48:32.070] schematic::config::loader:run Loading configuration config="ProjectConfig"
[TRACE 07:48:32.070] schematic::config::loader:run Creating layer from source config="ProjectConfig" source="~/dev/work/monorepo-poc/apps/back-end/moon.yml"
[TRACE 07:48:32.070] schematic::config::loader:run Merging partial layers into a final result config="ProjectConfig"
[DEBUG 07:48:32.071] moon_project_graph::project_graph_builder:run Attempting to load apps/dashboard/moon.yml (optional) id="dashboard" file="~/dev/work/monorepo-poc/apps/dashboard/moon.yml"
[TRACE 07:48:32.071] schematic::config::loader:run Loading configuration config="ProjectConfig"
[TRACE 07:48:32.071] schematic::config::loader:run Creating layer from source config="ProjectConfig" source="~/dev/work/monorepo-poc/apps/dashboard/moon.yml"
[TRACE 07:48:32.071] schematic::config::loader:run Merging partial layers into a final result config="ProjectConfig"
[DEBUG 07:48:32.071] moon_project_graph::project_graph_builder:run Attempting to load packages/eslint-config/moon.yml (optional) id="eslint-config" file="~/dev/work/monorepo-poc/packages/eslint-config/moon.yml"
[TRACE 07:48:32.071] schematic::config::loader:run Loading configuration config="ProjectConfig"
[TRACE 07:48:32.071] schematic::config::loader:run Creating layer from source config="ProjectConfig" source="~/dev/work/monorepo-poc/packages/eslint-config/moon.yml"
[TRACE 07:48:32.071] schematic::config::loader:run Merging partial layers into a final result config="ProjectConfig"
[DEBUG 07:48:32.072] moon_process::command_inspector:run Running command git hash-object --stdin-paths - .moon/toolchain.yml .moon/workspace.yml apps/back-end/moon.yml apps/dashboard/moon.yml env_vars={} working_dir="~/dev/work/monorepo-poc"
[TRACE 07:48:32.085] moon_hash::hasher:run Created new content hasher label="Project graph"
[TRACE 07:48:32.085] moon_hash::hasher:run Adding content to hasher label="Project graph"
[TRACE 07:48:32.085] starbase_utils::json:run Formatting JSON
[DEBUG 07:48:32.085] moon_hash::hasher:run Generated content hash label="Project graph" hash="07d9fde2cde28f769ac4aff85bade54128e05c6f39851776c0a5cae4d84182ce"
[DEBUG 07:48:32.085] moon_hash::hash_engine:run Saving hash manifest label="Project graph" manifest="~/dev/work/monorepo-poc/.moon/cache/hashes/07d9fde2cde28f769ac4aff85bade54128e05c6f39851776c0a5cae4d84182ce.json"
[TRACE 07:48:32.085] starbase_utils::fs:run Writing file file="~/dev/work/monorepo-poc/.moon/cache/hashes/07d9fde2cde28f769ac4aff85bade54128e05c6f39851776c0a5cae4d84182ce.json"
[DEBUG 07:48:32.085] moon_project_graph::project_graph_builder:run Generated hash for project graph hash="07d9fde2cde28f769ac4aff85bade54128e05c6f39851776c0a5cae4d84182ce"
[DEBUG 07:48:32.085] moon_cache_item::cache_item:run Cache hit, reading item cache="~/dev/work/monorepo-poc/.moon/cache/states/projects.json"
[TRACE 07:48:32.085] starbase_utils::fs:run Reading file file="~/dev/work/monorepo-poc/.moon/cache/states/projects.json"
[TRACE 07:48:32.085] starbase_utils::json:run Reading JSON file file="~/dev/work/monorepo-poc/.moon/cache/states/projects.json"
[DEBUG 07:48:32.086] moon_project_graph::project_graph_builder:run Loading project graph with 3 projects from cache cache="~/dev/work/monorepo-poc/.moon/cache/states/partialProjectGraph.json"
[TRACE 07:48:32.086] starbase_utils::fs:run Reading file file="~/dev/work/monorepo-poc/.moon/cache/states/partialProjectGraph.json"
[TRACE 07:48:32.086] starbase_utils::json:run Reading JSON file file="~/dev/work/monorepo-poc/.moon/cache/states/partialProjectGraph.json"
[DEBUG 07:48:32.088] moon_project_graph::project_graph_builder:run Enforcing project constraints
[DEBUG 07:48:32.088] moon_project_graph::project_graph:run Creating project graph
[DEBUG 07:48:32.088] moon_cli::queries::touched_files:run Querying for touched files
[DEBUG 07:48:32.088] moon_process::command_inspector:run Running command git --version env_vars={} working_dir="~/dev/work/monorepo-poc"
[DEBUG 07:48:32.096] moon_process::command_inspector:run Running command git branch --show-current env_vars={} working_dir="~/dev/work/monorepo-poc"
[TRACE 07:48:32.103] moon_cli::queries::touched_files:run Against locally touched
[DEBUG 07:48:32.103] moon_process::command_inspector:run Running command git status --porcelain --untracked-files -z env_vars={} working_dir="~/dev/work/monorepo-poc"
[DEBUG 07:48:32.314] moon_cli::queries::touched_files:run Filtering based on touched status "all"
[DEBUG 07:48:32.314] moon_cli::queries::touched_files:run Found touched files files=["apps/dashboard/moon.yml", "apps/back-end/moon.yml"]
[DEBUG 07:48:32.314] moon_action_graph::action_graph_builder:run Building action graph
[DEBUG 07:48:32.314] moon_project_expander::project_expander:run Expanding project dashboard id="dashboard"
[DEBUG 07:48:32.314] moon_project_expander::project_expander:run Expanding task dashboard:hello target="dashboard:hello"
[TRACE 07:48:32.314] moon_project_expander::tasks_expander:run Expanding environment variables target="dashboard:hello" env={}
[TRACE 07:48:32.314] moon_project_expander::tasks_expander:run Expanding inputs into file system paths target="dashboard:hello" inputs=["**/*", ".moon/*.yml"]
[TRACE 07:48:32.314] moon_project_expander::tasks_expander:run Expanding tokens and variables in args target="dashboard:hello" args=["echo", "hello from dashboard"]
[TRACE 07:48:32.315] moon_project_expander::tasks_expander:run Expanding tokens and variables in command target="dashboard:hello" command="exec"
[DEBUG 07:48:32.315] moon_action_graph::action_graph_builder:run Project dashboard is not within the dependency manager workspace, dependencies will be installed within the project instead of the root
[DEBUG 07:48:32.315] moon_action_graph::action_graph_builder:run Adding SyncWorkspace to graph index=0
[DEBUG 07:48:32.315] moon_action_graph::action_graph_builder:run Adding SetupBunTool(1.1.3) to graph index=1
[TRACE 07:48:32.315] moon_action_graph::action_graph_builder:run Linking requirements for index index=1 requires=[0]
[DEBUG 07:48:32.315] moon_action_graph::action_graph_builder:run Adding InstallBunDepsInProject(1.1.3, dashboard) to graph index=2
[TRACE 07:48:32.315] moon_action_graph::action_graph_builder:run Linking requirements for index index=2 requires=[1]
[DEBUG 07:48:32.315] moon_action_graph::action_graph_builder:run Adding SyncBunProject(dashboard) to graph index=3
[TRACE 07:48:32.315] moon_action_graph::action_graph_builder:run Linking requirements for index index=3 requires=[1]
[DEBUG 07:48:32.315] moon_action_graph::action_graph_builder:run Adding RunTask(dashboard:hello) to graph index=4
[TRACE 07:48:32.315] moon_action_graph::action_graph_builder:run Linking requirements for index index=4 requires=[2, 3]
[DEBUG 07:48:32.315] moon_action_graph::action_graph:run Creating action graph
[DEBUG 07:48:32.315] log:run Running 5 actions log.target="moon:action-pipeline" log.module_path="moon_action_pipeline::pipeline" log.file="crates/core/action-pipeline/src/pipeline.rs" log.line=88
[DEBUG 07:48:32.315] moon_action_graph::action_graph:run Iterating action graph topologically order=[0, 1, 2, 3, 4]
[TRACE 07:48:32.315] moon_action_graph::action_graph:run Running action SyncWorkspace index=0 deps=[]
[DEBUG 07:48:32.315] log Syncing workspace log.target="moon:action:sync-workspace" log.module_path="moon_action_pipeline::actions::sync_workspace" log.file="crates/core/action-pipeline/src/actions/sync_workspace.rs" log.line=31
[TRACE 07:48:32.315] moon_action_graph::action_graph Marking action as complete index=0
[TRACE 07:48:32.315] moon_action_graph::action_graph:run Running action SetupBunTool(1.1.3) index=1 deps=[0]
[DEBUG 07:48:32.316] log Setting up Bun 1.1.3 toolchain log.target="moon:action:setup-tool" log.module_path="moon_action_pipeline::actions::setup_tool" log.file="crates/core/action-pipeline/src/actions/setup_tool.rs" log.line=36
[DEBUG 07:48:32.316] moon_cache_item::cache_item Cache hit, reading item cache="~/dev/work/monorepo-poc/.moon/cache/states/toolBun-1.1.3.json"
[TRACE 07:48:32.316] starbase_utils::fs Reading file file="~/dev/work/monorepo-poc/.moon/cache/states/toolBun-1.1.3.json"
[TRACE 07:48:32.316] starbase_utils::json Reading JSON file file="~/dev/work/monorepo-poc/.moon/cache/states/toolBun-1.1.3.json"
[DEBUG 07:48:32.316] proto_core::proto_config Merging loaded configs
[DEBUG 07:48:32.316] proto_core::proto_config Merged 1 configs
[TRACE 07:48:32.316] warpgate::loader Creating plugin loader cache_dir="~/.proto/plugins"
[TRACE 07:48:32.316] warpgate::loader Loading plugin bun id="bun"
[TRACE 07:48:32.316] starbase_utils::fs Reading file metadata file="~/.proto/plugins/bun-b584103636767ca7b9b92d64dda72325965a9b227ab53ce0f3dd8f448eec21b1.wasm"
[TRACE 07:48:32.316] warpgate::loader Plugin already downloaded and cached id="bun" path="~/.proto/plugins/bun-b584103636767ca7b9b92d64dda72325965a9b227ab53ce0f3dd8f448eec21b1.wasm"
[TRACE 07:48:32.316] warpgate::plugin Storing plugin identifier id="bun"
[TRACE 07:48:32.316] warpgate::plugin Storing host environment env={"arch":"arm64","libc":"gnu","os":"macos","home_dir":{"path":"/userhome/","virtual_prefix":"/userhome","real_prefix":"/Users/axel"}}
[DEBUG 07:48:32.316] proto_core::tool Creating tool bun and instantiating plugin
[TRACE 07:48:32.328] warpgate::plugin Created plugin container id="bun" plugin=222278e3-7cd5-4931-b33d-97d689a25880
[DEBUG 07:48:32.328] proto_core::tool Created tool bun and its WASM runtime
[TRACE 07:48:32.328] warpgate::plugin Calling plugin function register_tool id="bun" plugin=222278e3-7cd5-4931-b33d-97d689a25880 input={"id":"bun"}
[TRACE 07:48:32.328] warpgate::plugin Called plugin function register_tool id="bun" plugin=222278e3-7cd5-4931-b33d-97d689a25880 output={"inventory":{},"name":"Bun","plugin_version":"0.11.0","self_upgrade_commands":["upgrade"],"type":"Language"}
[DEBUG 07:48:32.328] proto_core::tool_manifest Loading manifest.json file="~/.proto/tools/bun/manifest.json"
[TRACE 07:48:32.329] starbase_utils::fs Opening file file="~/.proto/tools/bun/manifest.json"
[TRACE 07:48:32.329] starbase_utils::fs_lock Locking file file="~/.proto/tools/bun/manifest.json"
[TRACE 07:48:32.329] starbase_utils::fs_lock Unlocking file file="~/.proto/tools/bun/manifest.json"
[DEBUG 07:48:32.329] proto_core::tool Resolving a semantic version or alias tool="bun" initial_version="1.1.3"
[DEBUG 07:48:32.329] proto_core::tool Resolved to 1.1.3 (without validation) tool="bun" version="1.1.3"
[DEBUG 07:48:32.329] proto_core::tool Checking if tool is installed tool="bun" install_dir="~/.proto/tools/bun/1.1.3"
[DEBUG 07:48:32.329] proto_core::tool Tool has already been installed, locating binaries and shims tool="bun" install_dir="~/.proto/tools/bun/1.1.3"
[DEBUG 07:48:32.329] proto_core::tool Locating executable for tool tool="bun"
[TRACE 07:48:32.329] warpgate::plugin Calling plugin function locate_executables id="bun" plugin=222278e3-7cd5-4931-b33d-97d689a25880 input={"context":{"proto_version":"0.32.5","tool_dir":{"path":"/proto/tools/bun/1.1.3","virtual_prefix":"/proto","real_prefix":"~/.proto"},"version":"1.1.3"}}
[TRACE 07:48:32.330] warpgate::plugin Called plugin function locate_executables id="bun" plugin=222278e3-7cd5-4931-b33d-97d689a25880 output={"globals_lookup_dirs":["$HOME/.bun/bin"],"primary":{"exe_path":"bun"},"secondary":{"bunx":{"exe_link_path":"bun","shim_before_args":"x"}}}
[DEBUG 07:48:32.330] proto_core::tool Found an executable tool="bun" exe_path="~/.proto/tools/bun/1.1.3/bun"
[TRACE 07:48:32.330] starbase_utils::fs Reading bytes of file file="~/.proto/tools/proto/0.32.2/proto-shim"
[DEBUG 07:48:32.330] proto_core::tool Creating shim tool="bun" shim="~/.proto/shims/bun" shim_version=13
[DEBUG 07:48:32.330] proto_core::tool Creating shim tool="bun" shim="~/.proto/shims/bunx" shim_version=13
[TRACE 07:48:32.330] starbase_utils::fs Opening file file="~/.proto/shims/registry.json"
[TRACE 07:48:32.330] starbase_utils::fs_lock Locking file file="~/.proto/shims/registry.json"
[TRACE 07:48:32.331] starbase_utils::fs_lock Unlocking file file="~/.proto/shims/registry.json"
[DEBUG 07:48:32.331] proto_core::tool Locating globals bin directory for tool tool="bun"
[DEBUG 07:48:32.331] proto_core::tool Found a globals directory tool="bun" bin_dir="~/.bun/bin"
[DEBUG 07:48:32.331] log Bun has already been setup log.target="moon_bun_tool::bun_tool" log.module_path="moon_bun_tool::bun_tool" log.file="crates/bun/tool/src/bun_tool.rs" log.line=91
[DEBUG 07:48:32.331] moon_cache_item::cache_item Writing cache item cache="~/dev/work/monorepo-poc/.moon/cache/states/toolBun-1.1.3.json"
[TRACE 07:48:32.331] starbase_utils::json Writing JSON file file="~/dev/work/monorepo-poc/.moon/cache/states/toolBun-1.1.3.json"
[TRACE 07:48:32.331] starbase_utils::fs Writing file file="~/dev/work/monorepo-poc/.moon/cache/states/toolBun-1.1.3.json"
[TRACE 07:48:32.331] moon_action_graph::action_graph Marking action as complete index=1
[TRACE 07:48:32.331] moon_action_graph::action_graph:run Running action InstallBunDepsInProject(1.1.3, dashboard) index=2 deps=[1]
[TRACE 07:48:32.331] moon_action_graph::action_graph:run Running action SyncBunProject(dashboard) index=3 deps=[1]
[DEBUG 07:48:32.331] log Syncing project dashboard log.target="moon:action:sync-project" log.module_path="moon_action_pipeline::actions::sync_project" log.file="crates/core/action-pipeline/src/actions/sync_project.rs" log.line=32
[DEBUG 07:48:32.331] moon_cache::cache_engine Writing cache cache="~/dev/work/monorepo-poc/.moon/cache/states/dashboard/snapshot.json"
[TRACE 07:48:32.331] starbase_utils::json Writing JSON file file="~/dev/work/monorepo-poc/.moon/cache/states/dashboard/snapshot.json"
[TRACE 07:48:32.331] starbase_utils::fs Writing file file="~/dev/work/monorepo-poc/.moon/cache/states/dashboard/snapshot.json"
[TRACE 07:48:32.331] starbase_utils::net:is_offline Checking for an internet connection timeout=750
[TRACE 07:48:32.331] starbase_utils::net::offline Resolving 1.1.1.1:53
[TRACE 07:48:32.331] moon_action_graph::action_graph Marking action as complete index=3
[TRACE 07:48:33.086] starbase_utils::net::offline Resolving 1.0.0.1:53
[TRACE 07:48:33.843] starbase_utils::net::offline Resolving 8.8.8.8:53
[TRACE 07:48:34.596] starbase_utils::net::offline Resolving 8.8.4.4:53
[TRACE 07:48:36.105] starbase_utils::net::offline Resolving 142.251.209.142:80
[TRACE 07:48:36.152] starbase_utils::net:is_offline Online!
[TRACE 07:48:36.152] moon_hash::hasher Created new content hasher label="Install Bun 1.1.3 deps"
[TRACE 07:48:36.152] moon_hash::hasher Adding content to hasher label="Install Bun 1.1.3 deps"
[TRACE 07:48:36.152] starbase_utils::json Formatting JSON
[TRACE 07:48:36.152] starbase_utils::fs Reading file metadata file="~/dev/work/monorepo-poc/apps/dashboard/bun.lockb"
[DEBUG 07:48:36.152] moon_hash::hasher Generated content hash label="Install Bun 1.1.3 deps" hash="8d8ec889688fa1071d9c0474d0ace0132c8c93606b7da1fc91bb9199ebb7dd0a"
[DEBUG 07:48:36.152] moon_hash::hash_engine Saving hash manifest label="Install Bun 1.1.3 deps" manifest="~/dev/work/monorepo-poc/.moon/cache/hashes/8d8ec889688fa1071d9c0474d0ace0132c8c93606b7da1fc91bb9199ebb7dd0a.json"
[TRACE 07:48:36.153] starbase_utils::fs Writing file file="~/dev/work/monorepo-poc/.moon/cache/hashes/8d8ec889688fa1071d9c0474d0ace0132c8c93606b7da1fc91bb9199ebb7dd0a.json"
[DEBUG 07:48:36.153] moon_cache_item::cache_item Cache hit, reading item cache="~/dev/work/monorepo-poc/.moon/cache/states/dashboard/depsBun.json"
[TRACE 07:48:36.153] starbase_utils::fs Reading file file="~/dev/work/monorepo-poc/.moon/cache/states/dashboard/depsBun.json"
[TRACE 07:48:36.154] starbase_utils::json Reading JSON file file="~/dev/work/monorepo-poc/.moon/cache/states/dashboard/depsBun.json"
[DEBUG 07:48:36.154] log Lockfile has not changed since last install, skipping install log.target="moon:action:install-deps" log.module_path="moon_action_pipeline::actions::install_deps" log.file="crates/core/action-pipeline/src/actions/install_deps.rs" log.line=188
[TRACE 07:48:36.154] moon_action_graph::action_graph Marking action as complete index=2
[TRACE 07:48:36.154] moon_action_graph::action_graph:run Running action RunTask(dashboard:hello) index=4 deps=[3, 2]
[DEBUG 07:48:36.154] moon_cache_item::cache_item Cache miss, item does not exist cache="~/dev/work/monorepo-poc/.moon/cache/states/dashboard/hello/lastRun.json"
[DEBUG 07:48:36.154] log Running task dashboard:hello log.target="moon:action:run-task" log.module_path="moon_action_pipeline::actions::run_task" log.file="crates/core/action-pipeline/src/actions/run_task.rs" log.line=36
[TRACE 07:48:36.154] moon_hash::hasher Created new content hasher label="Run dashboard:hello target"
[DEBUG 07:48:36.154] moon_process::command_inspector Running command git ls-files --full-name --cached --modified --others --exclude-standard apps/dashboard --deduplicate env_vars={} working_dir="~/dev/work/monorepo-poc"
[DEBUG 07:48:36.345] moon_process::command_inspector Running command git hash-object --stdin-paths - (truncated) env_vars={} working_dir="~/dev/work/monorepo-poc"
EDIT: I also made sure to do moon clean
and even delete the .moon/cache
but no avail.
@axeberg You can try messing with these settings: https://moonrepo.dev/docs/config/workspace#batchsize
You can also set MOON_DEBUG_PROCESS_INPUT
which will reveal the "(truncated)" to see what it's pulling in, but beware, it'll be a giant string.
@milesj ah 😮💨 I completely missed that option, changing that to a lower value did indeed make the command run as intended!