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

cat log to editor, remote file fix. #2295

Merged
merged 5 commits into from
May 22, 2017

Conversation

hjoliver
Copy link
Member

@hjoliver hjoliver commented May 18, 2017

Fix for the bug in 7.4.0 reported on the Cylc Google Group today by @MartinDix. Still needs a test for remote job file view. (I should have noticed this - had tested with a remote task but shared filesystem)

@hjoliver hjoliver added this to the next release milestone May 18, 2017
@hjoliver hjoliver added the bug Something is wrong :( label May 19, 2017
Copy link
Contributor

@matthewrmshin matthewrmshin left a comment

Choose a reason for hiding this comment

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

Please consider making some minor changes. I'll try running the new remote tests in my environment in the mean time.

bin/cylc-cat-log Outdated
# Copy local or remote job file to a local temp file.
viewfile = mkstemp(dir=cylc_tmpdir)[1]
if user_at_host:
cp = 'scp %s:%s %s' % (user_at_host, filename, viewfile)
Copy link
Contributor

Choose a reason for hiding this comment

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

You may want to use the scp command configuration from global.rc?

bin/cylc-cat-log Outdated
if user_at_host:
cp = 'scp %s:%s %s' % (user_at_host, filename, viewfile)
else:
cp = 'cp %s %s' % (filename, viewfile)
Copy link
Contributor

Choose a reason for hiding this comment

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

Best to set up the cp command as a list at this point? In case any file name contains space characters, etc?

@hjoliver
Copy link
Member Author

@matthewrmshin - feedback addressed.

@hjoliver hjoliver force-pushed the cat-log-editor-fix branch from c5153f0 to 4e71383 Compare May 22, 2017 03:54
Copy link
Member

@oliver-sanders oliver-sanders left a comment

Choose a reason for hiding this comment

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

Looks OK to me, test passes in my environment.

@oliver-sanders oliver-sanders merged commit e58d144 into cylc:master May 22, 2017
@hjoliver hjoliver deleted the cat-log-editor-fix branch May 24, 2017 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong :(
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants