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

behavex: error: unrecognized arguments: --parallel-processes=4 #182

Open
alexanderilyin opened this issue Nov 19, 2024 · 3 comments
Open

Comments

@alexanderilyin
Copy link

Describe the bug

behavex --parallel-processes=4
...
behavex: error: unrecognized arguments: --parallel-processes=4

To Reproduce

⬢ [Docker] ❯ behavex --parallel-processes=4
|--------------------| ------------------------------------------------------------|
|ENV. VARIABLE       | VALUE                                                       |
|--------------------| ------------------------------------------------------------|
|HOME                | /home/node                                                  |
|CONFIG              | /workspaces/partcad/.venv/lib/python3.11/site-packages/behavex/conf_behavex.cfg|
|OUTPUT              | /workspaces/partcad/output                                  |
|TAGS                | ----                                                        |
|PARALLEL_SCHEME     | scenario                                                    |
|PARALLEL_PROCESSES  | 4                                                           |
|FEATURES_PATH       | features                                                    |
|TEMP                | /workspaces/partcad/output/temp                             |
|LOGS                | /workspaces/partcad/output/outputs/logs                     |
|LOGGING_LEVEL       | INFO                                                        |
|--------------------| ------------------------------------------------------------|

************************************************************
Running parallel scenarios
************************************************************

usage: behavex [options] [ [DIR|FILE|FILE:LINE] ]+
behavex: error: unrecognized arguments: --parallel-processes=4
usage: behavex [options] [ [DIR|FILE|FILE:LINE] ]+
behavex: error: unrecognized arguments: --parallel-processes=4
usage: behavex [options] [ [DIR|FILE|FILE:LINE] ]+
behavex: error: unrecognized arguments: --parallel-processes=4
usage: behavex [options] [ [DIR|FILE|FILE:LINE] ]+
behavex: error: unrecognized arguments: --parallel-processes=4
usage: behavex [options] [ [DIR|FILE|FILE:LINE] ]+
behavex: error: unrecognized arguments: --parallel-processes=4
usage: behavex [options] [ [DIR|FILE|FILE:LINE] ]+
behavex: error: unrecognized arguments: --parallel-processes=4
usage: behavex [options] [ [DIR|FILE|FILE:LINE] ]+
behavex: error: unrecognized arguments: --parallel-processes=4

3 features passed, 0 failed, 0 skipped
0 scenarios passed, 7 failed, 0 skipped
Took:   0.7s

HTML output report is located at: /workspaces/partcad/output/report.html
Exit code: 1

Expected behavior

No error message

Screenshots

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

⬢ [Docker] ❯ lsb_release -d
No LSB modules are available.
Description:    Debian GNU/Linux 12 (bookworm)
@hrcorval
Copy link
Owner

Hi @alexanderilyin, I believe this is related to the way argparse library (the one we use to parse the execution arguments) works across platforms. We are working on standardizing the implementation, but in the meantime, can you try executing behavex in the docker container by removing the "=" in the --parallel-proceses argument?
Like this: behavex --parallel-processes 4

If it works, the only argument I would suggest to continue using the '=' between the argument and the value, is --tags (or -t)

@alexanderilyin
Copy link
Author

Nope, didn't change much:

⬢ [Docker] ❯ behavex --parallel-processes 4
|--------------------| ------------------------------------------------------------|
|ENV. VARIABLE       | VALUE                                                       |
|--------------------| ------------------------------------------------------------|
|HOME                | /home/node                                                  |
|CONFIG              | /workspaces/partcad/.venv/lib/python3.11/site-packages/behavex/conf_behavex.cfg|
|OUTPUT              | /workspaces/partcad/output                                  |
|TAGS                | ----                                                        |
|PARALLEL_SCHEME     | scenario                                                    |
|PARALLEL_PROCESSES  | 4                                                           |
|FEATURES_PATH       | features                                                    |
|TEMP                | /workspaces/partcad/output/temp                             |
|LOGS                | /workspaces/partcad/output/outputs/logs                     |
|LOGGING_LEVEL       | INFO                                                        |
|--------------------| ------------------------------------------------------------|

************************************************************
Running parallel scenarios
************************************************************

usage: behavex [options] [ [DIR|FILE|FILE:LINE] ]+
behavex: error: unrecognized arguments: --parallel-processes
usage: behavex [options] [ [DIR|FILE|FILE:LINE] ]+
behavex: error: unrecognized arguments: --parallel-processes
usage: behavex [options] [ [DIR|FILE|FILE:LINE] ]+
behavex: error: unrecognized arguments: --parallel-processes
usage: behavex [options] [ [DIR|FILE|FILE:LINE] ]+
behavex: error: unrecognized arguments: --parallel-processes
usage: behavex [options] [ [DIR|FILE|FILE:LINE] ]+
behavex: error: unrecognized arguments: --parallel-processes
usage: behavex [options] [ [DIR|FILE|FILE:LINE] ]+
behavex: error: unrecognized arguments: --parallel-processes
usage: behavex [options] [ [DIR|FILE|FILE:LINE] ]+
behavex: error: unrecognized arguments: --parallel-processes
usage: behavex [options] [ [DIR|FILE|FILE:LINE] ]+
behavex: error: unrecognized arguments: --parallel-processes
usage: behavex [options] [ [DIR|FILE|FILE:LINE] ]+
behavex: error: unrecognized arguments: --parallel-processes
usage: behavex [options] [ [DIR|FILE|FILE:LINE] ]+
behavex: error: unrecognized arguments: --parallel-processes
usage: behavex [options] [ [DIR|FILE|FILE:LINE] ]+
behavex: error: unrecognized arguments: --parallel-processes
usage: behavex [options] [ [DIR|FILE|FILE:LINE] ]+
behavex: error: unrecognized arguments: --parallel-processes
usage: behavex [options] [ [DIR|FILE|FILE:LINE] ]+
behavex: error: unrecognized arguments: --parallel-processes
usage: behavex [options] [ [DIR|FILE|FILE:LINE] ]+
behavex: error: unrecognized arguments: --parallel-processes
usage: behavex [options] [ [DIR|FILE|FILE:LINE] ]+
behavex: error: unrecognized arguments: --parallel-processes
usage: behavex [options] [ [DIR|FILE|FILE:LINE] ]+
behavex: error: unrecognized arguments: --parallel-processes
usage: behavex [options] [ [DIR|FILE|FILE:LINE] ]+
behavex: error: unrecognized arguments: --parallel-processes
usage: behavex [options] [ [DIR|FILE|FILE:LINE] ]+
behavex: error: unrecognized arguments: --parallel-processes

9 features passed, 0 failed, 0 skipped
0 scenarios passed, 18 failed, 0 skipped
Took:   2s

HTML output report is located at: /workspaces/partcad/output/report.html
Exit code: 1

Thanks for the hint, when time allows I should be able to fork the repo and take a closer look, I also might suggest looking at https://github.com/pallets/click for the CLI interface, meanwhile I'm using this:

parallel behave ::: $(echo $(find features -type f -name '*.feature'))

@alexanderilyin
Copy link
Author

Here is my other attempt on potato scaling of behave:

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

No branches or pull requests

2 participants