electron/script
Robo da0fd286b4
feat: UtilityProcess API (#34980)
* chore: initial scaffolding

* chore: implement interface and docs

* chore: address code style review

* fix: cleanup of utility process on shutdown

* chore: simplify NodeBindings::CreateEnvironment

* chore: rename disableLibraryValidation => allowLoadingUnsignedLibraries

* chore: implement process.parentPort

* chore(posix): implement stdio pipe interface

* chore(win): implement stdio interface

* chore: reenable SetNodeOptions for utility process

* chore: add specs

* chore: fix lint

* fix: update kill API

* fix: update process.parentPort API

* fix: exit event

* docs: update exit event

* fix: tests on linux

* chore: expand on some comments

* fix: shutdown of pipe reader

Avoid logging since it is always the case that reader end of
pipe will terminate after the child process.

* fix: remove exit code check for crash spec

* fix: rm PR_SET_NO_NEW_PRIVS for unsandbox utility process

* chore: fix incorrect rebase

* fix: address review feedback

* chore: rename utility_process -> utility

* chore: update docs

* chore: cleanup c++ implemantation

* fix: leak in NodeServiceHost impl

* chore: minor cleanup

* chore: cleanup JS implementation

* chore: flip default stdio to inherit

* fix: some api improvements

* Support cwd option
* Remove path restriction for modulePath
* Rewire impl for env support

* fix: add tests for cwd and env option

* chore: alt impl for reading stdio handles

* chore: support message queuing

* chore: fix lint

* chore: new UtilityProcess => utilityProcess.fork

* fix: support for uncaught exception exits

* chore: remove process.execArgv as default

* fix: windows build

* fix: style changes

* fix: docs and style changes

* chore: update patches

* spec: disable flaky test on win32 arm CI

Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com>
2022-10-19 22:49:49 -07:00
..
codesign build: fix installing of code-signing identity on macOS (#27221) 2021-01-11 10:49:15 +09:00
lib build: fix export patches to work when source directory does not exist (#35432) 2022-08-24 17:37:11 -04:00
release ci: switch to GHA for WOA (#35109) 2022-07-28 19:05:59 -04:00
zip_manifests chore: bump chromium to 104.0.5073.0 (main) (#34272) 2022-06-01 08:12:47 +02:00
add-debug-link.py build: explicitly run scripts with python3 (#33720) 2022-04-12 13:21:55 +02:00
apply_all_patches.py chore: bump chromium to 106.0.5216.0 (main) (#34993) 2022-08-17 11:35:53 -07:00
check-patch-diff.ts
check-relative-doc-links.py build: explicitly run scripts with python3 (#33720) 2022-04-12 13:21:55 +02:00
check-symlinks.js build: make check-symlinks.js aware of BRANDING.json changes (#35579) 2022-09-13 14:13:40 -07:00
copy-debug-symbols.py build: explicitly run scripts with python3 (#33720) 2022-04-12 13:21:55 +02:00
dbus_mock.py build: explicitly run scripts with python3 (#33720) 2022-04-12 13:21:55 +02:00
doc-only-change.js build: fix docs only change script to pull all files not just 30 (#28737) 2021-04-19 20:00:28 -04:00
download-circleci-artifacts.js refactor: remove all usages of the legacy request module (#30492) 2021-08-12 10:34:49 -07:00
export_all_patches.py build: fix missing patch config dir error (#35451) 2022-08-25 09:39:16 -07:00
gen-filenames.ts feat: UtilityProcess API (#34980) 2022-10-19 22:49:49 -07:00
gen-hunspell-filenames.js
gen-libc++-filenames.js test: rebuild nan tests with libc++ and libc++abi (#29281) 2021-05-22 11:48:38 -07:00
generate-config-gypi.py fix: ensure v8 pointer compression + sandbox is enabled on 64bit native modules (#34844) 2022-07-08 01:06:06 -07:00
generate-deps-hash.js build: bust the deps cache on windows (#30401) 2021-08-04 15:31:17 -07:00
generate-version-json.js
generate-zip-manifest.py build: explicitly run scripts with python3 (#33720) 2022-04-12 13:21:55 +02:00
git-export-patches build: explicitly run scripts with python3 (#33720) 2022-04-12 13:21:55 +02:00
git-import-patches build: explicitly run scripts with python3 (#33720) 2022-04-12 13:21:55 +02:00
gn-asar-hash.js refactor: migrate from asar to @electron/asar (#36070) 2022-10-19 13:39:31 -07:00
gn-asar.js refactor: migrate from asar to @electron/asar (#36070) 2022-10-19 13:39:31 -07:00
gn-check.js chore: replace Object.assign with object spread syntax (#34739) 2022-06-27 10:29:18 +02:00
gn-plist-but-with-hashes.js feat: add support for validating asar archives on macOS (#30667) 2021-09-09 14:49:01 -07:00
lint.js build: clean up patch linting errors (#35917) 2022-10-05 10:34:53 -07:00
nan-spec-runner.js fix: do not define _LIBCPP_ABI_NAMESPACE=Cr for all native modules (#34932) 2022-07-15 16:57:29 -07:00
native-test-targets.json
native-tests.py build: explicitly run scripts with python3 (#33720) 2022-04-12 13:21:55 +02:00
node-disabled-tests.json chore: bump node to v16.17.0 (main) (#35350) 2022-08-29 09:55:36 -04:00
node-spec-runner.js test: optionally validate disabled Node.js specs (#34899) 2022-07-19 12:14:21 +02:00
patches-mtime-cache.py build: explicitly run scripts with python3 (#33720) 2022-04-12 13:21:55 +02:00
push-patch.js
run-clang-format.py build: update clang-format script (#34286) 2022-06-08 21:26:41 +02:00
run-clang-tidy.ts chore: improve run-clang-tidy.ts behavior when filenames < jobs (#34736) 2022-07-11 12:25:39 +02:00
run-gn-format.py
run-if-exists.js
setup-win-for-dev.bat
spec-runner.js test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
start-goma.ps1
start.js Handle SIGUSR2 (#33589) 2022-05-03 10:36:06 +09:00
strip-binaries.py build: explicitly run scripts with python3 (#33720) 2022-04-12 13:21:55 +02:00
sysroots.json chore: bump chromium to 108.0.5355.0 (main) (#35900) 2022-10-17 10:22:24 -04:00
verify-chromedriver.py build: explicitly run scripts with python3 (#33720) 2022-04-12 13:21:55 +02:00
verify-ffmpeg.py build: explicitly run scripts with python3 (#33720) 2022-04-12 13:21:55 +02:00
verify-mksnapshot.py chore: bump chromium to 106.0.5216.0 (main) (#34993) 2022-08-17 11:35:53 -07:00
yarn.js build: update npx.py to support npx@7 (#26662) 2020-11-23 21:26:54 -08:00
zip-symbols.py build: explicitly run scripts with python3 (#33720) 2022-04-12 13:21:55 +02:00