Skip to content
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

New folder linux #12850

Merged
merged 1 commit into from Oct 1, 2016
Merged

New folder linux #12850

merged 1 commit into from Oct 1, 2016

Conversation

Coder206
Copy link
Contributor

@Coder206 Coder206 commented Aug 13, 2016



This change is Reviewable

@highfive
Copy link

Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @SimonSapin (or someone else) soon.

@highfive
Copy link

Heads up! This PR modifies the following files:

@highfive
Copy link

warning Warning warning

  • These commits modify gfx code, but no tests are modified. Please consider adding a test!

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 13, 2016
@emilio
Copy link
Member

emilio commented Aug 14, 2016

r? @aneeshusa

@highfive highfive assigned aneeshusa and unassigned SimonSapin Aug 14, 2016
@Coder206
Copy link
Contributor Author

@ConnorGBrewster Is this what you were looking expecting?

@cbrewster
Copy link
Contributor

Yes, this is what I had in mind. Although I will let @aneeshusa review this still, since I don't know all of our python best practices.

@Coder206
Copy link
Contributor Author

Coder206 commented Aug 16, 2016

@ConnorGBrewster Perfect! That makes sense. :) I apologize for the delay in sending the PR.

@cbrewster
Copy link
Contributor

No worries! Thanks for doing it! 😄

@@ -209,24 +209,21 @@ def package(self, release=False, dev=False, android=None, debug=False, debugger=
msi_path = path.join(dir_to_msi, "Servo.msi")
print("Packaged Servo into {}".format(msi_path))
else:
dir_to_temp = '/'.join(binary_path.split('/')[:-2]) + '/targz'
dir_to_package = '/'.join(binary_path.split('/')[:-1])
dir_to_root = '/'.join(binary_path.split('/')[:-3])
Copy link
Contributor

Choose a reason for hiding this comment

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

dir_to_root is no longer used.

@aneeshusa
Copy link
Contributor

Sorry about the delay in reviewing! Please also try to run Servo from the package tarball to make sure the packaging works properly.

@aneeshusa aneeshusa added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 20, 2016
@aneeshusa
Copy link
Contributor

@Coder206 How is this going? Do you have any questions?

print("Copying files")
shutil.copytree(dir_to_package + '/resources', resources_dir)
shutil.copytree(browserhtml_path, resources_dir + browserhtml_path.split('/')[-1])

print("Writing runservo.sh")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@aneeshusa Is it still necessary to make a runservo.sh here?

Copy link
Contributor

Choose a reason for hiding this comment

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

@ConnorGBrewster has a PR to remove it: #12154.
It looks like it would be pretty easy to fold that PR into this one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So should I work to combine the two PRs?

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, I just realized that removing runservo.sh will require some additional changes, so let's keep runservo.sh for now and handle the removal in the other PR.

@Coder206 Coder206 closed this Sep 13, 2016
@Coder206 Coder206 deleted the newFolderLinux branch September 13, 2016 00:03
@Coder206 Coder206 restored the newFolderLinux branch September 13, 2016 00:04
@Coder206 Coder206 reopened this Sep 13, 2016
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Sep 30, 2016
@aneeshusa
Copy link
Contributor

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit be87452 has been approved by aneeshusa

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Sep 30, 2016
@bors-servo
Copy link
Contributor

⌛ Testing commit be87452 with merge 968d4f0...

bors-servo pushed a commit that referenced this pull request Sep 30, 2016
New folder linux

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #11983 (github issue number if applicable).

- [x] There are tests for these changes (./mach package)

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12850)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

💔 Test failed - linux-dev

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Sep 30, 2016
Copy link
Contributor

@aneeshusa aneeshusa left a comment

Choose a reason for hiding this comment

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

Always remember to run ./mach test-tidy before pushing :)

# TODO(aneeshusa): lock dir_to_temp to prevent simultaneous builds
print("Cleaning up from previous packaging")
delete(dir_to_temp)

Copy link
Contributor

Choose a reason for hiding this comment

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

This line has whitespace, remove it (line should just be empty).

@aneeshusa aneeshusa added the S-needs-code-changes Changes have not yet been made that were requested by a reviewer. label Sep 30, 2016
The purpose of the code is to make a new temporary folder with the
necessary resources used to package Linux. Before this, the package
was built based on a modified target directory. By using a temporary
folder, it removes the need to rebuild Servo every time it gets
packaged for Linux.
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Sep 30, 2016
@KiChjang
Copy link
Contributor

@bors-servo r=aneeshusa

@bors-servo
Copy link
Contributor

📌 Commit d672750 has been approved by aneeshusa

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Sep 30, 2016
@bors-servo
Copy link
Contributor

⌛ Testing commit d672750 with merge 7fbd35e...

bors-servo pushed a commit that referenced this pull request Sep 30, 2016
New folder linux

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #11983 (github issue number if applicable).

- [x] There are tests for these changes (./mach package)

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12850)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

@bors-servo bors-servo merged commit d672750 into servo:master Oct 1, 2016
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 1, 2016
@Coder206 Coder206 deleted the newFolderLinux branch October 1, 2016 00:49
@Coder206
Copy link
Contributor Author

Coder206 commented Oct 1, 2016

Thank you very much @aneeshusa!

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.

Create new folder when packaging on linux
8 participants