gerrit-clone 2.2.3__tar.gz → 2.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.
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/.pre-commit-config.yaml +46 -21
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/IMPLEMENTATION.md +5 -5
- gerrit_clone-2.3.0/LICENSE +201 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/PKG-INFO +76 -8
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/README.md +74 -7
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/pyproject.toml +36 -1
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/cli_clone_run.py +35 -98
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/cli_clone_setup.py +15 -2
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/cli_mirror_run.py +27 -4
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/cli_options_clone.py +3 -5
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/cli_options_mirror.py +3 -5
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/cli_refresh_run.py +86 -106
- gerrit_clone-2.3.0/src/gerrit_clone/clone_batching.py +100 -0
- gerrit_clone-2.3.0/src/gerrit_clone/clone_cleanup.py +302 -0
- gerrit_clone-2.3.0/src/gerrit_clone/clone_collection.py +125 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/clone_conflicts.py +146 -3
- gerrit_clone-2.3.0/src/gerrit_clone/clone_git_env.py +433 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/clone_manager.py +1 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/clone_nesting.py +64 -11
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/clone_orchestrator.py +133 -173
- gerrit_clone-2.3.0/src/gerrit_clone/clone_reservations.py +435 -0
- gerrit_clone-2.3.0/src/gerrit_clone/clone_results.py +195 -0
- gerrit_clone-2.3.0/src/gerrit_clone/clone_timeout.py +202 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/clone_utils.py +4 -1
- gerrit_clone-2.3.0/src/gerrit_clone/concurrent_utils.py +269 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/config.py +7 -1
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/content_filter.py +77 -64
- gerrit_clone-2.3.0/src/gerrit_clone/content_git.py +77 -0
- gerrit_clone-2.3.0/src/gerrit_clone/content_intent.py +230 -0
- gerrit_clone-2.3.0/src/gerrit_clone/content_intent_resolve.py +154 -0
- gerrit_clone-2.3.0/src/gerrit_clone/content_legacy.py +52 -0
- gerrit_clone-2.3.0/src/gerrit_clone/content_origin.py +179 -0
- gerrit_clone-2.3.0/src/gerrit_clone/content_policy.py +375 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/content_redaction.py +4 -8
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/content_removal.py +33 -44
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/content_scan.py +53 -95
- gerrit_clone-2.3.0/src/gerrit_clone/content_scan_process.py +165 -0
- gerrit_clone-2.3.0/src/gerrit_clone/content_spec.py +130 -0
- gerrit_clone-2.3.0/src/gerrit_clone/content_stage.py +99 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/content_worktree.py +65 -60
- gerrit_clone-2.3.0/src/gerrit_clone/git_credential_env.py +129 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/git_utils.py +22 -4
- gerrit_clone-2.3.0/src/gerrit_clone/github_clone_env.py +86 -0
- gerrit_clone-2.3.0/src/gerrit_clone/github_clone_url.py +266 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/github_gh_cli.py +42 -15
- gerrit_clone-2.3.0/src/gerrit_clone/github_token_hygiene.py +135 -0
- gerrit_clone-2.3.0/src/gerrit_clone/github_url_safety.py +357 -0
- gerrit_clone-2.3.0/src/gerrit_clone/github_worker.py +375 -0
- gerrit_clone-2.3.0/src/gerrit_clone/mirror_cleanup.py +166 -0
- gerrit_clone-2.3.0/src/gerrit_clone/mirror_content_filters.py +150 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/mirror_manager.py +32 -34
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/mirror_push.py +10 -16
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/model_clone_results.py +2 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/model_refresh_results.py +4 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/models.py +9 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/pathing.py +28 -6
- gerrit_clone-2.3.0/src/gerrit_clone/process_groups.py +282 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/refresh_branch_repair.py +42 -84
- gerrit_clone-2.3.0/src/gerrit_clone/refresh_discovery.py +257 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/refresh_execution.py +41 -28
- gerrit_clone-2.3.0/src/gerrit_clone/refresh_filtered.py +376 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/refresh_force.py +9 -15
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/refresh_git_env.py +104 -19
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/refresh_manager.py +45 -1
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/refresh_parallel.py +3 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/refresh_repo_state.py +120 -91
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/refresh_worker.py +100 -20
- gerrit_clone-2.3.0/src/gerrit_clone/ssh_identity.py +58 -0
- gerrit_clone-2.3.0/src/gerrit_clone/subprocess_streaming.py +105 -0
- gerrit_clone-2.3.0/src/gerrit_clone/subprocess_tracking.py +438 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/worker.py +25 -61
- gerrit_clone-2.3.0/src/gerrit_clone/worker_preflight.py +186 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/conftest.py +164 -1
- gerrit_clone-2.3.0/tests/test_clone_git_env.py +726 -0
- gerrit_clone-2.3.0/tests/test_clone_nesting.py +115 -0
- gerrit_clone-2.3.0/tests/test_clone_orchestrator_timeout.py +2198 -0
- gerrit_clone-2.3.0/tests/test_clone_results.py +168 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/test_clone_utils.py +17 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/test_content_filter.py +57 -23
- gerrit_clone-2.3.0/tests/test_content_intent.py +435 -0
- gerrit_clone-2.3.0/tests/test_content_intent_commands.py +458 -0
- gerrit_clone-2.3.0/tests/test_content_legacy.py +410 -0
- gerrit_clone-2.3.0/tests/test_content_origin.py +240 -0
- gerrit_clone-2.3.0/tests/test_content_policy.py +381 -0
- gerrit_clone-2.3.0/tests/test_content_tracking.py +513 -0
- gerrit_clone-2.3.0/tests/test_content_worktree_failures.py +206 -0
- gerrit_clone-2.3.0/tests/test_git_credential_env.py +1027 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/test_git_utils.py +63 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/test_mirror_manager.py +57 -2
- gerrit_clone-2.3.0/tests/test_network_guard.py +252 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/test_pathing.py +65 -0
- gerrit_clone-2.3.0/tests/test_refresh_bare_mirrors.py +915 -0
- gerrit_clone-2.3.0/tests/test_refresh_remotes.py +100 -0
- gerrit_clone-2.3.0/tests/test_refresh_tracking.py +262 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/test_refresh_worker.py +255 -227
- gerrit_clone-2.3.0/tests/test_ssh_identity.py +123 -0
- gerrit_clone-2.3.0/tests/test_subprocess_tracking.py +1283 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/unit/test_github_worker.py +300 -76
- gerrit_clone-2.2.3/LICENSE +0 -1
- gerrit_clone-2.2.3/src/gerrit_clone/clone_git_env.py +0 -195
- gerrit_clone-2.2.3/src/gerrit_clone/clone_results.py +0 -124
- gerrit_clone-2.2.3/src/gerrit_clone/concurrent_utils.py +0 -161
- gerrit_clone-2.2.3/src/gerrit_clone/github_clone_env.py +0 -67
- gerrit_clone-2.2.3/src/gerrit_clone/github_clone_url.py +0 -102
- gerrit_clone-2.2.3/src/gerrit_clone/github_token_hygiene.py +0 -98
- gerrit_clone-2.2.3/src/gerrit_clone/github_worker.py +0 -225
- gerrit_clone-2.2.3/src/gerrit_clone/mirror_cleanup.py +0 -68
- gerrit_clone-2.2.3/src/gerrit_clone/mirror_content_filters.py +0 -186
- gerrit_clone-2.2.3/src/gerrit_clone/refresh_discovery.py +0 -188
- gerrit_clone-2.2.3/tests/test_clone_orchestrator_timeout.py +0 -165
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/.gitignore +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/action.yaml +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/__init__.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/cli.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/cli_app.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/cli_clone.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/cli_clone_models.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/cli_config.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/cli_hooks.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/cli_mirror.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/cli_mirror_models.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/cli_mirror_setup.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/cli_options_refresh.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/cli_options_reset.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/cli_refresh.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/cli_refresh_report.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/cli_reset.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/cli_reset_run.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/cli_session.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/clone_diagnostics.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/clone_locking.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/clone_ordering.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/clone_refresh.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/clone_reporting.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/clone_retry_policy.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/clone_stages.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/config_env.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/config_errors.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/content_patterns.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/discovery.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/error_codes.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/error_collection.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/file_logging.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/gerrit_api.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/git_comparison.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/github_api.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/github_async_pacing.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/github_async_repo.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/github_batch_support.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/github_clone_results.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/github_discovery.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/github_graphql.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/github_models.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/github_repo_ops.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/github_transport.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/logging.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/mirror_branch_repair.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/mirror_default_branch.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/mirror_filtering.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/mirror_git_refs.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/mirror_models.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/mirror_planning.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/mirror_result_builder.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/model_config_validation.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/model_enums.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/model_project.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/model_project_filters.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/netrc.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/netrc_discovery.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/netrc_models.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/netrc_parser.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/output_utils.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/path_errors.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/path_naming.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/progress.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/progress_display.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/progress_live.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/progress_modes.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/progress_results.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/progress_summary.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/py.typed +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/rate_limit.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/rate_limit_budget.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/rate_limit_helpers.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/rate_limit_progress.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/refresh_output.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/reset_confirmation.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/reset_deletion.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/reset_display.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/reset_manager.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/reset_models.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/retry.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/rich_optional.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/rich_status.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/ssh_discovery.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/src/gerrit_clone/unified_discovery.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/__init__.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/integration/__init__.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/integration/test_discovery_integration.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/integration/test_github_clone.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/test_action_cli_alignment.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/test_cli_netrc_options.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/test_clone_manager_github_refresh.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/test_config.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/test_content_redaction.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/test_file_logging_changes.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/test_gerrit_api.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/test_git_comparison.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/test_github_api.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/test_logging.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/test_models.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/test_netrc.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/test_output_utils.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/test_project_filtering.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/test_rate_limit.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/test_refresh_manager.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/test_reset_manager.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/test_reset_models.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/test_retry.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/test_rich_optional.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/test_worker.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/unit/__init__.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/unit/test_discovery.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/unit/test_github_discovery.py +0 -0
- {gerrit_clone-2.2.3 → gerrit_clone-2.3.0}/tests/unit/test_unified_discovery.py +0 -0
|
@@ -4,21 +4,37 @@
|
|
|
4
4
|
|
|
5
5
|
ci:
|
|
6
6
|
autofix_prs: false
|
|
7
|
-
skip:
|
|
7
|
+
skip:
|
|
8
|
+
- gha-workflow-linter
|
|
9
|
+
- aislop
|
|
10
|
+
- basedpyright
|
|
11
|
+
- pytest
|
|
8
12
|
autofix_commit_msg: |
|
|
9
|
-
Chore:
|
|
13
|
+
Chore: Pre-commit autofixes
|
|
10
14
|
|
|
11
15
|
Signed-off-by: pre-commit-ci[bot] <pre-commit-ci@users.noreply.github.com>
|
|
12
16
|
autoupdate_commit_msg: |
|
|
13
|
-
Chore:
|
|
17
|
+
Chore: Pre-commit autoupdate
|
|
14
18
|
|
|
15
19
|
Signed-off-by: pre-commit-ci[bot] <pre-commit-ci@users.noreply.github.com>
|
|
16
20
|
|
|
21
|
+
default_install_hook_types: [pre-commit, commit-msg]
|
|
22
|
+
default_stages: [pre-commit]
|
|
23
|
+
|
|
17
24
|
exclude: "^docs/conf.py"
|
|
18
25
|
|
|
19
26
|
repos:
|
|
27
|
+
- repo: local
|
|
28
|
+
hooks:
|
|
29
|
+
- id: frozen-rev-is-a-release
|
|
30
|
+
name: frozen revs name a release
|
|
31
|
+
language: pygrep
|
|
32
|
+
# yamllint disable-line rule:line-length
|
|
33
|
+
entry: '^\s*rev:\s*\S+\s+#\s*frozen:(?!\s+v?[0-9]+(\.[0-9]+)*(-[0-9]+)?\s*$)'
|
|
34
|
+
files: '^\.pre-commit-config\.yaml$'
|
|
35
|
+
|
|
20
36
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
21
|
-
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c
|
|
37
|
+
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
|
|
22
38
|
hooks:
|
|
23
39
|
- id: trailing-whitespace
|
|
24
40
|
- id: check-added-large-files
|
|
@@ -40,8 +56,14 @@ repos:
|
|
|
40
56
|
- --branch=rc
|
|
41
57
|
- --branch=production
|
|
42
58
|
|
|
59
|
+
- repo: https://github.com/gitleaks/gitleaks
|
|
60
|
+
rev: 2ca41cc1372d1e939a6a879f18cdc19fc1cac1ce # frozen: v8.30.0
|
|
61
|
+
hooks:
|
|
62
|
+
- id: gitleaks
|
|
63
|
+
always_run: true
|
|
64
|
+
|
|
43
65
|
- repo: https://github.com/jorisroovers/gitlint
|
|
44
|
-
rev: acc9d9de6369b76d22cb4167029d2035e8730b98
|
|
66
|
+
rev: acc9d9de6369b76d22cb4167029d2035e8730b98 # frozen: v0.19.1
|
|
45
67
|
hooks:
|
|
46
68
|
- id: gitlint
|
|
47
69
|
|
|
@@ -52,16 +74,14 @@ repos:
|
|
|
52
74
|
types: [yaml]
|
|
53
75
|
|
|
54
76
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
55
|
-
rev:
|
|
77
|
+
rev: f12be1ebaa5351c1fc76472de98db2c3446c8253 # frozen: v0.16.10
|
|
56
78
|
hooks:
|
|
57
79
|
- id: ruff
|
|
58
|
-
files: ^(scripts|tests|custom_components)/.+\.py$
|
|
59
80
|
args: [--fix, --exit-non-zero-on-fix]
|
|
60
81
|
- id: ruff-format
|
|
61
|
-
files: ^(scripts|tests|custom_components)/.+\.py$
|
|
62
82
|
|
|
63
83
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
64
|
-
rev:
|
|
84
|
+
rev: 2834ec6639549dd6796205c8f011dedcd587288b # frozen: v2.4.0
|
|
65
85
|
hooks:
|
|
66
86
|
- id: mypy
|
|
67
87
|
additional_dependencies:
|
|
@@ -73,7 +93,7 @@ repos:
|
|
|
73
93
|
- typer>=0.15.1
|
|
74
94
|
|
|
75
95
|
- repo: https://github.com/btford/write-good
|
|
76
|
-
rev: ab66ce10136dfad5146e69e70f82a3efac8842c1
|
|
96
|
+
rev: ab66ce10136dfad5146e69e70f82a3efac8842c1 # frozen: v1.0.8
|
|
77
97
|
hooks:
|
|
78
98
|
- id: write-good
|
|
79
99
|
files: "\\.(rst|md|markdown|mdown|mkdn)$"
|
|
@@ -95,32 +115,38 @@ repos:
|
|
|
95
115
|
hooks:
|
|
96
116
|
- id: reuse
|
|
97
117
|
|
|
98
|
-
|
|
99
|
-
#
|
|
100
|
-
- repo: https://github.com/Mateusz-Grzelinski/actionlint-py
|
|
101
|
-
rev: c04ed26e40637cab1aa9879c693832a9c120fb20 # frozen: v1.7.12.24
|
|
118
|
+
- repo: https://github.com/kjanat/actionlint
|
|
119
|
+
rev: 2da2ceb4af2c7ecc48f5b9311d85080c3971b5f0 # frozen: v1.17.0
|
|
102
120
|
hooks:
|
|
103
|
-
- id: actionlint
|
|
121
|
+
- id: actionlint-shellcheck
|
|
104
122
|
|
|
105
|
-
# Check for misspellings in documentation files
|
|
106
123
|
- repo: https://github.com/codespell-project/codespell
|
|
107
124
|
rev: 57b21406f092110c18776e39b0bda50d37c945c8 # frozen: v2.4.3
|
|
108
125
|
hooks:
|
|
109
126
|
- id: codespell
|
|
110
127
|
|
|
111
|
-
# Requires a mirror, primary repo lacks .pre-commit-hooks.yaml
|
|
112
128
|
- repo: https://github.com/DetachHead/basedpyright-prek-mirror
|
|
113
|
-
rev:
|
|
129
|
+
rev: a11caebebdbf797e1e96611123db279b334a7675 # frozen: 1.40.2
|
|
114
130
|
hooks:
|
|
115
131
|
- id: basedpyright
|
|
116
132
|
|
|
117
133
|
- repo: https://github.com/lfreleng-actions/gha-workflow-linter
|
|
118
|
-
rev:
|
|
134
|
+
rev: b23b60e5884e985320a030e6114032152e2373cd # frozen: v1.7.1
|
|
119
135
|
hooks:
|
|
120
136
|
- id: gha-workflow-linter
|
|
121
137
|
|
|
138
|
+
- repo: local
|
|
139
|
+
hooks:
|
|
140
|
+
- id: aislop
|
|
141
|
+
name: aislop
|
|
142
|
+
entry: aislop ci --human
|
|
143
|
+
language: node
|
|
144
|
+
additional_dependencies: ["aislop@0.13.1"]
|
|
145
|
+
pass_filenames: false
|
|
146
|
+
always_run: true
|
|
147
|
+
|
|
122
148
|
- repo: https://github.com/python-jsonschema/check-jsonschema
|
|
123
|
-
rev:
|
|
149
|
+
rev: 4f85d46a92dc17713078e5de73f8a13190edf6fc # frozen: 0.38.2
|
|
124
150
|
hooks:
|
|
125
151
|
- id: check-github-actions
|
|
126
152
|
- id: check-github-workflows
|
|
@@ -134,7 +160,6 @@ repos:
|
|
|
134
160
|
- yaml
|
|
135
161
|
- id: check-readthedocs
|
|
136
162
|
|
|
137
|
-
# Run tests last to ensure all code changes from other hooks are tested
|
|
138
163
|
- repo: local
|
|
139
164
|
hooks:
|
|
140
165
|
- id: pytest
|
|
@@ -253,11 +253,11 @@ Host gerrit.example.org
|
|
|
253
253
|
|
|
254
254
|
```python
|
|
255
255
|
RetryPolicy(
|
|
256
|
-
max_attempts=3,
|
|
257
|
-
base_delay=2.0,
|
|
258
|
-
factor=2.0,
|
|
259
|
-
max_delay=30.0,
|
|
260
|
-
jitter=True
|
|
256
|
+
max_attempts=3, # Default retry count
|
|
257
|
+
base_delay=2.0, # Initial delay in seconds
|
|
258
|
+
factor=2.0, # Exponential backoff factor
|
|
259
|
+
max_delay=30.0, # Upper delay cap
|
|
260
|
+
jitter=True, # Randomization enabled
|
|
261
261
|
)
|
|
262
262
|
```
|
|
263
263
|
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: gerrit-clone
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.0
|
|
4
4
|
Summary: A multi-threaded CLI tool for bulk cloning repositories from Gerrit servers
|
|
5
5
|
Project-URL: Homepage, https://github.com/lfreleng-actions/gerrit-clone-action
|
|
6
6
|
Project-URL: Documentation, https://github.com/lfreleng-actions/gerrit-clone-action#readme
|
|
@@ -32,6 +32,7 @@ Requires-Dist: pyyaml<7.0.0,>=6.0.3
|
|
|
32
32
|
Requires-Dist: rich<16.0.0,>=14.2.0
|
|
33
33
|
Requires-Dist: typer<0.28.0,>=0.21.1
|
|
34
34
|
Provides-Extra: dev
|
|
35
|
+
Requires-Dist: git-filter-repo<3.0.0,>=2.47.0; extra == 'dev'
|
|
35
36
|
Requires-Dist: pytest-asyncio<1.5.0,>=0.25.3; extra == 'dev'
|
|
36
37
|
Requires-Dist: pytest-cov<8.0.0,>=6.3.0; extra == 'dev'
|
|
37
38
|
Requires-Dist: pytest-mock<4.0.0,>=3.15.1; extra == 'dev'
|
|
@@ -225,6 +226,47 @@ a warning.
|
|
|
225
226
|
|
|
226
227
|
### Refresh Command Examples
|
|
227
228
|
|
|
229
|
+
`refresh` finds both kinds of clone beneath the output path. A default
|
|
230
|
+
(mirror) clone is a bare repository, so it has no branch to pull: refresh
|
|
231
|
+
fetches every ref into it and prunes refs deleted upstream (unless
|
|
232
|
+
`--no-prune`). The branch options (`--strategy`, `--auto-stash`, `--force`,
|
|
233
|
+
`--force-hard`) apply to working-tree (`--no-mirror`) clones only. Refresh
|
|
234
|
+
skips a bare repository with no fetch refspec that updates a ref, such as
|
|
235
|
+
one made by `git clone --bare`, and says why: fetching it would update
|
|
236
|
+
nothing. If the
|
|
237
|
+
command finds no repositories at all, it says so and exits with status 1
|
|
238
|
+
rather than reporting success.
|
|
239
|
+
|
|
240
|
+
Content filtering (`--remove-files`, `--git-filter`, `--redact-secrets`) is a
|
|
241
|
+
decision about a whole clone tree, and later runs keep to it. The first run
|
|
242
|
+
that filters writes the decision to `.gerrit-clone/filter-policy.json` at the
|
|
243
|
+
root of the tree. Every later `clone`, `refresh` or `mirror` in that tree
|
|
244
|
+
applies it, even without the options: to repositories cloned later, to files
|
|
245
|
+
that appear upstream later, and to a repository you delete and clone again.
|
|
246
|
+
Options add to the decision; leaving one out never removes a filter. The file
|
|
247
|
+
keeps each `--git-filter` token as a SHA-256 digest only, so a run must pass
|
|
248
|
+
those tokens again. If a run lacks a project's tokens, `refresh` skips that
|
|
249
|
+
project, `clone` exits with a filtering failure, and `mirror` aborts the
|
|
250
|
+
whole batch before it pushes anything; each gives the number of tokens the
|
|
251
|
+
project needs. A file the tool cannot read stops the run.
|
|
252
|
+
|
|
253
|
+
Each repository also records which filters rewrote it. Fetching would force
|
|
254
|
+
the original history back, filtered content included, so refresh copies each
|
|
255
|
+
mirror it filters, fetches and filters the copy, and publishes its refs only
|
|
256
|
+
when every step succeeds; a failure leaves the mirror unchanged. A filtered
|
|
257
|
+
working copy (`--no-mirror`) always gets skipped: re-clone it to update it.
|
|
258
|
+
Every remote of a filtered repository refuses pushes. A tree filtered before
|
|
259
|
+
the tree-level file existed gains one from these per-repository records on
|
|
260
|
+
its next run. Releases up to v2.2.4 recorded no filters at all, so refresh
|
|
261
|
+
skips any repository they filtered, whatever filters you pass, and asks you
|
|
262
|
+
to re-clone it, and `mirror --overwrite` leaves it out of the run rather
|
|
263
|
+
than cloning or pushing it: delete it yourself, then clone it again with the
|
|
264
|
+
filters it needs. The tool recognises one by the traces those releases left: the
|
|
265
|
+
commit map a `git filter-repo` rewrite leaves in the git directory, or a
|
|
266
|
+
branch tip committed by the file-removal fallback (`Remove filtered files
|
|
267
|
+
for platform sync`).
|
|
268
|
+
A `--dry-run` applies no content filters and records nothing.
|
|
269
|
+
|
|
228
270
|
Refresh all repositories in the current directory:
|
|
229
271
|
|
|
230
272
|
```bash
|
|
@@ -884,8 +926,16 @@ export GITHUB_TOKEN=github_pat_your_token_here
|
|
|
884
926
|
|
|
885
927
|
**With `--overwrite` flag**:
|
|
886
928
|
|
|
887
|
-
- Removes and re-clones local repositories
|
|
888
|
-
|
|
929
|
+
- Removes and re-clones local repositories, then pushes each one
|
|
930
|
+
(`git push --mirror`) to its GitHub repository, existing ones included;
|
|
931
|
+
the tree's recorded content filters still apply first
|
|
932
|
+
- Leaves out of the run any repository a release up to v2.2.4
|
|
933
|
+
content-filtered, and any directory holding one: those releases recorded
|
|
934
|
+
no filters to apply again, so the run neither re-clones nor pushes it,
|
|
935
|
+
`--recreate` leaves its GitHub repository alone, and the manifest lists
|
|
936
|
+
it as skipped
|
|
937
|
+
- Without `--recreate`, reuses existing GitHub repositories rather than
|
|
938
|
+
deleting them
|
|
889
939
|
|
|
890
940
|
**With both `--recreate` and `--overwrite`**:
|
|
891
941
|
|
|
@@ -1266,10 +1316,14 @@ The following SSH authentication options are available across all interfaces:
|
|
|
1266
1316
|
| SSH Key | `-i` (file path) | `GERRIT_SSH_PRIVATE_KEY` | `ssh-private-key` (content) | Identity file |
|
|
1267
1317
|
| Host Check | `--strict-host` | `GERRIT_STRICT_HOST` | `strict-host` | Key check |
|
|
1268
1318
|
|
|
1269
|
-
> **Note:** The CLI flag `--ssh-identity-file` / `-i`
|
|
1270
|
-
>
|
|
1271
|
-
>
|
|
1272
|
-
>
|
|
1319
|
+
> **Note:** The CLI flag `--ssh-identity-file` / `-i` and the
|
|
1320
|
+
> `GERRIT_SSH_PRIVATE_KEY` environment variable expect a **file path** to a
|
|
1321
|
+
> private key on disk. The GitHub Action input `ssh-private-key` expects the
|
|
1322
|
+
> raw key **content** (loaded into an SSH agent). Never place key content in
|
|
1323
|
+
> `GERRIT_SSH_PRIVATE_KEY`: the CLI rejects it, without echoing the value. In
|
|
1324
|
+
> workflows, hold the secret in a differently named variable and pipe it to
|
|
1325
|
+
> `ssh-add -`. The legacy CLI alias `--ssh-private-key` is still accepted for
|
|
1326
|
+
> backward compatibility.
|
|
1273
1327
|
|
|
1274
1328
|
<!-- markdownlint-enable MD013 -->
|
|
1275
1329
|
|
|
@@ -1494,9 +1548,23 @@ cloned, while maintaining visibility into discovery issues between the two metho
|
|
|
1494
1548
|
|
|
1495
1549
|
- Python 3.11+ (tested on 3.11, 3.12, 3.13, 3.14)
|
|
1496
1550
|
- uv package manager (for development)
|
|
1497
|
-
- Git (for clone operations)
|
|
1551
|
+
- Git 2.31+ (for clone operations)
|
|
1552
|
+
- libcurl 7.58+ (for HTTPS token authentication)
|
|
1498
1553
|
- SSH client (for authentication)
|
|
1499
1554
|
|
|
1555
|
+
> **Note:** Git 2.31 (March 2021) introduced the `GIT_CONFIG_COUNT` /
|
|
1556
|
+
> `GIT_CONFIG_KEY_*` / `GIT_CONFIG_VALUE_*` environment variables. Both the
|
|
1557
|
+
> clone and mirror-push paths use them to pass a GitHub token to `git`, so the
|
|
1558
|
+
> token stays out of the command line and out of the host's process listing.
|
|
1559
|
+
> Older Git releases ignore those variables, and HTTPS token authentication
|
|
1560
|
+
> will fail.
|
|
1561
|
+
>
|
|
1562
|
+
> The token travels as an `Authorization` header scoped to the source host.
|
|
1563
|
+
> Git hands that to libcurl as a custom header, and libcurl before 7.58
|
|
1564
|
+
> (January 2018, CVE-2018-1000007) forwards a custom `Authorization` to a
|
|
1565
|
+
> different host across a redirect. Every current distribution ships a later
|
|
1566
|
+
> release; the floor matters only for a long-lived self-hosted runner.
|
|
1567
|
+
|
|
1500
1568
|
### Setup
|
|
1501
1569
|
|
|
1502
1570
|
```bash
|
|
@@ -184,6 +184,47 @@ a warning.
|
|
|
184
184
|
|
|
185
185
|
### Refresh Command Examples
|
|
186
186
|
|
|
187
|
+
`refresh` finds both kinds of clone beneath the output path. A default
|
|
188
|
+
(mirror) clone is a bare repository, so it has no branch to pull: refresh
|
|
189
|
+
fetches every ref into it and prunes refs deleted upstream (unless
|
|
190
|
+
`--no-prune`). The branch options (`--strategy`, `--auto-stash`, `--force`,
|
|
191
|
+
`--force-hard`) apply to working-tree (`--no-mirror`) clones only. Refresh
|
|
192
|
+
skips a bare repository with no fetch refspec that updates a ref, such as
|
|
193
|
+
one made by `git clone --bare`, and says why: fetching it would update
|
|
194
|
+
nothing. If the
|
|
195
|
+
command finds no repositories at all, it says so and exits with status 1
|
|
196
|
+
rather than reporting success.
|
|
197
|
+
|
|
198
|
+
Content filtering (`--remove-files`, `--git-filter`, `--redact-secrets`) is a
|
|
199
|
+
decision about a whole clone tree, and later runs keep to it. The first run
|
|
200
|
+
that filters writes the decision to `.gerrit-clone/filter-policy.json` at the
|
|
201
|
+
root of the tree. Every later `clone`, `refresh` or `mirror` in that tree
|
|
202
|
+
applies it, even without the options: to repositories cloned later, to files
|
|
203
|
+
that appear upstream later, and to a repository you delete and clone again.
|
|
204
|
+
Options add to the decision; leaving one out never removes a filter. The file
|
|
205
|
+
keeps each `--git-filter` token as a SHA-256 digest only, so a run must pass
|
|
206
|
+
those tokens again. If a run lacks a project's tokens, `refresh` skips that
|
|
207
|
+
project, `clone` exits with a filtering failure, and `mirror` aborts the
|
|
208
|
+
whole batch before it pushes anything; each gives the number of tokens the
|
|
209
|
+
project needs. A file the tool cannot read stops the run.
|
|
210
|
+
|
|
211
|
+
Each repository also records which filters rewrote it. Fetching would force
|
|
212
|
+
the original history back, filtered content included, so refresh copies each
|
|
213
|
+
mirror it filters, fetches and filters the copy, and publishes its refs only
|
|
214
|
+
when every step succeeds; a failure leaves the mirror unchanged. A filtered
|
|
215
|
+
working copy (`--no-mirror`) always gets skipped: re-clone it to update it.
|
|
216
|
+
Every remote of a filtered repository refuses pushes. A tree filtered before
|
|
217
|
+
the tree-level file existed gains one from these per-repository records on
|
|
218
|
+
its next run. Releases up to v2.2.4 recorded no filters at all, so refresh
|
|
219
|
+
skips any repository they filtered, whatever filters you pass, and asks you
|
|
220
|
+
to re-clone it, and `mirror --overwrite` leaves it out of the run rather
|
|
221
|
+
than cloning or pushing it: delete it yourself, then clone it again with the
|
|
222
|
+
filters it needs. The tool recognises one by the traces those releases left: the
|
|
223
|
+
commit map a `git filter-repo` rewrite leaves in the git directory, or a
|
|
224
|
+
branch tip committed by the file-removal fallback (`Remove filtered files
|
|
225
|
+
for platform sync`).
|
|
226
|
+
A `--dry-run` applies no content filters and records nothing.
|
|
227
|
+
|
|
187
228
|
Refresh all repositories in the current directory:
|
|
188
229
|
|
|
189
230
|
```bash
|
|
@@ -843,8 +884,16 @@ export GITHUB_TOKEN=github_pat_your_token_here
|
|
|
843
884
|
|
|
844
885
|
**With `--overwrite` flag**:
|
|
845
886
|
|
|
846
|
-
- Removes and re-clones local repositories
|
|
847
|
-
|
|
887
|
+
- Removes and re-clones local repositories, then pushes each one
|
|
888
|
+
(`git push --mirror`) to its GitHub repository, existing ones included;
|
|
889
|
+
the tree's recorded content filters still apply first
|
|
890
|
+
- Leaves out of the run any repository a release up to v2.2.4
|
|
891
|
+
content-filtered, and any directory holding one: those releases recorded
|
|
892
|
+
no filters to apply again, so the run neither re-clones nor pushes it,
|
|
893
|
+
`--recreate` leaves its GitHub repository alone, and the manifest lists
|
|
894
|
+
it as skipped
|
|
895
|
+
- Without `--recreate`, reuses existing GitHub repositories rather than
|
|
896
|
+
deleting them
|
|
848
897
|
|
|
849
898
|
**With both `--recreate` and `--overwrite`**:
|
|
850
899
|
|
|
@@ -1225,10 +1274,14 @@ The following SSH authentication options are available across all interfaces:
|
|
|
1225
1274
|
| SSH Key | `-i` (file path) | `GERRIT_SSH_PRIVATE_KEY` | `ssh-private-key` (content) | Identity file |
|
|
1226
1275
|
| Host Check | `--strict-host` | `GERRIT_STRICT_HOST` | `strict-host` | Key check |
|
|
1227
1276
|
|
|
1228
|
-
> **Note:** The CLI flag `--ssh-identity-file` / `-i`
|
|
1229
|
-
>
|
|
1230
|
-
>
|
|
1231
|
-
>
|
|
1277
|
+
> **Note:** The CLI flag `--ssh-identity-file` / `-i` and the
|
|
1278
|
+
> `GERRIT_SSH_PRIVATE_KEY` environment variable expect a **file path** to a
|
|
1279
|
+
> private key on disk. The GitHub Action input `ssh-private-key` expects the
|
|
1280
|
+
> raw key **content** (loaded into an SSH agent). Never place key content in
|
|
1281
|
+
> `GERRIT_SSH_PRIVATE_KEY`: the CLI rejects it, without echoing the value. In
|
|
1282
|
+
> workflows, hold the secret in a differently named variable and pipe it to
|
|
1283
|
+
> `ssh-add -`. The legacy CLI alias `--ssh-private-key` is still accepted for
|
|
1284
|
+
> backward compatibility.
|
|
1232
1285
|
|
|
1233
1286
|
<!-- markdownlint-enable MD013 -->
|
|
1234
1287
|
|
|
@@ -1453,9 +1506,23 @@ cloned, while maintaining visibility into discovery issues between the two metho
|
|
|
1453
1506
|
|
|
1454
1507
|
- Python 3.11+ (tested on 3.11, 3.12, 3.13, 3.14)
|
|
1455
1508
|
- uv package manager (for development)
|
|
1456
|
-
- Git (for clone operations)
|
|
1509
|
+
- Git 2.31+ (for clone operations)
|
|
1510
|
+
- libcurl 7.58+ (for HTTPS token authentication)
|
|
1457
1511
|
- SSH client (for authentication)
|
|
1458
1512
|
|
|
1513
|
+
> **Note:** Git 2.31 (March 2021) introduced the `GIT_CONFIG_COUNT` /
|
|
1514
|
+
> `GIT_CONFIG_KEY_*` / `GIT_CONFIG_VALUE_*` environment variables. Both the
|
|
1515
|
+
> clone and mirror-push paths use them to pass a GitHub token to `git`, so the
|
|
1516
|
+
> token stays out of the command line and out of the host's process listing.
|
|
1517
|
+
> Older Git releases ignore those variables, and HTTPS token authentication
|
|
1518
|
+
> will fail.
|
|
1519
|
+
>
|
|
1520
|
+
> The token travels as an `Authorization` header scoped to the source host.
|
|
1521
|
+
> Git hands that to libcurl as a custom header, and libcurl before 7.58
|
|
1522
|
+
> (January 2018, CVE-2018-1000007) forwards a custom `Authorization` to a
|
|
1523
|
+
> different host across a redirect. Every current distribution ships a later
|
|
1524
|
+
> release; the floor matters only for a long-lived self-hosted runner.
|
|
1525
|
+
|
|
1459
1526
|
### Setup
|
|
1460
1527
|
|
|
1461
1528
|
```bash
|
|
@@ -2,7 +2,12 @@
|
|
|
2
2
|
# SPDX-FileCopyrightText: 2025 The Linux Foundation
|
|
3
3
|
|
|
4
4
|
[build-system]
|
|
5
|
-
|
|
5
|
+
# PEP 517 builds run in an isolated environment that uv.lock does not
|
|
6
|
+
# govern, so these are resolved fresh from PyPI on every build --
|
|
7
|
+
# including the release build. Bounding them stops that resolution
|
|
8
|
+
# crossing a major release of the build backend unnoticed. The floors
|
|
9
|
+
# match the dev dependency-group entries Dependabot maintains.
|
|
10
|
+
requires = ["hatchling>=1.27.0,<2.0.0", "hatch-vcs>=0.5.0,<1.0.0"]
|
|
6
11
|
build-backend = "hatchling.build"
|
|
7
12
|
|
|
8
13
|
[project]
|
|
@@ -53,6 +58,12 @@ dependencies = [
|
|
|
53
58
|
|
|
54
59
|
[project.optional-dependencies]
|
|
55
60
|
dev = [
|
|
61
|
+
# Supplies the ``git-filter-repo`` executable that content filtering
|
|
62
|
+
# shells out to. Listed here as well as in the dev dependency group
|
|
63
|
+
# because CI's test job installs this extra (``.[test,dev]``) and
|
|
64
|
+
# never reads the group: without it the history-rewriting tests
|
|
65
|
+
# cannot run there.
|
|
66
|
+
"git-filter-repo>=2.47.0,<3.0.0",
|
|
56
67
|
"pytest>=8.4.2,<10.0.0",
|
|
57
68
|
"pytest-cov>=6.3.0,<8.0.0",
|
|
58
69
|
"pytest-mock>=3.15.1,<4.0.0",
|
|
@@ -283,6 +294,15 @@ asyncio_default_fixture_loop_scope = "function"
|
|
|
283
294
|
|
|
284
295
|
# Coverage configuration
|
|
285
296
|
[tool.coverage.run]
|
|
297
|
+
# Keep the transient coverage database out of the working tree.
|
|
298
|
+
# coverage.py resolves a relative data_file against the current
|
|
299
|
+
# directory, so the default '.coverage' lands wherever pytest runs and
|
|
300
|
+
# can be picked up by tests that inspect on-disk content. TEMP is
|
|
301
|
+
# set on Windows, where /tmp does not exist; elsewhere it is normally
|
|
302
|
+
# unset and the /tmp fallback applies. An explicit value also
|
|
303
|
+
# satisfies python-test-action's data_file configuration check.
|
|
304
|
+
# COVERAGE_FILE (env) still takes precedence when set.
|
|
305
|
+
data_file = "${TEMP-/tmp}/.coverage.gerrit-clone-action"
|
|
286
306
|
source = ["gerrit_clone"]
|
|
287
307
|
branch = true
|
|
288
308
|
omit = [
|
|
@@ -355,6 +375,21 @@ reportIncompatibleVariableOverride = "error"
|
|
|
355
375
|
reportOverlappingOverload = "error"
|
|
356
376
|
reportUnsupportedDunderAll = "error"
|
|
357
377
|
|
|
378
|
+
[tool.uv]
|
|
379
|
+
# `[build-system] requires` bounds this project's own build environment
|
|
380
|
+
# only. These constraints apply to every isolated build environment uv
|
|
381
|
+
# creates, so a dependency that has to be built from an sdist is held to
|
|
382
|
+
# the same bounds.
|
|
383
|
+
#
|
|
384
|
+
# Deliberately ranges rather than `==` pins: an exact pin would have to
|
|
385
|
+
# be bumped by hand before a new Python release could build at all,
|
|
386
|
+
# whereas a major-version cap still blocks the breaking change without
|
|
387
|
+
# blocking routine patches.
|
|
388
|
+
build-constraint-dependencies = [
|
|
389
|
+
"hatchling>=1.27.0,<2.0.0",
|
|
390
|
+
"hatch-vcs>=0.5.0,<1.0.0",
|
|
391
|
+
]
|
|
392
|
+
|
|
358
393
|
[dependency-groups]
|
|
359
394
|
dev = [
|
|
360
395
|
# Supplies the ``git-filter-repo`` executable that
|