Граф коммитов

179 Коммитов

Автор SHA1 Сообщение Дата
bors[bot] 232dde1450 Merge #53
53: Update rust Docker tag to v1.33 r=mythmon a=renovate[bot]

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| rust | stage | minor | `1.31-slim-stretch` -> `1.33-slim-stretch` |

---

### Renovate configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻️ **Rebasing**: Whenever PR becomes conflicted, or if you modify the PR title to begin with "`rebase!`".

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- renovate-rebase -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://togithub.com/marketplace/renovate). View repository job log [here](https://renovatebot.com/dashboard#mozilla/classify-client).

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-04-11 17:22:15 +00:00
bors[bot] 8daa1bf04e Merge #56
56: Add cargo-audit step to check for dependecy security issues r=leplatrem a=mythmon



Co-authored-by: Michael Cooper <mythmon@gmail.com>
2019-04-11 17:07:49 +00:00
Michael Cooper c7ffc5b44d Add cargo-audit step to check for dependecy security issues 2019-04-10 16:25:52 -07:00
Michael Cooper 29e7ef5ef3
Merge pull request #55 from Mozilla-GitHub-Standards/master
Add Mozilla Code of Conduct
2019-04-01 09:34:24 -07:00
Mozilla-GitHub-Standards 2c95512eda Add Mozilla Code of Conduct file
Fixes #54.

_(Message COC002)_
2019-03-30 00:05:44 -07:00
bors[bot] 61a4659cae Merge #51
51: Update Rust crate slog-json to v2.3.0 r=mythmon a=renovate[bot]

This PR contains the following updates:

