This is an archive of the discontinued LLVM Phabricator instance.

[ZORG] Update Jenkins/build.py to force SVN upgrade of the working directory.
ClosedPublic

Authored by sqlbyme on May 1 2017, 10:27 AM.

Details

Reviewers
sqlbyme
Summary

When we upgrade Xcode on the bots connected to Green Dragon we need to automatically upgrade the SVN version of the current working directory repository. This patch also upgrades the function run_collect_output to work with a context manager. Using the context manager helps to ensure we always return to the directory we started working in.

Diff Detail

Repository
rL LLVM

Event Timeline

sqlbyme created this revision.May 1 2017, 10:27 AM
cmatthews requested changes to this revision.May 1 2017, 4:19 PM

Looks good, just change error message and node name stuff.

zorg/jenkins/build.py
75

I'd like this to be set to None, no need to have a string value here.

189

We know which machine things run on. No need to print that in the log message. On the other hand, printing the path to the workspace src dir that failed to upgrade would be super useful, since we may not know that from this error message.

This revision now requires changes to proceed.May 1 2017, 4:19 PM
sqlbyme updated this revision to Diff 97362.May 1 2017, 4:40 PM
sqlbyme edited edge metadata.

Adjusted code per comments from cmatthews.

sqlbyme accepted this revision.May 1 2017, 4:40 PM
sqlbyme marked 2 inline comments as done.

Chris Matthews asked me to make the above revisions and then go ahead and commit.

This revision is now accepted and ready to land.Sep 19 2017, 10:08 PM
sqlbyme closed this revision.Sep 19 2017, 10:09 PM