-
Notifications
You must be signed in to change notification settings - Fork 22
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
chore: add deprecated flags to force early crash when used #165
Conversation
It looks really bad on us if we simply just crash. It is not a common practice, nor not backward compatible. I think we should treat it more seriously, and It is a hard problem, perhaps we can devise a runbook to change the flags. For this issue, we will take the hard job. I will create a doc for such scheme |
Ok, we will resume the task. |
52da8ab
to
4da472e
Compare
flags/eigendaflags/deprecated.go
Outdated
&cli.BoolFlag{ | ||
Name: DeprecatedWaitForFinalizationFlagName, | ||
Usage: "Wait for blob finalization before returning from PutBlob.", | ||
EnvVars: withDeprecatedEnvPrefix(envPrefix, "WAIT_FOR_FINALIZATION"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WAIT_FOR_FINALIZATION isn't introduced before
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flags/eigendaflags/deprecated.go
Outdated
} | ||
|
||
func withDeprecatedEnvPrefix(envPrefix, s string) []string { | ||
return []string{envPrefix + "_" + s} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for many ENV, there is not list of string, can you change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also change here, https://github.com/Layr-Labs/eigenda-proxy/blob/main/verify/cli.go#L44.
With the latest change, it looks like this
Not sure why it has to be a list
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides those, I tested manually, everything work, nice |
didn't exist before, so shouldnt be deprecated - its a new flag
Recent flags refactor PR changed a bunch of flags. Added some those deprecated flags back, crashing the program if they are ever used to force users to change to the new flags.
I'm sure I missed a bunch of flags though given that the flags have been dispersed locally in a bunch of different modules. Would be a tough job to make sure to get all the deprecated flags... I propose we leave it at this. @bxue-l2 wdyt?