| Package | Type | Update | Change | References |
|---|---|---|---|---|
| slog-json | normal | minor | `2.2.0` -> `2.3.0` | [homepage](https://togithub.com/slog-rs/slog), [source](https://togithub.com/slog-rs/json) |

---

### Release Notes

<details>
<summary>slog-rs/json</summary>

### [`v2.3.0`](https://togithub.com/slog-rs/json/blob/master/CHANGELOG.md#&#8203;230---2018-12-04)

[Compare Source](https://togithub.com/slog-rs/json/compare/v2.2.0...v2.3.0)

##### Added

-   Option `flush` to enable flushing of the `io::Write` after each record.

##### Changed

-   Improve error message for Serde serialization errors.

</details>

---

### Renovate configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻️ **Rebasing**: Whenever PR becomes conflicted, or if you modify the PR title to begin with "`rebase!`".

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- renovate-rebase -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://togithub.com/marketplace/renovate). View repository job log [here](https://renovatebot.com/dashboard#mozilla/classify-client).

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-03-12 21:47:53 +00:00
Renovate Bot 0d80421606
Update rust Docker tag to v1.33 2019-03-11 23:25:10 +00:00
bors[bot] 2f0f61563e Merge #52
52: Update codecov orb to v1.0.4 r=mythmon a=renovate[bot]

This PR contains the following updates:

| Package | Type | Update | Change | References |
|---|---|---|---|---|
| codecov | orb | patch | `1.0.1` -> `1.0.4` | [homepage](https://circleci.com/orbs/registry/orb/codecov/codecov) |

---

### Renovate configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻️ **Rebasing**: Whenever PR becomes conflicted, or if you modify the PR title to begin with "`rebase!`".

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- renovate-rebase -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://togithub.com/marketplace/renovate). View repository job log [here](https://renovatebot.com/dashboard#mozilla/classify-client).

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-03-11 22:17:22 +00:00
Renovate Bot 521543f16c
Update codecov orb to v1.0.4 2019-03-11 22:06:34 +00:00
Renovate Bot 46e7ed12e4
Update Rust crate slog-json to v2.3.0 2019-03-11 22:06:30 +00:00
Michael Cooper 59ebcfa32c
Merge pull request #50 from mozilla/renovate/configure
Configure Renovate
2019-03-11 15:06:20 -07:00
Renovate Bot 1999551211
Add renovate.json 2019-03-11 21:46:24 +00:00
Michael Cooper 4feb157e28
Merge pull request #47 from mythmon/update-maxminddb
Update maxmindbdb to 0.13.0
2019-03-06 09:43:21 -08:00
Michael Cooper f2d5d92f70
Merge pull request #48 from mozilla/add-license
License under MPLv2
2019-03-06 08:55:04 -08:00
bors[bot] 1fdd332bc6 Merge #46
46: Make main a bit leaner r=leplatrem a=mythmon

I'm not confident about this change. I wanted to try and make `main` a bit smaller and more direct. To that end, I re-used the pattern I used for the metrics builder, and logging and geoip to use methods that take a settings object and return the right thing, instead of putting that logic in `main`. I also refactored logging to accommodate that.

@leplatrem I'd like feedback here about what you think of these changes, and about this pattern overall. If it is something we'd like to push forward with, I'll fix up the merge conflict and we can land it. I'd also be fine closing this PR unmerged.

Co-authored-by: Mike Cooper <mythmon@gmail.com>
2019-01-28 16:27:30 +00:00
Mike Cooper fa11032811
Merge branch 'master' into reorganize 2019-01-23 16:32:10 -08:00
Mike Cooper 92ecf7342e
Refactor to only use entire Settings struct in main 2019-01-23 16:17:48 -08:00
Michael Cooper 53f38d3e2e
License under MPLv2 2019-01-22 14:42:54 -08:00
Mike Cooper 8ea5bfd9e1
Update maxmindbdb to 0.13.0 2019-01-22 10:05:51 -08:00
Mike Cooper df6c529f86
Reorganize some components 2019-01-18 14:43:59 -08:00
bors[bot] c8e899e524 Merge #45
45: Add logging tests (ref #29) r=mythmon a=leplatrem

ref #29

Co-authored-by: Mathieu Leplatre <mathieu@mozilla.com>
2019-01-17 17:54:45 +00:00
Mathieu Leplatre 8884c687ab
@mythmon review 2019-01-17 18:11:36 +01:00
bors[bot] 76769d3ae6 Merge #44
44: Add settings tests (ref #29) r=mythmon a=leplatrem

ref #29

Co-authored-by: Mathieu Leplatre <mathieu@mozilla.com>
2019-01-17 16:39:45 +00:00
Mathieu Leplatre 0d0049ee80
Add logging tests (ref #29) 2019-01-17 14:37:52 +01:00
Mathieu Leplatre fdfa9d7011
Add settings tests (ref #29) 2019-01-17 12:42:58 +01:00
bors[bot] 57d86b2608 Merge #43
43: Update coverage badge to where the results are r=leplatrem a=mythmon

All of our CI coverage for the master branch is being reported for the staging branch that bors uses. This make it so the badge at least shows an accurate value. We should figure out how to make the master branch show correctly, however.

Co-authored-by: Mike Cooper <mythmon@gmail.com>
2019-01-17 10:06:00 +00:00
Mike Cooper a82e7bba9c
Update coverage badge to where the results are
All of our CI coverage for the master branch is being reported for the staging branch that bors uses. This make it so the badge at least shows an accurate value. We should figure out how to make the master branch show correctly, however.
2019-01-16 15:36:13 -08:00
bors[bot] 01bb1d848a Merge #42
42: Add request and geolocation instrumentation r=leplatrem a=mythmon

Fixes #41

Co-authored-by: Mike Cooper <mythmon@gmail.com>
2019-01-16 08:46:33 +00:00
Mike Cooper 59154d0b42
Move metrics into its own module 2019-01-15 15:33:43 -08:00
Mike Cooper 8336eb48d7
Add request and geolocation instrumentation
Fixes #41
2019-01-15 12:54:40 -08:00
bors[bot] edf7e56955 Merge #39
39: Add tests for classify endpoint r=leplatrem a=mythmon

Fixes #38
Refs #29

Co-authored-by: Mike Cooper <mythmon@gmail.com>
2019-01-14 11:33:08 +00:00
Mike Cooper 06c038115c
Remove println calls 2019-01-11 09:37:04 -08:00
bors[bot] 78435bc511 Merge #40
40: Use slog-derive instead of custom code r=mythmon a=leplatrem



Co-authored-by: Mathieu Leplatre <mathieu@mozilla.com>
2019-01-11 17:03:25 +00:00
Mathieu Leplatre f838328298
Use slog-derive instead of custom code 2019-01-11 15:37:55 +01:00
Mike Cooper 30ab8b1520
Add tests for classify endpoint
Fixes #38
Refs #29
2019-01-10 15:12:54 -08:00
bors[bot] 66d1b443d9 Merge #37
37: Configure codecov to be a little quieter in PRs r=leplatrem a=mythmon



Co-authored-by: Mike Cooper <mythmon@gmail.com>
2019-01-10 18:52:31 +00:00
bors[bot] df82acac2b Merge #36
36: Use prebuilt docker base images r=sciurus a=mythmon

This should help us do less repetitive work each time we run CI, which should help with speeds.

Co-authored-by: Mike Cooper <mythmon@gmail.com>
2019-01-10 17:11:03 +00:00
Mike Cooper 08538f1322
Configure codecov to be a little quieter in PRs 2019-01-09 15:22:50 -08:00
Mike Cooper 6266dcd8da
Use prebuilt docker base images 2019-01-09 14:53:47 -08:00
bors[bot] 35c619378f Merge #35
35: Switch settings management to envy r=leplatrem a=mythmon

I find this a lot simpler and more flexible than the previous library.

Co-authored-by: Mike Cooper <mythmon@gmail.com>
2019-01-09 17:52:08 +00:00
bors[bot] 654a6c1154 Merge #34
34: Create bors.toml r=leplatrem a=mythmon



Co-authored-by: Mike Cooper <mythmon@gmail.com>
2019-01-09 17:38:30 +00:00
Mike Cooper ea3bc2c526
Switch settings management to envy
I find this a lot simpler and more flexible than the previous library
2019-01-08 15:22:12 -08:00
Mike Cooper 8657857502
Merge pull request #33 from mozilla/clippy-fix
Fix missed clippy problems
2019-01-08 10:37:48 -08:00
Mike Cooper eda7e57aed
Create bors.toml 2019-01-08 10:36:37 -08:00
Mike Cooper d8e6592325
Fix missed clippy problems 2019-01-07 12:49:03 -08:00
Mike Cooper 2cd6a7d30f
Merge pull request #32 from leplatrem/29-add-dockerflow-tests
Add basic tests for Dockerflow endpoints (ref #29)
2019-01-07 12:42:11 -08:00
Mathieu Leplatre 04b4384632
Add basic tests for Dockerflow endpoints (ref #29) 2019-01-03 17:51:10 +01:00
Brian Pitts 33e6edebe9
Merge pull request #31 from mozilla/app-user
Run app as non-root user and switch listening port
2018-12-23 21:18:15 -05:00
Brian Pitts 8c99679498 Change default port to 8000 2018-12-23 08:44:02 -05:00
Brian Pitts 873ce05429 Run app as non-root user 2018-12-23 08:44:02 -05:00