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

[Bug]: Many add-ons have been erroneously added to the review queue for overgrowth #15141

Closed
1 task done
wagnerand opened this issue Nov 5, 2024 · 6 comments
Closed
1 task done
Assignees
Milestone

Comments

@wagnerand
Copy link
Member

wagnerand commented Nov 5, 2024

What happened?

A lot of add-ons were recently added to the queue for growing over the average growth. This happened in error.

After an initial investigation, we believe this is happening because of an unanticipated negative hotness. That needs to be confirmed.

What did you expect to happen?

Only add-ons that really grew over the average should have been flagged.

Is there an existing issue for this?

  • I have searched the existing issues

┆Issue is synchronized with this Jira Task

@diox diox added this to the 2024.11.14 milestone Nov 5, 2024
@diox diox changed the title [Bug]: Many add-ons have been errneously added to the review queue for overgrowth [Bug]: Many add-ons have been erroneously added to the review queue for overgrowth Nov 5, 2024
@diox
Copy link
Member

diox commented Nov 5, 2024

We also need to clear problematic NeedsHumanReview instances and call reset_due_date() on affected versions. That would happen automatically if the NeedsHumanReview are modified, but in this case we likely want those instances gone entirely. A migration can't easily do that because reset_due_date() method wouldn't be available, need to figure out if we could have a management command or admin tool that automatically resets due date for a given set of versions...

@diox
Copy link
Member

diox commented Nov 6, 2024

After an initial investigation, we believe this is happening because of an unanticipated negative hotness. That needs to be confirmed.

This is definitely the case.

If the average hotness in a tier is -0.1, and the percentage set to 50 for that tier, with the current algorithm the threshold will be -0.0995. We likely want -0.05 in that case instead, since we want to consider increases in growth over the average.

@diox
Copy link
Member

diox commented Nov 6, 2024

There is another issue with that algorithm: if the average hotness in a tier is 0.00, then multiplying by it won't do anything... We could work around that as well, but I think the true solution is going to be look at the Xth percentile instead.

@diox
Copy link
Member

diox commented Nov 7, 2024

Command to fix the NHR/due dates:
manage.py process_addons --task=delete_erroneously_added_overgrowth_needshumanreview --with-deleted

We successfully ran that in prod (and stage before that) today.

@diox
Copy link
Member

diox commented Nov 12, 2024

The data has been fixed. We'll file another issue for the new algorithm.

@wagnerand
Copy link
Member Author

The command above missed an edge case where a new version was submitted, causing the NHR flag to move from one version to another but changing the reason from "overgrowth" to "previous version had NHR set".

We identified and fixed those manually. The NHR flags for them have not been removed but marked inactive using the admin tools (NeedsHumanReview model page)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants