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

brew package #12688

Merged
merged 1 commit into from Aug 14, 2016
Merged

brew package #12688

merged 1 commit into from Aug 14, 2016

Conversation

@paulrouget
Copy link
Contributor

paulrouget commented Aug 2, 2016

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
Copy link

highfive commented Aug 2, 2016

Heads up! This PR modifies the following files:

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:

This comment has been minimized.

Copy link
@paulrouget

paulrouget Aug 2, 2016

Author Contributor

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

@paulrouget paulrouget assigned larsbergstrom and unassigned jdm Aug 2, 2016
echo $tmp_dir

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

This comment has been minimized.

Copy link
@aneeshusa

aneeshusa Aug 4, 2016

Member

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

This comment has been minimized.

Copy link
@aneeshusa

aneeshusa Aug 4, 2016

Member

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.

cd homebrew-servo


m4 -D PACKAGEURL=$PACKAGEURL -D SHA=$SHA -D VERSION=$VERSION ./servo-bin.rb.in > Formula/servo-bin.rb

This comment has been minimized.

Copy link
@aneeshusa

aneeshusa Aug 4, 2016

Member

I'd rather not use m4; I think we can get away with sed instead.

@paulrouget paulrouget force-pushed the paulrouget:brew branch 2 times, most recently from 60fc91c to 60a0244 Aug 8, 2016
@paulrouget
Copy link
Contributor Author

paulrouget commented Aug 8, 2016

Comments addressed.

@paulrouget paulrouget force-pushed the paulrouget:brew branch from 60a0244 to 7981297 Aug 9, 2016
@paulrouget paulrouget changed the title (WIP) brew package brew package Aug 9, 2016
@paulrouget
Copy link
Contributor Author

paulrouget commented Aug 9, 2016

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

Ready for review.

@larsbergstrom
Copy link
Contributor

larsbergstrom commented Aug 9, 2016

Will do today, thanks for doing this!

On Aug 8, 2016, at 10:51 PM, Paul Rouget notifications@github.com 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
Contributor

larsbergstrom commented Aug 12, 2016

@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.

@paulrouget
Copy link
Contributor Author

paulrouget commented Aug 13, 2016

@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
Contributor

larsbergstrom commented Aug 14, 2016

@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
Contributor

bors-servo commented Aug 14, 2016

📌 Commit 7981297 has been approved by larsbergstrom

bors-servo added 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
Contributor

bors-servo commented Aug 14, 2016

Testing commit 7981297 with merge b4efdd1...

@bors-servo
Copy link
Contributor

bors-servo commented Aug 14, 2016

💔 Test failed - linux-rel

@highfive
Copy link

highfive commented Aug 14, 2016

  ▶ 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
@larsbergstrom
Copy link
Contributor

larsbergstrom commented Aug 14, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Aug 14, 2016

Testing commit 7981297 with merge a2ce4aa...

bors-servo added 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
Contributor

bors-servo commented Aug 14, 2016

@bors-servo bors-servo merged commit 7981297 into servo:master Aug 14, 2016
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

6 participants
You can’t perform that action at this time.