Skip to content
This repository was archived by the owner on Dec 16, 2024. It is now read-only.

Fix buildbot_steps.yml reading on Windows - #517

Merged
bors-servo merged 1 commit into
servo:masterfrom
UK992:windows-yaml
Oct 20, 2016
Merged

bors-servo merged 1 commit into
servo:masterfrom
UK992:windows-yaml

Conversation

@UK992

@UK992 UK992 commented Oct 20, 2016 •

Copy link
Copy Markdown
Contributor

This should fix reading buildbot_steps.yml on Windows.

cc @larsbergstrom @aneeshusa


This change is Reviewable

@aneeshusa

aneeshusa commented Oct 20, 2016 •

Copy link
Copy Markdown
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 aneeshusa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This line is too long; consider

native_yaml_path = self.yaml_path
if self.is_windows:
    native_yaml_path = native_yaml_path.replace('/', '\\')

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

@aneeshusa

Copy link
Copy Markdown
Contributor

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 370f828 has been approved by aneeshusa

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 -->
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 370f828 with merge 9b12dc8...

@aneeshusa

Copy link
Copy Markdown
Contributor

@bors-servo r-

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)],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

@aneeshusa

Copy link
Copy Markdown
Contributor

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit fffca08 has been approved by aneeshusa

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit fffca08 with merge cd5ad3f...

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 -->
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - status-travis

@bors-servo
bors-servo merged commit fffca08 into servo:master Oct 20, 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 -->
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants