cikit 0.1.1__tar.gz → 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cikit-0.1.1 → cikit-0.3.0}/PKG-INFO +50 -25
- {cikit-0.1.1 → cikit-0.3.0}/README.md +50 -25
- {cikit-0.1.1 → cikit-0.3.0}/ci_commands/__init__.py +20 -20
- {cikit-0.1.1 → cikit-0.3.0}/ci_commands/all_.py +4 -1
- {cikit-0.1.1 → cikit-0.3.0}/ci_commands/coverage.py +4 -2
- {cikit-0.1.1 → cikit-0.3.0}/ci_commands/init.py +5 -2
- {cikit-0.1.1 → cikit-0.3.0}/ci_commands/pylint.py +5 -2
- {cikit-0.1.1 → cikit-0.3.0}/ci_commands/ruff.py +5 -2
- {cikit-0.1.1 → cikit-0.3.0}/ci_commands/sphinx.py +5 -2
- {cikit-0.1.1 → cikit-0.3.0}/ci_commands/test.py +5 -2
- {cikit-0.1.1 → cikit-0.3.0}/docs/concepts/cikit_data.rst +16 -34
- {cikit-0.1.1 → cikit-0.3.0}/docs/concepts/environment.rst +0 -2
- {cikit-0.1.1 → cikit-0.3.0}/docs/concepts/metadata.rst +5 -0
- {cikit-0.1.1 → cikit-0.3.0}/docs/concepts/providers.rst +6 -110
- {cikit-0.1.1 → cikit-0.3.0}/docs/getting_started.rst +83 -40
- {cikit-0.1.1 → cikit-0.3.0}/docs/guides/azure_devops.rst +5 -24
- {cikit-0.1.1 → cikit-0.3.0}/docs/guides/builds.rst +101 -5
- {cikit-0.1.1 → cikit-0.3.0}/docs/guides/ci_commands.rst +226 -169
- {cikit-0.1.1 → cikit-0.3.0}/docs/guides/gitlab_ci.rst +3 -16
- {cikit-0.1.1 → cikit-0.3.0}/docs/guides/macros.rst +55 -5
- {cikit-0.1.1 → cikit-0.3.0}/docs/guides/sphinx_extensions.rst +21 -0
- {cikit-0.1.1 → cikit-0.3.0}/pyproject.toml +8 -1
- cikit-0.3.0/src/cikit/ci/README.md +183 -0
- cikit-0.3.0/src/cikit/ci/loader.py +206 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/ci/main.py +6 -2
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/env/README.md +13 -47
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/env/env_vars.py +0 -2
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/factory.py +8 -24
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/macros/README.md +2 -2
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/macros/cmake.py +249 -17
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/macros/reports.py +21 -23
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/project_meta.py +10 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/sphinx_ext/log.py +50 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit.egg-info/PKG-INFO +50 -25
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit.egg-info/SOURCES.txt +9 -0
- cikit-0.3.0/tests/systemtests/projects/command_consumer/ci_commands/__init__.py +8 -0
- cikit-0.3.0/tests/systemtests/projects/command_consumer/ci_commands/override.py +33 -0
- cikit-0.3.0/tests/systemtests/projects/command_provider/pyproject.toml +16 -0
- cikit-0.3.0/tests/systemtests/projects/command_provider/src/cikit_test_commands/__init__.py +8 -0
- cikit-0.3.0/tests/systemtests/projects/command_provider/src/cikit_test_commands/override.py +33 -0
- cikit-0.3.0/tests/systemtests/projects/command_provider/src/cikit_test_commands/provider.py +33 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/systemtests/projects/sphinx/docs/index.rst +4 -0
- cikit-0.3.0/tests/systemtests/projects/sphinx/docs/test-log.txt +17 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/systemtests/test_ci_cli.py +27 -2
- {cikit-0.1.1 → cikit-0.3.0}/tests/systemtests/test_cmake.py +18 -2
- {cikit-0.1.1 → cikit-0.3.0}/tests/systemtests/test_sphinx.py +17 -2
- cikit-0.3.0/tests/unittests/test_cikit/test_ci/__init__.py +11 -0
- cikit-0.3.0/tests/unittests/test_cikit/test_ci/test_loader.py +159 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_env/test_env_vars.py +0 -1
- cikit-0.3.0/tests/unittests/test_cikit/test_factory.py +219 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_macros/test_cmake.py +307 -10
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_macros/test_reports.py +30 -21
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_project_meta.py +2 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_sphinx_ext/test_log.py +18 -3
- {cikit-0.1.1 → cikit-0.3.0}/uv.lock +11 -2
- cikit-0.1.1/src/cikit/ci/README.md +0 -120
- cikit-0.1.1/src/cikit/ci/loader.py +0 -67
- cikit-0.1.1/tests/unittests/test_cikit/test_factory.py +0 -273
- {cikit-0.1.1 → cikit-0.3.0}/.gitignore +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/.gitlab-ci.yml +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/.project +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/.pydevproject +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/.pylintrc +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/.repomixignore +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/LICENSE +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/docs/Makefile +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/docs/_static/logo/cikit-logo-192.png +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/docs/_static/logo/cikit-logo.png +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/docs/_static/logo/favicon.ico +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/docs/build_reports/index.rst +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/docs/build_reports/lint.rst +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/docs/build_reports/tests.rst +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/docs/concepts/artifacts.rst +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/docs/concepts/index.rst +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/docs/conf.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/docs/guides/index.rst +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/docs/guides/local_pipeline.rst +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/docs/guides/sphinx_build.rst +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/docs/guides/timelines.rst +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/docs/index.rst +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/docs/roadmap.rst +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/setup.cfg +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/__init__.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/artifacts.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/badge.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/ci/__init__.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/ci/runner.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/command.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/data/README.md +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/data/__init__.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/data/api.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/data/cli.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/data/client.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/data/common.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/env/__init__.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/env/api.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/env/cli.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/env/common.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/env/provider.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/errors.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/json_utils.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/lint_to_rst.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/logging_utils.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/macros/__init__.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/macros/bundle.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/macros/common.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/macros/coverage.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/macros/platformio.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/macros/pylint.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/macros/pytest.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/macros/ruff.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/macros/sphinx.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/resources/php/cikit_data/.htaccess +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/resources/php/cikit_data/README.md +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/resources/php/cikit_data/cikit_data_common.php +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/resources/php/cikit_data/cikit_data_create.php +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/resources/php/cikit_data/cikit_data_latest.php +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/resources/php/cikit_data/cikit_data_timeline.php +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/resources/php/cikit_data/cikit_data_update.php +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/resources/php/cikit_data/config.php +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/resources/php/cikit_data/config.php.example +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/resources/php/cikit_data/generate_secrets.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/resources/sql/cikit_data/README.md +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/resources/sql/cikit_data/db_init.sql +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/resources/sql/cikit_data/db_reset.sql +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/rst_tools.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/sphinx_ext/__init__.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/sphinx_ext/chart.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/sphinx_ext/hash.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/sphinx_ext/metrics.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/status.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/systemtest/__init__.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/systemtest/fixtures.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/timeline/README.md +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/timeline/__init__.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/timeline/__main__.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/timeline/charts.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/timeline/presets.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/timeline/preview.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/timeline/timeline_chart.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit/xml_tools.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit.egg-info/dependency_links.txt +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit.egg-info/entry_points.txt +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit.egg-info/requires.txt +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/src/cikit.egg-info/top_level.txt +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/systemtests/conftest.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/systemtests/projects/cmake_error/CMakeLists.txt +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/systemtests/projects/cmake_error/main.c +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/systemtests/projects/cmake_native/CMakeLists.txt +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/systemtests/projects/cmake_native/linker.ld +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/systemtests/projects/cmake_native/main.c +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/systemtests/projects/cmake_warning/CMakeLists.txt +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/systemtests/projects/cmake_warning/main.c +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/systemtests/projects/platformio_error/platformio.ini +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/systemtests/projects/platformio_error/src/main.c +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/systemtests/projects/platformio_native/platformio.ini +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/systemtests/projects/platformio_native/src/main.cpp +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/systemtests/projects/sphinx/docs/conf.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/systemtests/projects/sphinx_invalid/docs/ index.rst +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/systemtests/projects/sphinx_invalid/docs/conf.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/systemtests/test_data_cli.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/systemtests/test_env_cli.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/systemtests/test_platformio.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_ci_commands/__init__.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_ci_commands/test_all.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_ci_commands/test_sphinx.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/__init__.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_artifacts.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_badge.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_command.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_data/__init__.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_data/test_api.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_data/test_cli.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_data/test_client.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_data/test_common.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_env/__init__.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_env/test_api.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_env/test_common.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_env/test_provider.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_errors.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_json_utils.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_lint_to_rst.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_logging_utils.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_macros/__init__.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_macros/test_bundle.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_macros/test_common.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_macros/test_coverage.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_macros/test_platformio.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_macros/test_pylint.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_macros/test_pytest.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_macros/test_ruff.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_macros/test_sphinx.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_rst_tools.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_sphinx_ext/__init__.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_sphinx_ext/test_chart.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_sphinx_ext/test_hash.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_sphinx_ext/test_init.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_sphinx_ext/test_metrics.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_status.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_timeline/__init__.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_timeline/test_charts.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_timeline/test_presets.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_timeline/test_preview.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_timeline/test_timeline_chart.py +0 -0
- {cikit-0.1.1 → cikit-0.3.0}/tests/unittests/test_cikit/test_xml_tools.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cikit
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: CI helper toolkit
|
|
5
5
|
Author-email: Sven Schlender <svesch@gmx.de>
|
|
6
6
|
License-Expression: GPL-3.0-or-later
|
|
@@ -40,7 +40,7 @@ run data, artifact management, reports, timeline charts, and Sphinx integration.
|
|
|
40
40
|
|
|
41
41
|
## Highlights
|
|
42
42
|
|
|
43
|
-
*
|
|
43
|
+
* CI commands from installed provider packages with optional project-local overrides
|
|
44
44
|
* Unified execution locally and in CI
|
|
45
45
|
* Provider support for local Git, GitLab, and Azure DevOps
|
|
46
46
|
* Structured environment handling with variable expansion and secret masking
|
|
@@ -67,32 +67,30 @@ uv add --dev cikit
|
|
|
67
67
|
|
|
68
68
|
## CI Command Framework
|
|
69
69
|
|
|
70
|
-
cikit
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
The `cikit` console command builds its effective command set from installed
|
|
71
|
+
command providers and optional project-local commands.
|
|
72
|
+
|
|
73
|
+
Reusable command packages register themselves through the Python
|
|
74
|
+
`cikit.commands` entry-point group. A project can then install such a package as
|
|
75
|
+
a normal development dependency and immediately use its commands.
|
|
76
|
+
|
|
77
|
+
A project may additionally provide a root-level `ci_commands` package:
|
|
73
78
|
|
|
74
79
|
```text
|
|
75
80
|
project/
|
|
76
81
|
├── ci_commands/
|
|
77
82
|
│ ├── __init__.py
|
|
78
|
-
│ ├── init.py
|
|
79
|
-
│ ├── lint.py
|
|
80
|
-
│ ├── test.py
|
|
81
|
-
│ ├── build.py
|
|
82
|
-
│ ├── sphinx.py
|
|
83
83
|
│ └── all_.py
|
|
84
84
|
├── docs/
|
|
85
85
|
├── src/
|
|
86
86
|
├── tests/
|
|
87
|
-
|
|
88
|
-
└── public/
|
|
89
|
-
├── artifacts/
|
|
90
|
-
├── badges/
|
|
91
|
-
├── cikit_data/
|
|
92
|
-
└── rst/
|
|
87
|
+
└── pyproject.toml
|
|
93
88
|
```
|
|
94
89
|
|
|
95
|
-
|
|
90
|
+
The local package is optional. It is intended for project-specific commands,
|
|
91
|
+
orchestration, and deliberate overrides of shared provider commands.
|
|
92
|
+
|
|
93
|
+
Every discovered command module declares a logical command name:
|
|
96
94
|
|
|
97
95
|
```python
|
|
98
96
|
import argparse
|
|
@@ -102,6 +100,9 @@ from cikit.ci import run_ci_script
|
|
|
102
100
|
from cikit.macros import ruff
|
|
103
101
|
|
|
104
102
|
|
|
103
|
+
COMMAND_NAME = "ruff"
|
|
104
|
+
|
|
105
|
+
|
|
105
106
|
def run(env, status, args):
|
|
106
107
|
with CiSection("Running Ruff", status=status):
|
|
107
108
|
ruff.ruff(env, args.paths)
|
|
@@ -111,29 +112,46 @@ def run(env, status, args):
|
|
|
111
112
|
|
|
112
113
|
|
|
113
114
|
def command(args):
|
|
114
|
-
return run_ci_script(
|
|
115
|
+
return run_ci_script(
|
|
116
|
+
COMMAND_NAME,
|
|
117
|
+
lambda env, status: run(env, status, args),
|
|
118
|
+
args=args,
|
|
119
|
+
)
|
|
115
120
|
|
|
116
121
|
|
|
117
122
|
def register(subparsers):
|
|
118
|
-
parser = subparsers.add_parser(
|
|
123
|
+
parser = subparsers.add_parser(COMMAND_NAME, help="Run Ruff checks.")
|
|
119
124
|
parser.add_argument("paths", nargs="+")
|
|
120
125
|
parser.set_defaults(func=command)
|
|
121
126
|
```
|
|
122
127
|
|
|
128
|
+
`COMMAND_NAME` is independent of the Python filename and is used by the loader
|
|
129
|
+
for conflict and override resolution.
|
|
130
|
+
|
|
131
|
+
Installed providers must not expose duplicate command names. A project-local
|
|
132
|
+
command may intentionally use the same name as one provider command; the local
|
|
133
|
+
implementation then wins.
|
|
134
|
+
|
|
123
135
|
The resulting command is executed through the shared runner:
|
|
124
136
|
|
|
125
137
|
```bash
|
|
126
138
|
cikit ruff src tests
|
|
127
139
|
```
|
|
128
140
|
|
|
129
|
-
The logical run name can be overridden globally. It is used for cikit data and
|
|
141
|
+
The logical run name can be overridden globally. It is used for cikit data and
|
|
142
|
+
artifact metadata:
|
|
130
143
|
|
|
131
144
|
```bash
|
|
132
145
|
cikit --name quality ruff src tests
|
|
133
146
|
```
|
|
134
147
|
|
|
135
|
-
The command set
|
|
136
|
-
|
|
148
|
+
The command set is not built into cikit itself. It is supplied by installed
|
|
149
|
+
command providers and optional project-local modules. The `ci_commands` package
|
|
150
|
+
in this repository is the project-specific workflow used to build and test
|
|
151
|
+
cikit itself.
|
|
152
|
+
|
|
153
|
+
For complete provider-package examples and discovery rules, see the CI Commands
|
|
154
|
+
guide in the documentation.
|
|
137
155
|
|
|
138
156
|
## Environment and Providers
|
|
139
157
|
|
|
@@ -162,8 +180,8 @@ Outside a supported CI system, local Git metadata is used as the fallback. Provi
|
|
|
162
180
|
pipeline, branch, commit, and provider project information without requiring provider-specific logic
|
|
163
181
|
inside reusable macros.
|
|
164
182
|
|
|
165
|
-
For cikit data,
|
|
166
|
-
|
|
183
|
+
For cikit data, the remote project key uses the logical `PROJECT_NAME` with an optional
|
|
184
|
+
`tool.cikit.data_scope` prefix from `pyproject.toml`.
|
|
167
185
|
|
|
168
186
|
## Reusable Macros
|
|
169
187
|
|
|
@@ -176,7 +194,7 @@ mainly parse arguments, open CI sections, and compose these macros.
|
|
|
176
194
|
| `pylint` | Pylint execution, reports, badges, timelines, and rule-specific reports |
|
|
177
195
|
| `pytest` | pytest execution, JUnit XML, and optional parallel coverage collection |
|
|
178
196
|
| `coverage` | Python/gcovr coverage, Cobertura XML, HTML reports, badges, and timelines |
|
|
179
|
-
| `cmake` | CMake configure/build, CTest,
|
|
197
|
+
| `cmake` | CMake configure/build, CTest, CMake/compiler metadata, compilation databases, build metrics, logs, and reports |
|
|
180
198
|
| `platformio` | PlatformIO builds, compiler metadata, build metrics, memory parsing, logs, and reports |
|
|
181
199
|
| `reports` | Shared test and build report generation |
|
|
182
200
|
| `sphinx` | Documentation preparation, build, and artifact integration |
|
|
@@ -190,6 +208,9 @@ well-defined logical run.
|
|
|
190
208
|
CMake and PlatformIO builds can collect data such as:
|
|
191
209
|
|
|
192
210
|
* configure, build, and total build time
|
|
211
|
+
* CMake version
|
|
212
|
+
* compiler name, version, and type
|
|
213
|
+
* compiler optimization and LTO settings when available
|
|
193
214
|
* compiled file counts
|
|
194
215
|
* compiler warning and error counts
|
|
195
216
|
* memory usage where the toolchain exposes it
|
|
@@ -208,13 +229,17 @@ from cikit.macros import cmake
|
|
|
208
229
|
|
|
209
230
|
build_dir = cmake.get_build_dir(env)
|
|
210
231
|
|
|
232
|
+
cmake.gather_cmake_meta(env)
|
|
233
|
+
|
|
211
234
|
cmake.cmake_configure(
|
|
212
235
|
env,
|
|
213
236
|
source_dir=Path("."),
|
|
214
237
|
build_dir=build_dir,
|
|
215
238
|
generator="Ninja",
|
|
216
239
|
clean=True,
|
|
240
|
+
compile_commands=True,
|
|
217
241
|
)
|
|
242
|
+
cmake.gather_compiler_meta(env, build_dir, "CXX")
|
|
218
243
|
cmake.cmake_build(env, build_dir)
|
|
219
244
|
cmake.write_rst(env)
|
|
220
245
|
```
|
|
@@ -20,7 +20,7 @@ run data, artifact management, reports, timeline charts, and Sphinx integration.
|
|
|
20
20
|
|
|
21
21
|
## Highlights
|
|
22
22
|
|
|
23
|
-
*
|
|
23
|
+
* CI commands from installed provider packages with optional project-local overrides
|
|
24
24
|
* Unified execution locally and in CI
|
|
25
25
|
* Provider support for local Git, GitLab, and Azure DevOps
|
|
26
26
|
* Structured environment handling with variable expansion and secret masking
|
|
@@ -47,32 +47,30 @@ uv add --dev cikit
|
|
|
47
47
|
|
|
48
48
|
## CI Command Framework
|
|
49
49
|
|
|
50
|
-
cikit
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
The `cikit` console command builds its effective command set from installed
|
|
51
|
+
command providers and optional project-local commands.
|
|
52
|
+
|
|
53
|
+
Reusable command packages register themselves through the Python
|
|
54
|
+
`cikit.commands` entry-point group. A project can then install such a package as
|
|
55
|
+
a normal development dependency and immediately use its commands.
|
|
56
|
+
|
|
57
|
+
A project may additionally provide a root-level `ci_commands` package:
|
|
53
58
|
|
|
54
59
|
```text
|
|
55
60
|
project/
|
|
56
61
|
├── ci_commands/
|
|
57
62
|
│ ├── __init__.py
|
|
58
|
-
│ ├── init.py
|
|
59
|
-
│ ├── lint.py
|
|
60
|
-
│ ├── test.py
|
|
61
|
-
│ ├── build.py
|
|
62
|
-
│ ├── sphinx.py
|
|
63
63
|
│ └── all_.py
|
|
64
64
|
├── docs/
|
|
65
65
|
├── src/
|
|
66
66
|
├── tests/
|
|
67
|
-
|
|
68
|
-
└── public/
|
|
69
|
-
├── artifacts/
|
|
70
|
-
├── badges/
|
|
71
|
-
├── cikit_data/
|
|
72
|
-
└── rst/
|
|
67
|
+
└── pyproject.toml
|
|
73
68
|
```
|
|
74
69
|
|
|
75
|
-
|
|
70
|
+
The local package is optional. It is intended for project-specific commands,
|
|
71
|
+
orchestration, and deliberate overrides of shared provider commands.
|
|
72
|
+
|
|
73
|
+
Every discovered command module declares a logical command name:
|
|
76
74
|
|
|
77
75
|
```python
|
|
78
76
|
import argparse
|
|
@@ -82,6 +80,9 @@ from cikit.ci import run_ci_script
|
|
|
82
80
|
from cikit.macros import ruff
|
|
83
81
|
|
|
84
82
|
|
|
83
|
+
COMMAND_NAME = "ruff"
|
|
84
|
+
|
|
85
|
+
|
|
85
86
|
def run(env, status, args):
|
|
86
87
|
with CiSection("Running Ruff", status=status):
|
|
87
88
|
ruff.ruff(env, args.paths)
|
|
@@ -91,29 +92,46 @@ def run(env, status, args):
|
|
|
91
92
|
|
|
92
93
|
|
|
93
94
|
def command(args):
|
|
94
|
-
return run_ci_script(
|
|
95
|
+
return run_ci_script(
|
|
96
|
+
COMMAND_NAME,
|
|
97
|
+
lambda env, status: run(env, status, args),
|
|
98
|
+
args=args,
|
|
99
|
+
)
|
|
95
100
|
|
|
96
101
|
|
|
97
102
|
def register(subparsers):
|
|
98
|
-
parser = subparsers.add_parser(
|
|
103
|
+
parser = subparsers.add_parser(COMMAND_NAME, help="Run Ruff checks.")
|
|
99
104
|
parser.add_argument("paths", nargs="+")
|
|
100
105
|
parser.set_defaults(func=command)
|
|
101
106
|
```
|
|
102
107
|
|
|
108
|
+
`COMMAND_NAME` is independent of the Python filename and is used by the loader
|
|
109
|
+
for conflict and override resolution.
|
|
110
|
+
|
|
111
|
+
Installed providers must not expose duplicate command names. A project-local
|
|
112
|
+
command may intentionally use the same name as one provider command; the local
|
|
113
|
+
implementation then wins.
|
|
114
|
+
|
|
103
115
|
The resulting command is executed through the shared runner:
|
|
104
116
|
|
|
105
117
|
```bash
|
|
106
118
|
cikit ruff src tests
|
|
107
119
|
```
|
|
108
120
|
|
|
109
|
-
The logical run name can be overridden globally. It is used for cikit data and
|
|
121
|
+
The logical run name can be overridden globally. It is used for cikit data and
|
|
122
|
+
artifact metadata:
|
|
110
123
|
|
|
111
124
|
```bash
|
|
112
125
|
cikit --name quality ruff src tests
|
|
113
126
|
```
|
|
114
127
|
|
|
115
|
-
The command set
|
|
116
|
-
|
|
128
|
+
The command set is not built into cikit itself. It is supplied by installed
|
|
129
|
+
command providers and optional project-local modules. The `ci_commands` package
|
|
130
|
+
in this repository is the project-specific workflow used to build and test
|
|
131
|
+
cikit itself.
|
|
132
|
+
|
|
133
|
+
For complete provider-package examples and discovery rules, see the CI Commands
|
|
134
|
+
guide in the documentation.
|
|
117
135
|
|
|
118
136
|
## Environment and Providers
|
|
119
137
|
|
|
@@ -142,8 +160,8 @@ Outside a supported CI system, local Git metadata is used as the fallback. Provi
|
|
|
142
160
|
pipeline, branch, commit, and provider project information without requiring provider-specific logic
|
|
143
161
|
inside reusable macros.
|
|
144
162
|
|
|
145
|
-
For cikit data,
|
|
146
|
-
|
|
163
|
+
For cikit data, the remote project key uses the logical `PROJECT_NAME` with an optional
|
|
164
|
+
`tool.cikit.data_scope` prefix from `pyproject.toml`.
|
|
147
165
|
|
|
148
166
|
## Reusable Macros
|
|
149
167
|
|
|
@@ -156,7 +174,7 @@ mainly parse arguments, open CI sections, and compose these macros.
|
|
|
156
174
|
| `pylint` | Pylint execution, reports, badges, timelines, and rule-specific reports |
|
|
157
175
|
| `pytest` | pytest execution, JUnit XML, and optional parallel coverage collection |
|
|
158
176
|
| `coverage` | Python/gcovr coverage, Cobertura XML, HTML reports, badges, and timelines |
|
|
159
|
-
| `cmake` | CMake configure/build, CTest,
|
|
177
|
+
| `cmake` | CMake configure/build, CTest, CMake/compiler metadata, compilation databases, build metrics, logs, and reports |
|
|
160
178
|
| `platformio` | PlatformIO builds, compiler metadata, build metrics, memory parsing, logs, and reports |
|
|
161
179
|
| `reports` | Shared test and build report generation |
|
|
162
180
|
| `sphinx` | Documentation preparation, build, and artifact integration |
|
|
@@ -170,6 +188,9 @@ well-defined logical run.
|
|
|
170
188
|
CMake and PlatformIO builds can collect data such as:
|
|
171
189
|
|
|
172
190
|
* configure, build, and total build time
|
|
191
|
+
* CMake version
|
|
192
|
+
* compiler name, version, and type
|
|
193
|
+
* compiler optimization and LTO settings when available
|
|
173
194
|
* compiled file counts
|
|
174
195
|
* compiler warning and error counts
|
|
175
196
|
* memory usage where the toolchain exposes it
|
|
@@ -188,13 +209,17 @@ from cikit.macros import cmake
|
|
|
188
209
|
|
|
189
210
|
build_dir = cmake.get_build_dir(env)
|
|
190
211
|
|
|
212
|
+
cmake.gather_cmake_meta(env)
|
|
213
|
+
|
|
191
214
|
cmake.cmake_configure(
|
|
192
215
|
env,
|
|
193
216
|
source_dir=Path("."),
|
|
194
217
|
build_dir=build_dir,
|
|
195
218
|
generator="Ninja",
|
|
196
219
|
clean=True,
|
|
220
|
+
compile_commands=True,
|
|
197
221
|
)
|
|
222
|
+
cmake.gather_compiler_meta(env, build_dir, "CXX")
|
|
198
223
|
cmake.cmake_build(env, build_dir)
|
|
199
224
|
cmake.write_rst(env)
|
|
200
225
|
```
|
|
@@ -377,4 +402,4 @@ https://gitlab.com/svesch/cikit
|
|
|
377
402
|
|
|
378
403
|
## License
|
|
379
404
|
|
|
380
|
-
GPL-3.0-or-later
|
|
405
|
+
GPL-3.0-or-later
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
-
"""Command implementations for CI helper scripts.
|
|
3
|
-
|
|
4
|
-
Each module in this package implements one logical CI command and provides
|
|
5
|
-
a ``register(subparsers)`` function that integrates the command into the
|
|
6
|
-
top-level parser.
|
|
7
|
-
|
|
8
|
-
Typical responsibilities of command modules include:
|
|
9
|
-
|
|
10
|
-
- defining command line arguments
|
|
11
|
-
- implementing command execution logic
|
|
12
|
-
- invoking shared CI setup through ``run_ci_script``
|
|
13
|
-
|
|
14
|
-
Modules are
|
|
15
|
-
|
|
16
|
-
Author:
|
|
17
|
-
Sven Schlender
|
|
18
|
-
Date:
|
|
19
|
-
2026-05-27
|
|
20
|
-
"""
|
|
1
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
2
|
+
"""Command implementations for CI helper scripts.
|
|
3
|
+
|
|
4
|
+
Each module in this package implements one logical CI command and provides
|
|
5
|
+
a ``register(subparsers)`` function that integrates the command into the
|
|
6
|
+
top-level parser.
|
|
7
|
+
|
|
8
|
+
Typical responsibilities of command modules include:
|
|
9
|
+
|
|
10
|
+
- defining command line arguments
|
|
11
|
+
- implementing command execution logic
|
|
12
|
+
- invoking shared CI setup through ``run_ci_script``
|
|
13
|
+
|
|
14
|
+
Modules are discovered and registered dynamically by ``cikit.ci.loader``.
|
|
15
|
+
|
|
16
|
+
Author:
|
|
17
|
+
Sven Schlender
|
|
18
|
+
Date:
|
|
19
|
+
2026-05-27
|
|
20
|
+
"""
|
|
@@ -18,6 +18,9 @@ from pathlib import Path
|
|
|
18
18
|
from ci_commands import coverage, init, pylint, ruff, sphinx, test
|
|
19
19
|
|
|
20
20
|
|
|
21
|
+
COMMAND_NAME = "all"
|
|
22
|
+
|
|
23
|
+
|
|
21
24
|
def run_step(title: str, func, args: argparse.Namespace) -> int:
|
|
22
25
|
"""Run one CI command step.
|
|
23
26
|
|
|
@@ -94,7 +97,7 @@ def register(subparsers: argparse._SubParsersAction):
|
|
|
94
97
|
Args:
|
|
95
98
|
subparsers: Argparse subparser registry.
|
|
96
99
|
"""
|
|
97
|
-
parser = subparsers.add_parser(
|
|
100
|
+
parser = subparsers.add_parser(COMMAND_NAME, help="Run the complete local CI workflow.")
|
|
98
101
|
parser.add_argument("--coverage-dir", type=Path, default=Path("build/coverage"),
|
|
99
102
|
help="Directory for intermediate coverage data files.")
|
|
100
103
|
parser.set_defaults(func=command)
|
|
@@ -19,6 +19,8 @@ from cikit.errors import CiRecoverableError
|
|
|
19
19
|
from cikit.macros import chart_timeline, coverage
|
|
20
20
|
|
|
21
21
|
|
|
22
|
+
COMMAND_NAME = "coverage"
|
|
23
|
+
|
|
22
24
|
def run(env, status, args: argparse.Namespace):
|
|
23
25
|
"""Run coverage command logic.
|
|
24
26
|
|
|
@@ -52,7 +54,7 @@ def command(args: argparse.Namespace) -> int:
|
|
|
52
54
|
Returns:
|
|
53
55
|
Process exit code.
|
|
54
56
|
"""
|
|
55
|
-
return run_ci_script(
|
|
57
|
+
return run_ci_script(COMMAND_NAME, lambda env, status: run(env, status, args), args=args)
|
|
56
58
|
|
|
57
59
|
|
|
58
60
|
def register(subparsers: argparse._SubParsersAction):
|
|
@@ -61,7 +63,7 @@ def register(subparsers: argparse._SubParsersAction):
|
|
|
61
63
|
Args:
|
|
62
64
|
subparsers: Argparse subparser registry.
|
|
63
65
|
"""
|
|
64
|
-
parser = subparsers.add_parser(
|
|
66
|
+
parser = subparsers.add_parser(COMMAND_NAME, help="Build combined coverage reports.")
|
|
65
67
|
parser.add_argument("coverage_dir", type=Path,
|
|
66
68
|
help="Directory containing parallel coverage data files.")
|
|
67
69
|
parser.set_defaults(func=command)
|
|
@@ -18,6 +18,9 @@ from cikit.macros import ai_assisted_badge, data_prepare, python_badge
|
|
|
18
18
|
from cikit.ci import run_ci_script
|
|
19
19
|
|
|
20
20
|
|
|
21
|
+
COMMAND_NAME = "init"
|
|
22
|
+
|
|
23
|
+
|
|
21
24
|
def run(env, status, _args: argparse.Namespace):
|
|
22
25
|
"""Run init command logic.
|
|
23
26
|
|
|
@@ -49,7 +52,7 @@ def command(args: argparse.Namespace) -> int:
|
|
|
49
52
|
Returns:
|
|
50
53
|
Process exit code.
|
|
51
54
|
"""
|
|
52
|
-
return run_ci_script(
|
|
55
|
+
return run_ci_script(COMMAND_NAME, lambda env, status: run(env, status, args), args=args)
|
|
53
56
|
|
|
54
57
|
|
|
55
58
|
def register(subparsers: argparse._SubParsersAction):
|
|
@@ -58,5 +61,5 @@ def register(subparsers: argparse._SubParsersAction):
|
|
|
58
61
|
Args:
|
|
59
62
|
subparsers: Argparse subparser registry.
|
|
60
63
|
"""
|
|
61
|
-
parser = subparsers.add_parser(
|
|
64
|
+
parser = subparsers.add_parser(COMMAND_NAME, help="Prepare CI environment and cikit data.")
|
|
62
65
|
parser.set_defaults(func=command)
|
|
@@ -19,6 +19,9 @@ from cikit.env import CIProvider
|
|
|
19
19
|
from cikit.macros import pylint, chart_timeline
|
|
20
20
|
|
|
21
21
|
|
|
22
|
+
COMMAND_NAME = "pylint"
|
|
23
|
+
|
|
24
|
+
|
|
22
25
|
def run(env, status, args: argparse.Namespace):
|
|
23
26
|
"""Run Pylint command logic.
|
|
24
27
|
|
|
@@ -59,7 +62,7 @@ def command(args: argparse.Namespace) -> int:
|
|
|
59
62
|
Returns:
|
|
60
63
|
Process exit code.
|
|
61
64
|
"""
|
|
62
|
-
return run_ci_script(
|
|
65
|
+
return run_ci_script(COMMAND_NAME, lambda env, status: run(env, status, args), args=args)
|
|
63
66
|
|
|
64
67
|
|
|
65
68
|
def register(subparsers: argparse._SubParsersAction):
|
|
@@ -68,7 +71,7 @@ def register(subparsers: argparse._SubParsersAction):
|
|
|
68
71
|
Args:
|
|
69
72
|
subparsers: Argparse subparser registry.
|
|
70
73
|
"""
|
|
71
|
-
parser = subparsers.add_parser(
|
|
74
|
+
parser = subparsers.add_parser(COMMAND_NAME, help="Run Pylint checks.")
|
|
72
75
|
|
|
73
76
|
parser.add_argument("paths", nargs="+", help="Paths passed to Pylint.")
|
|
74
77
|
|
|
@@ -19,6 +19,9 @@ from cikit.env import CIProvider
|
|
|
19
19
|
from cikit.macros import ruff, chart_timeline
|
|
20
20
|
|
|
21
21
|
|
|
22
|
+
COMMAND_NAME = "ruff"
|
|
23
|
+
|
|
24
|
+
|
|
22
25
|
def run(env, status, args: argparse.Namespace):
|
|
23
26
|
"""Run Ruff command logic.
|
|
24
27
|
|
|
@@ -55,7 +58,7 @@ def command(args: argparse.Namespace) -> int:
|
|
|
55
58
|
Returns:
|
|
56
59
|
Process exit code.
|
|
57
60
|
"""
|
|
58
|
-
return run_ci_script(
|
|
61
|
+
return run_ci_script(COMMAND_NAME, lambda env, status: run(env, status, args), args=args)
|
|
59
62
|
|
|
60
63
|
|
|
61
64
|
def register(subparsers: argparse._SubParsersAction):
|
|
@@ -64,6 +67,6 @@ def register(subparsers: argparse._SubParsersAction):
|
|
|
64
67
|
Args:
|
|
65
68
|
subparsers: Argparse subparser registry.
|
|
66
69
|
"""
|
|
67
|
-
parser = subparsers.add_parser(
|
|
70
|
+
parser = subparsers.add_parser(COMMAND_NAME, help="Run Ruff checks.")
|
|
68
71
|
parser.add_argument("paths", nargs="+", help="Paths passed to Ruff.")
|
|
69
72
|
parser.set_defaults(func=command)
|
|
@@ -21,6 +21,9 @@ from cikit.rst_tools import RstBlock, RstDocument
|
|
|
21
21
|
from cikit.timeline.preview import render_preview_charts
|
|
22
22
|
|
|
23
23
|
|
|
24
|
+
COMMAND_NAME = "sphinx"
|
|
25
|
+
|
|
26
|
+
|
|
24
27
|
def generate_timeline_chart_guide(docs_dir: Path) -> Path:
|
|
25
28
|
"""Generate the timeline preset gallery and its SVG examples.
|
|
26
29
|
|
|
@@ -101,7 +104,7 @@ def command(args: argparse.Namespace) -> int:
|
|
|
101
104
|
Returns:
|
|
102
105
|
Process exit code.
|
|
103
106
|
"""
|
|
104
|
-
return run_ci_script(
|
|
107
|
+
return run_ci_script(COMMAND_NAME, lambda env, status: run(env, status, args), args=args)
|
|
105
108
|
|
|
106
109
|
|
|
107
110
|
def register(subparsers: argparse._SubParsersAction):
|
|
@@ -110,7 +113,7 @@ def register(subparsers: argparse._SubParsersAction):
|
|
|
110
113
|
Args:
|
|
111
114
|
subparsers: Argparse subparser registry.
|
|
112
115
|
"""
|
|
113
|
-
parser = subparsers.add_parser(
|
|
116
|
+
parser = subparsers.add_parser(COMMAND_NAME, help="Build Sphinx documentation.")
|
|
114
117
|
parser.add_argument("docs_dir", nargs="?", type=Path, default=Path("docs"),
|
|
115
118
|
help="Optional Sphinx source directory.")
|
|
116
119
|
parser.set_defaults(func=command)
|
|
@@ -18,6 +18,9 @@ from cikit.ci import run_ci_script
|
|
|
18
18
|
from cikit.macros import chart_timeline, pytest, reports
|
|
19
19
|
|
|
20
20
|
|
|
21
|
+
COMMAND_NAME = "test"
|
|
22
|
+
|
|
23
|
+
|
|
21
24
|
def run(env, status, args: argparse.Namespace):
|
|
22
25
|
"""Run pytest command logic.
|
|
23
26
|
|
|
@@ -54,7 +57,7 @@ def command(args: argparse.Namespace) -> int:
|
|
|
54
57
|
Returns:
|
|
55
58
|
Process exit code.
|
|
56
59
|
"""
|
|
57
|
-
return run_ci_script(
|
|
60
|
+
return run_ci_script(COMMAND_NAME, lambda env, status: run(env, status, args), args=args)
|
|
58
61
|
|
|
59
62
|
|
|
60
63
|
def register(subparsers: argparse._SubParsersAction):
|
|
@@ -63,7 +66,7 @@ def register(subparsers: argparse._SubParsersAction):
|
|
|
63
66
|
Args:
|
|
64
67
|
subparsers: Argparse subparser registry.
|
|
65
68
|
"""
|
|
66
|
-
parser = subparsers.add_parser(
|
|
69
|
+
parser = subparsers.add_parser(COMMAND_NAME, help="Run one pytest directory.")
|
|
67
70
|
parser.add_argument("test_path", type=Path, help="Pytest directory.")
|
|
68
71
|
parser.add_argument("--coverage-dir", type=Path,
|
|
69
72
|
help="Directory for parallel coverage data files.")
|
|
@@ -133,11 +133,9 @@ The cikit environment provides the following settings used by the data layer:
|
|
|
133
133
|
* - Variable
|
|
134
134
|
- Purpose
|
|
135
135
|
* - ``PROJECT_NAME``
|
|
136
|
-
- Logical project name used
|
|
136
|
+
- Logical project name used for cikit data addressing.
|
|
137
137
|
* - ``CIKIT_DATA_DIR``
|
|
138
138
|
- Local directory for cached run data and related local metadata.
|
|
139
|
-
* - ``CIKIT_DATA_ADDRESSING``
|
|
140
|
-
- Selects how the project key for remote data access is formed.
|
|
141
139
|
* - ``CIKIT_DATA_BASE_URL``
|
|
142
140
|
- Optional base URL of the remote cikit Data API.
|
|
143
141
|
* - ``CIKIT_DATA_API_TOKEN``
|
|
@@ -148,27 +146,17 @@ By default:
|
|
|
148
146
|
.. code-block:: text
|
|
149
147
|
|
|
150
148
|
CIKIT_DATA_DIR=${PUBLIC_DIR}/cikit_data
|
|
151
|
-
CIKIT_DATA_ADDRESSING=project
|
|
152
149
|
|
|
153
150
|
``CIKIT_DATA_BASE_URL`` and ``CIKIT_DATA_API_TOKEN`` are optional.
|
|
154
151
|
|
|
155
152
|
Project Addressing
|
|
156
153
|
------------------
|
|
157
154
|
|
|
158
|
-
Every remote request is associated with one project key.
|
|
155
|
+
Every remote request is associated with one project key. The key is derived
|
|
156
|
+
from the logical project name and the optional ``tool.cikit.data_scope`` value
|
|
157
|
+
from ``pyproject.toml``.
|
|
159
158
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
Project Addressing
|
|
163
|
-
^^^^^^^^^^^^^^^^^^
|
|
164
|
-
|
|
165
|
-
The default mode is:
|
|
166
|
-
|
|
167
|
-
.. code-block:: text
|
|
168
|
-
|
|
169
|
-
CIKIT_DATA_ADDRESSING=project
|
|
170
|
-
|
|
171
|
-
The effective remote project key is then:
|
|
159
|
+
Without a configured scope, the effective key is simply:
|
|
172
160
|
|
|
173
161
|
.. code-block:: text
|
|
174
162
|
|
|
@@ -181,31 +169,24 @@ For example:
|
|
|
181
169
|
PROJECT_NAME=cikit
|
|
182
170
|
-> cikit
|
|
183
171
|
|
|
184
|
-
|
|
185
|
-
^^^^^^^^^^^^^^^^^^^
|
|
172
|
+
A scope can be configured as project metadata:
|
|
186
173
|
|
|
187
|
-
|
|
188
|
-
project identity should distinguish otherwise identical logical project names:
|
|
174
|
+
.. code-block:: toml
|
|
189
175
|
|
|
190
|
-
|
|
176
|
+
[project]
|
|
177
|
+
name = "cikit"
|
|
191
178
|
|
|
192
|
-
|
|
179
|
+
[tool.cikit]
|
|
180
|
+
data_scope = "svesch"
|
|
193
181
|
|
|
194
|
-
The
|
|
182
|
+
The resulting remote project key is then:
|
|
195
183
|
|
|
196
184
|
.. code-block:: text
|
|
197
185
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
If no provider scope is available, only ``provider_project`` is used.
|
|
201
|
-
|
|
202
|
-
If no provider project is available, cikit falls back to ``PROJECT_NAME``.
|
|
203
|
-
|
|
204
|
-
The remote service still receives one project string. It does not need to know
|
|
205
|
-
which addressing mode produced it.
|
|
186
|
+
svesch/cikit
|
|
206
187
|
|
|
207
|
-
|
|
208
|
-
|
|
188
|
+
The same key is used during local execution and in every CI provider. Provider
|
|
189
|
+
metadata does not participate in cikit data addressing.
|
|
209
190
|
|
|
210
191
|
Logical Runs
|
|
211
192
|
------------
|
|
@@ -237,6 +218,7 @@ For example:
|
|
|
237
218
|
|
|
238
219
|
coverage:
|
|
239
220
|
coverage
|
|
221
|
+
line_rate
|
|
240
222
|
|
|
241
223
|
pylint:
|
|
242
224
|
score
|
|
@@ -122,8 +122,6 @@ The default cikit environment currently defines:
|
|
|
122
122
|
- Base directory for persistent generated output.
|
|
123
123
|
* - ``CIKIT_DATA_DIR``
|
|
124
124
|
- Directory containing local cikit data and run-related metadata.
|
|
125
|
-
* - ``CIKIT_DATA_ADDRESSING``
|
|
126
|
-
- Addressing mode used for remote cikit data.
|
|
127
125
|
* - ``CIKIT_DATA_BASE_URL``
|
|
128
126
|
- Base URL of the optional remote cikit data service.
|
|
129
127
|
* - ``CIKIT_DATA_API_TOKEN``
|