node icon indicating copy to clipboard operation
node copied to clipboard

report: add `--report-exclude-network` option

Open Ethan-Arrowood opened this issue 1 year ago • 14 comments

New option --report-exclude-network, also available as report.excludeNetwork, enables the user to exclude networking interfaces in their diagnostic report. On some systems, this can cause the report to take minutes to generate so this option can be used to optimize that.

Fixes: https://github.com/nodejs/node/issues/46060

Ethan-Arrowood avatar Feb 02 '24 03:02 Ethan-Arrowood

I'm not used to the tests not being in either sequential or parallel. I add some more tests that verify the header.networkInterfaces is missing when this option is set (either by CLI or configuration). I used new test syntax and what not so hopefully that still works in the test/report/ directory.

Ethan-Arrowood avatar Feb 02 '24 03:02 Ethan-Arrowood

The https://github.com/nodejs/node/labels/notable-change label has been added by @anonrig.

Please suggest a text for the release notes if you'd like to include a more detailed summary, then proceed to update the PR description with the text or a link to the notable change suggested text comment. Otherwise, the commit will be placed in the Other Notable Changes section.

github-actions[bot] avatar Feb 05 '24 23:02 github-actions[bot]

@anonrig I'm getting a segmentation fault now (after I made the change Joyee recommended). Trying to debug but this is hard

Ethan-Arrowood avatar Feb 05 '24 23:02 Ethan-Arrowood

Checks are green! I've had the request label on for awhile but it still hasn't triggered. Did I do it wrong? Maybe the queue is long? Hopefully we can merge soon!

Ethan-Arrowood avatar Feb 13 '24 04:02 Ethan-Arrowood

Checks are green! I've had the request label on for awhile but it still hasn't triggered. Did I do it wrong? Maybe the queue is long? Hopefully we can merge soon!

The Jenkins CI is currently restricted due to the (delayed) security release. It will be reenabled once the security release is done.

richardlau avatar Feb 13 '24 13:02 richardlau

CI: https://ci.nodejs.org/job/node-test-pull-request/57087/

nodejs-github-bot avatar Feb 14 '24 19:02 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/57089/

nodejs-github-bot avatar Feb 14 '24 22:02 nodejs-github-bot

🤞 rebased on main and trying CI again. Failures seemed unrelated to my changes.

Ethan-Arrowood avatar Feb 15 '24 15:02 Ethan-Arrowood

CI: https://ci.nodejs.org/job/node-test-pull-request/57100/

nodejs-github-bot avatar Feb 15 '24 15:02 nodejs-github-bot

Commit Queue failed
- Loading data for nodejs/node/pull/51645
✔  Done loading data for nodejs/node/pull/51645
----------------------------------- PR info ------------------------------------
Title      report: add `--report-exclude-network` option (#51645)
Author     Ethan Arrowood  (@Ethan-Arrowood)
Branch     Ethan-Arrowood:fix/process-getreport -> nodejs:main
Labels     c++, semver-minor, lib / src, notable-change, needs-ci, report
Commits    1
 - report: add `--report-exclude-network` option
Committers 1
 - Ethan Arrowood 
PR-URL: https://github.com/nodejs/node/pull/51645
Fixes: https://github.com/nodejs/node/issues/46060
Reviewed-By: Yagiz Nizipli 
Reviewed-By: Joyee Cheung 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/51645
Fixes: https://github.com/nodejs/node/issues/46060
Reviewed-By: Yagiz Nizipli 
Reviewed-By: Joyee Cheung 
--------------------------------------------------------------------------------
   ⚠  Commits were pushed since the last approving review:
   ⚠  - report: add `--report-exclude-network` option
   ℹ  This PR was created on Fri, 02 Feb 2024 03:17:12 GMT
   ✔  Approvals: 2
   ✔  - Yagiz Nizipli (@anonrig) (TSC): https://github.com/nodejs/node/pull/51645#pullrequestreview-1864004600
   ✔  - Joyee Cheung (@joyeecheung) (TSC): https://github.com/nodejs/node/pull/51645#pullrequestreview-1881176781
   ✘  Last GitHub CI failed
   ℹ  Last Full PR CI on 2024-02-15T15:18:08Z: https://ci.nodejs.org/job/node-test-pull-request/57100/
- Querying data for job/node-test-pull-request/57100/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/7923747889

nodejs-github-bot avatar Feb 15 '24 23:02 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/57119/

nodejs-github-bot avatar Feb 16 '24 01:02 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/57136/

nodejs-github-bot avatar Feb 16 '24 13:02 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/57154/

nodejs-github-bot avatar Feb 17 '24 01:02 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/57155/

nodejs-github-bot avatar Feb 17 '24 03:02 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/57259/

nodejs-github-bot avatar Feb 21 '24 17:02 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/57345/

nodejs-github-bot avatar Feb 23 '24 13:02 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/57456/

nodejs-github-bot avatar Feb 27 '24 10:02 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/57507/

nodejs-github-bot avatar Feb 29 '24 16:02 nodejs-github-bot

If you like at all of the CI runs for this PR it has only failed flaky tests. There is nothing failing consistently, so I believe this is safe to land

Ethan-Arrowood avatar Mar 01 '24 16:03 Ethan-Arrowood

CI: https://ci.nodejs.org/job/node-test-pull-request/57536/

nodejs-github-bot avatar Mar 01 '24 16:03 nodejs-github-bot

Commit Queue failed
- Loading data for nodejs/node/pull/51645
✔  Done loading data for nodejs/node/pull/51645
----------------------------------- PR info ------------------------------------
Title      report: add `--report-exclude-network` option (#51645)
Author     Ethan Arrowood  (@Ethan-Arrowood)
Branch     Ethan-Arrowood:fix/process-getreport -> nodejs:main
Labels     c++, semver-minor, lib / src, notable-change, needs-ci, report
Commits    1
 - report: add `--report-exclude-network` option
Committers 1
 - Ethan Arrowood 
PR-URL: https://github.com/nodejs/node/pull/51645
Fixes: https://github.com/nodejs/node/issues/46060
Reviewed-By: Yagiz Nizipli 
Reviewed-By: Joyee Cheung 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/51645
Fixes: https://github.com/nodejs/node/issues/46060
Reviewed-By: Yagiz Nizipli 
Reviewed-By: Joyee Cheung 
--------------------------------------------------------------------------------
   ⚠  Commits were pushed since the last approving review:
   ⚠  - report: add `--report-exclude-network` option
   ℹ  This PR was created on Fri, 02 Feb 2024 03:17:12 GMT
   ✔  Approvals: 2
   ✔  - Yagiz Nizipli (@anonrig) (TSC): https://github.com/nodejs/node/pull/51645#pullrequestreview-1864004600
   ✔  - Joyee Cheung (@joyeecheung) (TSC): https://github.com/nodejs/node/pull/51645#pullrequestreview-1881176781
   ✔  Last GitHub CI successful
   ℹ  Last Full PR CI on 2024-03-01T16:27:31Z: https://ci.nodejs.org/job/node-test-pull-request/57536/
- Querying data for job/node-test-pull-request/57536/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/8114994573

nodejs-github-bot avatar Mar 01 '24 17:03 nodejs-github-bot

Commit-queue failed because I pushed a rebase after latest reviews. Can someone reapprove this please? @anonrig @joyeecheung

Ethan-Arrowood avatar Mar 01 '24 17:03 Ethan-Arrowood

Landed in 009665fb56549c913d4bc125c202020fe3952942

nodejs-github-bot avatar Mar 01 '24 21:03 nodejs-github-bot