purple-plastic-57801
10/16/2023, 5:29 PMacoustic-library-86413
10/16/2023, 5:38 PMpurple-plastic-57801
10/16/2023, 5:41 PMfs.inotify.max_user_watches
?purple-plastic-57801
10/16/2023, 5:45 PMgorgeous-winter-99296
10/16/2023, 6:02 PMpurple-plastic-57801
10/16/2023, 6:02 PMwide-midnight-78598
10/16/2023, 7:38 PMpurple-plastic-57801
10/16/2023, 7:38 PMwide-midnight-78598
10/16/2023, 7:38 PMpurple-plastic-57801
10/16/2023, 7:39 PMwide-midnight-78598
10/16/2023, 7:39 PMpurple-plastic-57801
10/16/2023, 7:39 PMfiles(
name="package-config",
sources=["package.json", "package-lock.json", "tsconfig.json"],
)
files(
name="frontend-sources",
sources=["src/**/*", "*.ts", "public/*"],
dependencies=[],
)
system_binary(name="sh", binary_name="sh")
system_binary(
name="node",
binary_name="node",
fingerprint_args=["--version"],
)
system_binary(
name="touch",
binary_name="touch",
fingerprint_args=["--version"],
)
system_binary(
name="npm",
binary_name="npm",
fingerprint_args=["--version"],
fingerprint_dependencies=[":node"],
)
# Fetch the dependencies and produce a `node_modules` directory
adhoc_tool(
name="node-modules",
runnable=":npm",
runnable_dependencies=[":node", ":sh", ":npm"],
args=["ci"],
output_dependencies=[":package-config"],
execution_dependencies=[":package-config"],
output_directories=["node_modules"],
timeout=300,
)
shell_command(
name="build",
command="npm run pantsbuild",
tools=["node", "sh", "npm", "touch"],
execution_dependencies=[":node-modules", ":frontend-sources"],
extra_env_vars=["CI=true"],
output_directories=["dist", "build"],
output_files=["__init__.py"],
timeout=300,
)
experimental_wrap_as_resources(
name="resources",
inputs=[":build"],
)
experimental_test_shell_command(
name="test",
command="npm test -- --coverage",
tools=["node", "sh", "npm"],
execution_dependencies=[":node-modules", ":frontend-sources"],
log_output=True,
extra_env_vars=["CI=true"],
timeout=300,
)
run_shell_command(
name="start",
command="npm start",
runnable_dependencies=[":node", ":npm"],
execution_dependencies=[":node-modules", ":frontend-sources"],
)
purple-plastic-57801
10/16/2023, 7:40 PMwide-midnight-78598
10/16/2023, 7:41 PMwide-midnight-78598
10/16/2023, 7:43 PMpurple-plastic-57801
10/16/2023, 7:44 PMwide-midnight-78598
10/16/2023, 7:46 PMwide-midnight-78598
10/16/2023, 7:49 PMgorgeous-winter-99296
10/16/2023, 7:50 PM-ltrace
does it always happen on a specific step?wide-midnight-78598
10/16/2023, 7:51 PMwide-midnight-78598
10/16/2023, 7:56 PM-ldebug
is to figure out which rc/dev build introduced the problem, and that’s usually enough to figure out the root causewide-midnight-78598
10/16/2023, 7:58 PMwide-midnight-78598
10/16/2023, 8:02 PMwide-midnight-78598
10/16/2023, 8:02 PMwitty-crayon-22786
10/16/2023, 8:09 PMwitty-crayon-22786
10/16/2023, 8:10 PMlsof -p $pid
for the pantsd
process around the time you see the error, that might help us see which file handles it is holdingwide-midnight-78598
10/16/2023, 8:27 PMwitty-crayon-22786
10/16/2023, 8:29 PMwide-midnight-78598
10/16/2023, 8:30 PM16:24:09.34 [INFO] Completed: Running the `adhoc_tool` at frontend/web:node-modules
16:24:09.34 [ERROR] 1 Exception encountered:
Engine traceback:
in `run` goal
IntrinsicError: Failed to execute: Process {
argv: [
"/bin/bash",
"-c",
"cd frontend/web && /opt/homebrew/bin/pnpm install --frozen-lockfile",
],
env: {
"PATH": "{chroot}/_runnable_dependency_shims_1ec700094d6da0d2a2f0d61fd955b4abd702f3190cb7829fb9beee4656c42c14",
"_PANTS_SHIM_ROOT": "{chroot}",
},
working_directory: None,
input_digests: InputDigests {
complete: DirectoryDigest {
digest: Digest {
hash: Fingerprint<d4d387daf2f27e12bac6d951ef5a014f75320b05b68f9b9ecdf4a4805b065e62>,
size_bytes: 249,
},
tree: "Some(..)",
},
nailgun: DirectoryDigest {
digest: Digest {
hash: Fingerprint<e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855>,
size_bytes: 0,
},
tree: "Some(..)",
},
inputs: DirectoryDigest {
digest: Digest {
hash: Fingerprint<9873767679ce16f69603180b0efeeeb69e02ec58b8a5d6c97ac26c5a67b52d3b>,
size_bytes: 82,
},
tree: "Some(..)",
},
immutable_inputs: {
RelativePath(
"_runnable_dependency_shims_1ec700094d6da0d2a2f0d61fd955b4abd702f3190cb7829fb9beee4656c42c14",
): DirectoryDigest {
digest: Digest {
hash: Fingerprint<1ec700094d6da0d2a2f0d61fd955b4abd702f3190cb7829fb9beee4656c42c14>,
size_bytes: 158,
},
tree: "Some(..)",
},
},
use_nailgun: {},
},
output_files: {},
output_directories: {
RelativePath(
"frontend/web/node_modules",
),
},
timeout: None,
execution_slot_variable: None,
concurrency_available: 0,
description: "Running the `adhoc_tool` at frontend/web:node-modules",
level: Info,
append_only_caches: {},
jdk_home: None,
cache_scope: Successful,
execution_environment: ProcessExecutionEnvironment {
name: None,
platform: Macos_arm64,
strategy: Local,
},
remote_cache_speculation_delay: 0ns,
}
Failed to digest inputs: "Failed to open \"/private/var/folders/dy/q08y_dts5vd71rm99t4gc9lr0000gp/T/pants-sandbox-p1U8nu/frontend/web/node_modules/.pnpm/@typescript-eslint+eslint-plugin@6.7.3_@typescript-eslint+parser@6.7.3_eslint@8.50.0_typescript@5.2.2/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-void-expression.md\": Too many open files (os error 24)"
witty-crayon-22786
10/16/2023, 8:30 PMwide-midnight-78598
10/16/2023, 8:31 PMadhoc_tool(
name="node-modules",
runnable=":pnpm",
args=["install", "--frozen-lockfile"],
runnable_dependencies=[":node", ":sh"],
execution_dependencies=[":build-meta"],
output_directories=["node_modules"],
timeout=300,
)
wide-midnight-78598
10/16/2023, 8:33 PM/private/var/folders/dy/q08y_dts5vd71rm99t4gc9lr0000gp/T/pants-sandbox-p1U8nu/frontend/web/node_modules/.pnpm/@typescript-eslint+eslint-plugin@6.7.3_@typescript-eslint+parser@6.7.3_eslint@8.50.0_typescript@5.2.2/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-void-expression.md\
Pants isnt' trying to unwrap those right? Like, we're not creating another file per hardlink or anything like that?witty-crayon-22786
10/16/2023, 8:34 PMgorgeous-winter-99296
10/16/2023, 8:35 PMwitty-crayon-22786
10/16/2023, 8:38 PMFailed to digest inputs
would occur when we are capturing files from disk: in 2.17, large files are no longer captured into the LMDB database, and instead are copied into the store as real files. that part is fine, but the related bit that changed is that we no longer use blocking operations (for which we have a limit coded) to capture the files: only async operations (for which there are effectively no limit).witty-crayon-22786
10/16/2023, 8:39 PMwide-midnight-78598
10/16/2023, 8:40 PMgorgeous-winter-99296
10/16/2023, 8:43 PMwitty-crayon-22786
10/16/2023, 8:44 PMwide-midnight-78598
10/16/2023, 8:44 PMwitty-crayon-22786
10/16/2023, 8:45 PMwitty-crayon-22786
10/16/2023, 8:45 PMgorgeous-winter-99296
10/16/2023, 8:45 PMwide-midnight-78598
10/16/2023, 8:45 PMwide-midnight-78598
10/16/2023, 8:45 PMwitty-crayon-22786
10/16/2023, 8:46 PMwitty-crayon-22786
10/16/2023, 8:52 PMgorgeous-winter-99296
10/16/2023, 8:54 PMwide-midnight-78598
10/16/2023, 8:57 PMpants run :run-js-app
"dependencies": {
"algoliasearch": "^4.17.1",
"autoprefixer": "^10.4.16",
"cssnano": "^6.0.1",
"date-fns": "^2.30.0",
"eslint": "^8.50.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-jest-dom": "^5.1.0",
"eslint-plugin-square-svelte-store": "^1.0.0",
"eslint-plugin-svelte": "^2.33.2",
"eslint-plugin-testing-library": "^6.0.2",
"firebase": "^9.22.1",
"hammerjs": "^2.0.8",
"happy-dom": "^12.2.1",
"immer": "^10.0.2",
"msw": "^1.3.1",
"postcss": "^8.4.31",
"es-leftpad": "^1.0.0",
"prettier": "^3.0.3",
"prettier-plugin-organize-imports": "^3.2.3",
"prettier-plugin-svelte": "^3.0.3",
"prettier-plugin-tailwindcss": "^0.5.4",
"svelte": "^4.2.1",
"svelte-check": "^3.5.2",
"svelte-i18n": "^3.7.4",
"tailwindcss": "^3.3.3",
"ts-node": "^10.9.1",
"tslib": "^2.6.2",
"typescript": "^5.2.2",
"vite": "^4.4.9",
"vitest": "^0.34.6"
witty-crayon-22786
10/16/2023, 8:59 PMpurple-plastic-57801
10/16/2023, 9:01 PMwide-midnight-78598
10/16/2023, 9:05 PMpurple-plastic-57801
10/30/2023, 8:06 PMfamous-xylophone-36532
11/09/2023, 3:01 PMToo many open files
error. Trying to build a frontend app with Parcel using the experimental Javascript backend…famous-xylophone-36532
11/09/2023, 3:01 PM--no-pantsd
though!purple-plastic-57801
11/09/2023, 3:04 PMfamous-xylophone-36532
11/09/2023, 3:05 PMfamous-xylophone-36532
11/09/2023, 3:07 PMToo many open files (os error 24)
on 2.18.0rc3.famous-xylophone-36532
11/09/2023, 3:07 PMgorgeous-winter-99296
11/09/2023, 3:08 PMulimit -n
?famous-xylophone-36532
11/09/2023, 3:08 PMgorgeous-winter-99296
11/09/2023, 3:09 PMfamous-xylophone-36532
11/09/2023, 3:11 PM16:10:46.24 [WARN] File handle limit is capped to: 1024. To avoid 'too many open file handle' errors, we recommend a limit of at least 10000: please see <https://www.pantsbuild.org/docs/troubleshooting#too-many-open-files-error> for more information.
. Guess I’m raising the limit then!famous-xylophone-36532
11/09/2023, 3:18 PMfamous-xylophone-36532
11/09/2023, 3:18 PM