-
Notifications
You must be signed in to change notification settings - Fork 5
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
Deprecate reconfigurable flag #903
Conversation
5cb11b1
to
176906c
Compare
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.
excellent, thank you!
src/program/lwaftr/bench/bench.lua
Outdated
@@ -31,7 +31,9 @@ function parse_args(args) | |||
function handlers.b(arg) opts.bench_file = arg end | |||
function handlers.y() opts.hydra = true end | |||
function handlers.h() show_usage(0) end | |||
function handlers.reconfigurable() opts.reconfigurable = true end | |||
function handlers.reconfigurable() | |||
io.stderr:write("Warning: --reconfigurable flag has been deprecated.\n") |
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.
Let's remove this one entirely, as this is an internal script that's not user-facing.
src/program/lwaftr/run/run.lua
Outdated
@@ -102,7 +102,9 @@ function parse_args(args) | |||
.." (valid values: flush, warn, off)") | |||
end | |||
end | |||
function handlers.reconfigurable() opts.reconfigurable = true end | |||
function handlers.reconfigurable() | |||
io.stderr:write("Warning: --reconfigurable flag has been deprecated.\n") |
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 we adapt this note to somehow assure the user that --reconfigurable is always enabled so they can safely remove the flag from their scripts? This note says that it's deprecated but not what action they need to take.
8d855fd
to
95c1e4e
Compare
This deprecates the --reconfigurable flag from all lwaftr apps. The reconfigurable / multiprocess mode is always enabled. The tests have been simplied to reflect this. A deprecation warning is shown if --reconfigurable is used. As of this change, ingress drop monitor is no longer supported. An issue tracking the support is #902. A warning is shown if it is used.
This removes the --reconfigurable flag in the bench command entirely as it's internal facing. It also improves the message in the deprecation warning in the run command.
This deprecates the
--reconfigurable
flag in favour of having it always be in a multi-process re-configurable mode. The use of the flag will now raise a deprecation warning.One other thing to note is as of this PR the ingress drop monitor support is no longer available as documented in #902.