kanon-cli 1.2.0__tar.gz → 2.0.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.
- kanon_cli-2.0.0/.github/actions/setup-kanon/action.yml +143 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/.github/workflows/main-validation.yml +135 -68
- kanon_cli-2.0.0/.github/workflows/pr-validation.yml +262 -0
- kanon_cli-2.0.0/.gitignore +33 -0
- kanon_cli-2.0.0/.markdownlint.json +6 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/.pre-commit-config.yaml +1 -0
- kanon_cli-2.0.0/CHANGELOG.md +3203 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/CONTRIBUTING.md +30 -1
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/Makefile +29 -7
- kanon_cli-2.0.0/PKG-INFO +1148 -0
- kanon_cli-2.0.0/README.md +1126 -0
- kanon_cli-2.0.0/docs/architecture.md +255 -0
- kanon_cli-2.0.0/docs/catalog-author-guide.md +441 -0
- kanon_cli-2.0.0/docs/catalog-format-versioning.md +51 -0
- kanon_cli-2.0.0/docs/catalogs-explained.md +130 -0
- kanon_cli-2.0.0/docs/cli/catalog-audit.md +640 -0
- kanon_cli-2.0.0/docs/cli/doctor.md +470 -0
- kanon_cli-2.0.0/docs/cli/validate.md +223 -0
- kanon_cli-2.0.0/docs/cli-reference.md +468 -0
- kanon_cli-2.0.0/docs/cli.md +485 -0
- kanon_cli-2.0.0/docs/coming-from-pip-npm-cargo.md +103 -0
- kanon_cli-2.0.0/docs/configuration.md +629 -0
- kanon_cli-2.0.0/docs/contributing.md +112 -0
- kanon_cli-2.0.0/docs/creating-manifest-repos.md +277 -0
- kanon_cli-2.0.0/docs/doctor.md +825 -0
- kanon_cli-2.0.0/docs/exit-codes.md +198 -0
- kanon_cli-2.0.0/docs/git-auth-setup.md +404 -0
- kanon_cli-2.0.0/docs/how-it-works.md +104 -0
- kanon_cli-2.0.0/docs/installation.md +199 -0
- kanon_cli-2.0.0/docs/integration-testing.md +6198 -0
- kanon_cli-2.0.0/docs/lifecycle.md +93 -0
- kanon_cli-2.0.0/docs/list-and-add.md +800 -0
- kanon_cli-2.0.0/docs/lockfile.md +875 -0
- kanon_cli-2.0.0/docs/migrating-existing-kanon-files.md +289 -0
- kanon_cli-2.0.0/docs/migration-bootstrap-to-add.md +243 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/docs/multi-source-guide.md +97 -54
- kanon_cli-2.0.0/docs/outdated-and-why.md +575 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/docs/pipeline-integration.md +4 -4
- kanon_cli-2.0.0/docs/repo/README.md +41 -0
- kanon_cli-2.0.0/docs/repo/internal-fs-layout.md +276 -0
- kanon_cli-2.0.0/docs/repo/manifest-format.md +689 -0
- kanon_cli-2.0.0/docs/repo/python-support.md +21 -0
- kanon_cli-2.0.0/docs/repo/repo-hooks.md +175 -0
- kanon_cli-2.0.0/docs/repo/smart-sync.md +129 -0
- kanon_cli-2.0.0/docs/repo/windows.md +169 -0
- kanon_cli-2.0.0/docs/security-model.md +177 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/docs/setup-guide.md +38 -11
- kanon_cli-2.0.0/docs/shell-completion.md +434 -0
- kanon_cli-2.0.0/docs/test-coverage.md +494 -0
- kanon_cli-2.0.0/docs/testing/matrix-traceability.md +182 -0
- kanon_cli-2.0.0/docs/troubleshooting.md +1006 -0
- kanon_cli-2.0.0/docs/url-canonicalization.md +98 -0
- kanon_cli-2.0.0/docs/version-resolution.md +474 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/git-hooks/pre-push +13 -1
- kanon_cli-2.0.0/link +1 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/pyproject.toml +32 -3
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/requirements-dev.txt +1 -0
- kanon_cli-2.0.0/scripts/check_archive_no_duplicates.py +80 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/src/kanon_cli/__init__.py +1 -1
- kanon_cli-2.0.0/src/kanon_cli/cli.py +340 -0
- kanon_cli-2.0.0/src/kanon_cli/commands/add.py +956 -0
- kanon_cli-2.0.0/src/kanon_cli/commands/bootstrap.py +146 -0
- kanon_cli-2.0.0/src/kanon_cli/commands/catalog.py +1084 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/src/kanon_cli/commands/clean.py +31 -3
- kanon_cli-2.0.0/src/kanon_cli/commands/completion.py +78 -0
- kanon_cli-2.0.0/src/kanon_cli/commands/doctor.py +1707 -0
- kanon_cli-2.0.0/src/kanon_cli/commands/install.py +235 -0
- kanon_cli-2.0.0/src/kanon_cli/commands/list.py +1664 -0
- kanon_cli-2.0.0/src/kanon_cli/commands/outdated.py +941 -0
- kanon_cli-2.0.0/src/kanon_cli/commands/remove.py +421 -0
- kanon_cli-2.0.0/src/kanon_cli/commands/repo.py +120 -0
- kanon_cli-2.0.0/src/kanon_cli/commands/validate.py +259 -0
- kanon_cli-2.0.0/src/kanon_cli/commands/why.py +1480 -0
- kanon_cli-2.0.0/src/kanon_cli/completions/cache.py +495 -0
- kanon_cli-2.0.0/src/kanon_cli/completions/cached_catalogs.py +193 -0
- kanon_cli-2.0.0/src/kanon_cli/completions/catalog_entries.py +396 -0
- kanon_cli-2.0.0/src/kanon_cli/completions/catalog_versions.py +413 -0
- kanon_cli-2.0.0/src/kanon_cli/completions/lockfile_names.py +204 -0
- kanon_cli-2.0.0/src/kanon_cli/completions/midtoken.py +235 -0
- kanon_cli-2.0.0/src/kanon_cli/completions/pep440_filter.py +62 -0
- kanon_cli-2.0.0/src/kanon_cli/completions/preamble.py +240 -0
- kanon_cli-2.0.0/src/kanon_cli/completions/project_versions.py +381 -0
- kanon_cli-2.0.0/src/kanon_cli/completions/sanitize.py +107 -0
- kanon_cli-2.0.0/src/kanon_cli/completions/source_names.py +191 -0
- kanon_cli-2.0.0/src/kanon_cli/constants.py +640 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/src/kanon_cli/core/catalog.py +41 -17
- kanon_cli-2.0.0/src/kanon_cli/core/clean.py +256 -0
- kanon_cli-2.0.0/src/kanon_cli/core/cli_args.py +138 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/src/kanon_cli/core/discover.py +1 -1
- kanon_cli-2.0.0/src/kanon_cli/core/include_walker.py +263 -0
- kanon_cli-2.0.0/src/kanon_cli/core/install.py +2868 -0
- kanon_cli-2.0.0/src/kanon_cli/core/kanon_hash.py +124 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/src/kanon_cli/core/kanonenv.py +157 -12
- kanon_cli-2.0.0/src/kanon_cli/core/lockfile.py +1001 -0
- kanon_cli-2.0.0/src/kanon_cli/core/manifest.py +352 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/src/kanon_cli/core/marketplace.py +167 -17
- kanon_cli-2.0.0/src/kanon_cli/core/metadata.py +476 -0
- kanon_cli-2.0.0/src/kanon_cli/core/remote_url.py +161 -0
- kanon_cli-2.0.0/src/kanon_cli/core/url.py +152 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/__init__.py +292 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/color.py +218 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/command.py +529 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/editor.py +116 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/error.py +189 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/event_log.py +195 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/fetch.py +52 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/git_command.py +613 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/git_config.py +855 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/git_refs.py +163 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/git_ssh +17 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/git_superproject.py +560 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/git_trace2_event_log.py +32 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/git_trace2_event_log_base.py +339 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/hooks/commit-msg +113 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/hooks/pre-auto-gc +46 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/hooks.py +508 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/main.py +906 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/manifest_xml.py +2217 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/pager.py +139 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/platform_utils.py +246 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/platform_utils_win32.py +238 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/progress.py +238 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/project.py +4767 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/repo +1444 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/repo_logging.py +91 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/repo_trace.py +179 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/requirements.jsonc +59 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/ssh.py +350 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/subcmds/__init__.py +48 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/subcmds/abandon.py +142 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/subcmds/branches.py +213 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/subcmds/checkout.py +110 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/subcmds/cherry_pick.py +145 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/subcmds/diff.py +82 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/subcmds/diffmanifests.py +246 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/subcmds/download.py +205 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/subcmds/envsubst.py +260 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/subcmds/forall.py +415 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/subcmds/gc.py +282 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/subcmds/grep.py +397 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/subcmds/help.py +184 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/subcmds/info.py +254 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/subcmds/init.py +392 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/subcmds/list.py +128 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/subcmds/manifest.py +353 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/subcmds/overview.py +103 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/subcmds/prune.py +89 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/subcmds/rebase.py +201 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/subcmds/selfupdate.py +83 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/subcmds/smartsync.py +33 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/subcmds/stage.py +123 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/subcmds/start.py +151 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/subcmds/status.py +198 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/subcmds/sync.py +2733 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/subcmds/upload.py +780 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/version_constraints.py +91 -0
- kanon_cli-2.0.0/src/kanon_cli/repo/wrapper.py +36 -0
- kanon_cli-2.0.0/src/kanon_cli/utils/__init__.py +5 -0
- kanon_cli-2.0.0/src/kanon_cli/utils/concurrency.py +94 -0
- kanon_cli-2.0.0/src/kanon_cli/utils/levenshtein.py +71 -0
- kanon_cli-2.0.0/src/kanon_cli/utils/lock_file_path.py +63 -0
- kanon_cli-2.0.0/src/kanon_cli/version.py +503 -0
- kanon_cli-2.0.0/tests/conftest.py +574 -0
- kanon_cli-2.0.0/tests/fixtures/catalog/broken-soft-spot-1/repo-specs/duplicate-child-marketplace.xml +15 -0
- kanon_cli-2.0.0/tests/fixtures/catalog/broken-soft-spot-1/repo-specs/missing-recommended-marketplace.xml +13 -0
- kanon_cli-2.0.0/tests/fixtures/catalog/broken-soft-spot-1/repo-specs/missing-required-marketplace.xml +13 -0
- kanon_cli-2.0.0/tests/fixtures/catalog/broken-soft-spot-1/repo-specs/multiple-blocks-marketplace.xml +16 -0
- kanon_cli-2.0.0/tests/fixtures/catalog/broken-soft-spot-2/repo-specs/dotted-name-marketplace.xml +16 -0
- kanon_cli-2.0.0/tests/fixtures/catalog/broken-soft-spot-2/repo-specs/hyphenated-name-marketplace.xml +16 -0
- kanon_cli-2.0.0/tests/fixtures/catalog/broken-soft-spot-2/repo-specs/uppercase-name-marketplace.xml +15 -0
- kanon_cli-2.0.0/tests/fixtures/catalog/broken-soft-spot-3/repo-specs/group-a-1-marketplace.xml +15 -0
- kanon_cli-2.0.0/tests/fixtures/catalog/broken-soft-spot-3/repo-specs/group-a-2-marketplace.xml +15 -0
- kanon_cli-2.0.0/tests/fixtures/catalog/broken-soft-spot-3/repo-specs/group-b-1-marketplace.xml +15 -0
- kanon_cli-2.0.0/tests/fixtures/catalog/broken-soft-spot-3/repo-specs/group-b-2-marketplace.xml +15 -0
- kanon_cli-2.0.0/tests/fixtures/catalog/broken-soft-spot-4/repo-specs/file-url-marketplace.xml +14 -0
- kanon_cli-2.0.0/tests/fixtures/catalog/broken-soft-spot-4/repo-specs/query-string-marketplace.xml +14 -0
- kanon_cli-2.0.0/tests/fixtures/catalog/broken-soft-spot-4/repo-specs/unresolvable-marketplace.xml +12 -0
- kanon_cli-2.0.0/tests/fixtures/catalog/legacy-catalog-dir/catalog/sample-entry/.kanon +7 -0
- kanon_cli-2.0.0/tests/fixtures/catalog/legacy-catalog-dir/repo-specs/sample.xml +16 -0
- kanon_cli-2.0.0/tests/fixtures/catalogs/zero-pep440-tags/README.md +35 -0
- kanon_cli-2.0.0/tests/fixtures/catalogs/zero-pep440-tags/repo-specs/entry-a/entry-a-marketplace.xml +13 -0
- kanon_cli-2.0.0/tests/fixtures/completion/__init__.py +1 -0
- kanon_cli-2.0.0/tests/fixtures/completion/expected-bash.sh +355 -0
- kanon_cli-2.0.0/tests/fixtures/completion/expected-zsh.sh +511 -0
- kanon_cli-2.0.0/tests/fixtures/errors/README.md +51 -0
- kanon_cli-2.0.0/tests/fixtures/errors/conflict-detected.txt +6 -0
- kanon_cli-2.0.0/tests/fixtures/errors/entry-not-found.txt +2 -0
- kanon_cli-2.0.0/tests/fixtures/errors/lockfile-hash-mismatch.txt +6 -0
- kanon_cli-2.0.0/tests/fixtures/errors/lockfile-sha-unreachable.txt +6 -0
- kanon_cli-2.0.0/tests/fixtures/errors/missing-catalog-source.txt +10 -0
- kanon_cli-2.0.0/tests/fixtures/errors/missing-required-metadata-field.txt +2 -0
- kanon_cli-2.0.0/tests/fixtures/errors/source-collision.txt +2 -0
- kanon_cli-2.0.0/tests/fixtures/errors/zero-pep440-tags-under-prefix.txt +4 -0
- kanon_cli-2.0.0/tests/fixtures/help/README.md +80 -0
- kanon_cli-2.0.0/tests/fixtures/help/kanon-add.txt +63 -0
- kanon_cli-2.0.0/tests/fixtures/help/kanon-catalog-audit.txt +34 -0
- kanon_cli-2.0.0/tests/fixtures/help/kanon-catalog.txt +12 -0
- kanon_cli-2.0.0/tests/fixtures/help/kanon-clean.txt +25 -0
- kanon_cli-2.0.0/tests/fixtures/help/kanon-completion.txt +18 -0
- kanon_cli-2.0.0/tests/fixtures/help/kanon-doctor.txt +52 -0
- kanon_cli-2.0.0/tests/fixtures/help/kanon-install.txt +64 -0
- kanon_cli-2.0.0/tests/fixtures/help/kanon-list.txt +151 -0
- kanon_cli-2.0.0/tests/fixtures/help/kanon-outdated.txt +50 -0
- kanon_cli-2.0.0/tests/fixtures/help/kanon-remove.txt +47 -0
- kanon_cli-2.0.0/tests/fixtures/help/kanon-toplevel.txt +39 -0
- kanon_cli-2.0.0/tests/fixtures/help/kanon-why.txt +50 -0
- kanon_cli-2.0.0/tests/fixtures/repo/.gitignore +2 -0
- kanon_cli-2.0.0/tests/fixtures/repo/README.md +20 -0
- kanon_cli-2.0.0/tests/fixtures/repo/linter-test-bad.invalid-yaml +10 -0
- kanon_cli-2.0.0/tests/fixtures/repo/linter-test-bad.md +13 -0
- kanon_cli-2.0.0/tests/fixtures/repo/linter-test-bad.py +11 -0
- kanon_cli-2.0.0/tests/fixtures/repo/sample-manifest.xml +23 -0
- kanon_cli-2.0.0/tests/fixtures/repo/sample-project-config.json +9 -0
- kanon_cli-2.0.0/tests/fixtures/repo/test.gitconfig +21 -0
- kanon_cli-2.0.0/tests/fixtures/repo/version_constraints_data.json +144 -0
- kanon_cli-2.0.0/tests/functional/conftest.py +953 -0
- kanon_cli-2.0.0/tests/functional/test_argparse_errors.py +636 -0
- kanon_cli-2.0.0/tests/functional/test_argparse_help.py +556 -0
- kanon_cli-2.0.0/tests/functional/test_bootstrap_errors.py +125 -0
- kanon_cli-2.0.0/tests/functional/test_bootstrap_list_and_default_target.py +103 -0
- kanon_cli-2.0.0/tests/functional/test_ci_runs_operator_path_tests.py +279 -0
- kanon_cli-2.0.0/tests/functional/test_cli_entry_point.py +166 -0
- kanon_cli-2.0.0/tests/functional/test_completion_snapshots.py +151 -0
- kanon_cli-2.0.0/tests/functional/test_error_snapshots.py +772 -0
- kanon_cli-2.0.0/tests/functional/test_exit_code_matrix.py +1098 -0
- kanon_cli-2.0.0/tests/functional/test_groups_filter.py +962 -0
- kanon_cli-2.0.0/tests/functional/test_help_snapshots.py +148 -0
- kanon_cli-2.0.0/tests/functional/test_help_text_contract.py +616 -0
- kanon_cli-2.0.0/tests/functional/test_install_lifecycle.py +136 -0
- kanon_cli-2.0.0/tests/functional/test_install_real_kanon.py +161 -0
- kanon_cli-2.0.0/tests/functional/test_kanon_repo_cli.py +604 -0
- kanon_cli-2.0.0/tests/functional/test_kanon_repo_e2e.py +488 -0
- kanon_cli-2.0.0/tests/functional/test_kanon_repo_lifecycle_journey.py +1023 -0
- kanon_cli-2.0.0/tests/functional/test_make_operator_path_targets.py +237 -0
- kanon_cli-2.0.0/tests/functional/test_matrix_traceability_complete.py +457 -0
- kanon_cli-2.0.0/tests/functional/test_provider_agnostic.py +529 -0
- kanon_cli-2.0.0/tests/functional/test_repo_abandon_errors.py +858 -0
- kanon_cli-2.0.0/tests/functional/test_repo_abandon_flags.py +962 -0
- kanon_cli-2.0.0/tests/functional/test_repo_abandon_happy.py +486 -0
- kanon_cli-2.0.0/tests/functional/test_repo_branches_errors.py +770 -0
- kanon_cli-2.0.0/tests/functional/test_repo_branches_flags.py +835 -0
- kanon_cli-2.0.0/tests/functional/test_repo_branches_happy.py +370 -0
- kanon_cli-2.0.0/tests/functional/test_repo_checkout_errors.py +686 -0
- kanon_cli-2.0.0/tests/functional/test_repo_checkout_flags.py +838 -0
- kanon_cli-2.0.0/tests/functional/test_repo_checkout_happy.py +407 -0
- kanon_cli-2.0.0/tests/functional/test_repo_cherry_pick_errors.py +725 -0
- kanon_cli-2.0.0/tests/functional/test_repo_cherry_pick_flags.py +625 -0
- kanon_cli-2.0.0/tests/functional/test_repo_cherry_pick_happy.py +430 -0
- kanon_cli-2.0.0/tests/functional/test_repo_diff_errors.py +732 -0
- kanon_cli-2.0.0/tests/functional/test_repo_diff_flags.py +655 -0
- kanon_cli-2.0.0/tests/functional/test_repo_diff_happy.py +445 -0
- kanon_cli-2.0.0/tests/functional/test_repo_diffmanifests_errors.py +698 -0
- kanon_cli-2.0.0/tests/functional/test_repo_diffmanifests_flags.py +808 -0
- kanon_cli-2.0.0/tests/functional/test_repo_diffmanifests_happy.py +516 -0
- kanon_cli-2.0.0/tests/functional/test_repo_dir_override.py +359 -0
- kanon_cli-2.0.0/tests/functional/test_repo_download_errors.py +699 -0
- kanon_cli-2.0.0/tests/functional/test_repo_download_flags.py +1083 -0
- kanon_cli-2.0.0/tests/functional/test_repo_download_happy.py +486 -0
- kanon_cli-2.0.0/tests/functional/test_repo_envsubst_errors.py +816 -0
- kanon_cli-2.0.0/tests/functional/test_repo_envsubst_flags.py +879 -0
- kanon_cli-2.0.0/tests/functional/test_repo_envsubst_happy.py +403 -0
- kanon_cli-2.0.0/tests/functional/test_repo_exit_codes.py +656 -0
- kanon_cli-2.0.0/tests/functional/test_repo_forall_errors.py +917 -0
- kanon_cli-2.0.0/tests/functional/test_repo_forall_flags.py +1017 -0
- kanon_cli-2.0.0/tests/functional/test_repo_forall_happy.py +391 -0
- kanon_cli-2.0.0/tests/functional/test_repo_gc_errors.py +857 -0
- kanon_cli-2.0.0/tests/functional/test_repo_gc_flags.py +707 -0
- kanon_cli-2.0.0/tests/functional/test_repo_gc_happy.py +433 -0
- kanon_cli-2.0.0/tests/functional/test_repo_grep_errors.py +830 -0
- kanon_cli-2.0.0/tests/functional/test_repo_grep_flags.py +1097 -0
- kanon_cli-2.0.0/tests/functional/test_repo_grep_happy.py +483 -0
- kanon_cli-2.0.0/tests/functional/test_repo_help_errors.py +598 -0
- kanon_cli-2.0.0/tests/functional/test_repo_help_flags.py +520 -0
- kanon_cli-2.0.0/tests/functional/test_repo_help_happy.py +250 -0
- kanon_cli-2.0.0/tests/functional/test_repo_info_errors.py +856 -0
- kanon_cli-2.0.0/tests/functional/test_repo_info_flags.py +924 -0
- kanon_cli-2.0.0/tests/functional/test_repo_info_happy.py +396 -0
- kanon_cli-2.0.0/tests/functional/test_repo_init_errors.py +865 -0
- kanon_cli-2.0.0/tests/functional/test_repo_init_flags.py +1241 -0
- kanon_cli-2.0.0/tests/functional/test_repo_init_happy.py +444 -0
- kanon_cli-2.0.0/tests/functional/test_repo_init_mirror.py +225 -0
- kanon_cli-2.0.0/tests/functional/test_repo_list_errors.py +858 -0
- kanon_cli-2.0.0/tests/functional/test_repo_list_flags.py +1085 -0
- kanon_cli-2.0.0/tests/functional/test_repo_list_happy.py +447 -0
- kanon_cli-2.0.0/tests/functional/test_repo_manifest_errors.py +860 -0
- kanon_cli-2.0.0/tests/functional/test_repo_manifest_flags.py +1015 -0
- kanon_cli-2.0.0/tests/functional/test_repo_manifest_happy.py +459 -0
- kanon_cli-2.0.0/tests/functional/test_repo_manifest_revision_as_tag.py +283 -0
- kanon_cli-2.0.0/tests/functional/test_repo_overview_errors.py +858 -0
- kanon_cli-2.0.0/tests/functional/test_repo_overview_flags.py +785 -0
- kanon_cli-2.0.0/tests/functional/test_repo_overview_happy.py +458 -0
- kanon_cli-2.0.0/tests/functional/test_repo_passthrough.py +705 -0
- kanon_cli-2.0.0/tests/functional/test_repo_prune_errors.py +559 -0
- kanon_cli-2.0.0/tests/functional/test_repo_prune_flags.py +639 -0
- kanon_cli-2.0.0/tests/functional/test_repo_prune_happy.py +430 -0
- kanon_cli-2.0.0/tests/functional/test_repo_rebase_errors.py +638 -0
- kanon_cli-2.0.0/tests/functional/test_repo_rebase_flags.py +1076 -0
- kanon_cli-2.0.0/tests/functional/test_repo_rebase_happy.py +323 -0
- kanon_cli-2.0.0/tests/functional/test_repo_selfupdate_disabled.py +155 -0
- kanon_cli-2.0.0/tests/functional/test_repo_selfupdate_errors.py +746 -0
- kanon_cli-2.0.0/tests/functional/test_repo_selfupdate_flags.py +532 -0
- kanon_cli-2.0.0/tests/functional/test_repo_selfupdate_happy.py +257 -0
- kanon_cli-2.0.0/tests/functional/test_repo_smartsync_errors.py +751 -0
- kanon_cli-2.0.0/tests/functional/test_repo_smartsync_flags.py +1010 -0
- kanon_cli-2.0.0/tests/functional/test_repo_smartsync_happy.py +416 -0
- kanon_cli-2.0.0/tests/functional/test_repo_stage_errors.py +900 -0
- kanon_cli-2.0.0/tests/functional/test_repo_stage_flags.py +666 -0
- kanon_cli-2.0.0/tests/functional/test_repo_stage_happy.py +366 -0
- kanon_cli-2.0.0/tests/functional/test_repo_start_errors.py +645 -0
- kanon_cli-2.0.0/tests/functional/test_repo_start_flags.py +1033 -0
- kanon_cli-2.0.0/tests/functional/test_repo_start_happy.py +469 -0
- kanon_cli-2.0.0/tests/functional/test_repo_status_errors.py +739 -0
- kanon_cli-2.0.0/tests/functional/test_repo_status_flags.py +685 -0
- kanon_cli-2.0.0/tests/functional/test_repo_status_happy.py +390 -0
- kanon_cli-2.0.0/tests/functional/test_repo_sync_errors.py +911 -0
- kanon_cli-2.0.0/tests/functional/test_repo_sync_flags.py +1035 -0
- kanon_cli-2.0.0/tests/functional/test_repo_sync_happy.py +367 -0
- kanon_cli-2.0.0/tests/functional/test_repo_upload_errors.py +906 -0
- kanon_cli-2.0.0/tests/functional/test_repo_upload_flags.py +794 -0
- kanon_cli-2.0.0/tests/functional/test_repo_upload_happy.py +413 -0
- kanon_cli-2.0.0/tests/functional/test_stdout_stderr_discipline.py +587 -0
- kanon_cli-2.0.0/tests/functional/test_validate_marketplace.py +594 -0
- kanon_cli-2.0.0/tests/functional/test_validate_xml_errors.py +237 -0
- kanon_cli-2.0.0/tests/functional/test_validate_xml_repo_root.py +187 -0
- kanon_cli-2.0.0/tests/functional/test_zero_source_clean_error.py +118 -0
- kanon_cli-2.0.0/tests/integration/__init__.py +0 -0
- kanon_cli-2.0.0/tests/integration/conftest.py +99 -0
- kanon_cli-2.0.0/tests/integration/fixtures/__init__.py +0 -0
- kanon_cli-2.0.0/tests/integration/fixtures/synthetic/__init__.py +0 -0
- kanon_cli-2.0.0/tests/integration/fixtures/synthetic/conftest.py +73 -0
- kanon_cli-2.0.0/tests/integration/fixtures/synthetic/drift.py +97 -0
- kanon_cli-2.0.0/tests/integration/fixtures/synthetic/test_synthetic_pytest_fixtures.py +201 -0
- kanon_cli-2.0.0/tests/integration/fixtures/synthetic/upgrade_versioned.py +127 -0
- kanon_cli-2.0.0/tests/integration/provider_allowlist.txt +35 -0
- kanon_cli-2.0.0/tests/integration/repo/__init__.py +0 -0
- kanon_cli-2.0.0/tests/integration/repo/test_bug_fixes.py +1078 -0
- kanon_cli-2.0.0/tests/integration/repo/test_consolidated_constraints_e2e.py +328 -0
- kanon_cli-2.0.0/tests/integration/repo/test_envsubst_integration.py +780 -0
- kanon_cli-2.0.0/tests/integration/repo/test_import_functional.py +102 -0
- kanon_cli-2.0.0/tests/integration/repo/test_linkfile_copyfile.py +478 -0
- kanon_cli-2.0.0/tests/integration/repo/test_linkfile_exclude_journey.py +685 -0
- kanon_cli-2.0.0/tests/integration/repo/test_manifest_parsing.py +550 -0
- kanon_cli-2.0.0/tests/integration/repo/test_process_isolation.py +650 -0
- kanon_cli-2.0.0/tests/integration/repo/test_repo_module_smoke.py +93 -0
- kanon_cli-2.0.0/tests/integration/repo/test_repo_pipeline.py +636 -0
- kanon_cli-2.0.0/tests/integration/repo/test_repo_run_lifecycle.py +171 -0
- kanon_cli-2.0.0/tests/integration/repo/test_repo_sync_lifecycle.py +335 -0
- kanon_cli-2.0.0/tests/integration/repo/test_version_constraints_integration.py +552 -0
- kanon_cli-2.0.0/tests/integration/repo/test_xml_annotation_roundtrip.py +447 -0
- kanon_cli-2.0.0/tests/integration/repo/test_xml_contactinfo_roundtrip.py +337 -0
- kanon_cli-2.0.0/tests/integration/repo/test_xml_copyfile_roundtrip.py +408 -0
- kanon_cli-2.0.0/tests/integration/repo/test_xml_default_roundtrip.py +474 -0
- kanon_cli-2.0.0/tests/integration/repo/test_xml_extend_project_roundtrip.py +362 -0
- kanon_cli-2.0.0/tests/integration/repo/test_xml_include_roundtrip.py +385 -0
- kanon_cli-2.0.0/tests/integration/repo/test_xml_linkfile_roundtrip.py +495 -0
- kanon_cli-2.0.0/tests/integration/repo/test_xml_manifest_roundtrip.py +404 -0
- kanon_cli-2.0.0/tests/integration/repo/test_xml_manifest_server_roundtrip.py +336 -0
- kanon_cli-2.0.0/tests/integration/repo/test_xml_notice_roundtrip.py +340 -0
- kanon_cli-2.0.0/tests/integration/repo/test_xml_project_roundtrip.py +419 -0
- kanon_cli-2.0.0/tests/integration/repo/test_xml_remote_roundtrip.py +451 -0
- kanon_cli-2.0.0/tests/integration/repo/test_xml_remove_project_roundtrip.py +363 -0
- kanon_cli-2.0.0/tests/integration/repo/test_xml_repo_hooks_roundtrip.py +370 -0
- kanon_cli-2.0.0/tests/integration/repo/test_xml_submanifest_roundtrip.py +394 -0
- kanon_cli-2.0.0/tests/integration/repo/test_xml_superproject_roundtrip.py +368 -0
- kanon_cli-2.0.0/tests/integration/test_add_core.py +615 -0
- kanon_cli-2.0.0/tests/integration/test_add_dry_run.py +763 -0
- kanon_cli-2.0.0/tests/integration/test_add_marketplace_flag.py +370 -0
- kanon_cli-2.0.0/tests/integration/test_add_zero_tags.py +334 -0
- kanon_cli-2.0.0/tests/integration/test_auto_discovery.py +115 -0
- kanon_cli-2.0.0/tests/integration/test_background_refresh.py +190 -0
- kanon_cli-2.0.0/tests/integration/test_bootstrap_shim.py +221 -0
- kanon_cli-2.0.0/tests/integration/test_cache_clock_skew.py +131 -0
- kanon_cli-2.0.0/tests/integration/test_cache_layout.py +155 -0
- kanon_cli-2.0.0/tests/integration/test_catalog_audit_entry_uniqueness.py +147 -0
- kanon_cli-2.0.0/tests/integration/test_catalog_audit_framework.py +166 -0
- kanon_cli-2.0.0/tests/integration/test_catalog_audit_legacy_dir.py +257 -0
- kanon_cli-2.0.0/tests/integration/test_catalog_audit_metadata.py +165 -0
- kanon_cli-2.0.0/tests/integration/test_catalog_audit_remote_url.py +218 -0
- kanon_cli-2.0.0/tests/integration/test_catalog_audit_source_name.py +152 -0
- kanon_cli-2.0.0/tests/integration/test_catalog_audit_strict.py +150 -0
- kanon_cli-2.0.0/tests/integration/test_catalog_audit_tag_format.py +481 -0
- kanon_cli-2.0.0/tests/integration/test_catalog_constraints.py +122 -0
- kanon_cli-2.0.0/tests/integration/test_ci_validation.py +235 -0
- kanon_cli-2.0.0/tests/integration/test_clean_env_override_cleanup.py +299 -0
- kanon_cli-2.0.0/tests/integration/test_clean_lifecycle.py +512 -0
- kanon_cli-2.0.0/tests/integration/test_clean_paths.py +207 -0
- kanon_cli-2.0.0/tests/integration/test_cli_entry_points.py +138 -0
- kanon_cli-2.0.0/tests/integration/test_complete_cached_catalogs.py +191 -0
- kanon_cli-2.0.0/tests/integration/test_complete_catalog_entries.py +213 -0
- kanon_cli-2.0.0/tests/integration/test_complete_catalog_versions.py +242 -0
- kanon_cli-2.0.0/tests/integration/test_complete_lockfile_names.py +280 -0
- kanon_cli-2.0.0/tests/integration/test_complete_project_versions.py +297 -0
- kanon_cli-2.0.0/tests/integration/test_complete_source_names.py +163 -0
- kanon_cli-2.0.0/tests/integration/test_completion_bash.py +1120 -0
- kanon_cli-2.0.0/tests/integration/test_completion_subcommand.py +122 -0
- kanon_cli-2.0.0/tests/integration/test_completion_zsh.py +1288 -0
- kanon_cli-2.0.0/tests/integration/test_concurrency.py +863 -0
- kanon_cli-2.0.0/tests/integration/test_concurrency_serialization.py +734 -0
- kanon_cli-2.0.0/tests/integration/test_copyfile_fs_effects.py +525 -0
- kanon_cli-2.0.0/tests/integration/test_doc_validation.py +225 -0
- kanon_cli-2.0.0/tests/integration/test_doctor_cache_flags.py +311 -0
- kanon_cli-2.0.0/tests/integration/test_doctor_cache_flags_workspace_independent.py +244 -0
- kanon_cli-2.0.0/tests/integration/test_doctor_consistency.py +608 -0
- kanon_cli-2.0.0/tests/integration/test_doctor_default_subcheck_output.py +135 -0
- kanon_cli-2.0.0/tests/integration/test_doctor_effective_source.py +304 -0
- kanon_cli-2.0.0/tests/integration/test_doctor_prune_cache.py +272 -0
- kanon_cli-2.0.0/tests/integration/test_doctor_remote_check.py +421 -0
- kanon_cli-2.0.0/tests/integration/test_envsubst_command.py +237 -0
- kanon_cli-2.0.0/tests/integration/test_fs_fault_extended.py +638 -0
- kanon_cli-2.0.0/tests/integration/test_fs_fault_injection.py +499 -0
- kanon_cli-2.0.0/tests/integration/test_full_lifecycle_synthetic.py +449 -0
- kanon_cli-2.0.0/tests/integration/test_full_user_journey.py +1107 -0
- kanon_cli-2.0.0/tests/integration/test_git_fault_injection.py +428 -0
- kanon_cli-2.0.0/tests/integration/test_git_retry_env.py +573 -0
- kanon_cli-2.0.0/tests/integration/test_gitignore_idempotency.py +150 -0
- kanon_cli-2.0.0/tests/integration/test_install_after_add.py +193 -0
- kanon_cli-2.0.0/tests/integration/test_install_command.py +187 -0
- kanon_cli-2.0.0/tests/integration/test_install_conflict_url_normalization.py +461 -0
- kanon_cli-2.0.0/tests/integration/test_install_errors.py +562 -0
- kanon_cli-2.0.0/tests/integration/test_install_include_cycle.py +184 -0
- kanon_cli-2.0.0/tests/integration/test_install_include_diamond.py +217 -0
- kanon_cli-2.0.0/tests/integration/test_install_lifecycle.py +926 -0
- kanon_cli-2.0.0/tests/integration/test_install_lock_file_derivation.py +227 -0
- kanon_cli-2.0.0/tests/integration/test_install_lockfile_replay.py +402 -0
- kanon_cli-2.0.0/tests/integration/test_install_marketplace_registration.py +395 -0
- kanon_cli-2.0.0/tests/integration/test_install_no_kanon_remediation.py +100 -0
- kanon_cli-2.0.0/tests/integration/test_install_optional_vars.py +504 -0
- kanon_cli-2.0.0/tests/integration/test_install_paths.py +209 -0
- kanon_cli-2.0.0/tests/integration/test_install_reconcile.py +471 -0
- kanon_cli-2.0.0/tests/integration/test_install_refresh_lock.py +363 -0
- kanon_cli-2.0.0/tests/integration/test_install_refresh_lock_source.py +797 -0
- kanon_cli-2.0.0/tests/integration/test_install_remote_url_policy.py +610 -0
- kanon_cli-2.0.0/tests/integration/test_install_required_vars.py +143 -0
- kanon_cli-2.0.0/tests/integration/test_install_strict.py +1212 -0
- kanon_cli-2.0.0/tests/integration/test_json_output_stream_discipline.py +255 -0
- kanon_cli-2.0.0/tests/integration/test_kanon_add_placeholder_handling.py +250 -0
- kanon_cli-2.0.0/tests/integration/test_kanon_clean_embedded.py +212 -0
- kanon_cli-2.0.0/tests/integration/test_kanon_full_lifecycle.py +466 -0
- kanon_cli-2.0.0/tests/integration/test_kanon_install_embedded.py +373 -0
- kanon_cli-2.0.0/tests/integration/test_kanonenv_parsing.py +240 -0
- kanon_cli-2.0.0/tests/integration/test_lifecycle_recovery.py +385 -0
- kanon_cli-2.0.0/tests/integration/test_linkfile_fs_effects.py +605 -0
- kanon_cli-2.0.0/tests/integration/test_list_all_versions.py +564 -0
- kanon_cli-2.0.0/tests/integration/test_list_all_versions_canonical.py +559 -0
- kanon_cli-2.0.0/tests/integration/test_list_all_versions_malformed_revision_resilience.py +513 -0
- kanon_cli-2.0.0/tests/integration/test_list_default.py +457 -0
- kanon_cli-2.0.0/tests/integration/test_list_detail.py +525 -0
- kanon_cli-2.0.0/tests/integration/test_list_filter.py +445 -0
- kanon_cli-2.0.0/tests/integration/test_list_format_json.py +587 -0
- kanon_cli-2.0.0/tests/integration/test_list_synthetic_catalog_variants.py +422 -0
- kanon_cli-2.0.0/tests/integration/test_list_tree.py +380 -0
- kanon_cli-2.0.0/tests/integration/test_lockfile_roundtrip.py +252 -0
- kanon_cli-2.0.0/tests/integration/test_marketplace_install.py +441 -0
- kanon_cli-2.0.0/tests/integration/test_marketplace_lifecycle.py +311 -0
- kanon_cli-2.0.0/tests/integration/test_marketplace_orphan_prune.py +385 -0
- kanon_cli-2.0.0/tests/integration/test_midtoken_bash.py +392 -0
- kanon_cli-2.0.0/tests/integration/test_midtoken_zsh.py +424 -0
- kanon_cli-2.0.0/tests/integration/test_misc_features.py +287 -0
- kanon_cli-2.0.0/tests/integration/test_multi_source_aggregation.py +414 -0
- kanon_cli-2.0.0/tests/integration/test_no_bundled_catalog.py +235 -0
- kanon_cli-2.0.0/tests/integration/test_no_default_catalog.py +162 -0
- kanon_cli-2.0.0/tests/integration/test_no_hardcoded_org_values.py +142 -0
- kanon_cli-2.0.0/tests/integration/test_observability.py +515 -0
- kanon_cli-2.0.0/tests/integration/test_outdated.py +480 -0
- kanon_cli-2.0.0/tests/integration/test_outdated_branch_drift.py +493 -0
- kanon_cli-2.0.0/tests/integration/test_outdated_fail_on_upgrade.py +808 -0
- kanon_cli-2.0.0/tests/integration/test_outdated_format_json.py +615 -0
- kanon_cli-2.0.0/tests/integration/test_outdated_refs_tags_revision_parsing.py +200 -0
- kanon_cli-2.0.0/tests/integration/test_platform_parity.py +745 -0
- kanon_cli-2.0.0/tests/integration/test_preamble_bash.py +180 -0
- kanon_cli-2.0.0/tests/integration/test_preamble_zsh.py +202 -0
- kanon_cli-2.0.0/tests/integration/test_remove_core.py +318 -0
- kanon_cli-2.0.0/tests/integration/test_remove_dry_run.py +322 -0
- kanon_cli-2.0.0/tests/integration/test_remove_force_integration.py +121 -0
- kanon_cli-2.0.0/tests/integration/test_signal_handling.py +472 -0
- kanon_cli-2.0.0/tests/integration/test_synthetic_drift_fixture.py +113 -0
- kanon_cli-2.0.0/tests/integration/test_synthetic_upgrade_versioned_fixture.py +155 -0
- kanon_cli-2.0.0/tests/integration/test_unicode_encoding.py +542 -0
- kanon_cli-2.0.0/tests/integration/test_validate_marketplace.py +226 -0
- kanon_cli-2.0.0/tests/integration/test_validate_metadata.py +311 -0
- kanon_cli-2.0.0/tests/integration/test_validate_xml.py +156 -0
- kanon_cli-1.2.0/tests/unit/test_version.py → kanon_cli-2.0.0/tests/integration/test_version_resolution.py +68 -64
- kanon_cli-2.0.0/tests/integration/test_version_widened_bare_pep440.py +159 -0
- kanon_cli-2.0.0/tests/integration/test_wheel_e2e.py +483 -0
- kanon_cli-2.0.0/tests/integration/test_why_ambiguous.py +394 -0
- kanon_cli-2.0.0/tests/integration/test_why_chain_walker.py +331 -0
- kanon_cli-2.0.0/tests/integration/test_why_format_json.py +555 -0
- kanon_cli-2.0.0/tests/integration/test_why_live_resolve.py +1537 -0
- kanon_cli-2.0.0/tests/integration/test_why_not_found_suggestion.py +248 -0
- kanon_cli-2.0.0/tests/integration/test_workspace_dir_env.py +327 -0
- kanon_cli-2.0.0/tests/regression/test_e0_f1_s2_t5_regression.py +622 -0
- kanon_cli-2.0.0/tests/regression/test_e0_f5_s2_t7_regression.py +508 -0
- kanon_cli-2.0.0/tests/regression/test_e0_f6_s1_t1_regression.py +251 -0
- kanon_cli-2.0.0/tests/regression/test_e0_f6_s1_t2_regression.py +454 -0
- kanon_cli-2.0.0/tests/regression/test_e0_f6_s1_t3_regression.py +484 -0
- kanon_cli-2.0.0/tests/regression/test_e0_f6_s1_t4_regression.py +505 -0
- kanon_cli-2.0.0/tests/regression/test_e0_f6_s2_t1_regression.py +297 -0
- kanon_cli-2.0.0/tests/regression/test_e0_f6_s2_t2_regression.py +471 -0
- kanon_cli-2.0.0/tests/regression/test_e0_f6_s2_t3_regression.py +443 -0
- kanon_cli-2.0.0/tests/regression/test_e0_f6_s2_t4_regression.py +459 -0
- kanon_cli-2.0.0/tests/regression/test_e0_f6_s2_t5_regression.py +465 -0
- kanon_cli-2.0.0/tests/regression/test_e0_f6_s2_t6_regression.py +359 -0
- kanon_cli-2.0.0/tests/regression/test_e0_f6_s3_t1_regression.py +640 -0
- kanon_cli-2.0.0/tests/regression/test_e0_f6_s3_t2_regression.py +518 -0
- kanon_cli-2.0.0/tests/regression/test_e0_install_relative_regression.py +517 -0
- kanon_cli-2.0.0/tests/scenarios/__init__.py +0 -0
- kanon_cli-2.0.0/tests/scenarios/_rp_helpers.py +92 -0
- kanon_cli-2.0.0/tests/scenarios/conftest.py +421 -0
- kanon_cli-2.0.0/tests/scenarios/test_ad.py +306 -0
- kanon_cli-2.0.0/tests/scenarios/test_bs.py +89 -0
- kanon_cli-2.0.0/tests/scenarios/test_cd.py +191 -0
- kanon_cli-2.0.0/tests/scenarios/test_cs.py +219 -0
- kanon_cli-2.0.0/tests/scenarios/test_doctor_cache.py +151 -0
- kanon_cli-2.0.0/tests/scenarios/test_ec.py +124 -0
- kanon_cli-2.0.0/tests/scenarios/test_ep.py +39 -0
- kanon_cli-2.0.0/tests/scenarios/test_ev.py +204 -0
- kanon_cli-2.0.0/tests/scenarios/test_hv.py +78 -0
- kanon_cli-2.0.0/tests/scenarios/test_ic.py +279 -0
- kanon_cli-2.0.0/tests/scenarios/test_id.py +189 -0
- kanon_cli-2.0.0/tests/scenarios/test_ks.py +467 -0
- kanon_cli-2.0.0/tests/scenarios/test_lf.py +145 -0
- kanon_cli-2.0.0/tests/scenarios/test_lockfile_lifecycle.py +831 -0
- kanon_cli-2.0.0/tests/scenarios/test_marketplace_direct_checkout.py +420 -0
- kanon_cli-2.0.0/tests/scenarios/test_mk.py +960 -0
- kanon_cli-2.0.0/tests/scenarios/test_ms.py +145 -0
- kanon_cli-2.0.0/tests/scenarios/test_pk.py +632 -0
- kanon_cli-2.0.0/tests/scenarios/test_rc.py +161 -0
- kanon_cli-2.0.0/tests/scenarios/test_refresh_lock_existing_checkout.py +413 -0
- kanon_cli-2.0.0/tests/scenarios/test_rls_exact_vs_range.py +498 -0
- kanon_cli-2.0.0/tests/scenarios/test_rp_abandon.py +69 -0
- kanon_cli-2.0.0/tests/scenarios/test_rp_branches.py +119 -0
- kanon_cli-2.0.0/tests/scenarios/test_rp_checkout.py +53 -0
- kanon_cli-2.0.0/tests/scenarios/test_rp_cherry_pick.py +109 -0
- kanon_cli-2.0.0/tests/scenarios/test_rp_diff.py +112 -0
- kanon_cli-2.0.0/tests/scenarios/test_rp_diffmanifests.py +161 -0
- kanon_cli-2.0.0/tests/scenarios/test_rp_download.py +72 -0
- kanon_cli-2.0.0/tests/scenarios/test_rp_envsubst.py +47 -0
- kanon_cli-2.0.0/tests/scenarios/test_rp_forall.py +137 -0
- kanon_cli-2.0.0/tests/scenarios/test_rp_gc.py +63 -0
- kanon_cli-2.0.0/tests/scenarios/test_rp_grep.py +64 -0
- kanon_cli-2.0.0/tests/scenarios/test_rp_help.py +45 -0
- kanon_cli-2.0.0/tests/scenarios/test_rp_info.py +145 -0
- kanon_cli-2.0.0/tests/scenarios/test_rp_init.py +435 -0
- kanon_cli-2.0.0/tests/scenarios/test_rp_list.py +173 -0
- kanon_cli-2.0.0/tests/scenarios/test_rp_manifest.py +215 -0
- kanon_cli-2.0.0/tests/scenarios/test_rp_overview.py +106 -0
- kanon_cli-2.0.0/tests/scenarios/test_rp_prune.py +44 -0
- kanon_cli-2.0.0/tests/scenarios/test_rp_rebase.py +162 -0
- kanon_cli-2.0.0/tests/scenarios/test_rp_smartsync.py +22 -0
- kanon_cli-2.0.0/tests/scenarios/test_rp_stage.py +21 -0
- kanon_cli-2.0.0/tests/scenarios/test_rp_start.py +66 -0
- kanon_cli-2.0.0/tests/scenarios/test_rp_status.py +134 -0
- kanon_cli-2.0.0/tests/scenarios/test_rp_sync.py +401 -0
- kanon_cli-2.0.0/tests/scenarios/test_rp_upload.py +78 -0
- kanon_cli-2.0.0/tests/scenarios/test_rp_wrap.py +111 -0
- kanon_cli-2.0.0/tests/scenarios/test_rx.py +277 -0
- kanon_cli-2.0.0/tests/scenarios/test_scenario_coverage_meta.py +89 -0
- kanon_cli-2.0.0/tests/scenarios/test_tc_bootstrap.py +122 -0
- kanon_cli-2.0.0/tests/scenarios/test_tc_clean.py +347 -0
- kanon_cli-2.0.0/tests/scenarios/test_tc_install.py +249 -0
- kanon_cli-2.0.0/tests/scenarios/test_tc_validate.py +174 -0
- kanon_cli-2.0.0/tests/scenarios/test_uj.py +734 -0
- kanon_cli-2.0.0/tests/scenarios/test_va.py +161 -0
- kanon_cli-2.0.0/tests/scenarios/test_why_surface_query.py +395 -0
- kanon_cli-2.0.0/tests/scenarios/test_why_url_path.py +294 -0
- kanon_cli-2.0.0/tests/scenarios/test_why_url_path_placeholder.py +481 -0
- kanon_cli-2.0.0/tests/security/__init__.py +0 -0
- kanon_cli-2.0.0/tests/security/test_security_hardening.py +301 -0
- kanon_cli-2.0.0/tests/test_wheel_layout.py +228 -0
- kanon_cli-2.0.0/tests/unit/__init__.py +0 -0
- kanon_cli-2.0.0/tests/unit/commands/test_repo_dir_resolution.py +166 -0
- kanon_cli-2.0.0/tests/unit/conftest.py +72 -0
- kanon_cli-2.0.0/tests/unit/repo/__init__.py +0 -0
- kanon_cli-2.0.0/tests/unit/repo/conftest.py +231 -0
- kanon_cli-2.0.0/tests/unit/repo/fixtures/.gitignore +2 -0
- kanon_cli-2.0.0/tests/unit/repo/fixtures/README.md +22 -0
- kanon_cli-2.0.0/tests/unit/repo/fixtures/sample-manifest.xml +23 -0
- kanon_cli-2.0.0/tests/unit/repo/fixtures/sample-project-config.json +9 -0
- kanon_cli-2.0.0/tests/unit/repo/fixtures/test.gitconfig +21 -0
- kanon_cli-2.0.0/tests/unit/repo/fixtures/version_constraints_data.json +144 -0
- kanon_cli-2.0.0/tests/unit/repo/functional/__init__.py +0 -0
- kanon_cli-2.0.0/tests/unit/repo/functional/test_features.py +265 -0
- kanon_cli-2.0.0/tests/unit/repo/subcmds/__init__.py +0 -0
- kanon_cli-2.0.0/tests/unit/repo/subcmds/test_init_mirror.py +195 -0
- kanon_cli-2.0.0/tests/unit/repo/subcmds/test_manifest_revision_as_tag.py +294 -0
- kanon_cli-2.0.0/tests/unit/repo/subcmds/test_manifest_revision_as_tag_pep440.py +154 -0
- kanon_cli-2.0.0/tests/unit/repo/subcmds/test_selfupdate_stub.py +230 -0
- kanon_cli-2.0.0/tests/unit/repo/test_abandon_massive.py +352 -0
- kanon_cli-2.0.0/tests/unit/repo/test_branches_coverage.py +408 -0
- kanon_cli-2.0.0/tests/unit/repo/test_bug10_selfupdate_incompatible.py +283 -0
- kanon_cli-2.0.0/tests/unit/repo/test_bug11_race_condition.py +176 -0
- kanon_cli-2.0.0/tests/unit/repo/test_bug12_backup_preserved.py +91 -0
- kanon_cli-2.0.0/tests/unit/repo/test_bug13_init_reinit_warning.py +201 -0
- kanon_cli-2.0.0/tests/unit/repo/test_bug14_non_tty_log.py +176 -0
- kanon_cli-2.0.0/tests/unit/repo/test_bug15_prerelease_docs.py +89 -0
- kanon_cli-2.0.0/tests/unit/repo/test_bug16_nested_var_warning.py +219 -0
- kanon_cli-2.0.0/tests/unit/repo/test_bug18_envsubst_double_parse.py +151 -0
- kanon_cli-2.0.0/tests/unit/repo/test_bug19_glob_src_error.py +125 -0
- kanon_cli-2.0.0/tests/unit/repo/test_bug1_envsubst_malformed_xml.py +219 -0
- kanon_cli-2.0.0/tests/unit/repo/test_bug20_glob_dest_file.py +185 -0
- kanon_cli-2.0.0/tests/unit/repo/test_bug2_linkfile_errors.py +255 -0
- kanon_cli-2.0.0/tests/unit/repo/test_bug3_execv_replaces_process.py +341 -0
- kanon_cli-2.0.0/tests/unit/repo/test_bug4_symlink_overwrite.py +303 -0
- kanon_cli-2.0.0/tests/unit/repo/test_bug5_empty_envsubst_list.py +101 -0
- kanon_cli-2.0.0/tests/unit/repo/test_bug6_undefined_env_vars.py +382 -0
- kanon_cli-2.0.0/tests/unit/repo/test_bug7_git_ls_remote_retry.py +420 -0
- kanon_cli-2.0.0/tests/unit/repo/test_bug8_ls_remote_stderr.py +188 -0
- kanon_cli-2.0.0/tests/unit/repo/test_bug9_constraint_resolution_cache.py +225 -0
- kanon_cli-2.0.0/tests/unit/repo/test_checklocalpath_rules_1_5.py +220 -0
- kanon_cli-2.0.0/tests/unit/repo/test_checklocalpath_rules_6_11.py +341 -0
- kanon_cli-2.0.0/tests/unit/repo/test_checkout_massive.py +345 -0
- kanon_cli-2.0.0/tests/unit/repo/test_cherrypick_coverage.py +309 -0
- kanon_cli-2.0.0/tests/unit/repo/test_color.py +460 -0
- kanon_cli-2.0.0/tests/unit/repo/test_command.py +1115 -0
- kanon_cli-2.0.0/tests/unit/repo/test_conftest_fixtures.py +156 -0
- kanon_cli-2.0.0/tests/unit/repo/test_diffmanifests_deep.py +509 -0
- kanon_cli-2.0.0/tests/unit/repo/test_doc_validate_git_preconditions.py +336 -0
- kanon_cli-2.0.0/tests/unit/repo/test_download_coverage.py +62 -0
- kanon_cli-2.0.0/tests/unit/repo/test_editor.py +297 -0
- kanon_cli-2.0.0/tests/unit/repo/test_embedded_mode.py +292 -0
- kanon_cli-2.0.0/tests/unit/repo/test_envsubst_basic.py +324 -0
- kanon_cli-2.0.0/tests/unit/repo/test_envsubst_edge.py +678 -0
- kanon_cli-2.0.0/tests/unit/repo/test_envsubst_massive.py +228 -0
- kanon_cli-2.0.0/tests/unit/repo/test_error.py +355 -0
- kanon_cli-2.0.0/tests/unit/repo/test_event_log.py +280 -0
- kanon_cli-2.0.0/tests/unit/repo/test_event_log_massive.py +263 -0
- kanon_cli-2.0.0/tests/unit/repo/test_fetch.py +120 -0
- kanon_cli-2.0.0/tests/unit/repo/test_fixture_files.py +72 -0
- kanon_cli-2.0.0/tests/unit/repo/test_forall_deep.py +628 -0
- kanon_cli-2.0.0/tests/unit/repo/test_git_command.py +603 -0
- kanon_cli-2.0.0/tests/unit/repo/test_git_config.py +588 -0
- kanon_cli-2.0.0/tests/unit/repo/test_git_refs.py +542 -0
- kanon_cli-2.0.0/tests/unit/repo/test_git_superproject.py +661 -0
- kanon_cli-2.0.0/tests/unit/repo/test_git_trace2_event_log.py +762 -0
- kanon_cli-2.0.0/tests/unit/repo/test_gitconfig_coverage.py +419 -0
- kanon_cli-2.0.0/tests/unit/repo/test_grep_deep.py +421 -0
- kanon_cli-2.0.0/tests/unit/repo/test_harness_smoke.py +105 -0
- kanon_cli-2.0.0/tests/unit/repo/test_hooks.py +500 -0
- kanon_cli-2.0.0/tests/unit/repo/test_import_verification.py +140 -0
- kanon_cli-2.0.0/tests/unit/repo/test_imports.py +99 -0
- kanon_cli-2.0.0/tests/unit/repo/test_include_path_resolution.py +653 -0
- kanon_cli-2.0.0/tests/unit/repo/test_info_deep.py +476 -0
- kanon_cli-2.0.0/tests/unit/repo/test_init_deep.py +342 -0
- kanon_cli-2.0.0/tests/unit/repo/test_list_massive.py +379 -0
- kanon_cli-2.0.0/tests/unit/repo/test_main.py +792 -0
- kanon_cli-2.0.0/tests/unit/repo/test_main_coverage.py +354 -0
- kanon_cli-2.0.0/tests/unit/repo/test_main_init_download_boost.py +1902 -0
- kanon_cli-2.0.0/tests/unit/repo/test_makefile_lint_format.py +90 -0
- kanon_cli-2.0.0/tests/unit/repo/test_makefile_structure.py +196 -0
- kanon_cli-2.0.0/tests/unit/repo/test_makefile_test_targets.py +148 -0
- kanon_cli-2.0.0/tests/unit/repo/test_manifest_coverage_boost.py +2391 -0
- kanon_cli-2.0.0/tests/unit/repo/test_manifest_deep.py +1611 -0
- kanon_cli-2.0.0/tests/unit/repo/test_manifest_doc_rp_flags.py +193 -0
- kanon_cli-2.0.0/tests/unit/repo/test_manifest_massive.py +869 -0
- kanon_cli-2.0.0/tests/unit/repo/test_manifest_subcmd_massive.py +385 -0
- kanon_cli-2.0.0/tests/unit/repo/test_manifest_xml.py +2743 -0
- kanon_cli-2.0.0/tests/unit/repo/test_manifest_xml_pep440.py +222 -0
- kanon_cli-2.0.0/tests/unit/repo/test_medium_files_boost.py +1590 -0
- kanon_cli-2.0.0/tests/unit/repo/test_mkdtemp_cleanup.py +137 -0
- kanon_cli-2.0.0/tests/unit/repo/test_overview_massive.py +340 -0
- kanon_cli-2.0.0/tests/unit/repo/test_package_structure.py +45 -0
- kanon_cli-2.0.0/tests/unit/repo/test_pager.py +396 -0
- kanon_cli-2.0.0/tests/unit/repo/test_parselist.py +238 -0
- kanon_cli-2.0.0/tests/unit/repo/test_pep440_edge_1.py +396 -0
- kanon_cli-2.0.0/tests/unit/repo/test_pep440_edge_2.py +386 -0
- kanon_cli-2.0.0/tests/unit/repo/test_pep440_ops_ge.py +215 -0
- kanon_cli-2.0.0/tests/unit/repo/test_pep440_ops_rest.py +483 -0
- kanon_cli-2.0.0/tests/unit/repo/test_platform_utils.py +431 -0
- kanon_cli-2.0.0/tests/unit/repo/test_process_isolation.py +209 -0
- kanon_cli-2.0.0/tests/unit/repo/test_progress.py +548 -0
- kanon_cli-2.0.0/tests/unit/repo/test_project.py +2459 -0
- kanon_cli-2.0.0/tests/unit/repo/test_project_coverage_boost.py +1747 -0
- kanon_cli-2.0.0/tests/unit/repo/test_project_coverage_threshold.py +3087 -0
- kanon_cli-2.0.0/tests/unit/repo/test_project_deep.py +1119 -0
- kanon_cli-2.0.0/tests/unit/repo/test_project_deep_boost.py +1074 -0
- kanon_cli-2.0.0/tests/unit/repo/test_project_final_boost.py +476 -0
- kanon_cli-2.0.0/tests/unit/repo/test_project_integration.py +932 -0
- kanon_cli-2.0.0/tests/unit/repo/test_project_massive.py +1190 -0
- kanon_cli-2.0.0/tests/unit/repo/test_project_metaproject_boost.py +1360 -0
- kanon_cli-2.0.0/tests/unit/repo/test_project_methods.py +667 -0
- kanon_cli-2.0.0/tests/unit/repo/test_project_sync.py +206 -0
- kanon_cli-2.0.0/tests/unit/repo/test_prune_massive.py +352 -0
- kanon_cli-2.0.0/tests/unit/repo/test_rebase_coverage.py +459 -0
- kanon_cli-2.0.0/tests/unit/repo/test_remaining_coverage_boost.py +1426 -0
- kanon_cli-2.0.0/tests/unit/repo/test_repo_envsubst_api.py +418 -0
- kanon_cli-2.0.0/tests/unit/repo/test_repo_logging.py +288 -0
- kanon_cli-2.0.0/tests/unit/repo/test_repo_run_api.py +332 -0
- kanon_cli-2.0.0/tests/unit/repo/test_repo_sync_api.py +510 -0
- kanon_cli-2.0.0/tests/unit/repo/test_repo_trace.py +360 -0
- kanon_cli-2.0.0/tests/unit/repo/test_revision_inheritance.py +386 -0
- kanon_cli-2.0.0/tests/unit/repo/test_revision_tag_branch_sha.py +285 -0
- kanon_cli-2.0.0/tests/unit/repo/test_ruff_config.py +57 -0
- kanon_cli-2.0.0/tests/unit/repo/test_selfupdate_embedded.py +243 -0
- kanon_cli-2.0.0/tests/unit/repo/test_selfupdate_massive.py +239 -0
- kanon_cli-2.0.0/tests/unit/repo/test_small_files_boost.py +1733 -0
- kanon_cli-2.0.0/tests/unit/repo/test_ssh.py +401 -0
- kanon_cli-2.0.0/tests/unit/repo/test_ssh_deep.py +421 -0
- kanon_cli-2.0.0/tests/unit/repo/test_stage_coverage.py +308 -0
- kanon_cli-2.0.0/tests/unit/repo/test_stage_massive.py +338 -0
- kanon_cli-2.0.0/tests/unit/repo/test_start_coverage.py +282 -0
- kanon_cli-2.0.0/tests/unit/repo/test_status_coverage.py +263 -0
- kanon_cli-2.0.0/tests/unit/repo/test_status_gaps.py +219 -0
- kanon_cli-2.0.0/tests/unit/repo/test_status_massive.py +264 -0
- kanon_cli-2.0.0/tests/unit/repo/test_subcmd_imports.py +128 -0
- kanon_cli-2.0.0/tests/unit/repo/test_subcmds.py +137 -0
- kanon_cli-2.0.0/tests/unit/repo/test_subcmds_abandon.py +134 -0
- kanon_cli-2.0.0/tests/unit/repo/test_subcmds_branches.py +101 -0
- kanon_cli-2.0.0/tests/unit/repo/test_subcmds_checkout.py +113 -0
- kanon_cli-2.0.0/tests/unit/repo/test_subcmds_cherry_pick.py +45 -0
- kanon_cli-2.0.0/tests/unit/repo/test_subcmds_diff.py +65 -0
- kanon_cli-2.0.0/tests/unit/repo/test_subcmds_diffmanifests.py +80 -0
- kanon_cli-2.0.0/tests/unit/repo/test_subcmds_download.py +87 -0
- kanon_cli-2.0.0/tests/unit/repo/test_subcmds_envsubst.py +299 -0
- kanon_cli-2.0.0/tests/unit/repo/test_subcmds_forall.py +341 -0
- kanon_cli-2.0.0/tests/unit/repo/test_subcmds_gc.py +336 -0
- kanon_cli-2.0.0/tests/unit/repo/test_subcmds_grep.py +328 -0
- kanon_cli-2.0.0/tests/unit/repo/test_subcmds_help.py +131 -0
- kanon_cli-2.0.0/tests/unit/repo/test_subcmds_info.py +217 -0
- kanon_cli-2.0.0/tests/unit/repo/test_subcmds_init.py +373 -0
- kanon_cli-2.0.0/tests/unit/repo/test_subcmds_list.py +45 -0
- kanon_cli-2.0.0/tests/unit/repo/test_subcmds_manifest.py +210 -0
- kanon_cli-2.0.0/tests/unit/repo/test_subcmds_overview.py +45 -0
- kanon_cli-2.0.0/tests/unit/repo/test_subcmds_prune.py +45 -0
- kanon_cli-2.0.0/tests/unit/repo/test_subcmds_rebase.py +54 -0
- kanon_cli-2.0.0/tests/unit/repo/test_subcmds_selfupdate.py +45 -0
- kanon_cli-2.0.0/tests/unit/repo/test_subcmds_smartsync.py +45 -0
- kanon_cli-2.0.0/tests/unit/repo/test_subcmds_stage.py +41 -0
- kanon_cli-2.0.0/tests/unit/repo/test_subcmds_start.py +45 -0
- kanon_cli-2.0.0/tests/unit/repo/test_subcmds_status.py +45 -0
- kanon_cli-2.0.0/tests/unit/repo/test_subcmds_sync.py +1799 -0
- kanon_cli-2.0.0/tests/unit/repo/test_subcmds_upload.py +347 -0
- kanon_cli-2.0.0/tests/unit/repo/test_superproject_deep.py +930 -0
- kanon_cli-2.0.0/tests/unit/repo/test_sync_coverage_boost.py +1412 -0
- kanon_cli-2.0.0/tests/unit/repo/test_sync_deep.py +2509 -0
- kanon_cli-2.0.0/tests/unit/repo/test_sync_deep_boost.py +1193 -0
- kanon_cli-2.0.0/tests/unit/repo/test_sync_massive.py +734 -0
- kanon_cli-2.0.0/tests/unit/repo/test_upload_deep.py +927 -0
- kanon_cli-2.0.0/tests/unit/repo/test_version_consolidation.py +464 -0
- kanon_cli-2.0.0/tests/unit/repo/test_version_constraints.py +246 -0
- kanon_cli-2.0.0/tests/unit/repo/test_wheel_contents.py +376 -0
- kanon_cli-2.0.0/tests/unit/repo/test_wrapper.py +565 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_annotation_attributes.py +715 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_annotation_crossref.py +1151 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_annotation_happy.py +703 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_contactinfo_attributes.py +443 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_contactinfo_crossref.py +986 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_contactinfo_happy.py +566 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_copyfile_attributes.py +647 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_copyfile_crossref.py +999 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_copyfile_happy.py +680 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_default_attributes.py +1118 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_default_crossref.py +1040 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_default_happy.py +770 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_extend_project_attributes.py +766 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_extend_project_crossref.py +991 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_extend_project_happy.py +758 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_fault_malformed.py +551 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_fault_structural.py +626 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_include_attributes.py +749 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_include_crossref.py +1192 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_include_cycles.py +1007 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_include_happy.py +770 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_linkfile_attributes.py +762 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_linkfile_crossref.py +1003 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_linkfile_happy.py +782 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_manifest_attributes.py +1116 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_manifest_crossref.py +847 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_manifest_happy.py +807 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_manifest_server_attributes.py +843 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_manifest_server_crossref.py +1031 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_manifest_server_flow.py +709 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_manifest_server_happy.py +639 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_notice_attributes.py +660 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_notice_crossref.py +924 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_notice_happy.py +581 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_project_attributes.py +1221 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_project_crossref.py +985 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_project_happy.py +980 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_remote_attributes.py +973 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_remote_crossref.py +1027 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_remote_happy.py +827 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_remove_project_attributes.py +873 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_remove_project_crossref.py +1180 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_remove_project_happy.py +700 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_repo_hooks_attributes.py +520 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_repo_hooks_crossref.py +850 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_repo_hooks_happy.py +659 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_submanifest_attributes.py +923 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_submanifest_crossref.py +1070 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_submanifest_happy.py +700 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_superproject_attributes.py +616 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_superproject_crossref.py +867 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_superproject_flow.py +874 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xml_superproject_happy.py +675 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xmlbool.py +194 -0
- kanon_cli-2.0.0/tests/unit/repo/test_xmlint.py +541 -0
- kanon_cli-2.0.0/tests/unit/repo/test_yamllint_config.py +52 -0
- kanon_cli-2.0.0/tests/unit/test_accessed_at_coalescing.py +167 -0
- kanon_cli-2.0.0/tests/unit/test_add.py +1861 -0
- kanon_cli-2.0.0/tests/unit/test_add_collision.py +973 -0
- kanon_cli-2.0.0/tests/unit/test_add_zero_tags.py +146 -0
- kanon_cli-2.0.0/tests/unit/test_background_refresh.py +354 -0
- kanon_cli-2.0.0/tests/unit/test_bare_semver_to_tag.py +87 -0
- kanon_cli-2.0.0/tests/unit/test_bootstrap_deprecation.py +110 -0
- kanon_cli-2.0.0/tests/unit/test_cache.py +297 -0
- kanon_cli-2.0.0/tests/unit/test_cache_layout.py +409 -0
- kanon_cli-2.0.0/tests/unit/test_cache_ttl.py +188 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/tests/unit/test_catalog.py +143 -12
- kanon_cli-2.0.0/tests/unit/test_catalog_audit_check_parser.py +135 -0
- kanon_cli-2.0.0/tests/unit/test_catalog_audit_entry_uniqueness.py +445 -0
- kanon_cli-2.0.0/tests/unit/test_catalog_audit_framework.py +650 -0
- kanon_cli-2.0.0/tests/unit/test_catalog_audit_legacy_dir.py +311 -0
- kanon_cli-2.0.0/tests/unit/test_catalog_audit_metadata.py +631 -0
- kanon_cli-2.0.0/tests/unit/test_catalog_audit_project_tag_format.py +523 -0
- kanon_cli-2.0.0/tests/unit/test_catalog_audit_remote_url.py +582 -0
- kanon_cli-2.0.0/tests/unit/test_catalog_audit_source_name.py +493 -0
- kanon_cli-2.0.0/tests/unit/test_catalog_audit_strict.py +304 -0
- kanon_cli-2.0.0/tests/unit/test_catalog_audit_tag_format.py +708 -0
- kanon_cli-2.0.0/tests/unit/test_catalog_source_parsing.py +265 -0
- kanon_cli-2.0.0/tests/unit/test_ci_workflows.py +268 -0
- kanon_cli-2.0.0/tests/unit/test_clean.py +513 -0
- kanon_cli-2.0.0/tests/unit/test_clean_command.py +204 -0
- kanon_cli-2.0.0/tests/unit/test_cli.py +1767 -0
- kanon_cli-2.0.0/tests/unit/test_cli_args.py +426 -0
- kanon_cli-2.0.0/tests/unit/test_cli_help_format.py +137 -0
- kanon_cli-2.0.0/tests/unit/test_cli_json_stream_discipline.py +269 -0
- kanon_cli-2.0.0/tests/unit/test_complete_cached_catalogs.py +548 -0
- kanon_cli-2.0.0/tests/unit/test_complete_catalog_entries.py +767 -0
- kanon_cli-2.0.0/tests/unit/test_complete_catalog_versions.py +683 -0
- kanon_cli-2.0.0/tests/unit/test_complete_lockfile_names.py +676 -0
- kanon_cli-2.0.0/tests/unit/test_complete_project_versions.py +823 -0
- kanon_cli-2.0.0/tests/unit/test_complete_source_names.py +399 -0
- kanon_cli-2.0.0/tests/unit/test_completion.py +52 -0
- kanon_cli-2.0.0/tests/unit/test_completion_sanitization.py +192 -0
- kanon_cli-2.0.0/tests/unit/test_completion_subcommand.py +155 -0
- kanon_cli-2.0.0/tests/unit/test_concurrency.py +367 -0
- kanon_cli-2.0.0/tests/unit/test_conftest_scrubber.py +47 -0
- kanon_cli-2.0.0/tests/unit/test_constants.py +2266 -0
- kanon_cli-2.0.0/tests/unit/test_constants_doctor_subcheck.py +164 -0
- kanon_cli-2.0.0/tests/unit/test_constants_install_after_add.py +179 -0
- kanon_cli-2.0.0/tests/unit/test_constants_outdated_refs_tags.py +228 -0
- kanon_cli-2.0.0/tests/unit/test_constants_why_lockfile.py +121 -0
- kanon_cli-2.0.0/tests/unit/test_coverage_gaps.py +122 -0
- kanon_cli-2.0.0/tests/unit/test_derive_source_name.py +363 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/tests/unit/test_discover.py +2 -2
- kanon_cli-2.0.0/tests/unit/test_discover_source_names_missing_url.py +83 -0
- kanon_cli-2.0.0/tests/unit/test_docs_embedded_architecture.py +107 -0
- kanon_cli-2.0.0/tests/unit/test_docs_remaining_and_catalog.py +177 -0
- kanon_cli-2.0.0/tests/unit/test_doctor.py +452 -0
- kanon_cli-2.0.0/tests/unit/test_doctor_cache_flags.py +1035 -0
- kanon_cli-2.0.0/tests/unit/test_doctor_completion_errors.py +471 -0
- kanon_cli-2.0.0/tests/unit/test_doctor_completion_staleness.py +476 -0
- kanon_cli-2.0.0/tests/unit/test_doctor_consistency.py +596 -0
- kanon_cli-2.0.0/tests/unit/test_doctor_coverage_gaps.py +881 -0
- kanon_cli-2.0.0/tests/unit/test_doctor_effective_source.py +312 -0
- kanon_cli-2.0.0/tests/unit/test_doctor_remote_reachability.py +1127 -0
- kanon_cli-2.0.0/tests/unit/test_env_isolation.py +28 -0
- kanon_cli-2.0.0/tests/unit/test_envsubst_subcommand.py +281 -0
- kanon_cli-2.0.0/tests/unit/test_include_walker.py +394 -0
- kanon_cli-2.0.0/tests/unit/test_install.py +937 -0
- kanon_cli-2.0.0/tests/unit/test_install_command.py +369 -0
- kanon_cli-2.0.0/tests/unit/test_install_conflict_detection.py +396 -0
- kanon_cli-2.0.0/tests/unit/test_install_https_enforcement.py +275 -0
- kanon_cli-2.0.0/tests/unit/test_install_placeholder_validation.py +158 -0
- kanon_cli-2.0.0/tests/unit/test_install_reconcile_decision.py +124 -0
- kanon_cli-2.0.0/tests/unit/test_install_refresh_lock.py +426 -0
- kanon_cli-2.0.0/tests/unit/test_install_refresh_lock_source.py +764 -0
- kanon_cli-2.0.0/tests/unit/test_install_state_matrix.py +868 -0
- kanon_cli-2.0.0/tests/unit/test_install_strict_flags.py +937 -0
- kanon_cli-2.0.0/tests/unit/test_install_strict_lock_orphan_naming.py +169 -0
- kanon_cli-2.0.0/tests/unit/test_integration_testing_doc_manifest_paths.py +306 -0
- kanon_cli-2.0.0/tests/unit/test_integration_testing_doc_s2_t14.py +74 -0
- kanon_cli-2.0.0/tests/unit/test_integration_testing_doc_s2_t4.py +78 -0
- kanon_cli-2.0.0/tests/unit/test_integration_testing_doc_s2_t5.py +97 -0
- kanon_cli-2.0.0/tests/unit/test_integration_testing_doc_s2_t6.py +57 -0
- kanon_cli-2.0.0/tests/unit/test_integration_testing_doc_s2_t7.py +60 -0
- kanon_cli-2.0.0/tests/unit/test_integration_testing_doc_s2_tier1.py +229 -0
- kanon_cli-2.0.0/tests/unit/test_kanon_hash.py +733 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/tests/unit/test_kanonenv.py +37 -0
- kanon_cli-2.0.0/tests/unit/test_kanonenv_advanced_edge_cases.py +160 -0
- kanon_cli-2.0.0/tests/unit/test_kanonenv_edge_cases.py +204 -0
- kanon_cli-2.0.0/tests/unit/test_levenshtein.py +102 -0
- kanon_cli-2.0.0/tests/unit/test_list.py +530 -0
- kanon_cli-2.0.0/tests/unit/test_list_all_versions.py +503 -0
- kanon_cli-2.0.0/tests/unit/test_list_coverage_gaps.py +583 -0
- kanon_cli-2.0.0/tests/unit/test_list_detail.py +453 -0
- kanon_cli-2.0.0/tests/unit/test_list_filter.py +961 -0
- kanon_cli-2.0.0/tests/unit/test_list_format_json.py +845 -0
- kanon_cli-2.0.0/tests/unit/test_list_tree.py +1314 -0
- kanon_cli-2.0.0/tests/unit/test_lock_file_path.py +120 -0
- kanon_cli-2.0.0/tests/unit/test_lockfile.py +975 -0
- kanon_cli-2.0.0/tests/unit/test_lockfile_coverage_gaps.py +324 -0
- kanon_cli-2.0.0/tests/unit/test_lockfile_schema_migration.py +353 -0
- kanon_cli-2.0.0/tests/unit/test_manifest.py +515 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/tests/unit/test_marketplace.py +332 -11
- kanon_cli-2.0.0/tests/unit/test_marketplace_install.py +182 -0
- kanon_cli-2.0.0/tests/unit/test_marketplace_non_plugin_skip.py +123 -0
- kanon_cli-2.0.0/tests/unit/test_metadata.py +575 -0
- kanon_cli-2.0.0/tests/unit/test_midtoken_splitter.py +360 -0
- kanon_cli-2.0.0/tests/unit/test_outdated.py +736 -0
- kanon_cli-2.0.0/tests/unit/test_outdated_branch_pinned.py +803 -0
- kanon_cli-2.0.0/tests/unit/test_outdated_fail_on_upgrade.py +441 -0
- kanon_cli-2.0.0/tests/unit/test_outdated_format_json.py +537 -0
- kanon_cli-2.0.0/tests/unit/test_pep440_filter.py +135 -0
- kanon_cli-2.0.0/tests/unit/test_pre_push_hook.py +296 -0
- kanon_cli-2.0.0/tests/unit/test_preamble.py +125 -0
- kanon_cli-2.0.0/tests/unit/test_preamble_semver_tags.py +138 -0
- kanon_cli-2.0.0/tests/unit/test_provider_agnosticism.py +412 -0
- kanon_cli-2.0.0/tests/unit/test_pyproject_build_config.py +116 -0
- kanon_cli-2.0.0/tests/unit/test_remote_url.py +271 -0
- kanon_cli-2.0.0/tests/unit/test_remove.py +861 -0
- kanon_cli-2.0.0/tests/unit/test_remove_dry_run.py +320 -0
- kanon_cli-2.0.0/tests/unit/test_remove_force.py +314 -0
- kanon_cli-2.0.0/tests/unit/test_remove_line_endings.py +464 -0
- kanon_cli-2.0.0/tests/unit/test_repo.py +51 -0
- kanon_cli-2.0.0/tests/unit/test_repo_abspath.py +129 -0
- kanon_cli-2.0.0/tests/unit/test_repo_command.py +221 -0
- kanon_cli-2.0.0/tests/unit/test_resolve_catalog_dir.py +68 -0
- kanon_cli-2.0.0/tests/unit/test_revision_resolve.py +190 -0
- kanon_cli-2.0.0/tests/unit/test_rx_catalog_sub_repo.py +250 -0
- kanon_cli-2.0.0/tests/unit/test_sanitize.py +120 -0
- kanon_cli-2.0.0/tests/unit/test_url.py +234 -0
- kanon_cli-2.0.0/tests/unit/test_validate.py +68 -0
- kanon_cli-2.0.0/tests/unit/test_validate_command.py +110 -0
- kanon_cli-2.0.0/tests/unit/test_validate_metadata.py +530 -0
- kanon_cli-2.0.0/tests/unit/test_version.py +667 -0
- kanon_cli-2.0.0/tests/unit/test_version_constraint_errors.py +63 -0
- kanon_cli-2.0.0/tests/unit/test_why.py +1421 -0
- kanon_cli-2.0.0/tests/unit/test_why_ambiguity.py +769 -0
- kanon_cli-2.0.0/tests/unit/test_why_format_json.py +972 -0
- kanon_cli-2.0.0/tests/unit/test_why_suggestions.py +375 -0
- kanon_cli-2.0.0/uv.lock +610 -0
- kanon_cli-1.2.0/.github/workflows/pr-validation.yml +0 -152
- kanon_cli-1.2.0/.gitignore +0 -20
- kanon_cli-1.2.0/CHANGELOG.md +0 -657
- kanon_cli-1.2.0/PKG-INFO +0 -843
- kanon_cli-1.2.0/README.md +0 -823
- kanon_cli-1.2.0/docs/configuration.md +0 -60
- kanon_cli-1.2.0/docs/creating-manifest-repos.md +0 -171
- kanon_cli-1.2.0/docs/how-it-works.md +0 -74
- kanon_cli-1.2.0/docs/integration-testing.md +0 -1818
- kanon_cli-1.2.0/docs/lifecycle.md +0 -62
- kanon_cli-1.2.0/docs/version-resolution.md +0 -134
- kanon_cli-1.2.0/src/kanon_cli/catalog/kanon/.kanon +0 -35
- kanon_cli-1.2.0/src/kanon_cli/catalog/kanon/kanon-readme.md +0 -155
- kanon_cli-1.2.0/src/kanon_cli/cli.py +0 -67
- kanon_cli-1.2.0/src/kanon_cli/commands/bootstrap.py +0 -70
- kanon_cli-1.2.0/src/kanon_cli/commands/install.py +0 -213
- kanon_cli-1.2.0/src/kanon_cli/commands/validate.py +0 -133
- kanon_cli-1.2.0/src/kanon_cli/constants.py +0 -32
- kanon_cli-1.2.0/src/kanon_cli/core/bootstrap.py +0 -107
- kanon_cli-1.2.0/src/kanon_cli/core/clean.py +0 -111
- kanon_cli-1.2.0/src/kanon_cli/core/install.py +0 -349
- kanon_cli-1.2.0/src/kanon_cli/version.py +0 -189
- kanon_cli-1.2.0/tests/conftest.py +0 -37
- kanon_cli-1.2.0/tests/functional/test_cli_entry_point.py +0 -128
- kanon_cli-1.2.0/tests/functional/test_install_lifecycle.py +0 -120
- kanon_cli-1.2.0/tests/unit/test_bootstrap.py +0 -126
- kanon_cli-1.2.0/tests/unit/test_clean.py +0 -110
- kanon_cli-1.2.0/tests/unit/test_clean_command.py +0 -97
- kanon_cli-1.2.0/tests/unit/test_cli.py +0 -67
- kanon_cli-1.2.0/tests/unit/test_install.py +0 -217
- kanon_cli-1.2.0/tests/unit/test_install_command.py +0 -352
- kanon_cli-1.2.0/tests/unit/test_validate_command.py +0 -48
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/.claude/settings.json +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/.devcontainer/.devcontainer.postcreate.sh +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/.devcontainer/VERSION +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/.devcontainer/catalog-entry.json +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/.devcontainer/devcontainer-functions.sh +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/.devcontainer/devcontainer.json +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/.devcontainer/fix-line-endings.py +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/.devcontainer/nix-family-os/README.md +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/.devcontainer/nix-family-os/tinyproxy-daemon.sh +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/.devcontainer/nix-family-os/tinyproxy.conf.template +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/.devcontainer/postcreate-wrapper.sh +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/.devcontainer/project-setup.sh +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/.devcontainer/wsl-family-os/README.md +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/.devcontainer/wsl-family-os/tinyproxy-daemon.sh +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/.devcontainer/wsl-family-os/tinyproxy.conf.template +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/.github/CODEOWNERS +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/.github/workflows/codeql-analysis.yml +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/.github/workflows/publish.yml +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/.tool-versions +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/.yamllint +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/CLAUDE.md +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/LICENSE +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/docs/claude-marketplaces-guide.md +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/docs/creating-packages.md +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/git-hooks/pre-commit +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/requirements.txt +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/src/kanon_cli/__main__.py +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/src/kanon_cli/commands/__init__.py +0 -0
- {kanon_cli-1.2.0/src/kanon_cli/core → kanon_cli-2.0.0/src/kanon_cli/completions}/__init__.py +0 -0
- {kanon_cli-1.2.0/tests → kanon_cli-2.0.0/src/kanon_cli/core}/__init__.py +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/src/kanon_cli/core/marketplace_validator.py +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/src/kanon_cli/core/xml_validator.py +0 -0
- {kanon_cli-1.2.0/tests/functional → kanon_cli-2.0.0/tests}/__init__.py +0 -0
- {kanon_cli-1.2.0/tests/unit → kanon_cli-2.0.0/tests/functional}/__init__.py +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/tests/functional/test_clean_lifecycle.py +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/tests/functional/test_validate_lifecycle.py +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/tests/unit/test_marketplace_validator.py +0 -0
- {kanon_cli-1.2.0 → kanon_cli-2.0.0}/tests/unit/test_xml_validator.py +0 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
name: Setup kanon CI environment
|
|
2
|
+
description: |
|
|
3
|
+
Composite action shared by every job in pr-validation.yml and
|
|
4
|
+
main-validation.yml. Handles checkout, optional simulate-merge,
|
|
5
|
+
Python install, asdf bootstrap (plus plugin install per
|
|
6
|
+
.tool-versions), pip dependency cache, dev dependency install via
|
|
7
|
+
`make install-dev`, and uv install. Each parallel CI job calls this
|
|
8
|
+
action once before invoking its own singular Make target / pytest
|
|
9
|
+
invocation, so the per-job step list stays minimal and the setup
|
|
10
|
+
drift between jobs is impossible.
|
|
11
|
+
|
|
12
|
+
inputs:
|
|
13
|
+
base-ref:
|
|
14
|
+
description: >-
|
|
15
|
+
Base ref to simulate-merge against. Leave empty to skip the
|
|
16
|
+
simulate-merge step (e.g. for push-to-main runs); set to the
|
|
17
|
+
pull-request base ref for pull_request runs.
|
|
18
|
+
required: false
|
|
19
|
+
default: ''
|
|
20
|
+
head-sha:
|
|
21
|
+
description: >-
|
|
22
|
+
Head SHA to merge into the base ref. Required when base-ref is
|
|
23
|
+
non-empty; ignored otherwise.
|
|
24
|
+
required: false
|
|
25
|
+
default: ''
|
|
26
|
+
|
|
27
|
+
runs:
|
|
28
|
+
using: composite
|
|
29
|
+
steps:
|
|
30
|
+
# NOTE: callers MUST run `actions/checkout@v6` BEFORE `uses: ./...setup-kanon`
|
|
31
|
+
# because GitHub Actions resolves the composite action path against the
|
|
32
|
+
# runner's working directory; without a prior checkout the action file
|
|
33
|
+
# is not yet on disk. Every job in pr-validation.yml / main-validation.yml
|
|
34
|
+
# does its own `actions/checkout@v6` step explicitly.
|
|
35
|
+
# Configure a global git identity unconditionally so the runner
|
|
36
|
+
# environment is identical for pull_request and push-to-main runs.
|
|
37
|
+
# Previously this was nested inside the `if: inputs.base-ref != ''`
|
|
38
|
+
# Simulate-merge step, which fires only on PR runs; push-to-main
|
|
39
|
+
# runs ran with no global identity, so any test that depended on
|
|
40
|
+
# one passed on PR validation but failed on Main Branch Validation.
|
|
41
|
+
# Tests should not depend on this baseline (each test fixture
|
|
42
|
+
# configures identity locally on its own repos) but having a
|
|
43
|
+
# consistent environment across both workflows prevents the same
|
|
44
|
+
# class of divergence from masking future test fixture bugs at PR
|
|
45
|
+
# time.
|
|
46
|
+
- name: Configure default git identity
|
|
47
|
+
shell: bash
|
|
48
|
+
run: |
|
|
49
|
+
git config --global user.name "GitHub Actions"
|
|
50
|
+
git config --global user.email "actions@github.com"
|
|
51
|
+
# tests/integration/test_complete_catalog_entries.py and
|
|
52
|
+
# tests/integration/test_background_refresh.py create fresh git
|
|
53
|
+
# repos via `git init` and refer to the result by the symbolic ref
|
|
54
|
+
# `main` (e.g. `KANON_CATALOG_SOURCE=file://<repo>@main`). On the
|
|
55
|
+
# GitHub-hosted ubuntu-* runners `init.defaultBranch` is `master`
|
|
56
|
+
# unless explicitly overridden, so without this config the fresh
|
|
57
|
+
# repos have only `master` and the `@main` lookup returns empty.
|
|
58
|
+
# The kanon devcontainer already sets this, which is why these
|
|
59
|
+
# tests pass locally but fail in CI.
|
|
60
|
+
git config --global init.defaultBranch main
|
|
61
|
+
|
|
62
|
+
- name: Simulate merge
|
|
63
|
+
if: inputs.base-ref != ''
|
|
64
|
+
shell: bash
|
|
65
|
+
run: |
|
|
66
|
+
git fetch origin ${{ inputs.base-ref }}
|
|
67
|
+
git checkout -b pr-validation origin/${{ inputs.base-ref }}
|
|
68
|
+
git merge --no-commit --no-ff ${{ inputs.head-sha }}
|
|
69
|
+
|
|
70
|
+
- name: Setup Python
|
|
71
|
+
uses: actions/setup-python@v6
|
|
72
|
+
with:
|
|
73
|
+
python-version: '3.14'
|
|
74
|
+
|
|
75
|
+
- name: Cache ASDF installation
|
|
76
|
+
uses: actions/cache@v5
|
|
77
|
+
with:
|
|
78
|
+
path: ~/.asdf
|
|
79
|
+
key: ${{ runner.os }}-asdf-v0.15.0-${{ hashFiles('.tool-versions') }}
|
|
80
|
+
restore-keys: |
|
|
81
|
+
${{ runner.os }}-asdf-v0.15.0-
|
|
82
|
+
|
|
83
|
+
- name: Install ASDF
|
|
84
|
+
shell: bash
|
|
85
|
+
run: |
|
|
86
|
+
if [ ! -d ~/.asdf ]; then
|
|
87
|
+
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.15.0
|
|
88
|
+
fi
|
|
89
|
+
echo "$HOME/.asdf/bin" >> $GITHUB_PATH
|
|
90
|
+
echo "$HOME/.asdf/shims" >> $GITHUB_PATH
|
|
91
|
+
source $HOME/.asdf/asdf.sh
|
|
92
|
+
|
|
93
|
+
- name: Install ASDF plugins and tools
|
|
94
|
+
shell: bash
|
|
95
|
+
run: |
|
|
96
|
+
cd $GITHUB_WORKSPACE
|
|
97
|
+
source $HOME/.asdf/asdf.sh
|
|
98
|
+
cut -d' ' -f1 .tool-versions | xargs -I{} asdf plugin add {} || true
|
|
99
|
+
asdf plugin remove python 2>/dev/null || true
|
|
100
|
+
asdf install
|
|
101
|
+
asdf reshim
|
|
102
|
+
|
|
103
|
+
- name: Cache Python dependencies
|
|
104
|
+
uses: actions/cache@v5
|
|
105
|
+
with:
|
|
106
|
+
path: |
|
|
107
|
+
~/.cache/pip
|
|
108
|
+
~/.local/lib/python*/site-packages
|
|
109
|
+
key: ${{ runner.os }}-pip-${{ hashFiles('requirements-dev.txt', 'pyproject.toml') }}
|
|
110
|
+
restore-keys: |
|
|
111
|
+
${{ runner.os }}-pip-
|
|
112
|
+
|
|
113
|
+
- name: Install zsh (for shell-completion integration tests)
|
|
114
|
+
shell: bash
|
|
115
|
+
run: |
|
|
116
|
+
# tests/integration/test_completion_zsh.py,
|
|
117
|
+
# tests/integration/test_preamble_zsh.py, and
|
|
118
|
+
# tests/integration/test_midtoken_zsh.py shell out to a real zsh to
|
|
119
|
+
# exercise the dynamic completion machinery. The kanon devcontainer
|
|
120
|
+
# ships with zsh, but the GitHub Actions ubuntu-latest runners do
|
|
121
|
+
# not; install it explicitly so the zsh suite has the binary it
|
|
122
|
+
# asserts on (`assert shutil.which("zsh") is not None`).
|
|
123
|
+
set -euo pipefail
|
|
124
|
+
if ! command -v zsh >/dev/null 2>&1; then
|
|
125
|
+
sudo apt-get update -y
|
|
126
|
+
sudo apt-get install -y --no-install-recommends zsh
|
|
127
|
+
fi
|
|
128
|
+
zsh --version
|
|
129
|
+
|
|
130
|
+
- name: Install dependencies
|
|
131
|
+
shell: bash
|
|
132
|
+
run: |
|
|
133
|
+
pip install --upgrade pip
|
|
134
|
+
make install-dev
|
|
135
|
+
|
|
136
|
+
- name: Install uv
|
|
137
|
+
# `tests/unit/repo/test_wheel_contents.py`,
|
|
138
|
+
# `tests/integration/test_wheel_e2e.py`, and
|
|
139
|
+
# `tests/integration/test_ci_validation.py` shell out to
|
|
140
|
+
# `uv build` to produce the wheel under test; uv must be on
|
|
141
|
+
# PATH for any job that runs those suites (including the
|
|
142
|
+
# full-suite regression job that runs every test together).
|
|
143
|
+
uses: astral-sh/setup-uv@v6
|
|
@@ -13,81 +13,90 @@ concurrency:
|
|
|
13
13
|
cancel-in-progress: false
|
|
14
14
|
|
|
15
15
|
jobs:
|
|
16
|
-
|
|
17
|
-
name:
|
|
16
|
+
pre-commit:
|
|
17
|
+
name: Pre-commit hooks
|
|
18
18
|
if: ${{ github.actor != 'caylent-platform-bot[bot]' }}
|
|
19
19
|
runs-on: ubuntu-24.04
|
|
20
|
-
|
|
21
20
|
steps:
|
|
22
21
|
- name: Checkout code
|
|
23
22
|
uses: actions/checkout@v6
|
|
24
23
|
with:
|
|
25
24
|
fetch-depth: 0
|
|
26
|
-
|
|
27
|
-
- name:
|
|
28
|
-
uses: actions/setup-python@v6
|
|
29
|
-
with:
|
|
30
|
-
python-version: '3.14'
|
|
31
|
-
|
|
32
|
-
- name: Cache ASDF installation
|
|
33
|
-
uses: actions/cache@v5
|
|
34
|
-
with:
|
|
35
|
-
path: ~/.asdf
|
|
36
|
-
key: ${{ runner.os }}-asdf-v0.15.0-${{ hashFiles('.tool-versions') }}
|
|
37
|
-
restore-keys: |
|
|
38
|
-
${{ runner.os }}-asdf-v0.15.0-
|
|
39
|
-
|
|
40
|
-
- name: Install ASDF
|
|
41
|
-
run: |
|
|
42
|
-
if [ ! -d ~/.asdf ]; then
|
|
43
|
-
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.15.0
|
|
44
|
-
fi
|
|
45
|
-
echo "$HOME/.asdf/bin" >> $GITHUB_PATH
|
|
46
|
-
echo "$HOME/.asdf/shims" >> $GITHUB_PATH
|
|
47
|
-
source $HOME/.asdf/asdf.sh
|
|
25
|
+
- uses: ./.github/actions/setup-kanon
|
|
26
|
+
- name: Run pre-commit checks
|
|
48
27
|
shell: bash
|
|
49
|
-
|
|
50
|
-
- name: Install ASDF plugins and tools
|
|
51
28
|
run: |
|
|
52
|
-
cd $GITHUB_WORKSPACE
|
|
53
29
|
source $HOME/.asdf/asdf.sh
|
|
54
|
-
|
|
55
|
-
asdf plugin remove python 2>/dev/null || true
|
|
56
|
-
asdf install
|
|
57
|
-
asdf reshim
|
|
58
|
-
shell: bash
|
|
30
|
+
make pre-commit-check
|
|
59
31
|
|
|
60
|
-
|
|
61
|
-
|
|
32
|
+
lint-check:
|
|
33
|
+
name: Lint (ruff check)
|
|
34
|
+
if: ${{ github.actor != 'caylent-platform-bot[bot]' }}
|
|
35
|
+
runs-on: ubuntu-24.04
|
|
36
|
+
steps:
|
|
37
|
+
- name: Checkout code
|
|
38
|
+
uses: actions/checkout@v6
|
|
62
39
|
with:
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
key: ${{ runner.os }}-pip-${{ hashFiles('requirements-dev.txt', 'pyproject.toml') }}
|
|
67
|
-
restore-keys: |
|
|
68
|
-
${{ runner.os }}-pip-
|
|
69
|
-
|
|
70
|
-
- name: Install dependencies
|
|
71
|
-
run: |
|
|
72
|
-
pip install --upgrade pip
|
|
73
|
-
make install-dev
|
|
40
|
+
fetch-depth: 0
|
|
41
|
+
- uses: ./.github/actions/setup-kanon
|
|
42
|
+
- name: Run ruff check
|
|
74
43
|
shell: bash
|
|
44
|
+
run: make lint-check
|
|
75
45
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
46
|
+
format-check:
|
|
47
|
+
name: Format check (ruff format --check)
|
|
48
|
+
if: ${{ github.actor != 'caylent-platform-bot[bot]' }}
|
|
49
|
+
runs-on: ubuntu-24.04
|
|
50
|
+
steps:
|
|
51
|
+
- name: Checkout code
|
|
52
|
+
uses: actions/checkout@v6
|
|
53
|
+
with:
|
|
54
|
+
fetch-depth: 0
|
|
55
|
+
- uses: ./.github/actions/setup-kanon
|
|
56
|
+
- name: Run ruff format --check
|
|
80
57
|
shell: bash
|
|
58
|
+
run: make format-check
|
|
81
59
|
|
|
82
|
-
|
|
83
|
-
|
|
60
|
+
security-scan:
|
|
61
|
+
name: Security scan (bandit)
|
|
62
|
+
if: ${{ github.actor != 'caylent-platform-bot[bot]' }}
|
|
63
|
+
runs-on: ubuntu-24.04
|
|
64
|
+
steps:
|
|
65
|
+
- name: Checkout code
|
|
66
|
+
uses: actions/checkout@v6
|
|
67
|
+
with:
|
|
68
|
+
fetch-depth: 0
|
|
69
|
+
- uses: ./.github/actions/setup-kanon
|
|
70
|
+
- name: Run bandit
|
|
84
71
|
shell: bash
|
|
72
|
+
run: make security-scan
|
|
85
73
|
|
|
86
|
-
|
|
87
|
-
|
|
74
|
+
build:
|
|
75
|
+
name: Build wheel
|
|
76
|
+
if: ${{ github.actor != 'caylent-platform-bot[bot]' }}
|
|
77
|
+
runs-on: ubuntu-24.04
|
|
78
|
+
steps:
|
|
79
|
+
- name: Checkout code
|
|
80
|
+
uses: actions/checkout@v6
|
|
81
|
+
with:
|
|
82
|
+
fetch-depth: 0
|
|
83
|
+
- uses: ./.github/actions/setup-kanon
|
|
84
|
+
- name: Build distribution
|
|
88
85
|
shell: bash
|
|
86
|
+
run: make publish
|
|
89
87
|
|
|
90
|
-
|
|
88
|
+
unit-tests:
|
|
89
|
+
name: Unit tests (with coverage gate)
|
|
90
|
+
if: ${{ github.actor != 'caylent-platform-bot[bot]' }}
|
|
91
|
+
runs-on: ubuntu-24.04
|
|
92
|
+
steps:
|
|
93
|
+
- name: Checkout code
|
|
94
|
+
uses: actions/checkout@v6
|
|
95
|
+
with:
|
|
96
|
+
fetch-depth: 0
|
|
97
|
+
- uses: ./.github/actions/setup-kanon
|
|
98
|
+
- name: Run unit tests with 90% coverage gate
|
|
99
|
+
shell: bash
|
|
91
100
|
run: |
|
|
92
101
|
python -m pytest -m unit --cov=kanon_cli --cov-report=term-missing
|
|
93
102
|
coverage json
|
|
@@ -97,16 +106,62 @@ jobs:
|
|
|
97
106
|
echo "Error: Code coverage is below 90% threshold ($coverage_percent%)"
|
|
98
107
|
exit 1
|
|
99
108
|
fi
|
|
109
|
+
|
|
110
|
+
integration-tests:
|
|
111
|
+
name: Integration tests
|
|
112
|
+
if: ${{ github.actor != 'caylent-platform-bot[bot]' }}
|
|
113
|
+
runs-on: ubuntu-24.04
|
|
114
|
+
steps:
|
|
115
|
+
- name: Checkout code
|
|
116
|
+
uses: actions/checkout@v6
|
|
117
|
+
with:
|
|
118
|
+
fetch-depth: 0
|
|
119
|
+
- uses: ./.github/actions/setup-kanon
|
|
120
|
+
- name: Run integration tests
|
|
100
121
|
shell: bash
|
|
122
|
+
run: python -m pytest -m integration
|
|
101
123
|
|
|
124
|
+
functional-tests:
|
|
125
|
+
name: Functional tests
|
|
126
|
+
if: ${{ github.actor != 'caylent-platform-bot[bot]' }}
|
|
127
|
+
runs-on: ubuntu-24.04
|
|
128
|
+
steps:
|
|
129
|
+
- name: Checkout code
|
|
130
|
+
uses: actions/checkout@v6
|
|
131
|
+
with:
|
|
132
|
+
fetch-depth: 0
|
|
133
|
+
- uses: ./.github/actions/setup-kanon
|
|
102
134
|
- name: Run functional tests
|
|
135
|
+
shell: bash
|
|
103
136
|
run: make test-functional
|
|
137
|
+
|
|
138
|
+
scenario-tests:
|
|
139
|
+
name: Scenario tests (docs/integration-testing.md)
|
|
140
|
+
if: ${{ github.actor != 'caylent-platform-bot[bot]' }}
|
|
141
|
+
runs-on: ubuntu-24.04
|
|
142
|
+
steps:
|
|
143
|
+
- name: Checkout code
|
|
144
|
+
uses: actions/checkout@v6
|
|
145
|
+
with:
|
|
146
|
+
fetch-depth: 0
|
|
147
|
+
- uses: ./.github/actions/setup-kanon
|
|
148
|
+
- name: Run scenario tests
|
|
104
149
|
shell: bash
|
|
150
|
+
run: make test-scenarios
|
|
105
151
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
152
|
+
full-suite-regression:
|
|
153
|
+
name: Full suite regression (cross-suite isolation guard)
|
|
154
|
+
if: ${{ github.actor != 'caylent-platform-bot[bot]' }}
|
|
155
|
+
runs-on: ubuntu-24.04
|
|
156
|
+
steps:
|
|
157
|
+
- name: Checkout code
|
|
158
|
+
uses: actions/checkout@v6
|
|
159
|
+
with:
|
|
160
|
+
fetch-depth: 0
|
|
161
|
+
- uses: ./.github/actions/setup-kanon
|
|
162
|
+
- name: Run the full suite together
|
|
109
163
|
shell: bash
|
|
164
|
+
run: make test
|
|
110
165
|
|
|
111
166
|
codeql:
|
|
112
167
|
name: CodeQL Analysis
|
|
@@ -134,7 +189,18 @@ jobs:
|
|
|
134
189
|
manual-approval:
|
|
135
190
|
name: Manual QA Approval
|
|
136
191
|
if: ${{ github.actor != 'caylent-platform-bot[bot]' }}
|
|
137
|
-
needs:
|
|
192
|
+
needs:
|
|
193
|
+
- pre-commit
|
|
194
|
+
- lint-check
|
|
195
|
+
- format-check
|
|
196
|
+
- security-scan
|
|
197
|
+
- build
|
|
198
|
+
- unit-tests
|
|
199
|
+
- integration-tests
|
|
200
|
+
- functional-tests
|
|
201
|
+
- scenario-tests
|
|
202
|
+
- full-suite-regression
|
|
203
|
+
- codeql
|
|
138
204
|
runs-on: ubuntu-24.04
|
|
139
205
|
environment:
|
|
140
206
|
name: qa-approval
|
|
@@ -142,6 +208,7 @@ jobs:
|
|
|
142
208
|
|
|
143
209
|
steps:
|
|
144
210
|
- name: QA Approval
|
|
211
|
+
shell: bash
|
|
145
212
|
run: echo "QA has been approved"
|
|
146
213
|
|
|
147
214
|
create-release:
|
|
@@ -180,6 +247,7 @@ jobs:
|
|
|
180
247
|
${{ runner.os }}-asdf-v0.15.0-
|
|
181
248
|
|
|
182
249
|
- name: Install ASDF
|
|
250
|
+
shell: bash
|
|
183
251
|
run: |
|
|
184
252
|
if [ ! -d ~/.asdf ]; then
|
|
185
253
|
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.15.0
|
|
@@ -187,9 +255,9 @@ jobs:
|
|
|
187
255
|
echo "$HOME/.asdf/bin" >> $GITHUB_PATH
|
|
188
256
|
echo "$HOME/.asdf/shims" >> $GITHUB_PATH
|
|
189
257
|
source $HOME/.asdf/asdf.sh
|
|
190
|
-
shell: bash
|
|
191
258
|
|
|
192
259
|
- name: Install ASDF plugins and tools
|
|
260
|
+
shell: bash
|
|
193
261
|
run: |
|
|
194
262
|
cd $GITHUB_WORKSPACE
|
|
195
263
|
source $HOME/.asdf/asdf.sh
|
|
@@ -197,7 +265,6 @@ jobs:
|
|
|
197
265
|
asdf plugin remove python 2>/dev/null || true
|
|
198
266
|
asdf install
|
|
199
267
|
asdf reshim
|
|
200
|
-
shell: bash
|
|
201
268
|
|
|
202
269
|
- name: Cache Python dependencies for release
|
|
203
270
|
uses: actions/cache@v5
|
|
@@ -211,15 +278,16 @@ jobs:
|
|
|
211
278
|
${{ runner.os }}-pip-
|
|
212
279
|
|
|
213
280
|
- name: Install dependencies
|
|
281
|
+
shell: bash
|
|
214
282
|
run: |
|
|
215
283
|
pip install --upgrade pip
|
|
216
284
|
make install-dev
|
|
217
|
-
shell: bash
|
|
218
285
|
|
|
219
286
|
- name: Compute next version
|
|
220
287
|
id: semantic-release
|
|
221
288
|
env:
|
|
222
289
|
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
|
|
290
|
+
shell: bash
|
|
223
291
|
run: |
|
|
224
292
|
NEW_VERSION=$(python -m semantic_release version --print | sed 's/^v//')
|
|
225
293
|
echo "New version: $NEW_VERSION"
|
|
@@ -229,11 +297,11 @@ jobs:
|
|
|
229
297
|
echo "Current version: $NEW_VERSION"
|
|
230
298
|
fi
|
|
231
299
|
echo "version=$NEW_VERSION" >> "$GITHUB_OUTPUT"
|
|
232
|
-
shell: bash
|
|
233
300
|
|
|
234
301
|
- name: Generate changelog and update version files
|
|
235
302
|
env:
|
|
236
303
|
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
|
|
304
|
+
shell: bash
|
|
237
305
|
run: |
|
|
238
306
|
python -m semantic_release version --no-push --no-vcs-release --no-commit
|
|
239
307
|
|
|
@@ -246,12 +314,12 @@ jobs:
|
|
|
246
314
|
sed -i 's/[[:space:]]*$//' CHANGELOG.md pyproject.toml src/kanon_cli/__init__.py
|
|
247
315
|
|
|
248
316
|
rm -rf dist/ build/ src/kanon_cli.egg-info/
|
|
249
|
-
shell: bash
|
|
250
317
|
|
|
251
318
|
- name: Commit changelog and version bump
|
|
252
319
|
id: commit-changes
|
|
253
320
|
env:
|
|
254
321
|
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
|
|
322
|
+
shell: bash
|
|
255
323
|
run: |
|
|
256
324
|
VERSION=$(grep '^version = ' pyproject.toml | sed 's/.*version = "\([^"]*\)".*/\1/')
|
|
257
325
|
echo "VERSION: $VERSION"
|
|
@@ -275,7 +343,7 @@ jobs:
|
|
|
275
343
|
echo "$STAGED"
|
|
276
344
|
|
|
277
345
|
if [[ -z "$STAGED" ]]; then
|
|
278
|
-
echo "No file changes detected
|
|
346
|
+
echo "No file changes detected -- no version bump needed. Skipping release."
|
|
279
347
|
echo "skip_release=true" >> "$GITHUB_OUTPUT"
|
|
280
348
|
exit 0
|
|
281
349
|
fi
|
|
@@ -297,12 +365,12 @@ jobs:
|
|
|
297
365
|
|
|
298
366
|
gh pr merge ${PR_URL} --admin --merge
|
|
299
367
|
echo "Pull request merged successfully"
|
|
300
|
-
shell: bash
|
|
301
368
|
|
|
302
369
|
- name: Wait for PR to merge and create Git tag
|
|
303
370
|
if: steps.commit-changes.outputs.skip_release != 'true'
|
|
304
371
|
env:
|
|
305
372
|
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
|
|
373
|
+
shell: bash
|
|
306
374
|
run: |
|
|
307
375
|
set -euo pipefail
|
|
308
376
|
|
|
@@ -341,13 +409,12 @@ jobs:
|
|
|
341
409
|
|
|
342
410
|
echo "Cleaning up release branch: release-$NEW_VERSION"
|
|
343
411
|
git push origin --delete release-$NEW_VERSION || echo "Branch already deleted or doesn't exist"
|
|
344
|
-
shell: bash
|
|
345
412
|
|
|
346
413
|
- name: Trigger publish workflow
|
|
347
414
|
if: steps.commit-changes.outputs.skip_release != 'true'
|
|
348
415
|
env:
|
|
349
416
|
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
|
|
417
|
+
shell: bash
|
|
350
418
|
run: |
|
|
351
419
|
NEW_VERSION=$(grep '^version = ' pyproject.toml | sed 's/.*version = "\([^"]*\)".*/\1/')
|
|
352
420
|
gh workflow run publish.yml -f tag="$NEW_VERSION"
|
|
353
|
-
shell: bash
|