Skip to content

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Jul 17, 2025

Set process.exitCode instead of calling process.exit() to exit with an error.

process.exit() is not recommended because it kills the process immediately, and stdout may not have been fully flushed yet, so output may be lost.

https://nodejs.org/api/process.html#processexitcode

This was news to me!

@github-actions github-actions bot added the C-bug Category - Bug label Jul 17, 2025
Copy link
Member Author

overlookmotel commented Jul 17, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Contributor

camc314 commented Jul 17, 2025

Merge activity

Set `process.exitCode` instead of calling `process.exit()` to exit with an error.

`process.exit()` is not recommended because it kills the process immediately, and stdout may not have been fully flushed yet, so output may be lost.

https://nodejs.org/api/process.html#processexitcode

This was news to me!
@graphite-app graphite-app bot force-pushed the 07-17-test_napi_oxlint_add_test_case_with_many_files branch from 2081992 to 2e26c03 Compare July 17, 2025 09:11
@graphite-app graphite-app bot force-pushed the 07-17-fix_napi_oxlint_use_process.exitcode_ branch from 22bc769 to 98b17e9 Compare July 17, 2025 09:12
Base automatically changed from 07-17-test_napi_oxlint_add_test_case_with_many_files to main July 17, 2025 09:19
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Jul 17, 2025
@graphite-app graphite-app bot merged commit 98b17e9 into main Jul 17, 2025
16 checks passed
@graphite-app graphite-app bot deleted the 07-17-fix_napi_oxlint_use_process.exitcode_ branch July 17, 2025 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-bug Category - Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants