Skip to content

[test] Yet more tweaks to remote-run #19130

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

Merged
merged 2 commits into from
Sep 5, 2018

Conversation

jrose-apple
Copy link
Contributor

Follow-up to #18966 and #19098 to continue improving the behavior of remote-run:

  • Clear out %t on the remote machine, so we don't run into artifacts from the last run.
  • Copy %target-swift-reflection-test into %t instead of using a hard link. The problem with hard links is that they can be overwritten when the test fails, which would then truncate the original executable to an empty file!

Really we ought to clear out "%t*", but running wildcards with 'rm'
scares me a little too much for that. This still fixes a handful of
tests that were relying on %t being an empty directory.

Note that this doesn't interfere with generated files persisting
between %target-run invocations; they'll be downloaded and then
re-uploaded as long as they're mentioned in the invocation.
Copy %target-swift-reflection-test into %t instead of using a hard
link. The problem with hard links is that they can be overwritten when
the test fails, which would then truncate the original executable to
an empty file!
@jrose-apple
Copy link
Contributor Author

@swift-ci Please test

Copy link
Member

@shahmishal shahmishal left a comment

Choose a reason for hiding this comment

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

LGTM!

@jrose-apple jrose-apple merged commit 9ff695f into swiftlang:master Sep 5, 2018
@jrose-apple jrose-apple deleted the run-remote-run branch September 5, 2018 03:37
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