Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29328894: Issue 3168 - Add a script for generating new content blocker lists (Closed)

Created:
Oct. 6, 2015, 6:17 p.m. by Felix Dahlke
Modified:
Oct. 30, 2015, 7:17 a.m.
Reviewers:
Sebastian Noack, kzar
Visibility:
Public.

Description

Issue 3168 - Add a script for generating new content blocker lists

Patch Set 1 : #

Total comments: 13

Patch Set 2 : Address comments #

Patch Set 3 : Flip _concatenate_files and _convert_filter_list #

Total comments: 4

Patch Set 4 : Close files explicitly, open files in binary mode, add whitespace #

Total comments: 2

Patch Set 5 : Use the with statement #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -0 lines) Patch
A generate_lists.py View 1 2 3 4 1 chunk +88 lines, -0 lines 0 comments Download

Messages

Total messages: 15
Felix Dahlke
So, here's a variant that doesn't use abp2blocklist via ensure_dependencies.py, but just fetches the latest ...
Oct. 6, 2015, 6:23 p.m. (2015-10-06 18:23:58 UTC) #1
Sebastian Noack
I'm still undecided whether we should host abp2blocklist (at its current stage) on our official ...
Oct. 9, 2015, 1:08 p.m. (2015-10-09 13:08:05 UTC) #2
Felix Dahlke
On 2015/10/09 13:08:05, Sebastian Noack wrote: > I'm still undecided whether we should host abp2blocklist ...
Oct. 12, 2015, 8:14 a.m. (2015-10-12 08:14:15 UTC) #3
Sebastian Noack
On 2015/10/12 08:14:15, Felix Dahlke wrote: > Well, we host everything we use in production ...
Oct. 12, 2015, 1:08 p.m. (2015-10-12 13:08:32 UTC) #4
Felix Dahlke
Adding Dave as a reviewer since he should get more in the loop here. Still ...
Oct. 20, 2015, 4:07 p.m. (2015-10-20 16:07:58 UTC) #5
Felix Dahlke
New patch set is up, all comments addressed. On 2015/10/12 13:08:32, Sebastian Noack wrote: > ...
Oct. 21, 2015, 8:36 p.m. (2015-10-21 20:36:09 UTC) #6
Felix Dahlke
https://codereview.adblockplus.org/29328894/diff/29328899/generate_lists.py File generate_lists.py (right): https://codereview.adblockplus.org/29328894/diff/29328899/generate_lists.py#newcode39 generate_lists.py:39: subprocess.check_call(["npm", "install", "tldjs"], cwd=ABP2BLOCKLIST_PATH) On 2015/10/12 13:08:31, Sebastian Noack ...
Oct. 21, 2015, 8:36 p.m. (2015-10-21 20:36:22 UTC) #7
Sebastian Noack
https://codereview.adblockplus.org/29328894/diff/29328899/generate_lists.py File generate_lists.py (right): https://codereview.adblockplus.org/29328894/diff/29328899/generate_lists.py#newcode43 generate_lists.py:43: with tempfile.NamedTemporaryFile(mode="w", delete=False) as easylist_file: On 2015/10/21 20:36:22, Felix ...
Oct. 21, 2015, 8:56 p.m. (2015-10-21 20:56:23 UTC) #8
Sebastian Noack
https://codereview.adblockplus.org/29328894/diff/29329327/generate_lists.py File generate_lists.py (right): https://codereview.adblockplus.org/29328894/diff/29329327/generate_lists.py#newcode75 generate_lists.py:75: easylist_file, exceptionrules_file = _download_filter_lists() Mind closing the temporary files ...
Oct. 21, 2015, 9:14 p.m. (2015-10-21 21:14:35 UTC) #9
Felix Dahlke
New patch set up. BTW, have you noticed this comment? https://codereview.adblockplus.org/29328894/#msg6 I hit reply instead ...
Oct. 22, 2015, 2:43 a.m. (2015-10-22 02:43:45 UTC) #10
Sebastian Noack
I agree that this should go into sitrscripts. https://codereview.adblockplus.org/29328894/diff/29329329/generate_lists.py File generate_lists.py (right): https://codereview.adblockplus.org/29328894/diff/29329329/generate_lists.py#newcode84 generate_lists.py:84: combined_file ...
Oct. 22, 2015, 2:55 a.m. (2015-10-22 02:55:06 UTC) #11
Felix Dahlke
On 2015/10/22 02:55:06, Sebastian Noack wrote: > I agree that this should go into sitrscripts. ...
Oct. 22, 2015, 3:16 a.m. (2015-10-22 03:16:46 UTC) #12
Sebastian Noack
LGTM
Oct. 22, 2015, 3:28 a.m. (2015-10-22 03:28:13 UTC) #13
Felix Dahlke
On 2015/10/22 03:28:13, Sebastian Noack wrote: > LGTM Alright, but I'm not landing this as-is, ...
Oct. 22, 2015, 3:30 a.m. (2015-10-22 03:30:11 UTC) #14
Felix Dahlke
Oct. 30, 2015, 7:17 a.m. (2015-10-30 07:17:43 UTC) #15
Created a new review for moving this to sitescripts:
https://codereview.adblockplus.org/29329537/

Closing this one.

Powered by Google App Engine
This is Rietveld