Skip to content

[Bug]: In Job, if executable is found locally, it is always added to the sandbox #8445

@maxnoe

Description

@maxnoe

Search before creating an issue

  • I have searched existing issues and confirmed this is not a duplicate

Bug Description

In the Job.setExecutable, the executable is always uploaded to the job sandbox:

if os.path.exists(executable):
self.log.verbose(f"Found script executable file {executable}")
self.addToInputSandbox.append(executable)
logName = f"{os.path.basename(executable)}.log"
else:
self.log.warn("The executable code could not be found locally")
logName = "CodeOutput.log"

This happens even if e.g. the executable is a path on cvmfs

Steps to Reproduce

On a host that has cvmfs available:

job = Job()
job.setExecutable("/cvmfs/<some repo>/<some executable>")

Expected Behavior

The executable is assumed to be available on the worker node because it's a path on CVMFS

Actual Behavior

The executable is added to the sandbox.

Environment

No response

Relevant Log Output

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions