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

Fixing adding of inputfiles to the GaudiExec when submitting to Dirac #822

Merged
merged 9 commits into from
Oct 5, 2016

Conversation

rob-c
Copy link
Member

@rob-c rob-c commented Oct 4, 2016

This should supersede #815. I'm checking for unsupported filetypes (we don't correctly support moving files in a nice way and I don't want to add botch code to work around what has been fixed in 6.3)
This should add inputfiles which vary between subjobs to the inputsandbox as there is no way in principle of collecting these before the subjob is being prepared so might as well send these along with the sandbox which slows submission but this is only for very complex job configurations.

I'll try and test this now.

@rob-c rob-c added this to the 6.2.1 milestone Oct 4, 2016
@rob-c rob-c self-assigned this Oct 4, 2016
@rob-c
Copy link
Member Author

rob-c commented Oct 4, 2016

I've also fixed prepare_cmake_app and added prepareGaudiExec. The latter allows for:
j=Job(application=prepareGaudiExec('DaVinci','v40r2'))

@rob-c
Copy link
Member Author

rob-c commented Oct 4, 2016

@mesmith75 What are your thoughts on this?

@mesmith75
Copy link
Contributor

@rob-c If this works then great. The PR I made is not very good. I guess we really want this to start supporting DiracFiles in the near future but for now just LocalFiles is pretty necessary so it should go in for 6.2.1.

@rob-c
Copy link
Member Author

rob-c commented Oct 4, 2016

@mesmith75 We already support DiracFiles elsewhere in the logic in assembling the JDL. The lack of support for the LocalFile here is more of an oversight. The problem is MassStorageFile we have no (in 6.2.1) nice way of copying the file to the correct location before they're submitted.

@rob-c
Copy link
Member Author

rob-c commented Oct 4, 2016

I'll check the code works as expected in a few min, I'm debugging a few different things at once now.

@mesmith75
Copy link
Contributor

The code for this looks ok. I would like this for 6.2.1 as it is quite an important fix.

@rob-c
Copy link
Member Author

rob-c commented Oct 5, 2016

I'm trying to check now and facing the usual grid problems... I'll decompose the inputsandbox manually.

for file_ in app.getJobObject().inputfiles:
if isinstance(file_, LocalFile):
shutil.copy(os.path.join(file_.localDir, os.path.basename(file_.namePattern)), shared_dir)
input_files.append(file._namePattern)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be file_.namePattern ?

Copy link
Member Author

@rob-c rob-c Oct 5, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes I think it should, good catch!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also think the input_files needs to append the full path as well as the name otherwise the tarring cannot find it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it does in my testing version of the PR, uploading now

@rob-c
Copy link
Member Author

rob-c commented Oct 5, 2016

I'm looking to merge today, everything appears working from a test job. I'll add something about this to the release notes when this gets merged.

@rob-c rob-c merged commit 2027322 into develop Oct 5, 2016
@rob-c rob-c deleted the fixGaudiExecInputFiles branch October 5, 2016 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants