nodejs / node-core-utils

CLI tools for Node.js Core collaborators
https://nodejs.github.io/node-core-utils/
MIT License
234 stars 106 forks source link

Revert required certify safe #805

Open mcollina opened 2 weeks ago

mcollina commented 2 weeks ago

Fixes #801

mcollina commented 2 weeks ago

I think this is too restrictive and a different implementation should be reached. This is blocking collaborators in starting CI using the flag, essentially nullifying the usefulness of the flag itself.

(I was wrong in LGTMing this, sorry)

mcollina commented 2 weeks ago

cc @joyeecheung @nodejs/tsc

aduh95 commented 2 weeks ago

I'd prefer if we find another solution than to revert, maybe we could improve the CLI flow for starting CI.

MoLow commented 2 weeks ago

I think we should wait before landing this to discuss with TSC since https://github.com/nodejs/node-core-utils/issues/801 is on the agenda. I wonder if there is a way/GitHub API to check which user added the label to a PR, then we can check if the user who added the label is a collaborator

targos commented 2 weeks ago

We could have an action that automatically removes the label if it was applied by someone who's not allowed.

aduh95 commented 2 weeks ago

We could have an action that automatically removes the label if it was applied by someone who's not allowed.

There would be a race condition though, I don't think that's a sound solution. The GHA workflow could add --certify-safe on PRs opened by collaborators – but I still think there would be value in nudging folks into using the CLI flow.

mcollina commented 2 weeks ago

There would be a race condition though, I don't think that's a sound solution. The GHA workflow could add --certify-safe on PRs opened by collaborators – but I still think there would be value in nudging folks into using the CLI flow.

I do most of my CI-nudging on mobile :(

MoLow commented 2 weeks ago

but I still think there would be value in nudging folks into using the CLI flow.

what is that value? and in that case, why won't I access https://ci.nodejs.org/ and trigger a job manually? I think there is a huge value in performing this via Github UI. (I use mobile a lot as well)

aduh95 commented 2 weeks ago

what is that value?

There would be incentive to improve the CLI, while keeping for triaggers the ability to run CI on approved PRs – and only approved PRs.

why won't I access https://ci.nodejs.org/ and trigger a job manually?

It's always been a possibility, nothing changes on that front (no matter if this revert lands or not, no matter if the CLI improves or not).

I think there is a huge value in performing this via Github UI

It's still there – only for fewer PRs, the one that have been approved.

(I use mobile a lot as well)

Surely you don't send your PRs from mobile do you? If you mean reviewing PRs, how often does it happen that you would want to run CI before you approve it? I suppose it would depend on the type of changes that's being suggested, and maybe we have different experiences around it, the current settings were chosen because it matched my personal "kicking off CIs" style.

mcollina commented 2 weeks ago

If you mean reviewing PRs, how often does it happen that you would want to run CI before you approve it?

I would guess 80-90% of the time.

I suppose it would depend on the type of changes that's being suggested, and maybe we have different experiences around it, the current settings were chosen because it matched my personal "kicking off CIs" style.

Fair enough, but we should be supportive of others too.

mcollina commented 2 weeks ago

I think we should wait before landing this to discuss with TSC since https://github.com/nodejs/node-core-utils/issues/801 is on the agenda.

I would prefer to not loose another week.

ShogunPanda commented 1 week ago

I also incurred into this. This is definitely not what we want.

marco-ippolito commented 1 week ago

Another annoying issue is when your pr is approved, you amend a nit and you cannot start CI, without asking to re-approve the PR

mcollina commented 6 days ago

I don't have much time to iterate on this atm. I think reverting gives us the quickest path forward to restore functionality.

mcollina commented 6 days ago

Where should the option be passed?

aduh95 commented 6 days ago

Where should the option be passed?

When calling nci-ci – that bypass the check for approvals.