opentelemetry-demo icon indicating copy to clipboard operation
opentelemetry-demo copied to clipboard

Restart script does more than restart

Open flands opened this issue 6 months ago • 1 comments

Bug Report

1.7

Symptom

Run ./restart-service.sh frontend or make restart service=frontend

What is the expected behavior?

The service is restarted and nothing more - the operation is quick

What is the actual behavior?

The service is rebuilt and redeployed - the operation takes a long time

Reproduce

See above

Additional Context

It seems like the restart operation should only perform a restart action. A better name for the current behavior would be redeploy. Having both restart and redeploy operations is likely helpful. Changing this would be a breaking change, but perhaps that is OK.

As an aside, why does restart use a script while everything else is either defined in the Makefile or left to the user to figure out? Seems like everything in the script could/should be in the Makefile. I can file a separate issue for this if people agree.

flands avatar Dec 28 '23 12:12 flands

The comment in the Makefile for this target is clear that the service will be rebuilt and restarted.

I believe the reason why this was done as a separate script is that that's how it existed before, similar to other "dev tooling" with the demo like the generate-protofuf target. I brought it up at a SIG meeting that I depended on this script to quickly test changes, and the idea came that we should include it as a Make target or part of the demo repo itself as just a script.

puckpuck avatar Jan 02 '24 17:01 puckpuck

Could we clarify what the enhancement is here? Making the restart script a make target called 'redeploy'?

austinlparker avatar Feb 19 '24 16:02 austinlparker

It's on my long list of todos...

rename the current target to redeploy and create a new target called restart which only does a restart.

puckpuck avatar Feb 20 '24 04:02 puckpuck