Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upWindows changes to make the HOME env var work #442
Conversation
|
I mentioned this in #316 (comment) but unswallowing the exception here won't help. The exception Buildbot encounters is actually internal and occurs after our dynamic step is finished, when Buildbot tries to load the next step. We aren't respecting some of Buildbot 8's internal invariants, causing the exception. You can find out more about this by looking at the log files/digging into the source code of buildbot and the buildbot-travis project I linked. |
| step_env += envs.Environment({ | ||
| # Set home directory, to avoid adding `cd` command every time | ||
| 'HOME': r'C:\buildbot\slave\{}\build'.format( | ||
| self.builder_name), |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| step_env += envs.Environment({ | ||
| # Set home directory, to avoid adding `cd` command every time | ||
| 'HOME': r'C:\buildbot\slave\{}\build'.format( | ||
| self.builder_name), |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| # Set home directory, to avoid adding `cd` command every time | ||
| 'HOME': r'C:\buildbot\slave\{}\build'.format( | ||
| self.builder_name), | ||
| }) |
This comment has been minimized.
This comment has been minimized.
| # Set home directory, to avoid adding `cd` command every time | ||
| 'HOME': r'C:\buildbot\slave\{}\build'.format( | ||
| self.builder_name), | ||
| }) |
This comment has been minimized.
This comment has been minimized.
|
Latest commit fixes servo/servo#12231 |
| # s3cmd on Windows only works within msys | ||
| step_env += envs.Environment({ | ||
| 'MSYSTEM': 'MSYS', | ||
| }) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
2295426
to
239bcf8
|
OK, I think this addresses all of the formatting requests. Note that I left the removal of the |
|
Please keep the print and try block intact. The log you need to look at is +1 for integrating with buildbot's logging infrastructure in the future though. |
|
BTW, I started looking into that exception if you want to chat on IRC about it. |
| @@ -109,6 +113,17 @@ def make_step(self, command): | |||
| elif arg == './etc/ci/upload_nightly.sh': | |||
| step_kwargs['logEnviron'] = False | |||
| step_env += envs.upload_nightly | |||
| if self.is_windows: | |||
| # s3cmd on Windows only works within msys | |||
| step_env['MSYSTEM'] = 'MSYS' | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
larsbergstrom
Jul 20, 2016
Author
Contributor
hrm, when I was using envs.Environment, the debugging seemed to indicate that it wasn't overwriting it - we were still getting the old value in testing. I can give it another try, though, and see what happens.
This comment has been minimized.
This comment has been minimized.
aneeshusa
Jul 20, 2016
Member
This is a stylistic change we can always make later, so I'm OK with this as-is if we need the PR for windows nightlies now.
This comment has been minimized.
This comment has been minimized.
larsbergstrom
Jul 20, 2016
Author
Contributor
Yeah, it's already in deployment as-formatted, so I'm kinda tempted to get this landed (since I already feel bad about having an ad-hoc branch in production).
|
After some IRC chat it turns out I was looking at the wrong thing for the exception handling and removing the try is the best thing to do here; this is r=me with or without using an |
|
@bors-servo r=aneeshusa |
|
|
Windows changes to make the HOME env var work There are two big changes here: 1) Make setting the `HOME` env var work properly, filling in the builder name 2) Just allow exceptions to fail to load buildbot and log normally. Right now, the `print` is being eaten by something, so it's super hard to debug failures with dynamic steps. r? @edunham <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/saltfs/442) <!-- Reviewable:end -->
|
|
larsbergstrom commentedJul 19, 2016
•
edited
There are two big changes here:
HOMEenv var work properly, filling in the builder nameprintis being eaten by something, so it's super hard to debug failures with dynamic steps.r? @edunham
This change is