pkg icon indicating copy to clipboard operation
pkg copied to clipboard

fix: pick up the correct file argument when forking a process

Open robertsLando opened this issue 2 years ago • 11 comments

This enables you to fork a process with run time arguments, for instance --max_old_space_size=1024.

This is an old fix by @bergheim. Never submitted a PR for it

Fixes #459 Fixes #1461

robertsLando avatar Dec 30 '21 07:12 robertsLando

Awesome! I really thought I had submitted this and that it was just ignored.

I am still using it, and I believe I have rebased a bit etc because I am on master. Must not have updated github. Will have a look over the new year and update this.

bergheim avatar Dec 30 '21 11:12 bergheim

@bergheim Yeah please fix merge conflicts so we can merge this :)

robertsLando avatar Dec 30 '21 14:12 robertsLando

This pull-request is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this pull-request entirely you can add the no-stale label

github-actions[bot] avatar Mar 31 '22 00:03 github-actions[bot]

This pull-request is now closed due to inactivity, you can of course reopen or reference this pull-request if you see fit.

github-actions[bot] avatar Apr 06 '22 00:04 github-actions[bot]

cc @jesec

robertsLando avatar Apr 06 '22 06:04 robertsLando

This pull-request is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this pull-request entirely you can add the no-stale label

github-actions[bot] avatar Jul 06 '22 00:07 github-actions[bot]

Tests are failing.

jesec avatar Jul 06 '22 02:07 jesec

Hello,

I tried to add this as a PR but that was already here (I now remember), so I guess we can just keep it here. Tests pass, and it works fine for me with various mem settings and forking, but I suspect something is still off with this old code.

I wrote some tests. However getting runtime options into https://github.com/bergheim/pkg/blob/fa0b1a478bbf618a0ca23a6028249bfffa572e8f/test/utils.js#L120 was a bit tricky given the time I had. I want to pass execArgv to utils.pkg.sync. But I am unable to get anything into the left args in the test. Any pointers?

Thanks.

bergheim avatar Jul 12 '22 21:07 bergheim

Sorry I dunno how to help here, maybe @jesec?

robertsLando avatar Jul 13 '22 06:07 robertsLando

Any feedback on this @jesec @robertsLando or others?

bergheim avatar Sep 05 '22 14:09 bergheim

Looks good to me overall. Would like to also have @jesec opinion.

Could you add a test too?

robertsLando avatar Sep 05 '22 14:09 robertsLando

@jesec Ping

robertsLando avatar Oct 18 '22 06:10 robertsLando

looks like @jesec hasn't been active in this repo @robertsLando, is there any other way forward for this PR to be merged?

faroceann avatar Dec 14 '22 10:12 faroceann

@faroceann Unfortunately I haven't the privileges to do so much, I could merge this but I wouldn't be able to create releases. I will try to ping @jesec via PM but I know he has been very full in last months

robertsLando avatar Dec 16 '22 07:12 robertsLando

This pull-request is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this pull-request entirely you can add the no-stale label

github-actions[bot] avatar Mar 17 '23 00:03 github-actions[bot]

@baparham Also may have sense to merge this too before next release

robertsLando avatar Mar 17 '23 07:03 robertsLando

I guess the todo's left here are:

  • [ ] Rebase against latest main, resolve any conflicts
  • [ ] add a test (how? seems difficult considering @bergheim previous comments)

baparham avatar Mar 17 '23 11:03 baparham

This pull-request is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this pull-request entirely you can add the no-stale label

github-actions[bot] avatar Jun 16 '23 00:06 github-actions[bot]

This pull-request is now closed due to inactivity, you can of course reopen or reference this pull-request if you see fit.

github-actions[bot] avatar Jun 22 '23 00:06 github-actions[bot]

This just affected us as well. Could we re-open this PR and the associated issue https://github.com/vercel/pkg/issues/459?

jromero-pg avatar Jun 23 '23 12:06 jromero-pg

@leerob do you know who can provide some feedback on this PR and/or get it merged?

jromero-pg avatar Jun 26 '23 22:06 jromero-pg

This pull-request is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this pull-request entirely you can add the no-stale label

github-actions[bot] avatar Sep 26 '23 00:09 github-actions[bot]

This pull-request is now closed due to inactivity, you can of course reopen or reference this pull-request if you see fit.

github-actions[bot] avatar Oct 01 '23 00:10 github-actions[bot]