Skip to content

Conversation

@ionutgoldan
Copy link
Contributor

No description provided.

@ionutgoldan ionutgoldan added WIP python db-schema-changes This PR will require a Database Schema change labels Oct 23, 2019
@ionutgoldan ionutgoldan force-pushed the store-backfill-reports branch 9 times, most recently from 7791bd1 to 55e2040 Compare October 25, 2019 12:53
@codecov-io
Copy link

codecov-io commented Oct 25, 2019

Codecov Report

Merging #5539 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #5539   +/-   ##
=======================================
  Coverage   38.81%   38.81%           
=======================================
  Files         197      197           
  Lines        6505     6505           
  Branches     1397     1397           
=======================================
  Hits         2525     2525           
  Misses       3671     3671           
  Partials      309      309

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ecb34da...7702b90. Read the comment docs.

@ionutgoldan ionutgoldan force-pushed the store-backfill-reports branch 15 times, most recently from 2ab4094 to eed59fc Compare October 30, 2019 15:47
@ionutgoldan ionutgoldan removed the WIP label Oct 30, 2019
for alert, retrigger_context in alert_context_map:
BackfillRecord.objects.create(alert=alert,
report=backfill_report,
context=json.dumps(retrigger_context))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It wouldn't be more appropriate to use a custom serializer instead of json.dumps? Just asking.

Copy link
Contributor Author

@ionutgoldan ionutgoldan Nov 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It wouldn't be more appropriate to use a custom serializer instead of json.dumps? Just asking.

I'm not sure this is what Django serializers where created for. @sarah-clements what do you think?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is what serializers are useful for.

@ionutgoldan ionutgoldan removed the request for review from airimovici November 4, 2019 08:55
@ionutgoldan ionutgoldan force-pushed the store-backfill-reports branch 3 times, most recently from fe50819 to 22409c8 Compare November 4, 2019 12:32
Copy link
Contributor

@octavian-negru octavian-negru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good for me.

@ionutgoldan
Copy link
Contributor Author

FYI @karlht.

@ionutgoldan ionutgoldan requested a review from armenzg November 6, 2019 11:18
Copy link
Contributor

@sarah-clements sarah-clements left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks ok. However, since we are testing pulse ingestion and related work for the Taskcluster migration this Saturday and since this pr is significant, with its changes to the db, please don't merge it until Monday.

@sarah-clements
Copy link
Contributor

Also @camd or @armenzg might want to look at this first before merging.


operations = [
migrations.CreateModel(
name='BackfillReport',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we expire old alert summaries/alerts and will these tables get cleaned up periodically by the cycle_data or other task?

Copy link
Contributor Author

@ionutgoldan ionutgoldan Nov 8, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're not expiring alert summaries/alerts, because there are still Bugzilla comments pointing back to them via hyperlinks.

Regarding the cleanup of these reports: we will consider this in our future roadmaps, once we turn on the auto retriggering bot. We need to know to which extent we can expire them, without affecting the bot.

Copy link
Contributor

@sarah-clements sarah-clements Nov 8, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're not expiring alert summaries/alerts, because there are still Bugzilla comments pointing back to them via hyperlinks.

Is there a need to keep them beyond the one year limit you have for performance datum? I don't know if its a realistic expectation that links in bugzilla comments should always work regardless of how old they are.

Regarding the cleanup of these reports: we will consider this in our future roadmaps, once we turn on the auto retriggering bot. We need to know to which extent we can expire them, without affecting the bot.

Yes, please do add that to your roadmap. We already store a lot of historical data for Perfherder and I'd like to be sure as we add new tables or new columns to tables we have a plan for the data that is no longer needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davehunt we need to consider expiring the alert summaries & alerts also.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you check with BMO to see if there is a policy regarding how long linked resources should remain available? I think it's reasonable to show a page stating that the alert is no longer available, but not sure what age we should do this at.

@ionutgoldan
Copy link
Contributor Author

This looks ok. However, since we are testing pulse ingestion and related work for the Taskcluster migration this Saturday and since this pr is significant, with its changes to the db, please don't merge it until Monday.

No problem. Will wait.

@ionutgoldan ionutgoldan force-pushed the store-backfill-reports branch from 22409c8 to 7702b90 Compare November 11, 2019 07:48
@ionutgoldan ionutgoldan force-pushed the store-backfill-reports branch from 7702b90 to 0ede92d Compare November 14, 2019 08:53
@ionutgoldan
Copy link
Contributor Author

ionutgoldan commented Nov 14, 2019

@armenzg we should merge & deploy this today. I've rebased it on latest master.

@armenzg armenzg merged commit 419c265 into mozilla:master Nov 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

db-schema-changes This PR will require a Database Schema change python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants