Open alexanderilyin opened 2 weeks ago
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)
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'))
Here is my other attempt on potato scaling of behave
:
Well, debuger does not help much with whatever happens in sub processes. My current understanding is that something goes wrong around process_pool.submit(...)
. Also if I look on the error message:
behavex: error: unrecognized arguments: --parallel-processes
usage: behavex [options] [ [DIR|FILE|FILE:LINE] ]+
It looks if like --parallel-processes 2
was passed to behave
executable:
⬢ [Docker] ❯ behave --parallel-processes 2
usage: behave [options] [ [DIR|FILE|FILE:LINE] ]+
behave: error: unrecognized arguments: --parallel-processes
@hrcorval I can tell the following:
behave
and behavex
are installed by poetry
in the same venv.behavex
is installed via pipx
yaml
and hamcrest
and other modules I import in features/steps/*.py
but overall it seems to "work" if behavex
installed via pipx
:
...
2 features passed, 12 failed, 6 skipped
11 scenarios passed, 26 failed, 74 skipped
Took: 3m 7s
My plan is:
conda
to install behavex
in isolation with all needed deps.
Describe the bug
To Reproduce
Expected behavior
No error message
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):