This directory contains the API IDL files and the generated API stubs for CodeChecker. Apache Thrift is used to generate the stubs for various programming languages (Python, JavaScript).
The Thrift compiler is executed inside a Docker
container so docker
needs to be installed to generate the stubs.
Assuming the current api version is 6.24.0 and no breaking change was introduced.
- Modify the
.thrift
API files. - Check the current API version in one of the following files:
- Let's assume that the current API version is
6.39.0
. Run the change-api-version.sh script to increment the API version:change-api-version.sh 6.40.0
. - Update the supported api versions to
6.40
in the server files:web/codechecker_web/shared/version.py
web/server/vue-cli/config/webpack.common.js
- Run the command
make build
to generate the Thrift API stubs and to create new pypi and npm packages. It will modify the following files: - Run
make clean_package && make package
in the root directory of this repository to create a new CodeChecker package and see whether the new API works properly.