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

Fixed a test. #2390

Merged
merged 1 commit into from
Aug 10, 2017
Merged

Fixed a test. #2390

merged 1 commit into from
Aug 10, 2017

Conversation

hjoliver
Copy link
Member

On my laptop VM, tests/events/01-task.t always passes at home, and always fails when on the work network because an expected job submission timeout event apparently does not occur.

The test suite uses [remote]host = NOHOST for one task. During job host init, ssh NOHOST ... returns immediately with "Name or service not known" at home, but it takes 10 seconds to time out and return at work. Adding a non-existent domain name as well makes it return immediately, and the test passes.

@hjoliver hjoliver self-assigned this Aug 10, 2017
@hjoliver hjoliver requested a review from matthewrmshin August 10, 2017 12:00
@hjoliver
Copy link
Member Author

This does raise a question though: I'm guessing the 10 second delay during job host init delays recognition of the job submission timeout (presumably until the suite shuts down) because job host init is done synchronously in the main process, so a delay there holds up everything. I suppose that's unlikely to cause serious problems in a real suite, but maybe it would be better to do the host init in the process pool as part of the first job submission to that host??

@matthewrmshin
Copy link
Contributor

(See also #2292.)

@matthewrmshin
Copy link
Contributor

One review is enough for this.

@matthewrmshin matthewrmshin merged commit 1e36649 into cylc:master Aug 10, 2017
@hjoliver hjoliver deleted the nohost-test-fix branch August 10, 2017 20:18
@hjoliver
Copy link
Member Author

(See also #2292.)

Nice comeback - I'd forgotten about that one 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants