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

Add a script to upload nightly packages to S3 #11943

Merged
merged 1 commit into from Jun 30, 2016

Conversation

@aneeshusa
Copy link
Member

aneeshusa commented Jun 30, 2016

The nightly package name includes the date, and so we use a glob to
locate the package file without hard coding a value. However, globbing
will not work with our Buildbot steps setup because we perform word
splitting ourselves and pass an array to Buildbot, which will directly
exec the array instead of passing it to the shell, meaning globbing
does not occur. Instead, add a script to the servo repo where we can
use globbing, and use shopt -s failglob to guard against bad globs.

cc @larsbergstrom @edunham


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes are needed for #9921 (github issue number if applicable).
  • There are tests for these changes OR
  • These changes do not require tests because will be tested by buildbot

This change is Reviewable


if [[ "${platform}" == "android" ]]; then
package=target/arm-linux-androideabi/release/*.apk
elif [[ "${platform}" == "linux" ]]; then

This comment has been minimized.

@larsbergstrom

larsbergstrom Jun 30, 2016

Contributor

Can you also allow "windows" here, until we have a .msi builder in place?

if [[ "${platform}" == "android" ]]; then
package=target/arm-linux-androideabi/release/*.apk
elif [[ "${platform}" == "linux" ]]; then
package=target/release/*.tar.gz

This comment has been minimized.

@larsbergstrom

larsbergstrom Jun 30, 2016

Contributor

I believe the release is not part of the package path for the tarball packaging, at least on Windows (and I assume linux, as they share the same python).

@aneeshusa aneeshusa force-pushed the aneeshusa:add-nightly-upload-script branch from 9b9e37d to 6df6f0b Jun 30, 2016
The nightly package name includes the date, and so we use a glob to
locate the package file without hard coding a value. However, globbing
will not work with our Buildbot steps setup because we perform word
splitting ourselves and pass an array to Buildbot, which will directly
exec the array instead of passing it to the shell, meaning globbing
does not occur. Instead, add a script to the servo repo where we can
use globbing, and use `shopt -s failglob` to guard against bad globs.
@aneeshusa aneeshusa force-pushed the aneeshusa:add-nightly-upload-script branch from 6df6f0b to 9dc9643 Jun 30, 2016
@larsbergstrom
Copy link
Contributor

larsbergstrom commented Jun 30, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Jun 30, 2016

📌 Commit 9dc9643 has been approved by larsbergstrom

bors-servo added a commit to servo/saltfs that referenced this pull request Jun 30, 2016
…rsbergstrom

Add linux and osx nightly builds

Alternative to #409 that is more secure IMO.
Requires servo/servo#11943.

cc @larsbergstrom @edunham

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

bors-servo commented Jun 30, 2016

Testing commit 9dc9643 with merge 0f7e196...

bors-servo added a commit that referenced this pull request Jun 30, 2016
…gstrom

Add a script to upload nightly packages to S3

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

The nightly package name includes the date, and so we use a glob to
locate the package file without hard coding a value. However, globbing
will not work with our Buildbot steps setup because we perform word
splitting ourselves and pass an array to Buildbot, which will directly
exec the array instead of passing it to the shell, meaning globbing
does not occur. Instead, add a script to the servo repo where we can
use globbing, and use `shopt -s failglob` to guard against bad globs.

cc @larsbergstrom @edunham

---
<!-- 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
- [ ] These changes are needed for #9921  (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because will be tested by buildbot

<!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11943)
<!-- Reviewable:end -->
bors-servo added a commit to servo/saltfs that referenced this pull request Jun 30, 2016
…rsbergstrom

Add linux and osx nightly builds

Alternative to #409 that is more secure IMO.
Requires servo/servo#11943.

cc @larsbergstrom @edunham

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

bors-servo commented Jun 30, 2016

@bors-servo bors-servo merged commit 9dc9643 into servo:master Jun 30, 2016
1 of 2 checks passed
1 of 2 checks passed
continuous-integration/travis-ci/pr The Travis CI build is in progress
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

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