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

Deprecate reconfigurable flag #903

Merged
merged 2 commits into from
Aug 15, 2017
Merged

Conversation

tsyesika
Copy link

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.

@tsyesika tsyesika force-pushed the deprecate-reconfigurable-flag branch from 5cb11b1 to 176906c Compare August 15, 2017 10:13
@tsyesika tsyesika requested a review from wingo August 15, 2017 10:36
Copy link

@wingo wingo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

excellent, thank you!

@@ -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")
Copy link

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.

@@ -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")
Copy link

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.

@tsyesika tsyesika force-pushed the deprecate-reconfigurable-flag branch from 8d855fd to 95c1e4e Compare August 15, 2017 11:18
@tsyesika tsyesika merged commit a98355d into lwaftr Aug 15, 2017
Jessica Tallon added 2 commits August 15, 2017 14:12
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.
@wingo wingo deleted the deprecate-reconfigurable-flag branch April 18, 2018 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants