gpt-engineer icon indicating copy to clipboard operation
gpt-engineer copied to clipboard

Sweep: When scripts/benchmark.py runs multiple npx http-server projects, all of them start up the "first" project that used npx http-server

Open wwzeng1 opened this issue 1 year ago • 1 comments

Let's run the subprocesses on separate ports. This is a python repository

wwzeng1 avatar Jun 26 '23 03:06 wwzeng1

Hey @wwzeng1,

I've started working on this issue. The plan is to modify the benchmark.py script to start each subprocess on a unique port. This will be done by passing the -p (port) option to npx http-server followed by a unique port number for each subprocess. We'll start from port 8000 and increment it for each new subprocess to ensure that the port numbers we choose are available and not being used by other services.

Give me a minute!

Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description.

https://github.com/AntonOsika/gpt-engineer/blob/0596b07a39c2c99c46509c17660f5c8aef4b2114/benchmark/markdown_editor/prompt#L1-L1

https://github.com/AntonOsika/gpt-engineer/blob/0596b07a39c2c99c46509c17660f5c8aef4b2114/gpt_engineer/steps.py#L289-L332

https://github.com/AntonOsika/gpt-engineer/blob/0596b07a39c2c99c46509c17660f5c8aef4b2114/benchmark/todo_list/prompt#L1-L1

https://github.com/AntonOsika/gpt-engineer/blob/0596b07a39c2c99c46509c17660f5c8aef4b2114/benchmark/timer_app/prompt#L1-L1

https://github.com/AntonOsika/gpt-engineer/blob/0596b07a39c2c99c46509c17660f5c8aef4b2114/scripts/benchmark.py#L1-L76


I'm a bot that handles simple bugs and feature requests but I might make mistakes. Please be kind!

sweep-ai[bot] avatar Jun 26 '23 03:06 sweep-ai[bot]