Repository navigation
Developer Environment Container #5090
|
Is there a docker container or script for installing all dependencies and environment configuration on a given base OS that would match what is run on CI pipelines? That would help me immensely debugging failed tests and making updates. I believe some of the failing tests I'm running into are because some of the baseline test outputs are tied to specific toolset versions. I found |
Replies: 1 comment
|
There is no single checked-in development container that matches every CI job. The closest reproduction of the Analyzer job is an Ubuntu 24.04 environment with Python 3.11, Docker, and: sh .github/workflows/install-deps.sh
make pip_dev_deps
BUILD_UI_DIST=NO make package
make -C analyzer test_unit test_functional
make -C analyzer test_unit_covThose are the current Analyzer CI commands. Docker is required because The equivalent Web setup is: sh .github/workflows/install-deps.sh
make pip_dev_deps
pip3 install -r web/requirements_py/auth/requirements.txt
BUILD_UI_DIST=NO make package
make -C web test_matrix_sqlite
# Or, with PostgreSQL running on localhost:5432:
make -C web test_matrix_psql_psycopg2
make -C web test_matrix_psql_pg8000
make -C web test_unit_covCI runs each database target in a fresh matrix job and starts a The existing Exact historical reproduction is not possible from the repository alone because several inputs float: the A genuinely reproducible developer environment would require a versioned CI image plus pinned image digests/package locks, with CI consuming that same image. Until then, reproducing one matrix job at a time is the closest match and avoids combining mutually independent CI environments. |
There is no single checked-in development container that matches every CI job.
.github/workflows/install-deps.shis only the system/analyzer portion: it installs Clang/Clang-Tidy 14, G++ 13, Cppcheck, Infer 1.1.0, and native development libraries (source).The closest reproduction of the Analyzer job is an Ubuntu 24.04 environment with Python 3.11, Docker, and:
Those are the current Analyzer CI commands. Docker is required because
make packagegenerates the Thrift APIs through thecodechecker_apiDocker build.The equivalent Web set…