-
Notifications
You must be signed in to change notification settings - Fork 3k
How to fix CI
This doc shows some common problems and resolution in CI.
When dependencies of
setup.py
is updated and it is inconsistent with frozen requirement
, CI will report the up error. The resolution is to update shared_requirements.txt. CI will shows the package name and your new dependency, so just need to add new line at the bottom of the file like: #override {{package_name}} {{new_dependency}}
(if the line already exists, just need to update the new_dependency
). with the up example, the added or updated item shall be #override azure-developer-loadtesting azure-core<2.0.0,>=1.24.0
(Here is another example about devcenter)
For new service up error usually happens, just need to update .vscode/cspell.json like devcenter
You can add package-name in
PYLINT_OPT_OUT
/MYPY_OPT_OUT
/PYRIGHT_OPT_OUT
of environment_exclusions.py to skip the CI check like this example.
nit: To keep python code robust, it is better to fix it according to hint instead of skipping the check