Getting started: https://github.com/oppia/oppia/wiki/Contributing-code-to-Oppia#setting-things-up || Active mentors on chat: @gp201, @Nik-09, @chris7716 (Expect a relpy within 24 hrs.)
python -m scripts.linters.pre_commit_linter
Traceback (most recent call last):
File "/.pyenv/versions/3.7.10/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/.pyenv/versions/3.7.10/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/opensource/oppia/scripts/linters/pre_commit_linter.py", line 728, in <module>
main()
File "/opensource/oppia/scripts/linters/pre_commit_linter.py", line 620, in main
namespace=namespace
File "/opensource/oppia/scripts/linters/pre_commit_linter.py", line 483, in _get_all_filepaths
filename for filename in all_filepaths if not
File "/opensource/oppia/scripts/linters/pre_commit_linter.py", line 486, in <listcomp>
in general_purpose_linter.EXCLUDED_PATHS
File "/opensource/oppia/scripts/linters/pre_commit_linter.py", line 485, in <genexpr>
fnmatch.fnmatch(filename, pattern) for pattern # pylint: disable=comprehension-escape
File "/.pyenv/versions/3.7.10/lib/python3.7/fnmatch.py", line 36, in fnmatch
return fnmatchcase(name, pat)
File "/.pyenv/versions/3.7.10/lib/python3.7/fnmatch.py", line 71, in fnmatchcase
return match(name) is not None
TypeError: cannot use a string pattern on a bytes-like object
Hello Devs,
Hope you are well. We are excited that a Tech Talk on Frontend Testing is being organized today i.e. 28st August (Saturday) - 22:30 IST (17:00 UTC).
The talk would cover the following points:
After the talk, you will get a brief idea about Frontend Unit testing, which would be helpful to you, as you'll have to write Frontend Tests for your future contributions to Oppia.
Link for the event: https://meet.google.com/nuj-jate-rfz
Hoping to see you all there! If you have any questions/suggestions you can add them to this Slido Link: https://app.sli.do/event/bxrnwack
Hello Devs,
Hope you are well. We are excited that a Tech Talk on Frontend Testing is being organized today i.e. 28st August (Saturday) - 22:30 IST (17:00 UTC).
The talk would cover the following points:
- Writing robust frontend unit tests
- Covering various scenarios in the code (testing the code thoroughly instead
of just covering lines)- Different scenarios that are difficult to test
- Avoiding flakes
- Identifying and resolving flakes if you get any
After the talk, you will get a brief idea about Frontend Unit testing, which would be helpful to you, as you'll have to write Frontend Tests for your future contributions to Oppia.
Link for the event: https://meet.google.com/nuj-jate-rfz
Hoping to see you all there! If you have any questions/suggestions you can add them to this Slido Link: https://app.sli.do/event/bxrnwack
@/all Reminder
Hey team!
I was working the backend linter fix(oppia/oppia#11496) and I was able to successfully run the test prompt python -m scripts.run_custom_eslint_tests
---------------------------
All tests passed
---------------------------
so I think it means that the linter test is working as intended. However when I was later running the three python command
python -m scripts.linters.pre_commit_linter --path core/tests/protractor
python -m scripts.linters.pre_commit_linter --path core/tests/protractor_desktop
python -m scripts.linters.pre_commit_linter --path core/tests/protractor_utils
./.python-version is not listed in the .github/CODEOWNERS file.
./package-lock.json is not listed in the .github/CODEOWNERS file.
Hey coders, I am new to the open-source world, while installing the Oppia project in my local environment I am getting this error after using the command python -m scripts.start. can anyone help me to resolve this issue?
-> python -m scripts.start
---log---
toml==0.10.2
# via pytest
typing-extensions==3.7.4.3
# via
# apache-beam
# importlib-metadata
uritemplate==3.0.1
# via google-api-python-client
urllib3==1.26.6
# via
# -r requirements.in
# elasticsearch
# requests
webapp2==3.0.0b1
# via -r requirements.in
webencodings==0.5.1
# via
# -r requirements.in
# bleach
# html5lib
webob==1.8.7
# via webapp2
zipp==3.4.1
# via importlib-metadata
All third-party Python libraries are already installed correctly.
Downloading and unzipping file bootstrap-4.3.1-dist to ./third_party/static ...
Traceback (most recent call last):
File "/home/shivam/.pyenv/versions/3.7.10/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/home/shivam/.pyenv/versions/3.7.10/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/shivam/Desktop/opensource/oppia/scripts/start.py", line 31, in <module>
install_third_party_libs.main()
File "/home/shivam/Desktop/opensource/oppia/scripts/install_third_party_libs.py", line 251, in main
install_third_party.main(args=[])
File "/home/shivam/Desktop/opensource/oppia/scripts/install_third_party.py", line 457, in main
download_manifest_files(MANIFEST_FILE_PATH)
File "/home/shivam/Desktop/opensource/oppia/scripts/install_third_party.py", line 331, in download_manifest_files
dependency_zip_root_name, dependency_target_root_name)
File "/home/shivam/Desktop/opensource/oppia/scripts/install_third_party.py", line 133, in download_and_unzip_files
python_utils.url_retrieve(source_url, filename=TMP_UNZIP_PATH)
File "/home/shivam/Desktop/opensource/oppia/python_utils.py", line 409, in url_retrieve
return urlrequest.urlretrieve(source_url, filename=filename)
File "/home/shivam/.pyenv/versions/3.7.10/lib/python3.7/urllib/request.py", line 247, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
File "/home/shivam/.pyenv/versions/3.7.10/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/home/shivam/.pyenv/versions/3.7.10/lib/python3.7/urllib/request.py", line 531, in open
response = meth(req, response)
File "/home/shivam/.pyenv/versions/3.7.10/lib/python3.7/urllib/request.py", line 641, in http_response
'http', request, response, code, msg, hdrs)
File "/home/shivam/.pyenv/versions/3.7.10/lib/python3.7/urllib/request.py", line 563, in error
result = self._call_chain(args)
File "/home/shivam/.pyenv/versions/3.7.10/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(args)
File "/home/shivam/.pyenv/versions/3.7.10/lib/python3.7/urllib/request.py", line 755, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/home/shivam/.pyenv/versions/3.7.10/lib/python3.7/urllib/request.py", line 531, in open
response = meth(req, response)
File "/home/shivam/.pyenv/versions/3.7.10/lib/python3.7/urllib/request.py", line 641, in http_response
'http', request, response, code, msg, hdrs)
File "/home/shivam/.pyenv/versions/3.7.10/lib/python3.7/urllib/request.py", line 569, in error
return self._call_chain(args)
File "/home/shivam/.pyenv/versions/3.7.10/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(args)
File "/home/shivam/.pyenv/versions/3.7.10/lib/python3.7/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden