Skip to content

brew package - #12688

Merged
bors-servo merged 1 commit into
servo:masterfrom
paulrouget:brew
Aug 14, 2016
Merged

bors-servo merged 1 commit into
servo:masterfrom
paulrouget:brew

Conversation

@paulrouget

@paulrouget paulrouget commented Aug 2, 2016 •

Copy link
Copy Markdown
Contributor

Addressed #12600

This is just a WIP PR to see if this approach is right.

The same way night builds are uploaded every day, we'd like to offer a brew binary package as well.

Step 1 is to package a tarball along the dmg. This is done in package_commands.py.
Step 2 is to upload the package. Done is update_brew.sh.
Step 3 is to update the brew Formula. servo-bin.rb is updated in update_brew.sh.
Step 4 is to trigger update_brew.sh along update_nightly.sh. https://github.com/servo/saltfs/blob/master/buildbot/master/files/config/steps.yml


This change is Reviewable

@highfive

highfive commented Aug 2, 2016

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @wafflespeanut: python/servo/package_commands.py
  • @aneeshusa: etc/ci/update_brew.sh

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 2, 2016
if not path.exists(new_path):
shutil.copyfile(f, new_path)
for dylib in need_relinked:
if '/System/Library' in dylib or '/usr/lib' in dylib or 'servo' in dylib:

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.

I don't understand why 'servo' in dylib was here in the first place.

@paulrouget paulrouget assigned larsbergstrom and unassigned jdm Aug 2, 2016
Comment thread etc/ci/update_brew.sh Outdated
echo $tmp_dir

echo "Cloning"
git clone https://github.com/paulrouget/homebrew-servo

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.

I would much rather just include the necessary files directly in the servo repo.

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.

To clarify, considering homebrew uses git repos as package repos, I would include the servo-bin.rb.in file in the servo repo, and push the rendered nightly versions to another repo.

@paulrouget
paulrouget force-pushed the brew branch 2 times, most recently from 60fc91c to 60a0244 Compare August 8, 2016 05:09
@paulrouget

Copy link
Copy Markdown
Contributor Author

Comments addressed.

@paulrouget paulrouget changed the title (WIP) brew package brew package Aug 9, 2016
@paulrouget

Copy link
Copy Markdown
Contributor Author

I can't really fully test until it's deployed, but that should do it.

Ready for review.

@larsbergstrom

Copy link
Copy Markdown
Contributor

Will do today, thanks for doing this!

On Aug 8, 2016, at 10:51 PM, Paul Rouget [email protected] wrote:

I can't really fully test until it's deployed, but that should do it.

Ready for review.

—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
#12688 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAdCx5dHUvIiokMlRzyQsSwNOPi6_p2Gks5qd_kwgaJpZM4JaLwN
.

@larsbergstrom

Copy link
Copy Markdown
Contributor

@paulrouget Is the idea that we would get this landed and have the git pushes failing, and then add a token to the environment on the saltfs side of things for the homebrew-servo repository? Right now, we don't have such a GH token in place that we could use, but I can do a follow-up PR to saltfs and push out the token secret to the builders after this lands.

Otherwise, I'm fine with these changes.

@larsbergstrom larsbergstrom added S-awaiting-answer Someone asked a question that requires an answer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 12, 2016
@paulrouget

Copy link
Copy Markdown
Contributor Author

@larsbergstrom I'm not sure in which order this should be done. I don't really know how tokens work. I guess we need something like github.com/servo/doc.servo.org.

@larsbergstrom

Copy link
Copy Markdown
Contributor

@bors-servo r+

OK, lets go ahead and get this in there, and either @edunham or I can follow up with the bits to handle a GH token and uploads on the salt side. Expect the publishing rules to fail until that happens.

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 7981297 has been approved by larsbergstrom

@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-answer Someone asked a question that requires an answer. labels Aug 14, 2016
bors-servo pushed a commit that referenced this pull request Aug 14, 2016
brew package

Addressed #12600

This is just a WIP PR to see if this approach is right.

The same way night builds are uploaded every day, we'd like to offer a brew binary package as well.

Step 1 is to package a tarball along the dmg. This is done in `package_commands.py`.
Step 2 is to upload the package. Done is `update_brew.sh`.
Step 3 is to update the brew Formula. [servo-bin.rb](https://github.com/paulrouget/homebrew-servo/blob/master/servo-bin.rb.in) is updated in `update_brew.sh`.
Step 4 is to trigger `update_brew.sh` along `update_nightly.sh`. https://github.com/servo/saltfs/blob/master/buildbot/master/files/config/steps.yml

<!-- 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/12688)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 7981297 with merge b4efdd1...

@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-rel

@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Aug 14, 2016
@highfive

Copy link
Copy Markdown
  ▶ FAIL [expected PASS] /css-transforms-1_dev/html/transform-abspos-002.htm
  └   → /css-transforms-1_dev/html/transform-abspos-002.htm 71f0313eedfbfcce0b0fcc5ae55f34b1daa3b8d8
/css-transforms-1_dev/html/reference/transform-abspos-ref.htm 78d197606924062e8dd2a773c977afcecf8940f8
Testing 71f0313eedfbfcce0b0fcc5ae55f34b1daa3b8d8 == 78d197606924062e8dd2a773c977afcecf8940f8

  ▶ FAIL [expected PASS] /css-transforms-1_dev/html/transform-abspos-007.htm
  └   → /css-transforms-1_dev/html/transform-abspos-007.htm 71f0313eedfbfcce0b0fcc5ae55f34b1daa3b8d8
/css-transforms-1_dev/html/reference/transform-abspos-ref.htm 78d197606924062e8dd2a773c977afcecf8940f8
Testing 71f0313eedfbfcce0b0fcc5ae55f34b1daa3b8d8 == 78d197606924062e8dd2a773c977afcecf8940f8

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Aug 14, 2016
@larsbergstrom

Copy link
Copy Markdown
Contributor

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 7981297 with merge a2ce4aa...

bors-servo pushed a commit that referenced this pull request Aug 14, 2016
brew package

Addressed #12600

This is just a WIP PR to see if this approach is right.

The same way night builds are uploaded every day, we'd like to offer a brew binary package as well.

Step 1 is to package a tarball along the dmg. This is done in `package_commands.py`.
Step 2 is to upload the package. Done is `update_brew.sh`.
Step 3 is to update the brew Formula. [servo-bin.rb](https://github.com/paulrouget/homebrew-servo/blob/master/servo-bin.rb.in) is updated in `update_brew.sh`.
Step 4 is to trigger `update_brew.sh` along `update_nightly.sh`. https://github.com/servo/saltfs/blob/master/buildbot/master/files/config/steps.yml

<!-- 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/12688)
<!-- Reviewable:end -->
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels Aug 14, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows-dev

@bors-servo
bors-servo merged commit 7981297 into servo:master Aug 14, 2016
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Aug 14, 2016
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.

6 participants