Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Script allow run process in background #1944

Open
1 task done
lockwobr opened this issue Sep 11, 2024 · 4 comments
Open
1 task done

[Feature] Script allow run process in background #1944

lockwobr opened this issue Sep 11, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@lockwobr
Copy link

Problem Statement

Today if you launch a process in the background from script with the way works, it ends up hanging the test because the process is not put to the background.

Solution Description

Either added a new primitive to start a process in the background, or maybe a better option is to add a flag to script allow forking a process to the background.

Alternatives

No response

Additional Context

No response

Slack discussion

No response

Research

  • I have searched other issues in this repository and mine is not recorded.
@lockwobr lockwobr added the enhancement New feature or request label Sep 11, 2024
@eddycharly
Copy link
Member

Thanks for opening the issue @lockwobr !
Can you elaborate on the use case ?

@lockwobr
Copy link
Author

lockwobr commented Sep 12, 2024

For testing I build my operator with coverage so I can merge my chainsaw test code coverage with my unit test code coverage. Tell now I just run the operator in background before running the chainsaw tests, but I need to test migration code between versions of the operator, so I want to be able to in middle of the chainsaw test kill the old and start a new version of the operator binary to trigger the migration code, and also capture the code coverage stats. There are ways around this but way more involved.

@lockwobr
Copy link
Author

Also to be more clear. When you try to do something like this in a script it will hang because its not running in the background.

nohup ${LOCALBIN}/manager > ${REPORTING}/int/std.out &
echo "$!" > ${PID}

@nvetel
Copy link

nvetel commented Oct 3, 2024

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants