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

collect: do not symlink the same file #240

Closed
wants to merge 1 commit into from

Conversation

jalavik
Copy link

@jalavik jalavik commented May 14, 2014

  • Avoids an OSError that may happen when the source and
    destination is pointing to the same file.

Signed-off-by: Jan Aage Lavik jan.age.lavik@cern.ch

* Avoids an OSError that may happen when the source and
  destination is pointing to the same file.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
@greut
Copy link

greut commented May 14, 2014

@jalavik how is that even happening? Can you tell me what is your app.static_folder? (See: invenio.base.factory:create_app]

@jalavik
Copy link
Author

jalavik commented May 15, 2014

@greut: Good question. It happened when I was running collect after checking out a branch that had renamed a static file. This patch avoids the error, although maybe it can be fixed differently.

In [1]: current_app.static_folder
Out[1]: '/home/jlavik/envs/pudemosite/var/invenio.base-instance/static'

I dunno if you guys have noticed, but often the Travis build fails on 2.6 for me with:

I'm sorry but your test run exceeded 50.0 minutes. 
One possible solution is to split up your test run.

@greut
Copy link

greut commented May 15, 2014

@jalavik my call is that the source should never be in .../var/invenio.base-instance/static and the destination always. I don't see how they can be identical.

travis Yep, too many tests printing stack traces and logs ;-)

@jirikuncar
Copy link
Owner

@jalavik Please tell us how to reproduce the issue. Thanks

@jirikuncar jirikuncar closed this May 15, 2014
@jirikuncar jirikuncar added this to the 2.0-rc0 milestone May 15, 2014
@jalavik
Copy link
Author

jalavik commented May 15, 2014

@greut Yeah, well it happens :-)

Perhaps you can try to reproduce it by running inveniomanage collect on pu. Then check out my branch workflows-dev from https://github.com/jalavik/invenio and run inveniomanage collect.

@jalavik
Copy link
Author

jalavik commented May 15, 2014

Why close it when it is still being discussed?

@greut
Copy link

greut commented May 15, 2014

@jalavik probably, can you post (via gist, not here) the console output of the collect call (with your modification or with a way to know which files are the troublemakers). Thanks!

@jirikuncar
Copy link
Owner

@jalavik Can you create an issue for it? Here we are suppose to discuss code. Thank you.

@jalavik
Copy link
Author

jalavik commented May 15, 2014

Solved in #245 Thanks!

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

3 participants