Skip to content

ros2_batch_job --workspace-path option does not work #600

@jacobperron

Description

@jacobperron

Looking at the code we see that the argparse option declared here:

parser.add_argument(
'--workspace-path', default=None,
help="base path of the workspace")

is not actually used anywhere in the code. So setting this option has no affect on the job.

I'm not sure exactly how to fix the argument because I don't understand the purpose of the --white-space-in option, which is coupled to determining the actual workspace named used:

args.workspace = 'work space' if 'workspace' in args.white_space_in else 'ws'

If I'm not mistaken, this section of code is relevant as well:

for name in ('sourcespace', 'buildspace', 'installspace'):
space_directory = getattr(args, name)
if name in args.white_space_in and space_directory is not None:
raise Exception('Argument {} and "--white-space-in" cannot both be used'.format(name))


Here are other references to the option I could find:

export CI_ARGS="--do-venv --force-ansi-color --workspace-path $WORKSPACE"

set "CI_ARGS=--force-ansi-color --workspace-path !WORKSPACE!"

set "CI_ARGS=--force-ansi-color --workspace-path !WORKSPACE!"

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions