-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Full coverage for CODEOWNERS in the codebase. #6616
Conversation
.github/CODEOWNERS
Outdated
/core/storage/question/ @aks681 | ||
/core/templates/dev/head/domain/question/ @aks681 | ||
/core/templates/dev/head/pages/question_editor/ @aks681 | ||
/core/templates/dev/head/pages/questions_list/ @aks681 | ||
|
||
# Practice session project. | ||
/core/templates/dev/head/pages/practice_session/ @aks681 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming this to be a part of the new structure project.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps @vinitamurthi should be co-codeowner? Comes under questions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, FYI - I am also adding /core/templates/dev/head/pages/question_player/ in #6620
# Skill project. | ||
/core/controllers/concept_card_viewer*.py @aks681 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aks681 I'm not sure where to place this (As this is also used in the exploration) so can you confirm that we can place this over here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it's fine to place it here.
/core/templates/dev/head/domain/topics_and_skills_dashboard/ @aks681 | ||
/core/templates/dev/head/pages/topics_and_skills_dashboard/ @aks681 | ||
|
||
|
||
# Infrastructure. | ||
/core/controllers/cron*.py @seanlip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@seanlip, should I create a different section for corn, jobs and task
or we can place this over here (inside Infrastructure)? &
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think infrastructure is fine.
Codecov Report
@@ Coverage Diff @@
## develop #6616 +/- ##
========================================
Coverage 93.95% 93.95%
========================================
Files 356 356
Lines 52462 52462
Branches 893 893
========================================
Hits 49290 49290
Misses 3172 3172 Continue to review full report at Codecov.
|
@seanlip & @YashJipkate, is there any specific reason for excluding all the files in the root directory from the codeowner tests? (I'm following CODEOWNERS warning message for assigning codeowners to the remaining files.) |
.github/CODEOWNERS
Outdated
/scripts/ @apb7 | ||
|
||
|
||
# Exploration project. | ||
/core/controllers/editor*.py @DubeySandeep | ||
/core/controllers/reader*.py @aks681 | ||
/core/controllers/resources*.py @seanlip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vojtechjelinek can take this one, I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
This sounds like an error; we should extend the tests to those files too. |
Hi @DubeySandeep, please bring your PR branch up-to-date with develop. Thanks! |
… into full-codeowners
/.gitignore @apb7 | ||
/.isort.cfg @apb7 | ||
/.pylintrc @apb7 | ||
/.stylelintrc @apb7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@apb7, why do we have two .stylelintrc files? is there any specific reason?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@apb7, can you please check this one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we had a discussion on this some time back, @DubeySandeep. We have two stylelintrc files -- one for oppia.css and other for css within html files. The two config files use different pre-processors and therefore, are not the same and one cannot be used for the other. Thanks!
.github/CODEOWNERS
Outdated
/core/templates/dev/head/pages/footer_js_libs.html @vojtechjelinek | ||
/core/templates/dev/head/pages/header_css_libs.html @vojtechjelinek | ||
/core/templates/dev/head/pages/header_js_libs.html @vojtechjelinek | ||
/gulpfile.js @vojtechjelinek | ||
/jinja_utils*.py @vojtechjelinek | ||
/Makefile @vojtechjelinek |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vojtechjelinek, is there any need of this file? (Introduced at #5659)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I was just playing with it and accidentaly commited the file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've removed this file!
…proper spaces and newlines.
@YashJipkate, Can you please help to review the test pre_commit_linter test file? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally speaking this LGTM and I think 8-10 secs is OK. Thanks @DubeySandeep!
scripts/pre_commit_linter.py
Outdated
|
||
Args: | ||
root: str. The path from where the function should start walking. | ||
exclude_dirs: list(str). A list of dir path which should to be ignored. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drop "to"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
scripts/pre_commit_linter.py
Outdated
exclude_dirs: list(str). A list of dir path which should to be ignored. | ||
|
||
Yields: | ||
str. list(str). A list of unignored files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
str or list(str)? Pick one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
list(str). Fixed.
scripts/pre_commit_linter.py
Outdated
Yields: | ||
str. list(str). A list of unignored files. | ||
""" | ||
dirs, nondirs = [], [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does nondirs mean filepaths? If so perhaps that would be a better name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
scripts/pre_commit_linter.py
Outdated
""" | ||
command = ['git', 'check-ignore', '-q', path_to_check] | ||
|
||
# The "git check-ignore <path>" command use to return 0 when the path is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use to return --> returns
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
scripts/pre_commit_linter.py
Outdated
print ('WARNING! %s/%s is not covered under ' | ||
'CODEOWNERS' % (root, file_name)) | ||
break | ||
if not match and self.verbose_mode_enabled: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If verbose mode is not enabled, we still need to show the viewer which file failed, right? Shouldn't that be stored in a summary message somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I've done my whole testing in --verbose
mode, Fixed!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @DubeySandeep just some doubts. PTAL!
@apb7, Can you please review this PR as a code owner? |
@apb7 & @YashJipkate PTAL! |
Hi @DubeySandeep. Due to recent changes in the "develop" branch, this PR now has a merge conflict. Please follow this link if you need help resolving the conflict, so that the PR can be merged. Thanks! |
@DubeySandeep Sorry for the delay; I have addressed the comments. PTAL! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM!
Thanks @DubeySandeep
@apb7, can you please review this PR? |
Hi @apb7, PTAL! |
@apb7, can we merge this PR? |
scripts/pre_commit_linter.py
Outdated
""" | ||
command = ['git', 'check-ignore', '-q', path_to_check] | ||
|
||
# The "git check-ignore <path>" command use to returns 0 when the path is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please re-phrase this comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll surely do it. Also, it would be great if you can provide some suggestion on what I should add or a pattern in which I can re-phrase this comment! :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe something on these grounds:
The "git check-ignore <path>" command returns 0 when the path is ignored otherwise it returns 1. subprocess.call then returns this returncode.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM just one comment above. Thanks, @DubeySandeep!
/core/templates/dev/head/domain/question/ @aks681 | ||
/core/templates/dev/head/pages/practice_session/ @vinitamurthi | ||
/core/templates/dev/head/pages/question_editor/ @aks681 | ||
/core/templates/dev/head/pages/questions_list/ @aks681 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add question_player in this with me as the code owner? It was added in #6620
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for raising this @vinitamurthi, I think within last 28 days we have added many new files so I'll add all those files/folders before merging this PR! (otherwise, the lint test will start failing on develop.)
Currently, I've added a label PR: don't merge - HAS MERGE CONFLICTS
to avoid merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
This PR adds code owners to all possible files in the codebase.
Current status: