node icon indicating copy to clipboard operation
node copied to clipboard

lib,src: remove --experimental-policy

Open RafaelGSS opened this issue 10 months ago • 17 comments

Refs: https://github.com/nodejs/node/issues/52575


Summary: We are dropping the --experimental-policy feature from Node.js.

RafaelGSS avatar Apr 18 '24 20:04 RafaelGSS

Review requested:

  • [ ] @nodejs/loaders
  • [ ] @nodejs/security-wg
  • [ ] @nodejs/startup

nodejs-github-bot avatar Apr 18 '24 20:04 nodejs-github-bot

Generally in favor of this PR, we should probably warn people against using it in the meantime in a smaller semver-ptch PR

We should doc deprecate it immediately -- even if it's not a requirement for experimental features to go through a full deprecation cycle the earlier we inform users that the feature is going away the better.

richardlau avatar Apr 19 '24 12:04 richardlau

added to https://github.com/nodejs/node/labels/tsc-agenda just for awareness

MoLow avatar Apr 19 '24 12:04 MoLow

This is now ready to review. I'm adding the dont-land labels as requested by @richardlau to follow the deprecation cycle. So, here's the plan:

  • I'll open a new PR to update the doc to doc-deprecated
  • Merge that PR
  • Land doc-deprecation in all release lines
  • Merge this PR
  • Land this PR in all release lines

RafaelGSS avatar Apr 19 '24 19:04 RafaelGSS

I’m adding the dont-land labels as requested by @richardlau to follow the deprecation cycle. So, here’s the plan:

I thought we never deprecated experimental features?

Ideally we would land this as part of 22.0.0.

GeoffreyBooth avatar Apr 19 '24 22:04 GeoffreyBooth

I’m adding the dont-land labels as requested by @richardlau to follow the deprecation cycle. So, here’s the plan:

I thought we never deprecated experimental features?

Ideally we would land this as part of 22.0.0.

We have in the past: https://github.com/nodejs/node/pull/12243 I don't believe it is a requirement for experimental features to go through a full deprecation cycle, but that doesn't stop us doc-deprecating things. For example, I'd be much more hesitant to backport this PR (with 89 touched files) to LTS immediately -- I'd probably want to wait longer than the usual "two weeks in current" policy just due to the number of files touched whereas I'd have no issue with landing doc deprecations in line with the two week policy.

richardlau avatar Apr 19 '24 23:04 richardlau

I think it's less disruptive to remove this as part of 22.0.0 than later in the 22 line, or in 23.

GeoffreyBooth avatar Apr 20 '24 02:04 GeoffreyBooth

This is more of a meta note, but if we remove the experimental policy, we should also remove the issue label (policy) as well.

redyetidev avatar Apr 20 '24 14:04 redyetidev

Can we fast-track a doc-deprecation in 22? Maybe changing the experimental warning into deprecation warning too if that's not too much hassle? Then we can proceed with this PR for later versions of 22, or 23.

EDIT: oh I see https://github.com/nodejs/node/pull/52602 now

joyeecheung avatar Apr 20 '24 14:04 joyeecheung

doc-deprecation has been merged. I will wait for it to land on v22/v21 then I will proceed with this PR as it will hard conflict if I just merge it with dont-land-*.

RafaelGSS avatar Apr 22 '24 18:04 RafaelGSS

Added labels to denote the current state of the feature

redyetidev avatar Apr 27 '24 02:04 redyetidev

Failed to start CI
   ⚠  Something was pushed to the Pull Request branch since the last approving review.
   ✘  Refusing to run CI on potentially unsafe PR
https://github.com/nodejs/node/actions/runs/8883463760

github-actions[bot] avatar Apr 29 '24 18:04 github-actions[bot]

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

nodejs-github-bot avatar Apr 29 '24 18:04 nodejs-github-bot

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

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 Apr 29 '24 19:04 github-actions[bot]

Failed to start CI
   ⚠  Something was pushed to the Pull Request branch since the last approving review.
   ✘  Refusing to run CI on potentially unsafe PR
https://github.com/nodejs/node/actions/runs/8884508901

github-actions[bot] avatar Apr 29 '24 19:04 github-actions[bot]

Failed to start CI
   ⚠  Something was pushed to the Pull Request branch since the last approving review.
   ✘  Refusing to run CI on potentially unsafe PR
https://github.com/nodejs/node/actions/runs/8886863709

github-actions[bot] avatar Apr 29 '24 23:04 github-actions[bot]

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

nodejs-github-bot avatar Apr 30 '24 01:04 nodejs-github-bot

Failed to start CI
   ⚠  Something was pushed to the Pull Request branch since the last approving review.
   ✘  Refusing to run CI on potentially unsafe PR
https://github.com/nodejs/node/actions/runs/8976580157

github-actions[bot] avatar May 06 '24 22:05 github-actions[bot]

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

nodejs-github-bot avatar May 06 '24 23:05 nodejs-github-bot

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

nodejs-github-bot avatar May 07 '24 04:05 nodejs-github-bot

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

nodejs-github-bot avatar May 07 '24 07:05 nodejs-github-bot

Landed in 951af83033968328350adbcc173403d8f33fb791

nodejs-github-bot avatar May 07 '24 16:05 nodejs-github-bot

The policy label should also be removed from the issue tracker

redyetidev avatar May 07 '24 16:05 redyetidev

Do we want to backport it to v20?

marco-ippolito avatar Jun 17 '24 08:06 marco-ippolito

Do we want to backport it to v20?

Yes

RafaelGSS avatar Jun 17 '24 11:06 RafaelGSS