Skip to content

Adds explicit mime type to upload_nightly.sh - #12156

Merged
bors-servo merged 1 commit into
servo:masterfrom
jimberlage:12153/mime-type-s3
Jul 2, 2016
Merged

bors-servo merged 1 commit into
servo:masterfrom
jimberlage:12153/mime-type-s3

Conversation

@jimberlage

@jimberlage jimberlage commented Jul 2, 2016 •

Copy link
Copy Markdown
Contributor

This changes the script to pass the --mime-type option to s3cmd, as
described here. The MIME type used is
application/octet-stream.


  • There are tests for these changes OR
  • These changes do not require tests because this is a minimal change to the upload_nightly.sh script.

This change is Reviewable

@highfive

highfive commented Jul 2, 2016

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jul 2, 2016
Comment thread etc/ci/upload_nightly.sh Outdated
s3cmd put "${2}" "${package_upload_path}"
s3cmd cp "${package_upload_path}" "${nightly_upload_dir}/servo-latest.${3}"
s3cmd --mime-type="application/octet-stream" put "${2}" "${package_upload_path}"
s3cmd --mime-type="application/octet-stream" cp "${package_upload_path}" "${nightly_upload_dir}/servo-latest.${3}"

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 believe we don't need to specify a mime type when copying an existing object.

@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 Jul 2, 2016
@aneeshusa aneeshusa assigned aneeshusa and unassigned larsbergstrom Jul 2, 2016
This changes the script to pass the `--mime-type` option to `s3cmd`, as
described [here](http://s3tools.org/usage).  The MIME type used is
`application/octet-stream`.

Fixes servo#12153.
@jimberlage
jimberlage force-pushed the 12153/mime-type-s3 branch from 2003e1e to 137bf9f Compare July 2, 2016 04:01
@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 Jul 2, 2016
@nox

nox commented Jul 2, 2016

Copy link
Copy Markdown
Contributor

@bors-servo r=aneeshusa

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 137bf9f 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 Jul 2, 2016
bors-servo pushed a commit that referenced this pull request Jul 2, 2016
Adds explicit mime type to upload_nightly.sh

<!-- Please describe your changes on the following line: -->
This changes the script to pass the `--mime-type` option to `s3cmd`, as
described [here](http://s3tools.org/usage).  The MIME type used is
`application/octet-stream`.

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

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because this is a minimal change to the upload_nightly.sh script.

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

Copy link
Copy Markdown
Contributor

⌛ Testing commit 137bf9f with merge 1b8a264...

@bors-servo

Copy link
Copy Markdown
Contributor

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

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

Explicitly specify MIME types in etc/ci/upload_nightly.sh

6 participants