-
Notifications
You must be signed in to change notification settings - Fork 54
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
Add more checks in Travis CI #120
Comments
hello @skim1102, I'd love to work on this! May I? |
@dave-light yes! Please let me know if you have any questions. |
Hi @skim1102, the 4th acceptance criteria has been satisfied. I'd just like to clarify that in the 1st acceptance criteria, where you mention disconnect-tracking-protection, are you referring to disconnect-blacklist.json (are we talking about disconnect-entitylist.json too)? |
@dave-light I linked a work-in-progress (WIP) PR in shavar-list-creation repo that will do most of what the first acceptance criteria:
is asking for. You are welcome to take this code and refactor to suit the need of the first criterion. Does this answer your question? |
@skim1102 it does indeed. Thanks 😃 |
Hi @skim1102, this is more of a sanity check and to ensure I've understood your code correctly. Looking at category_domains.py, I see on line 44 a txt file called domain-diff-category is created. I also see a comment printed to the txt (such as line 53) beginning with exclamation marks. Is it ok for me to assume that all comments like this will begin with an exclamation mark? The reason I ask is that anything else in the txt should only be there because a difference has been detected and so I can cause Travis CI to fail if it finds this. Please correct me if I've stated something that isn't quite right, or doesn't make sense. |
☝️ #154 fulfills the a/c:
|
@dave-light, rather than using the .txt file as is to check for the differences, I suggest using the code to check for the differences between the Shavar and Disconnect lists and assert that there are no differences. And if there is a difference between the two, the assertion should fail and indicate what the differences are as it was done here and here for the block lists. Same should be applied to the entity lists. Did you also look at where you will implement this? To follow the infrastructure seen in this Travis build, I suggest moving this script to |
@skim1102 I was a little unsure about where to implement it. But I agree with moving category_domains.py to scripts in shavar-prod-lists. I'm happy to add the code to shavar-prod-lists in my next commit, please let me know if you'd rather move it across yourself. |
@skim1102 I noticed a handful of unused variables in category_domains.py (e.g. content_domains, fingerprinting_domains, sorted_data), shall I tidy the code up by removing them? Or are they supposed to be used somewhere? |
@skim1102 category_domains requires imports from list2safebrowsing, it also requires disconnect_mapping.json, both of which are in shavar-list-creation. Initially, I thought I had figured out a way to 'import' or at least reference them by reading https://stackoverflow.com/questions/9357442/github-linking-with-other-repos but I'm a little reserved about following any of the suggestions there. Do you have any suggestions? I don't want to duplicate the required files but would it be feasible to move them to shavar-prod-lists? |
@dave-light @skim1102 will it be okay if I take up one of the to-do of this issue? |
Hey @shreyagupta30, thanks for your interest. I've been writing code to address that piece of acceptance criteria. I have a few questions regarding my approach, which I'm waiting for @skim1102 to get back to me on. |
All right, thank you so much for letting me know. :) |
@skim1102 This task was listed as internship task in the outreachy project description. Will this still be a part of the outreachy project or not? Some of the subtasks seem to be done |
@svensevenslow yes there are additional Travis CI check work needed and will be reasonable to assume that it will still be part of the Outreachy project. I have created #170 and #171 to indicate those work will be additional work that need to be done. |
About this Issue
To make the PR tests be more robust and comprehensive we should add additional checks/tests in Travis CI to check for the following:
Acceptance Criteria
The text was updated successfully, but these errors were encountered: