Closed
Bug 1440712
Opened 6 years ago
Closed 6 years ago
convert UploadCrashReportJSONSchemaCronApp to post-deploy step
Categories
(Socorro :: General, task)
Socorro
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: willkg, Assigned: brian)
References
Details
Attachments
(1 file)
We have a crontabber app called UploadCrashReportJSONSchemaCronApp which uploads the schema to the S3 bucket we use to send data to Telemetry. The schema is managed in code, so the only time it changes is when we do a deploy. Given that, we should convert this crontabber job into a post-deploy step. This bug covers that.
Assignee | ||
Comment 1•6 years ago
|
||
From https://github.com/mozilla-services/socorro/blob/72f025795dd62996e3932e0892325bd245f562ec/socorro/schemas/__init__.py#L19 and https://github.com/mozilla-services/socorro/blob/b8fb5b92a84d73f406470f116d6fa811b8e0ccd9/socorro/cron/jobs/upload_crash_report_json_schema.py it looks like this job is super straightforward- just uploading https://github.com/mozilla-services/socorro/blob/4df210dc9845ab589a73840efb1f6f9c0db6a749/socorro/schemas/crash_report.json to the telemetry bucket and overwriting the previous copy.
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → bpitts
Assignee | ||
Comment 2•6 years ago
|
||
Willkg, could you convert this into a script which we can run standalone, instead of a contabber job, before I add it as a post-deploy step? I first thought I wouldn't need a script to do this at all, and that I could just use the aws cli on jenkins or on the crontabber, but it turns out that for misc reasons it would be easier if we kept a script around to do it.
Flags: needinfo?(willkg)
Reporter | ||
Comment 3•6 years ago
|
||
I think that's a great idea! I'll try to do that this week.
Flags: needinfo?(willkg)
Reporter | ||
Comment 4•6 years ago
|
||
Comment 5•6 years ago
|
||
Commits pushed to master at https://github.com/mozilla-services/socorro https://github.com/mozilla-services/socorro/commit/014035a28dddf83da3dcea2d589b6c102c8dba94 fix bug 1440712 - add "upload_telemetry_schema" app This app can be run using the socorro-cmd in an appropriate environment for uploading the Telemetry schema to the Telemetry S3 bucket. https://github.com/mozilla-services/socorro/commit/7b1d94d654a23905e5816ec47b05c3072c3bf5a0 Merge pull request #4371 from willkg/1440712-upload-json fix bug 1440712 - add "upload_telemetry_schema" app
Updated•6 years ago
|
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•