Skip to content

How to fix CI

Yuchao Yan edited this page Dec 2, 2022 · 8 revisions

Overview

This doc shows some common problems and resolution in CI.

Problems and resolution

Analyze dependencies

image 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)

Check spelling (cspell)

image For new service up error usually happens, just need to update .vscode/cspell.json like devcenter image

Pylint/Mypy/Pyright failure

image 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