This repository was archived by the owner on Dec 16, 2024. It is now read-only.
Repository navigation
Fix buildbot_steps.yml reading on Windows - #517
Merged
Merged
Conversation
Contributor
|
I've put in a few partial fixes so far, let me do a try run (at servo/servo#13844) to see if we need this as well. |
aneeshusa
suggested changes
Oct 20, 2016
aneeshusa
left a comment
Contributor
There was a problem hiding this comment.
The try run failed so looks like we need this change - thanks for finding a fix so quickly!
| self.is_windows = re.match('windows.*', self.builder_name) is not None | ||
| try: | ||
| show_cmd = "cat" if not self.is_windows else "type" | ||
| yaml_file_path = self.yaml_path.replace('/', '\\') if self.is_windows else self.yaml_path |
Contributor
There was a problem hiding this comment.
This line is too long; consider
native_yaml_path = self.yaml_path
if self.is_windows:
native_yaml_path = native_yaml_path.replace('/', '\\')
Contributor
|
@bors-servo r+ |
Contributor
|
📌 Commit 370f828 has been approved by |
bors-servo
pushed a commit
that referenced
this pull request
Oct 20, 2016
Fix buildbot_steps.yml reading on Windows This should fix reading `buildbot_steps.yml` on Windows. cc @larsbergstrom @aneeshusa <!-- 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/517) <!-- Reviewable:end -->
Contributor
Contributor
|
@bors-servo r- |
aneeshusa
reviewed
Oct 20, 2016
| native_yaml_path = native_yaml_path.replace('/', '\\') | ||
| cmd = yield self.makeRemoteShellCommand( | ||
| command=[show_cmd, "{}".format(self.yaml_path)], | ||
| command=[show_cmd, "{}".format(native_yaml_path)], |
Contributor
There was a problem hiding this comment.
While you're at it, can you get rid of the useless format call and just use native_yaml_path directly? I missed that on my last PR which I did in a rush.
Contributor
|
@bors-servo r+ |
Contributor
|
📌 Commit fffca08 has been approved by |
Contributor
bors-servo
pushed a commit
that referenced
this pull request
Oct 20, 2016
Fix buildbot_steps.yml reading on Windows This should fix reading `buildbot_steps.yml` on Windows. cc @larsbergstrom @aneeshusa <!-- 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/517) <!-- Reviewable:end -->
aneeshusa
approved these changes
Oct 20, 2016
Contributor
|
☀️ Test successful - status-travis |
This was referenced Oct 26, 2016
bors-servo
pushed a commit
that referenced
this pull request
Oct 27, 2016
…, r=larsbergstrom Remove old DynamicServoFactory which reads from saltfs Now that the new dynamic factory is working (which reads the steps configuration from the main servo repo), remove the old one, and remove the steps.yml file from this repo as well. However, re-use the old name (DynamicServoFactory instead of DynamicServoYAMLFactory) for concision and clarity. `windows-dev-yaml` is [now working](http://build.servo.org/builders/windows-dev-yaml) after #517! r? @larsbergstrom <!-- 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/522) <!-- Reviewable:end -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This should fix reading
buildbot_steps.ymlon Windows.cc @larsbergstrom @aneeshusa
This change is