orbi-cli 0.7.57__tar.gz → 0.7.58__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.
- {orbi_cli-0.7.57/src/orbi_cli.egg-info → orbi_cli-0.7.58}/PKG-INFO +1 -1
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/pyproject.toml +1 -1
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/__init__.py +1 -1
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/github.py +58 -20
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/implementation_delivery.py +5 -3
- {orbi_cli-0.7.57 → orbi_cli-0.7.58/src/orbi_cli.egg-info}/PKG-INFO +1 -1
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_apply_label_patch.py +50 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_bootstrap_delivery.py +83 -20
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_bootstrap_release.py +74 -8
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_bootstrap_runner_claim_resume.py +11 -3
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_bootstrap_runner_outcome.py +43 -27
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_bootstrap_runner_tickets.py +64 -16
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_concurrency_e2e.py +21 -4
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_fix_needed_loop.py +13 -6
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_github.py +31 -18
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_github_fakes.py +17 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_notify.py +10 -3
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_ops_e2e.py +9 -1
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_progress_wiring.py +98 -72
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_release_extraction.py +11 -4
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_resume_continue_e2e.py +10 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_resume_e2e.py +10 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_run_id_e2e.py +12 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/LICENSE +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/README.md +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/docs/licenses/sustainable-use-license.md +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/setup.cfg +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/acceptance_section.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/amend_command.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/answer.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/base_ci_fix.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/base_ci_red.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/blocked_comment.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/blocked_record.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/blocked_scan.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/body_steering.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/branch_reclaim.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/check_permission.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/checks.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/claim.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/claim_race.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/clarify.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/clarify_proposal.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/clarify_stop.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/cli.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/cli_commands.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/cli_doctor.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/cli_parser.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/cli_source.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/cli_status.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/cli_ticket_command.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/command_line.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/comment_kind.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/comment_rest_id.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/comment_trust.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/config.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/config_hint.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/delivery_comment.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/delivery_labels.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/delivery_push.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/delivery_scene.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/draft.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/draft_cli.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/draft_document.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/draft_marker.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/draft_validate.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/engine_source.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/epic_reconciliation.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/example_config.toml +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/extensions/clarify_verdict.ts +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/extensions/draft_tools.ts +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/failure.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/failure_evidence.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/failure_report.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/failure_stop.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/gh_response.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/git_identity.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/git_transport.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/github_feedback.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/gitops.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/human_review.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/journal.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/labels.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/labels.toml +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/language.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/language_failure.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/language_terms.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/language_terms_criteria.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/language_terms_epic.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/language_terms_fix.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/launchd_deploy.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/merge_blocked.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/merge_exec.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/merge_gate.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/merge_handoff.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/milestone.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/milestone_command.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/milestone_errors.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/notify.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/notify_text.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/ops_delivery.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/pi_activity.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/pi_command.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/pi_exec.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/pi_idle.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/pi_process.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/pi_recovery.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/pi_session.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/pi_stream_log.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/pilot_setup.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/pilot_slots.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/plan_milestone.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/pr_head_sync.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/pr_verification.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/progress.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/progress_display.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/progress_outcome.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/progress_summary.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/provider_balance.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/question.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/recoverable_failure.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/release.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/release_closeout.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/release_comments.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/release_declaration.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/release_git.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/release_notes.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/release_run.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/repo_config.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/requeue.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/restart_scan.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/resume_scan.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/resume_verification.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/review_ci_status.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/review_merge.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/review_rounds.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/review_verdict.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/review_wait.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/run_fields.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/run_state.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/runner.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/runner_health.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/runner_marker.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/runner_source.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/scene.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/scheduler.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/scheduler_units.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/session_command.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/setup_checks.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/setup_config.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/source_pool.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/split_apply.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/split_command.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/status_observe.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/steering.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/stop_comment.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/stopped_scans.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/suggest.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/systemd_deploy.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/terminal_labels.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/terminal_stops.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/tick_reads.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/ticket_command.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/ticket_command_registry.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/ticket_criteria.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/user_summary.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/waiting_checks.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi/worktree_retention.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi_cli.egg-info/SOURCES.txt +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi_cli.egg-info/dependency_links.txt +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi_cli.egg-info/entry_points.txt +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/src/orbi_cli.egg-info/top_level.txt +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_agents_md.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_amend_command.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_answer.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_base_branch_failure.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_base_ci_red.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_blocked_comment.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_body_steering.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_bootstrap_adapters.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_bootstrap_pi.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_bootstrap_preflight.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_bootstrap_runner_failure_report.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_bootstrap_runner_main.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_bootstrap_runner_milestone.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_bootstrap_runner_prompt.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_bootstrap_runner_reconcile.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_bootstrap_runner_session.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_branch_reclaim.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_check_permission.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_ci_macos_workflow.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_ci_workflow.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_claim_race.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_clarify.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_claude_plugin.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_cli_golden.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_cli_install.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_cli_milestone.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_cli_packaging.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_cli_source.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_cli_ticket_commands.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_command_receipt_contract.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_comment_identity.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_comment_readers_contract.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_comment_rest_id.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_comment_trust.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_constitution.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_coverage_gate.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_deliver_pr_fakes.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_delivery_branch_delete.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_delivery_labels.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_delivery_scene.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_docker_docs.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_docker_entrypoint.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_docker_image_workflow.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_docs_i18n.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_docs_issue_shapes.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_docs_labels.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_docs_mermaid.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_docs_releases.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_docs_safety_matrix.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_docs_single_source.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_docs_site.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_draft.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_draft_repo_view.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_draft_validate.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_engine_source.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_epic_reconciliation.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_failure.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_failure_report.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_gh_read_retry.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_gh_response.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_git_base_smoke.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_git_merge_smoke.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_git_network_retry.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_git_transport.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_gitops.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_gitops_fakes.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_human_review.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_import_graph.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_install_sh.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_issue_1367.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_issue_461.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_issue_template_config.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_journal.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_journal_events.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_labels.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_launchd_deploy.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_license.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_merge_exec_extraction.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_message_language.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_milestone_command.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_orbi.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_orbi_dashboard.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_orbi_exporter.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_patch_ratchet.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_pi_activity.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_pi_child_reap.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_pi_command.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_pi_exec.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_pi_extensions.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_pi_provider_templates.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_pi_recovery.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_pi_session.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_pilot_setup.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_pilot_slots.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_pr_issue_link_workflow.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_pr_verification.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_prerequisite_check.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_progress.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_prompt_contract.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_public_contracts.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_public_helpers.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_publish_workflow.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_question.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_question_resume.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_release_docs_workflow.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_release_ticket_templates.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_repo_config.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_resume_other_executor.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_resume_pr.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_review_merge.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_review_verdict.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_review_waiting.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_run_artifacts.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_run_fields.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_run_id_fixture.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_runner_config.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_runner_health.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_runner_source_freshness.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_scene.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_scheduler.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_seam.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_setup_output_golden.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_size_ratchet.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_split_command.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_src_layout.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_status_observe.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_steering_review.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_suggest.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_suggest_repo_view.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_suite_hygiene.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_systemd_deploy.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_systemd_timer.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_tick_reads.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_ticket_command.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_ticket_command_registration.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_user_acceptance_contract.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_user_summary.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_versioned_comment_block.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_waiting_checks.py +0 -0
- {orbi_cli-0.7.57 → orbi_cli-0.7.58}/tests/test_worktree_reclaim.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: orbi-cli
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.58
|
|
4
4
|
Summary: Orbi — local AI development worker: claims GitHub Issues, runs Pi in isolated worktrees, and delivers PRs (GitHub Issues + labels are the only state store).
|
|
5
5
|
Author: xqliu
|
|
6
6
|
License-Expression: AGPL-3.0-only OR LicenseRef-Sustainable-Use-1.0
|
|
@@ -44,7 +44,7 @@ build-backend = "setuptools.build_meta"
|
|
|
44
44
|
|
|
45
45
|
[project]
|
|
46
46
|
name = "orbi-cli"
|
|
47
|
-
version = "0.7.
|
|
47
|
+
version = "0.7.58"
|
|
48
48
|
description = "Orbi — local AI development worker: claims GitHub Issues, runs Pi in isolated worktrees, and delivers PRs (GitHub Issues + labels are the only state store)."
|
|
49
49
|
readme = "README.md"
|
|
50
50
|
requires-python = ">=3.14"
|
|
@@ -628,6 +628,25 @@ def edit_issue(number: int, *, repo: str, add: str | None = None,
|
|
|
628
628
|
run_gh_write_command(command)
|
|
629
629
|
|
|
630
630
|
|
|
631
|
+
def set_issue_labels(number: int, *, repo: str, labels: list[str]) -> None:
|
|
632
|
+
"""Replace an Issue's WHOLE label set in one write (Issue #2369).
|
|
633
|
+
|
|
634
|
+
GitHub's documented "Set labels for an issue"
|
|
635
|
+
(`PUT /repos/{owner}/{repo}/issues/{issue_number}/labels`,
|
|
636
|
+
https://docs.github.com/en/rest/issues/labels#set-labels-for-an-issue)
|
|
637
|
+
applies the removals before the additions in the timeline, and it is
|
|
638
|
+
ONE write — the claim window `claim_race` guards does not grow. gh's
|
|
639
|
+
documented array form is repeated `-f labels[]=<name>`.
|
|
640
|
+
"""
|
|
641
|
+
command = [
|
|
642
|
+
"gh", "api", "--method", "PUT",
|
|
643
|
+
f"repos/{repo}/issues/{number}/labels",
|
|
644
|
+
]
|
|
645
|
+
for label in labels:
|
|
646
|
+
command += ["-f", f"labels[]={label}"]
|
|
647
|
+
run_gh_write_command(command)
|
|
648
|
+
|
|
649
|
+
|
|
631
650
|
def apply_label_patch(number: int, *, repo: str, event: str,
|
|
632
651
|
current_labels,
|
|
633
652
|
ready_label: str | None = None) -> None:
|
|
@@ -638,29 +657,48 @@ def apply_label_patch(number: int, *, repo: str, event: str,
|
|
|
638
657
|
the one transition decision. A TERMINAL patch (merged / blocked)
|
|
639
658
|
removes every old state label first and adds the terminal label LAST,
|
|
640
659
|
so the timeline ends on the new state (Issue #2357); a failed write
|
|
641
|
-
restores what it removed.
|
|
642
|
-
|
|
643
|
-
#
|
|
660
|
+
restores what it removed. The claim and PR-opened transitions read the
|
|
661
|
+
Issue's real labels once and replace the whole set in ONE write
|
|
662
|
+
(Issue #2369), so the timeline ends on the new state label there too
|
|
663
|
+
and every non-state label survives. Other events keep the pre-#2357
|
|
664
|
+
writes. A no-op patch applies nothing; `notify.patch_applied`
|
|
665
|
+
(Issues #1673, #2287) sends an ordinary handoff's message, never a
|
|
666
|
+
stop's.
|
|
644
667
|
"""
|
|
645
668
|
ready_label = delivery_labels.queue_label(ready_label)
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
)
|
|
669
|
+
if event in (delivery_labels.EVENT_CLAIM,
|
|
670
|
+
delivery_labels.EVENT_PR_OPENED):
|
|
671
|
+
# The caller's snapshot predates the write: the set to write is
|
|
672
|
+
# computed from a fresh read, and the whole set — every label not
|
|
673
|
+
# being swapped out included — goes back in that one replacement.
|
|
674
|
+
current_labels = issue_labels(number, repo=repo)
|
|
675
|
+
to_add, to_remove = label_patch(event, current_labels, ready_label)
|
|
676
|
+
removed = set(to_remove)
|
|
677
|
+
whole = [label for label in current_labels if label not in removed]
|
|
678
|
+
whole += [label for label in to_add if label not in whole]
|
|
679
|
+
if whole == current_labels:
|
|
680
|
+
return
|
|
681
|
+
set_issue_labels(number, repo=repo, labels=whole)
|
|
654
682
|
else:
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
683
|
+
to_add, to_remove = label_patch(event, current_labels, ready_label)
|
|
684
|
+
if not to_add and not to_remove:
|
|
685
|
+
return
|
|
686
|
+
if event in (delivery_labels.EVENT_MERGED,
|
|
687
|
+
delivery_labels.EVENT_BLOCKED):
|
|
688
|
+
terminal_labels.apply_terminal_patch(
|
|
689
|
+
number, repo=repo, to_add=to_add, to_remove=to_remove,
|
|
690
|
+
edit_issue=edit_issue, read_labels=issue_labels,
|
|
691
|
+
)
|
|
692
|
+
else:
|
|
693
|
+
first_remove = to_remove[0] if to_remove else None
|
|
694
|
+
kwargs: dict = {"repo": repo}
|
|
695
|
+
if to_add:
|
|
696
|
+
kwargs["add"] = to_add[0]
|
|
697
|
+
if first_remove is not None:
|
|
698
|
+
kwargs["remove"] = first_remove
|
|
699
|
+
edit_issue(number, **kwargs)
|
|
700
|
+
for label in to_remove[1:]:
|
|
701
|
+
edit_issue(number, repo=repo, remove=label)
|
|
664
702
|
# Notifying the person is a pure bypass owned by `notify` (Issues
|
|
665
703
|
# #1673/#1691): it decides from the event, the added labels and the
|
|
666
704
|
# current labels, and reads the title lazily through the callable --
|
|
@@ -597,12 +597,14 @@ def _closeout_implementation(attempt: _Attempt) -> IssueResult:
|
|
|
597
597
|
return _closeout_issue_closed(attempt, commit)
|
|
598
598
|
# The implementer always commits the delivery on top of the
|
|
599
599
|
# frozen base, so the head always advanced.
|
|
600
|
-
#
|
|
601
|
-
#
|
|
600
|
+
# Issue #2369: this event's patch is computed from the callee's own
|
|
601
|
+
# fresh label read and written as ONE whole-set replacement, so the
|
|
602
|
+
# pre-upgrade claim's dispatch residue it must remove is seen there;
|
|
603
|
+
# the snapshot below is the function's contract for the other events.
|
|
602
604
|
apply_label_patch(
|
|
603
605
|
int(attempt.issue["number"]), repo=attempt.source_repo,
|
|
604
606
|
event=EVENT_PR_OPENED,
|
|
605
|
-
current_labels=facts.claim_labels
|
|
607
|
+
current_labels=facts.claim_labels,
|
|
606
608
|
ready_label=facts.dispatch_label,
|
|
607
609
|
)
|
|
608
610
|
# The label transition has landed and must remain the state
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: orbi-cli
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.58
|
|
4
4
|
Summary: Orbi — local AI development worker: claims GitHub Issues, runs Pi in isolated worktrees, and delivers PRs (GitHub Issues + labels are the only state store).
|
|
5
5
|
Author: xqliu
|
|
6
6
|
License-Expression: AGPL-3.0-only OR LicenseRef-Sustainable-Use-1.0
|
|
@@ -257,3 +257,53 @@ def test_double_failure_leaves_the_issue_without_a_state_label(
|
|
|
257
257
|
apply(fake_gh, EVENT_MERGED)
|
|
258
258
|
assert labels(fake_gh) == set()
|
|
259
259
|
assert "label_restore_failed" in caplog.text
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
def _label_replacements(fake_gh) -> list[list[str]]:
|
|
263
|
+
"""The whole-set label writes the fake answered, in order."""
|
|
264
|
+
return [
|
|
265
|
+
command for command in fake_gh.commands
|
|
266
|
+
if command[0:4] == ["gh", "api", "--method", "PUT"]
|
|
267
|
+
and command[4].endswith("/labels")
|
|
268
|
+
]
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
def test_claim_replacement_keeps_a_label_missing_from_the_snapshot(fake_gh):
|
|
272
|
+
"""Issue #2369 acceptance 1: the claim reads the Issue's real labels
|
|
273
|
+
and replaces the WHOLE set once. A label the caller's snapshot does
|
|
274
|
+
not carry stays on the Issue; the queue and stale fix-needed labels
|
|
275
|
+
go; `ai-in-progress` comes."""
|
|
276
|
+
fake_gh.add_issue(
|
|
277
|
+
NUMBER, labels=("bug", READY_LABEL, FIX_NEEDED_LABEL),
|
|
278
|
+
)
|
|
279
|
+
github.apply_label_patch(
|
|
280
|
+
NUMBER, repo=REPO, event=EVENT_CLAIM,
|
|
281
|
+
current_labels={READY_LABEL, FIX_NEEDED_LABEL},
|
|
282
|
+
)
|
|
283
|
+
assert labels(fake_gh) == {"bug", IN_PROGRESS_LABEL}
|
|
284
|
+
assert _label_replacements(fake_gh) == [[
|
|
285
|
+
"gh", "api", "--method", "PUT",
|
|
286
|
+
f"repos/{REPO}/issues/{NUMBER}/labels",
|
|
287
|
+
"-f", "labels[]=bug", "-f", f"labels[]={IN_PROGRESS_LABEL}",
|
|
288
|
+
"--include",
|
|
289
|
+
]]
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
def test_pr_opened_replacement_ends_on_the_new_state_alone(fake_gh):
|
|
293
|
+
"""Issue #2369 acceptance 2: a resumed `ai-fix-needed` round is one
|
|
294
|
+
whole-set replacement that ends on `ai-pr-opened`; every other label
|
|
295
|
+
on the Issue survives."""
|
|
296
|
+
fake_gh.add_issue(NUMBER, labels=(FIX_NEEDED_LABEL, "bug"))
|
|
297
|
+
apply(fake_gh, EVENT_PR_OPENED)
|
|
298
|
+
assert labels(fake_gh) == {"bug", PR_OPENED_LABEL}
|
|
299
|
+
assert len(_label_replacements(fake_gh)) == 1
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
def test_failed_replacement_leaves_the_labels_as_they_were(fake_gh):
|
|
303
|
+
"""Issue #2369 acceptance 3: the replacement is ONE write, so a
|
|
304
|
+
failed one changes nothing and the step fails as today."""
|
|
305
|
+
fake_gh.add_issue(NUMBER, labels=(READY_LABEL, "bug"))
|
|
306
|
+
fake_gh.fail_label_replace()
|
|
307
|
+
with pytest.raises(subprocess.CalledProcessError):
|
|
308
|
+
apply(fake_gh, EVENT_CLAIM)
|
|
309
|
+
assert labels(fake_gh) == {READY_LABEL, "bug"}
|
|
@@ -38,6 +38,7 @@ import pytest
|
|
|
38
38
|
|
|
39
39
|
import orbi.claim as claim
|
|
40
40
|
import orbi.failure_report as failure_report
|
|
41
|
+
import orbi.implementation_delivery as implementation_delivery
|
|
41
42
|
import orbi.runner as runner
|
|
42
43
|
import orbi.pr_verification as pr_verification
|
|
43
44
|
import orbi.resume_verification as resume_verification
|
|
@@ -56,7 +57,7 @@ from tests.fakes.waiting_checks import PENDING_HEAD, bind_pending_delivery
|
|
|
56
57
|
import orbi.journal as journal
|
|
57
58
|
from seam import resume_deps, seam
|
|
58
59
|
from orbi.delivery_labels import EVENT_BLOCKED
|
|
59
|
-
from orbi.delivery_scene import RunContext
|
|
60
|
+
from orbi.delivery_scene import DeliveryFacts, RunContext
|
|
60
61
|
|
|
61
62
|
# Issue #1826: the operator's one optional project status page.
|
|
62
63
|
TASK_STATUS_URL = "https://tasks.example.org/project-status?repo=example%2Fwidget"
|
|
@@ -4362,13 +4363,18 @@ def test_delivery_step_marks_blocked_when_review_fails_while_fix_needed(
|
|
|
4362
4363
|
PR_URL, issue, config_domain.RunnerConfig(repo_dir=tmp_path, base_branch="main"),
|
|
4363
4364
|
"owner/repo",
|
|
4364
4365
|
)
|
|
4365
|
-
# Issue #
|
|
4366
|
-
#
|
|
4367
|
-
# delivery-state label and adds ai-blocked LAST
|
|
4368
|
-
|
|
4366
|
+
# Issue #2369: the round-start repair is ONE whole-set replacement
|
|
4367
|
+
# ending on ai-pr-opened; the blocked terminal then removes the
|
|
4368
|
+
# delivery-state label and adds ai-blocked LAST.
|
|
4369
|
+
assert [
|
|
4370
|
+
command for command in api_calls
|
|
4371
|
+
if command[2:4] == ["--method", "PUT"]
|
|
4372
|
+
] == [[
|
|
4373
|
+
"gh", "api", "--method", "PUT",
|
|
4374
|
+
"repos/owner/repo/issues/39/labels",
|
|
4375
|
+
"-f", "labels[]=ai-pr-opened", "--include",
|
|
4376
|
+
]]
|
|
4369
4377
|
assert edits == [
|
|
4370
|
-
((39,), {"repo": "owner/repo", "add": "ai-pr-opened",
|
|
4371
|
-
"remove": "ai-fix-needed"}),
|
|
4372
4378
|
((39,), {"repo": "owner/repo", "remove": "ai-fix-needed"}),
|
|
4373
4379
|
((39,), {"repo": "owner/repo", "add": "ai-blocked"}),
|
|
4374
4380
|
]
|
|
@@ -4765,12 +4771,18 @@ def test_delivery_step_worktree_missing_while_fix_needed_keeps_label(
|
|
|
4765
4771
|
)
|
|
4766
4772
|
# No review was started.
|
|
4767
4773
|
assert reviews == []
|
|
4768
|
-
# Issue #
|
|
4769
|
-
#
|
|
4774
|
+
# Issue #2369: the round-start repair is ONE whole-set replacement
|
|
4775
|
+
# ending on ai-pr-opened; the recoverable failure then sets
|
|
4770
4776
|
# ai-fix-needed again, the same end state as before.
|
|
4777
|
+
assert [
|
|
4778
|
+
command for command in api_calls
|
|
4779
|
+
if command[2:4] == ["--method", "PUT"]
|
|
4780
|
+
] == [[
|
|
4781
|
+
"gh", "api", "--method", "PUT",
|
|
4782
|
+
"repos/owner/repo/issues/39/labels",
|
|
4783
|
+
"-f", "labels[]=ai-pr-opened", "--include",
|
|
4784
|
+
]]
|
|
4771
4785
|
assert edits == [
|
|
4772
|
-
((39,), {"repo": "owner/repo", "add": "ai-pr-opened",
|
|
4773
|
-
"remove": "ai-fix-needed"}),
|
|
4774
4786
|
((39,), {"repo": "owner/repo", "add": "ai-fix-needed"}),
|
|
4775
4787
|
]
|
|
4776
4788
|
body = comments[0][1]["body"]
|
|
@@ -4788,6 +4800,7 @@ def test_delivery_step_runs_review_when_fix_needed(
|
|
|
4788
4800
|
Issue #2357: the resumed round writes no ai-in-progress; its stale
|
|
4789
4801
|
ai-fix-needed is normalized to ai-pr-opened alone."""
|
|
4790
4802
|
edits = []
|
|
4803
|
+
label_writes = []
|
|
4791
4804
|
|
|
4792
4805
|
def fake_run(command, **kwargs):
|
|
4793
4806
|
if command[:2] == ["gh", "pr"] and command[2] == "view":
|
|
@@ -4811,6 +4824,10 @@ def test_delivery_step_runs_review_when_fix_needed(
|
|
|
4811
4824
|
"author": {"login": "maintainer"},
|
|
4812
4825
|
},
|
|
4813
4826
|
]})
|
|
4827
|
+
if command[0:2] == ["gh", "api"]:
|
|
4828
|
+
# Issue #2369: the repair's whole-set label replacement.
|
|
4829
|
+
label_writes.append(command)
|
|
4830
|
+
return ""
|
|
4814
4831
|
if command[1] == "issue" and command[2] == "edit":
|
|
4815
4832
|
edits.append(command)
|
|
4816
4833
|
return ""
|
|
@@ -4838,13 +4855,15 @@ def test_delivery_step_runs_review_when_fix_needed(
|
|
|
4838
4855
|
caplog.set_level("INFO")
|
|
4839
4856
|
config = config_domain.RunnerConfig(repo_dir=tmp_path, base_branch="main")
|
|
4840
4857
|
runner.delivery_step(PR_URL, issue, config, "owner/repo")
|
|
4841
|
-
# Issue #
|
|
4842
|
-
# is normalized to ai-pr-opened alone
|
|
4843
|
-
assert not any("ai-in-progress" in command for command in
|
|
4844
|
-
assert
|
|
4845
|
-
"gh", "
|
|
4846
|
-
"
|
|
4858
|
+
# Issue #2369: no ai-in-progress is written; the stale ai-fix-needed
|
|
4859
|
+
# is normalized to ai-pr-opened alone in ONE whole-set replacement.
|
|
4860
|
+
assert not any("ai-in-progress" in command for command in label_writes)
|
|
4861
|
+
assert label_writes == [[
|
|
4862
|
+
"gh", "api", "--method", "PUT",
|
|
4863
|
+
"repos/owner/repo/issues/39/labels",
|
|
4864
|
+
"-f", "labels[]=ai-pr-opened", "--include",
|
|
4847
4865
|
]]
|
|
4866
|
+
assert edits == []
|
|
4848
4867
|
# ONE review round per tick (Issue #788): the step returns after it.
|
|
4849
4868
|
assert len(reviews) == 1
|
|
4850
4869
|
# No fixer: the review ran on the derived worktree/branch of the
|
|
@@ -5158,9 +5177,15 @@ def test_delivery_step_repairs_in_progress_label_and_logs_ci(
|
|
|
5158
5177
|
PR_URL, {"number": 39, "title": "task", "body": ""},
|
|
5159
5178
|
config_domain.RunnerConfig(repo_dir=tmp_path, base_branch="main"), "owner/repo",
|
|
5160
5179
|
)
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5180
|
+
# Issue #2369: the repair is ONE whole-set replacement ending on
|
|
5181
|
+
# ai-pr-opened.
|
|
5182
|
+
assert [
|
|
5183
|
+
call for call in calls if call[2:4] == ["--method", "PUT"]
|
|
5184
|
+
] == [[
|
|
5185
|
+
"gh", "api", "--method", "PUT",
|
|
5186
|
+
"repos/owner/repo/issues/39/labels",
|
|
5187
|
+
"-f", "labels[]=ai-pr-opened", "--include",
|
|
5188
|
+
]]
|
|
5164
5189
|
assert "tests=COMPLETED/SUCCESS" in caplog.text
|
|
5165
5190
|
assert "lint=COMPLETED/SKIPPED" in caplog.text
|
|
5166
5191
|
|
|
@@ -7026,3 +7051,41 @@ def test_a_stopped_run_is_neither_resumed_nor_reclaimed(monkeypatch, tmp_path):
|
|
|
7026
7051
|
) is None
|
|
7027
7052
|
assert claim.pick_issue("xqliu/orbi") is None
|
|
7028
7053
|
assert claim.pick_issue("xqliu/orbi", dispatch_label="ship") is None
|
|
7054
|
+
|
|
7055
|
+
|
|
7056
|
+
def test_claim_issue_is_one_whole_set_replacement(monkeypatch):
|
|
7057
|
+
"""Issue #2369 acceptance 1: the claim `_claim_issue` performs is ONE
|
|
7058
|
+
whole-set replacement computed from a fresh read — a label the
|
|
7059
|
+
caller's snapshot lacks survives, the queue label goes and
|
|
7060
|
+
`ai-in-progress` comes."""
|
|
7061
|
+
fake = FakeGh("o/r")
|
|
7062
|
+
fake.add_issue(7, labels=("ai-ready", "bug"))
|
|
7063
|
+
monkeypatch.setattr(seam, "run_command", fake)
|
|
7064
|
+
hooks = Mock()
|
|
7065
|
+
attempt = implementation_delivery._Attempt(
|
|
7066
|
+
issue={"number": 7},
|
|
7067
|
+
source_repo="o/r",
|
|
7068
|
+
facts=DeliveryFacts(
|
|
7069
|
+
labels=frozenset({"ai-ready", "bug"}),
|
|
7070
|
+
# The stale snapshot the scan produced: it lacks `bug`.
|
|
7071
|
+
claim_labels=frozenset({"ai-ready"}),
|
|
7072
|
+
dispatch_label="ai-ready",
|
|
7073
|
+
),
|
|
7074
|
+
hooks=hooks,
|
|
7075
|
+
ops=False,
|
|
7076
|
+
run_id="a1b2c3d4",
|
|
7077
|
+
config=config_domain.RunnerConfig(repo_dir=Path("/repo")),
|
|
7078
|
+
priority="normal",
|
|
7079
|
+
started=0.0,
|
|
7080
|
+
)
|
|
7081
|
+
implementation_delivery._claim_issue(attempt)
|
|
7082
|
+
assert fake.issues[7]["labels"] == ["bug", "ai-in-progress"]
|
|
7083
|
+
assert [
|
|
7084
|
+
command for command in fake.commands
|
|
7085
|
+
if command[0:4] == ["gh", "api", "--method", "PUT"]
|
|
7086
|
+
] == [[
|
|
7087
|
+
"gh", "api", "--method", "PUT", "repos/o/r/issues/7/labels",
|
|
7088
|
+
"-f", "labels[]=bug", "-f", "labels[]=ai-in-progress",
|
|
7089
|
+
"--include",
|
|
7090
|
+
]]
|
|
7091
|
+
hooks.runner_health.record_pickup.assert_called_once_with(Path("/repo"))
|
|
@@ -39,6 +39,7 @@ from orbi.comment_kind import COMMENT_KIND_FAILURE, comment_kind_marker
|
|
|
39
39
|
# Issue #1826: the operator's one optional project status page.
|
|
40
40
|
TASK_STATUS_URL = "https://tasks.example.org/project-status?repo=example%2Fwidget"
|
|
41
41
|
from seam import seam
|
|
42
|
+
from tests.fakes.github import FakeGh
|
|
42
43
|
from tests.fakes.bootstrap_release import (
|
|
43
44
|
_EMPTY_SCOPE_BODY,
|
|
44
45
|
_NEITHER_SCOPE_BODY,
|
|
@@ -1261,10 +1262,17 @@ def test_process_release_parse_failure_publishes_final_comment(
|
|
|
1261
1262
|
assert result == runner.IssueResult("release", "")
|
|
1262
1263
|
# The handled failure is terminal: `ai-blocked` ALONE.
|
|
1263
1264
|
edits = [c for c in gh_calls if c[:3] == ["gh", "issue", "edit"]]
|
|
1265
|
+
# Issue #2369: the claim is ONE whole-set replacement; the terminal
|
|
1266
|
+
# keeps #2357's removal-before-add sequence.
|
|
1267
|
+
assert [
|
|
1268
|
+
c for c in gh_calls
|
|
1269
|
+
if c[:4] == ["gh", "api", "--method", "PUT"]
|
|
1270
|
+
] == [[
|
|
1271
|
+
"gh", "api", "--method", "PUT",
|
|
1272
|
+
"repos/orbi-build/orbi/issues/467/labels",
|
|
1273
|
+
"-f", "labels[]=ai-in-progress", "--include",
|
|
1274
|
+
]]
|
|
1264
1275
|
assert edits == [
|
|
1265
|
-
["gh", "issue", "edit", "467", "--repo", "orbi-build/orbi",
|
|
1266
|
-
"--add-label", "ai-in-progress"],
|
|
1267
|
-
# Issue #2357: every removal is written before the terminal add.
|
|
1268
1276
|
["gh", "issue", "edit", "467", "--repo", "orbi-build/orbi",
|
|
1269
1277
|
"--remove-label", "ai-ready"],
|
|
1270
1278
|
["gh", "issue", "edit", "467", "--repo", "orbi-build/orbi",
|
|
@@ -2814,6 +2822,11 @@ def test_process_release_blocks_at_claim_when_default_version_file_missing(monke
|
|
|
2814
2822
|
# Nothing ran between the frozen base and the check: no gate, no
|
|
2815
2823
|
# scope verification, no version write.
|
|
2816
2824
|
assert [c for c, _ in state["commands"]] == [
|
|
2825
|
+
# Issue #2369: the claim reads the real set and replaces it once.
|
|
2826
|
+
["gh", "issue", "view", "99", "--repo", "o/r", "--json", "labels"],
|
|
2827
|
+
["gh", "api", "--method", "PUT", "repos/o/r/issues/99/labels",
|
|
2828
|
+
"-f", "labels[]=ai-release", "-f", "labels[]=ai-in-progress",
|
|
2829
|
+
"--include"],
|
|
2817
2830
|
["git", "ls-tree", "--name-only", "abc123"],
|
|
2818
2831
|
# The terminal transition reads the real label set (Issue #2357).
|
|
2819
2832
|
["gh", "issue", "view", "99", "--repo", "o/r", "--json", "labels"],
|
|
@@ -2942,11 +2955,17 @@ def test_process_release_success_end_to_end(monkeypatch):
|
|
|
2942
2955
|
issue, config_domain.RunnerConfig(repo_dir=Path("/r"), base_branch="main"), "o/r",
|
|
2943
2956
|
)
|
|
2944
2957
|
assert url == "https://github.com/o/r/releases/tag/v0.3.0"
|
|
2945
|
-
# Claim first (Issue #
|
|
2946
|
-
#
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2958
|
+
# Claim first (Issue #2369: ONE whole-set replacement — the queue
|
|
2959
|
+
# label goes, the in-flight one comes, `ai-release` stays), terminal
|
|
2960
|
+
# ai-merged at the end (ai-in-progress removed).
|
|
2961
|
+
assert [
|
|
2962
|
+
command for command, _ in state["commands"]
|
|
2963
|
+
if command[0:4] == ["gh", "api", "--method", "PUT"]
|
|
2964
|
+
] == [[
|
|
2965
|
+
"gh", "api", "--method", "PUT", "repos/o/r/issues/99/labels",
|
|
2966
|
+
"-f", "labels[]=ai-release", "-f", "labels[]=ai-in-progress",
|
|
2967
|
+
"--include",
|
|
2968
|
+
]]
|
|
2950
2969
|
assert state["edits"][-2] == (99, {"repo": "o/r",
|
|
2951
2970
|
"remove": "ai-in-progress"})
|
|
2952
2971
|
# Issue #1526: the release merge also clears the ready queue entry.
|
|
@@ -4989,3 +5008,50 @@ def test_process_release_failed_merged_add_restores_the_in_progress_label(
|
|
|
4989
5008
|
assert "ai-in-progress" in state["labels"]
|
|
4990
5009
|
assert "ai-ready" not in state["labels"]
|
|
4991
5010
|
assert "ai-merged" not in state["labels"]
|
|
5011
|
+
|
|
5012
|
+
|
|
5013
|
+
def test_process_release_claim_is_one_whole_set_replacement(monkeypatch):
|
|
5014
|
+
"""Issue #2369 acceptance 1: `process_release`'s claim is ONE
|
|
5015
|
+
whole-set replacement computed from a fresh read — the queue label
|
|
5016
|
+
goes, `ai-in-progress` comes, and a label the ticket snapshot lacks
|
|
5017
|
+
(`bug`) survives."""
|
|
5018
|
+
make_release_process_env(monkeypatch)
|
|
5019
|
+
env_run = seam.run_command
|
|
5020
|
+
fake = FakeGh("o/r")
|
|
5021
|
+
fake.add_issue(
|
|
5022
|
+
99, title="Release v0.3.0", body=RELEASE_DECLARATION_BODY,
|
|
5023
|
+
labels=("ai-ready", "ai-release", "bug"),
|
|
5024
|
+
)
|
|
5025
|
+
|
|
5026
|
+
def run(command, **kwargs):
|
|
5027
|
+
label_read = (
|
|
5028
|
+
command[0:3] == ["gh", "issue", "view"]
|
|
5029
|
+
and command[-1] == "labels"
|
|
5030
|
+
)
|
|
5031
|
+
label_write = (
|
|
5032
|
+
command[0:4] == ["gh", "api", "--method", "PUT"]
|
|
5033
|
+
and command[4].endswith("/labels")
|
|
5034
|
+
)
|
|
5035
|
+
if label_read or label_write:
|
|
5036
|
+
return fake(command, **kwargs)
|
|
5037
|
+
return env_run(command, **kwargs)
|
|
5038
|
+
|
|
5039
|
+
monkeypatch.setattr(seam, "run_command", run)
|
|
5040
|
+
issue = {
|
|
5041
|
+
"number": 99, "title": "Release v0.3.0",
|
|
5042
|
+
"body": RELEASE_DECLARATION_BODY,
|
|
5043
|
+
"labels": [{"name": "ai-ready"}, {"name": "ai-release"}],
|
|
5044
|
+
}
|
|
5045
|
+
assert release_run.process_release(
|
|
5046
|
+
issue,
|
|
5047
|
+
config_domain.RunnerConfig(repo_dir=Path("/r"), base_branch="main"),
|
|
5048
|
+
"o/r",
|
|
5049
|
+
) == "https://github.com/o/r/releases/tag/v0.3.0"
|
|
5050
|
+
assert [
|
|
5051
|
+
command for command in fake.commands
|
|
5052
|
+
if command[0:4] == ["gh", "api", "--method", "PUT"]
|
|
5053
|
+
] == [[
|
|
5054
|
+
"gh", "api", "--method", "PUT", "repos/o/r/issues/99/labels",
|
|
5055
|
+
"-f", "labels[]=ai-release", "-f", "labels[]=bug",
|
|
5056
|
+
"-f", "labels[]=ai-in-progress", "--include",
|
|
5057
|
+
]]
|
|
@@ -435,9 +435,17 @@ def test_process_issue_resumes_existing_run_and_same_progress_comment(
|
|
|
435
435
|
assert runner.process_issue(
|
|
436
436
|
issue, config, "xqliu/orbi-backlog",
|
|
437
437
|
) == runner.IssueResult("pr", "https://github.com/orbi-build/orbi/pull/4")
|
|
438
|
-
# The reused run id drives the branch and the scene comments.
|
|
439
|
-
|
|
440
|
-
|
|
438
|
+
# The reused run id drives the branch and the scene comments. The
|
|
439
|
+
# claim changes nothing on an already in-progress Issue, so Issue
|
|
440
|
+
# #2369 skips that write; PR-opened is ONE whole-set replacement.
|
|
441
|
+
assert calls == []
|
|
442
|
+
assert [
|
|
443
|
+
call for call in gh_calls if call[2:4] == ["--method", "PUT"]
|
|
444
|
+
] == [[
|
|
445
|
+
"gh", "api", "--method", "PUT",
|
|
446
|
+
"repos/xqliu/orbi-backlog/issues/4/labels",
|
|
447
|
+
"-f", "labels[]=ai-pr-opened", "--include",
|
|
448
|
+
]]
|
|
441
449
|
scene_comments = [
|
|
442
450
|
call for call in gh_calls
|
|
443
451
|
if call[:2] == ["gh", "issue"] and "comment" in call
|
|
@@ -90,7 +90,23 @@ def test_process_issue_success_records_base_and_run_in_comment(monkeypatch, tmp_
|
|
|
90
90
|
issue = {"number": 4, "title": "Fix", "body": "Body"}
|
|
91
91
|
config = config_domain.RunnerConfig(repo_dir=tmp_path, prompt=tmp_path / "prompt.md", base_branch="main")
|
|
92
92
|
assert runner.process_issue(issue, config, "xqliu/orbi-backlog") == runner.IssueResult("pr", "https://github.com/orbi-build/orbi/pull/4")
|
|
93
|
-
|
|
93
|
+
# Issue #2369: the claim and the PR-opened transition are ONE
|
|
94
|
+
# whole-set replacement each.
|
|
95
|
+
assert [
|
|
96
|
+
call for call in gh_calls
|
|
97
|
+
if call[2:4] == ["--method", "PUT"]
|
|
98
|
+
] == [
|
|
99
|
+
[
|
|
100
|
+
"gh", "api", "--method", "PUT",
|
|
101
|
+
"repos/xqliu/orbi-backlog/issues/4/labels",
|
|
102
|
+
"-f", "labels[]=ai-in-progress", "--include",
|
|
103
|
+
],
|
|
104
|
+
[
|
|
105
|
+
"gh", "api", "--method", "PUT",
|
|
106
|
+
"repos/xqliu/orbi-backlog/issues/4/labels",
|
|
107
|
+
"-f", "labels[]=ai-pr-opened", "--include",
|
|
108
|
+
],
|
|
109
|
+
]
|
|
94
110
|
# The run state is published automatically: exactly one progress
|
|
95
111
|
# comment (hidden run marker); started and PR-opened scenes are
|
|
96
112
|
# separate resume announcements.
|
|
@@ -213,10 +229,10 @@ def test_process_issue_failure_marks_blocked_and_ends_cleanly(monkeypatch, tmp_p
|
|
|
213
229
|
# does NOT re-raise — the service must not crash on it (Issue #239).
|
|
214
230
|
assert runner.process_issue({"number": 8, "title": "Fail", "body": ""}, config_domain.RunnerConfig(repo_dir=tmp_path, prompt=tmp_path / "prompt.md", base_branch="main"), "xqliu/orbi-backlog").kind == "failed"
|
|
215
231
|
# Issue #2357: the removal is written before the terminal add.
|
|
216
|
-
assert calls[
|
|
217
|
-
assert calls[
|
|
218
|
-
assert calls[
|
|
219
|
-
failure_body = calls[
|
|
232
|
+
assert calls[0][2] == {"repo": "xqliu/orbi-backlog", "remove": "ai-ready"}
|
|
233
|
+
assert calls[1][2] == {"repo": "xqliu/orbi-backlog", "add": "ai-blocked"}
|
|
234
|
+
assert calls[2][0] == "comment"
|
|
235
|
+
failure_body = calls[2][2]["body"]
|
|
220
236
|
# The failure is also published as the blocked milestone (Issue
|
|
221
237
|
# #18). The worktree was never created, so no progress comment
|
|
222
238
|
# exists to PATCH: the milestone alone carries the notification.
|
|
@@ -272,10 +288,10 @@ def test_process_issue_terminal_failure_clears_the_repositorys_dispatch_label(
|
|
|
272
288
|
"xqliu/orbi-backlog",
|
|
273
289
|
)
|
|
274
290
|
assert result.kind == "failed"
|
|
275
|
-
# The claim
|
|
276
|
-
# removes the queue label first and ends on ai-blocked
|
|
291
|
+
# The claim is one whole-set replacement (Issue #2369); the terminal
|
|
292
|
+
# blocked patch removes the queue label first and ends on ai-blocked
|
|
293
|
+
# (Issue #2357).
|
|
277
294
|
assert edits == [
|
|
278
|
-
{"repo": "xqliu/orbi-backlog", "add": "ai-in-progress"},
|
|
279
295
|
{"repo": "xqliu/orbi-backlog", "remove": "ship"},
|
|
280
296
|
{"repo": "xqliu/orbi-backlog", "add": "ai-blocked"},
|
|
281
297
|
]
|
|
@@ -418,9 +434,9 @@ def test_process_issue_delivery_no_commit_marks_blocked_without_crashing(
|
|
|
418
434
|
"xqliu/orbi",
|
|
419
435
|
).kind == "failed"
|
|
420
436
|
edits = [entry for entry in calls if isinstance(entry, dict)]
|
|
437
|
+
# Issue #2369: the claim's whole-set replacement is not an
|
|
438
|
+
# `edit_issue`; the terminal removes first and adds ai-blocked last.
|
|
421
439
|
assert edits == [
|
|
422
|
-
{"repo": "xqliu/orbi", "add": "ai-in-progress"},
|
|
423
|
-
# Issue #2357: removals first, the terminal add last.
|
|
424
440
|
{"repo": "xqliu/orbi", "remove": "ai-ready"},
|
|
425
441
|
{"repo": "xqliu/orbi", "add": "ai-blocked"},
|
|
426
442
|
]
|
|
@@ -633,14 +649,12 @@ def test_process_issue_model_wait_dead_failure_stays_in_progress(
|
|
|
633
649
|
config_domain.RunnerConfig(repo_dir=tmp_path, prompt=tmp_path / "prompt.md", base_branch="main"),
|
|
634
650
|
"xqliu/orbi",
|
|
635
651
|
).kind == "failed"
|
|
636
|
-
# The Issue keeps `ai-in-progress`: the
|
|
637
|
-
#
|
|
638
|
-
#
|
|
639
|
-
# traffic is tuple entries).
|
|
652
|
+
# The Issue keeps `ai-in-progress`: the claim's whole-set
|
|
653
|
+
# replacement (Issue #2369) is the ONLY label write — no
|
|
654
|
+
# `ai-blocked`, no removal of `ai-in-progress` (the edit calls are
|
|
655
|
+
# the dict entries; the `gh issue comment` traffic is tuple entries).
|
|
640
656
|
edits = [entry for entry in calls if isinstance(entry, dict)]
|
|
641
|
-
assert edits == [
|
|
642
|
-
{"repo": "xqliu/orbi", "add": "ai-in-progress"},
|
|
643
|
-
]
|
|
657
|
+
assert edits == []
|
|
644
658
|
comment_bodies = [
|
|
645
659
|
entry[2]["body"] for entry in calls
|
|
646
660
|
if isinstance(entry, tuple) and entry[0] == "comment"
|
|
@@ -978,13 +992,12 @@ def test_process_issue_model_wait_dead_comment_failure_stays_in_progress(
|
|
|
978
992
|
config_domain.RunnerConfig(repo_dir=tmp_path, prompt=tmp_path / "prompt.md", base_branch="main"),
|
|
979
993
|
"xqliu/orbi",
|
|
980
994
|
).kind == "failed"
|
|
981
|
-
# The Issue keeps `ai-in-progress`: the
|
|
982
|
-
#
|
|
983
|
-
# to the generic handler's
|
|
995
|
+
# The Issue keeps `ai-in-progress`: the claim's whole-set
|
|
996
|
+
# replacement (Issue #2369) is the ONLY label write — the failed
|
|
997
|
+
# recovery comment must NOT fall through to the generic handler's
|
|
998
|
+
# terminal `ai-blocked` (Issue #227).
|
|
984
999
|
edits = [entry for entry in calls if isinstance(entry, dict)]
|
|
985
|
-
assert edits == [
|
|
986
|
-
{"repo": "xqliu/orbi", "add": "ai-in-progress"},
|
|
987
|
-
]
|
|
1000
|
+
assert edits == []
|
|
988
1001
|
# No terminal failure comment was posted.
|
|
989
1002
|
comment_bodies = [
|
|
990
1003
|
entry[2]["body"] for entry in calls
|
|
@@ -1048,9 +1061,9 @@ def test_process_issue_idle_recovery_failure_marks_blocked(
|
|
|
1048
1061
|
"xqliu/orbi",
|
|
1049
1062
|
).kind == "failed"
|
|
1050
1063
|
edits = [entry for entry in calls if isinstance(entry, dict)]
|
|
1064
|
+
# Issue #2369: the claim's whole-set replacement is not an
|
|
1065
|
+
# `edit_issue`; the terminal removes first and adds ai-blocked last.
|
|
1051
1066
|
assert edits == [
|
|
1052
|
-
{"repo": "xqliu/orbi", "add": "ai-in-progress"},
|
|
1053
|
-
# Issue #2357: removals first, the terminal add last.
|
|
1054
1067
|
{"repo": "xqliu/orbi", "remove": "ai-ready"},
|
|
1055
1068
|
{"repo": "xqliu/orbi", "add": "ai-blocked"},
|
|
1056
1069
|
]
|
|
@@ -1093,6 +1106,9 @@ def test_process_issue_ends_cleanly_when_reporting_fails(monkeypatch, tmp_path,
|
|
|
1093
1106
|
gh_calls, posted = make_fake_gh(monkeypatch)
|
|
1094
1107
|
|
|
1095
1108
|
def fake_run(command, **kwargs):
|
|
1109
|
+
if command[0:2] == ["gh", "api"]:
|
|
1110
|
+
# Issue #2369: the claim's whole-set replacement.
|
|
1111
|
+
return _gh_api(command, posted)
|
|
1096
1112
|
if command[:2] == ["gh", "issue"] and "comment" in command:
|
|
1097
1113
|
# The `Orbi failed` comment POST is the only
|
|
1098
1114
|
# non-bypass traffic of this scenario: it fails, the
|
|
@@ -1130,9 +1146,9 @@ def test_process_issue_ends_cleanly_when_reporting_fails(monkeypatch, tmp_path,
|
|
|
1130
1146
|
# claim label, not the opened-PR label (Issue #79: the scene
|
|
1131
1147
|
# comment is the first failure after the transition; its test in
|
|
1132
1148
|
# test_progress_wiring pins the other branch).
|
|
1149
|
+
# Issue #2369: the claim is a whole-set replacement (not an
|
|
1150
|
+
# `edit_issue`); the terminal removes first and adds ai-blocked last.
|
|
1133
1151
|
assert edit_calls == [
|
|
1134
|
-
{"repo": "xqliu/orbi-backlog", "add": "ai-in-progress"},
|
|
1135
|
-
# Issue #2357: removals first, the terminal add last.
|
|
1136
1152
|
{"repo": "xqliu/orbi-backlog", "remove": "ai-ready"},
|
|
1137
1153
|
{"repo": "xqliu/orbi-backlog", "add": "ai-blocked"},
|
|
1138
1154
|
]
|