When the upload_mlbf_to_remote_settings CRON task creates a cache.json file, the order of the entries in each list (blocked, softblocked, notblocked) isn't stable, which means we generate different files even when nothing has changed. This makes it hard to figure out what has changed between executions since tools like sha256sum will report different hashes (and editing each file manually to sort the lists is... tedious).
What happened?
When the
upload_mlbf_to_remote_settings
CRON task creates acache.json
file, the order of the entries in each list (blocked, softblocked, notblocked) isn't stable, which means we generate different files even when nothing has changed. This makes it hard to figure out what has changed between executions since tools likesha256sum
will report different hashes (and editing each file manually to sort the lists is... tedious).What did you expect to happen?
See also: https://github.com/mozilla/addons-server/pull/22715#pullrequestreview-2418286928
Is there an existing issue for this?
┆Issue is synchronized with this Jira Task