You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
Retry would fail if previous command run with --log-file-max-bytes 0 specified.
Expected Behavior
Retry properly get the behavior of --log-file-max-bytes 0
Steps To Reproduce
In a dbt project, run dbt --log-file-max-bytes 0 run.
run dbt retry
Relevant log output
20:12:53 Running with dbt=1.6.0
20:12:53 Registered adapter: postgres=1.6.0
20:12:53 Encountered an error:
No such option: --no-log-file-max-bytes
20:12:53 Traceback (most recent call last):
File "/Users/chenyuli/git/dbt-core/core/dbt/cli/requires.py", line 87, in wrapper
result, success = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/chenyuli/git/dbt-core/core/dbt/cli/requires.py", line 72, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/chenyuli/git/dbt-core/core/dbt/cli/requires.py", line 143, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/chenyuli/git/dbt-core/core/dbt/cli/requires.py", line 172, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/chenyuli/git/dbt-core/core/dbt/cli/requires.py", line 219, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/chenyuli/git/dbt-core/core/dbt/cli/requires.py", line 259, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/chenyuli/git/dbt-core/core/dbt/cli/main.py", line 608, in retry
results = task.run()
^^^^^^^^^^
File "/Users/chenyuli/git/dbt-core/core/dbt/task/retry.py", line 94, in run
retry_flags = Flags.from_dict(cli_command, self.previous_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/chenyuli/git/dbt-core/core/dbt/cli/flags.py", line 294, in from_dict
ctx = args_to_context(command_arg_list)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/chenyuli/git/dbt-core/core/dbt/cli/flags.py", line 59, in args_to_context
cli_ctx = cli.make_context(cli.name, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/chenyuli/git/ide-server/ide-server/lib/python3.11/site-packages/click/core.py", line 920, in make_context
self.parse_args(ctx, args)
File "/Users/chenyuli/git/ide-server/ide-server/lib/python3.11/site-packages/click/core.py", line 1613, in parse_args
rest = super().parse_args(ctx, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/chenyuli/git/ide-server/ide-server/lib/python3.11/site-packages/click/core.py", line 1375, in parse_args
opts, args, param_order = parser.parse_args(args=args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/chenyuli/git/ide-server/ide-server/lib/python3.11/site-packages/click/parser.py", line 337, in parse_args
self._process_args_for_options(state)
File "/Users/chenyuli/git/ide-server/ide-server/lib/python3.11/site-packages/click/parser.py", line 364, in _process_args_for_options
self._process_opts(arg, state)
File "/Users/chenyuli/git/ide-server/ide-server/lib/python3.11/site-packages/click/parser.py", line 514, in _process_opts
self._match_long_opt(norm_long_opt, explicit_value, state)
File "/Users/chenyuli/git/ide-server/ide-server/lib/python3.11/site-packages/click/parser.py", line 398, in _match_long_opt
raise NoSuchOption(opt, possibilities=possibilities, ctx=self.ctx)
click.exceptions.NoSuchOption: No such option: --no-log-file-max-bytes
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
[Bug] Retry does not construct flags properly for 0 valued parameter
[CT-2924] [Bug] Retry does not construct flags properly for 0 valued parameter
Aug 2, 2023
Is this a new bug in dbt-core?
Current Behavior
Retry would fail if previous command run with
--log-file-max-bytes 0
specified.Expected Behavior
Retry properly get the behavior of
--log-file-max-bytes 0
Steps To Reproduce
dbt --log-file-max-bytes 0 run
.dbt retry
Relevant log output
The text was updated successfully, but these errors were encountered: