orbi-cli 0.7.47__tar.gz → 0.7.48__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.47 → orbi_cli-0.7.48}/PKG-INFO +1 -1
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/pyproject.toml +1 -1
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/__init__.py +1 -1
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/base_ci_red.py +7 -6
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/blocked_comment.py +12 -12
- orbi_cli-0.7.48/src/orbi/blocked_record.py +46 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi_cli.egg-info/PKG-INFO +1 -1
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi_cli.egg-info/SOURCES.txt +1 -0
- orbi_cli-0.7.48/tests/test_blocked_comment.py +325 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_bootstrap_release.py +4 -2
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_failure_report.py +8 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_question_resume.py +10 -1
- orbi_cli-0.7.47/tests/test_blocked_comment.py +0 -176
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/LICENSE +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/README.md +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/docs/licenses/sustainable-use-license.md +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/setup.cfg +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/acceptance_section.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/amend_command.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/answer.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/base_ci_fix.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/body_steering.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/branch_reclaim.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/check_permission.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/checks.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/claim.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/clarify.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/clarify_proposal.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/clarify_stop.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/cli.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/cli_commands.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/cli_doctor.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/cli_parser.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/cli_source.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/cli_status.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/cli_ticket_command.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/command_line.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/comment_kind.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/comment_rest_id.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/comment_trust.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/config.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/config_hint.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/delivery_comment.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/delivery_labels.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/delivery_scene.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/draft.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/draft_cli.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/draft_document.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/draft_marker.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/engine_source.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/example_config.toml +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/extensions/clarify_verdict.ts +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/extensions/draft_tools.ts +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/failure.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/failure_evidence.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/failure_report.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/gh_response.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/git_identity.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/git_transport.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/github.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/github_feedback.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/gitops.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/human_review.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/implementation_delivery.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/journal.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/language.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/language_failure.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/language_terms.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/language_terms_criteria.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/language_terms_fix.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/launchd_deploy.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/merge_blocked.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/merge_exec.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/merge_gate.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/merge_handoff.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/milestone.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/milestone_command.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/milestone_errors.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/notify.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/ops_delivery.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/pi_activity.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/pi_command.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/pi_exec.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/pi_idle.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/pi_process.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/pi_recovery.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/pi_session.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/pi_stream_log.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/pilot_setup.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/pilot_slots.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/pr_verification.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/progress.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/progress_display.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/progress_outcome.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/progress_summary.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/question.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/release.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/release_closeout.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/release_comments.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/release_declaration.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/release_git.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/release_notes.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/release_run.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/repo_config.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/requeue.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/resume_scan.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/resume_verification.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/review_merge.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/review_rounds.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/review_verdict.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/run_fields.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/run_state.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/runner.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/runner_health.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/runner_marker.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/runner_source.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/scene.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/scheduler.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/scheduler_units.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/session_command.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/setup_checks.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/setup_config.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/source_pool.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/split_apply.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/split_command.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/status_observe.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/steering.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/stopped_scans.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/suggest.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/systemd_deploy.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/terminal_stops.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/ticket_command.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/ticket_command_registry.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/ticket_criteria.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/user_summary.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi/worktree_retention.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi_cli.egg-info/dependency_links.txt +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi_cli.egg-info/entry_points.txt +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/src/orbi_cli.egg-info/top_level.txt +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_agents_md.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_amend_command.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_answer.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_apply_label_patch.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_base_branch_failure.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_base_ci_red.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_body_steering.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_bootstrap_adapters.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_bootstrap_delivery.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_bootstrap_pi.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_bootstrap_preflight.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_bootstrap_runner_claim_resume.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_bootstrap_runner_failure_report.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_bootstrap_runner_main.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_bootstrap_runner_milestone.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_bootstrap_runner_outcome.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_bootstrap_runner_prompt.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_bootstrap_runner_reconcile.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_bootstrap_runner_session.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_bootstrap_runner_tickets.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_branch_reclaim.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_check_permission.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_ci_failure_issue_workflow.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_ci_failure_triage.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_ci_macos_workflow.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_ci_workflow.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_clarify.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_claude_plugin.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_cli_golden.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_cli_install.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_cli_milestone.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_cli_packaging.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_cli_source.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_cli_ticket_commands.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_command_receipt_contract.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_comment_identity.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_comment_readers_contract.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_comment_rest_id.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_comment_trust.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_concurrency_e2e.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_constitution.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_coverage_gate.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_deliver_pr_fakes.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_delivery_branch_delete.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_delivery_labels.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_delivery_scene.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_docker_docs.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_docker_entrypoint.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_docker_image_workflow.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_docs_i18n.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_docs_issue_shapes.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_docs_labels.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_docs_mermaid.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_docs_releases.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_docs_safety_matrix.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_docs_single_source.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_docs_site.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_draft.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_engine_source.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_failure.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_fix_needed_loop.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_gh_read_retry.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_gh_response.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_git_base_smoke.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_git_merge_smoke.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_git_network_retry.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_git_transport.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_github.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_github_fakes.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_gitops.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_gitops_fakes.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_human_review.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_import_graph.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_install_sh.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_issue_1367.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_issue_461.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_issue_template_config.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_journal.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_journal_events.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_launchd_deploy.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_license.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_merge_exec_extraction.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_message_language.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_milestone_command.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_notify.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_ops_e2e.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_orbi.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_orbi_dashboard.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_orbi_exporter.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_patch_ratchet.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_pi_activity.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_pi_child_reap.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_pi_command.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_pi_exec.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_pi_extensions.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_pi_provider_templates.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_pi_recovery.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_pi_session.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_pilot_setup.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_pilot_slots.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_pr_issue_link_workflow.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_pr_verification.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_prerequisite_check.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_progress.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_progress_wiring.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_prompt_contract.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_public_contracts.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_public_helpers.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_publish_workflow.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_question.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_release_docs_workflow.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_release_extraction.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_release_ticket_templates.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_repo_config.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_resume_continue_e2e.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_resume_e2e.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_resume_pr.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_review_merge.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_review_verdict.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_run_artifacts.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_run_fields.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_run_id_e2e.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_run_id_fixture.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_runner_config.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_runner_health.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_runner_source_freshness.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_scene.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_scheduler.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_seam.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_setup_output_golden.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_size_ratchet.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_split_command.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_src_layout.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_status_observe.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_steering_review.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_suggest.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_suite_hygiene.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_systemd_deploy.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_systemd_timer.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_ticket_command.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_ticket_command_registration.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_user_acceptance_contract.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_user_summary.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/tests/test_versioned_comment_block.py +0 -0
- {orbi_cli-0.7.47 → orbi_cli-0.7.48}/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.48
|
|
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.48"
|
|
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"
|
|
@@ -595,12 +595,13 @@ def _latest_trusted_failure(
|
|
|
595
595
|
the failure itself, so reading it as one would pause every recovery.
|
|
596
596
|
|
|
597
597
|
The selection STOPS at that comment, whatever its own record says: a
|
|
598
|
-
blocked failure
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
read as "no reason" either
|
|
602
|
-
|
|
603
|
-
therefore the newest failure's own
|
|
598
|
+
blocked failure whose record is not `base_ci_red` states no
|
|
599
|
+
`base_ci_red` reason (the scene stops carry `human_decision_required`
|
|
600
|
+
since Issue #2245), a stop written before Issue #2245 carries no block
|
|
601
|
+
at all, and a corrupted block is never read as "no reason" either
|
|
602
|
+
(`failure.parse`), so none of them may fall back to an older record it
|
|
603
|
+
superseded. A `None` record is therefore the newest failure's own
|
|
604
|
+
answer: this stop states no machine-readable reason.
|
|
604
605
|
"""
|
|
605
606
|
for comment in reversed(
|
|
606
607
|
comment_trust.trusted_comments(comments, repo=repo)):
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
"""The ONE exit for a comment that blocks an Issue (Issue #1730).
|
|
1
|
+
"""The ONE exit for a comment that blocks an Issue (Issue #1730, #2245).
|
|
2
2
|
|
|
3
3
|
Ten scenes put an Issue into `ai-blocked` and each own their reason text,
|
|
4
|
-
unblock step, hidden markers and extra fields
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
without anyone remembering to add it.
|
|
8
|
-
|
|
9
|
-
A comment that is not a blocked scene (a retrying diagnostic, progress, a
|
|
10
|
-
receipt) never goes through this exit and never gets the line.
|
|
4
|
+
unblock step, hidden markers and extra fields; this exit alone adds what
|
|
5
|
+
they share — the community help line, the failure kind and the terminal
|
|
6
|
+
failure record — so a later blocked scene carries them automatically.
|
|
11
7
|
"""
|
|
12
8
|
from __future__ import annotations
|
|
13
9
|
|
|
14
10
|
from orbi import language
|
|
11
|
+
from orbi.blocked_record import with_stop_record
|
|
15
12
|
from orbi.delivery_labels import EVENT_BLOCKED, READY_LABEL
|
|
16
13
|
from orbi.github import apply_label_patch, comment_issue
|
|
17
14
|
|
|
@@ -22,9 +19,9 @@ def post_blocked_comment(number: int, *, repo: str, body: str,
|
|
|
22
19
|
"""Block `number`: apply the `ai-blocked` label patch, then comment.
|
|
23
20
|
|
|
24
21
|
The order is part of the contract: the label transition lands first, the
|
|
25
|
-
comment second. The body is posted
|
|
26
|
-
|
|
27
|
-
language — added here and only here, so
|
|
22
|
+
comment second. The body is posted with the scene's own text plus the
|
|
23
|
+
shared failure kind/record and the `help.community` line in the run's
|
|
24
|
+
language — added here and only here, so each appears exactly once.
|
|
28
25
|
"""
|
|
29
26
|
apply_label_patch(
|
|
30
27
|
number, repo=repo, event=EVENT_BLOCKED,
|
|
@@ -32,5 +29,8 @@ def post_blocked_comment(number: int, *, repo: str, body: str,
|
|
|
32
29
|
)
|
|
33
30
|
comment_issue(
|
|
34
31
|
number, repo=repo,
|
|
35
|
-
body=
|
|
32
|
+
body=(
|
|
33
|
+
f"{with_stop_record(body)}\n\n"
|
|
34
|
+
f"{language.text(language_code, 'help.community')}"
|
|
35
|
+
),
|
|
36
36
|
)
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"""Every ai-blocked stop carries the failure kind and ONE record (#2245).
|
|
2
|
+
|
|
3
|
+
A reader that identifies a stop by its machine-readable failure record —
|
|
4
|
+
Orbi Cloud's status page among them — must find EVERY terminal stop, not
|
|
5
|
+
only the ones whose scene rendered a classified report. The scenes hand
|
|
6
|
+
their own prose to the ONE blocked exit; this module adds what they all
|
|
7
|
+
share and no scene should remember: the `orbi:comment=failure` kind right
|
|
8
|
+
after the run marker, and the terminal `orbi:failure:v1` record with
|
|
9
|
+
outcome `blocked` when the scene wrote none of its own.
|
|
10
|
+
"""
|
|
11
|
+
from __future__ import annotations
|
|
12
|
+
|
|
13
|
+
from orbi import failure
|
|
14
|
+
from orbi.comment_kind import COMMENT_KIND_FAILURE, comment_kind_marker
|
|
15
|
+
|
|
16
|
+
# The record a terminal stop writes when its scene rendered none: the
|
|
17
|
+
# Issue is ai-blocked and a human decides.
|
|
18
|
+
STOP_RECORD = failure.Failure(
|
|
19
|
+
reason_code="human_decision_required", action_code="decide",
|
|
20
|
+
retry_safe=False, outcome="blocked",
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
# The record block's opening bytes, derived from the one template the
|
|
24
|
+
# renderer writes, so a presence check never spells the marker itself.
|
|
25
|
+
_RECORD_PREFIX = failure.FAILURE_BLOCK_TEMPLATE.split("{", 1)[0]
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def with_stop_record(body: str) -> str:
|
|
29
|
+
"""The body with the failure kind and exactly one terminal record.
|
|
30
|
+
|
|
31
|
+
A scene that already wrote its own record (the classified delivery
|
|
32
|
+
report, the permission and release stops) keeps it untouched; the kind
|
|
33
|
+
marker only rides a run-scoped comment, where it is the anchored line
|
|
34
|
+
right after the run marker.
|
|
35
|
+
"""
|
|
36
|
+
lines = body.split("\n")
|
|
37
|
+
if lines[0].startswith("<!-- orbi:run="):
|
|
38
|
+
kind = comment_kind_marker(COMMENT_KIND_FAILURE)
|
|
39
|
+
if lines[1:2] != [kind]:
|
|
40
|
+
lines.insert(1, kind)
|
|
41
|
+
insertion = 2
|
|
42
|
+
else:
|
|
43
|
+
insertion = 0
|
|
44
|
+
if _RECORD_PREFIX not in body:
|
|
45
|
+
lines.insert(insertion, failure.render(STOP_RECORD))
|
|
46
|
+
return "\n".join(lines)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: orbi-cli
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.48
|
|
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
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
"""Issue #1730: every blocked comment ends with the community help line.
|
|
2
|
+
|
|
3
|
+
Eleven scenes put an Issue into `ai-blocked` and each renders its own
|
|
4
|
+
reason text, unblock step, hidden markers and extra fields. What they do
|
|
5
|
+
NOT each own is what every stop shares: the ONE blocked exit
|
|
6
|
+
(`orbi.blocked_comment.post_blocked_comment`) applies the label patch,
|
|
7
|
+
writes the `failure` kind and the terminal `orbi:failure:v1` record
|
|
8
|
+
(Issue #2245), and appends the run language's `help.community` line to the
|
|
9
|
+
posted body.
|
|
10
|
+
|
|
11
|
+
Each scene test below stubs the exit's two writes and asserts the posted
|
|
12
|
+
body: the scene's own text, the shared kind/record, then one blank line and
|
|
13
|
+
the help line, exactly once. The scenes whose environment lives in another
|
|
14
|
+
module (claim scan, release, external PR, label repair, PR closed,
|
|
15
|
+
ticket-only) are driven end to end there too — the external PR stop in
|
|
16
|
+
test_question_resume.py — while the table test at the bottom pins the
|
|
17
|
+
failure kind and record of EVERY stop body (Issue #2245 acceptance 2).
|
|
18
|
+
"""
|
|
19
|
+
import pytest
|
|
20
|
+
|
|
21
|
+
import orbi.blocked_comment as blocked_comment
|
|
22
|
+
import orbi.failure_report as failure_report
|
|
23
|
+
from orbi import (
|
|
24
|
+
check_permission, failure, language, question, release_comments,
|
|
25
|
+
user_summary,
|
|
26
|
+
)
|
|
27
|
+
from orbi.comment_kind import COMMENT_KIND_FAILURE, comment_kind_marker
|
|
28
|
+
from orbi.progress import run_marker
|
|
29
|
+
from orbi.run_fields import RunFields
|
|
30
|
+
from seam import seam
|
|
31
|
+
|
|
32
|
+
RUN_ID = "a1b2c3d4"
|
|
33
|
+
REPO = "owner/repo"
|
|
34
|
+
LANGUAGES = ["en", "zh"]
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def stop_record() -> str:
|
|
38
|
+
"""The terminal blocked record the exit writes when a scene rendered
|
|
39
|
+
none (Issue #2245)."""
|
|
40
|
+
return failure.render(failure.Failure(
|
|
41
|
+
reason_code="human_decision_required", action_code="decide",
|
|
42
|
+
retry_safe=False, outcome="blocked",
|
|
43
|
+
))
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def help_line(language_code: str) -> str:
|
|
47
|
+
return language.text(language_code, "help.community")
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def capture_blocked_writes(monkeypatch) -> list:
|
|
51
|
+
"""Record the exit's label patch and comment, in call order.
|
|
52
|
+
|
|
53
|
+
The seam fans both writes out to every module that binds them, the
|
|
54
|
+
blocked exit included (tests/seam.py), so the capture never adds a
|
|
55
|
+
module-level test patch (Issue #789's ratchet).
|
|
56
|
+
"""
|
|
57
|
+
calls: list = []
|
|
58
|
+
monkeypatch.setattr(
|
|
59
|
+
seam, "apply_label_patch",
|
|
60
|
+
lambda number, **kwargs: calls.append(("label", number, kwargs)),
|
|
61
|
+
)
|
|
62
|
+
monkeypatch.setattr(
|
|
63
|
+
seam, "comment_issue",
|
|
64
|
+
lambda number, *, repo, body: calls.append(("comment", number, body)),
|
|
65
|
+
)
|
|
66
|
+
return calls
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def posted_body(calls: list) -> str:
|
|
70
|
+
"""The one body the exit posted, asserting the label landed first."""
|
|
71
|
+
assert [call[0] for call in calls] == ["label", "comment"], (
|
|
72
|
+
"the blocked exit writes the label first, the comment second"
|
|
73
|
+
)
|
|
74
|
+
assert calls[0][1] == 42
|
|
75
|
+
assert calls[0][2]["event"] == blocked_comment.EVENT_BLOCKED
|
|
76
|
+
return calls[1][2]
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
def assert_one_help_line(body: str, language_code: str) -> None:
|
|
80
|
+
"""The body ends with the language's help line as its last paragraph."""
|
|
81
|
+
line = help_line(language_code)
|
|
82
|
+
assert body.endswith(f"\n\n{line}"), body
|
|
83
|
+
assert body.count(line) == 1, body
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
@pytest.mark.parametrize("language_code", LANGUAGES)
|
|
87
|
+
def test_the_blocked_exit_labels_then_posts_the_body_and_one_help_line(
|
|
88
|
+
monkeypatch, language_code):
|
|
89
|
+
"""The exit itself: label patch, then the scene body with the
|
|
90
|
+
terminal failure record plus a blank line and the help line in the
|
|
91
|
+
run's language — added once."""
|
|
92
|
+
calls = capture_blocked_writes(monkeypatch)
|
|
93
|
+
blocked_comment.post_blocked_comment(
|
|
94
|
+
42, repo=REPO, body="Orbi failed: the reason",
|
|
95
|
+
current_labels={"ai-fix-needed"}, language_code=language_code,
|
|
96
|
+
)
|
|
97
|
+
body = posted_body(calls)
|
|
98
|
+
assert calls[0][2]["current_labels"] == {"ai-fix-needed"}
|
|
99
|
+
assert body == (
|
|
100
|
+
f"{stop_record()}\nOrbi failed: the reason\n\n"
|
|
101
|
+
f"{help_line(language_code)}"
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
@pytest.mark.parametrize("language_code", LANGUAGES)
|
|
106
|
+
def test_scene_blocked_scene_ends_with_the_help_line(
|
|
107
|
+
monkeypatch, language_code):
|
|
108
|
+
"""failure.scene_blocked (the malformed opened-PR scene)."""
|
|
109
|
+
calls = capture_blocked_writes(monkeypatch)
|
|
110
|
+
error = ValueError("bad scene")
|
|
111
|
+
failure_report.block_scene_failure(
|
|
112
|
+
{"number": 42}, error, REPO, [], language_code=language_code,
|
|
113
|
+
)
|
|
114
|
+
body = posted_body(calls)
|
|
115
|
+
expected = language.text(language_code, "failure.scene_blocked", error=error)
|
|
116
|
+
assert body == (
|
|
117
|
+
f"{stop_record()}\n{expected}\n\n{help_line(language_code)}"
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
@pytest.mark.parametrize("language_code", LANGUAGES)
|
|
122
|
+
def test_repo_config_blocked_ends_with_the_help_line(
|
|
123
|
+
monkeypatch, language_code):
|
|
124
|
+
"""failure.repo_config_blocked (the invalid repository config)."""
|
|
125
|
+
calls = capture_blocked_writes(monkeypatch)
|
|
126
|
+
error = ValueError("bad key")
|
|
127
|
+
failure_report.block_repo_config_failure(
|
|
128
|
+
42, REPO, error, RUN_ID, {"ai-ready"}, language_code=language_code,
|
|
129
|
+
)
|
|
130
|
+
body = posted_body(calls)
|
|
131
|
+
assert calls[0][2]["current_labels"] == {"ai-ready"}
|
|
132
|
+
expected = (
|
|
133
|
+
f"{run_marker(RUN_ID)}\n"
|
|
134
|
+
f"{comment_kind_marker(COMMENT_KIND_FAILURE)}\n"
|
|
135
|
+
f"{stop_record()}\n"
|
|
136
|
+
+ language.text(
|
|
137
|
+
language_code, "failure.repo_config_blocked", error=error,
|
|
138
|
+
)
|
|
139
|
+
)
|
|
140
|
+
assert body == f"{expected}\n\n{help_line(language_code)}"
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
@pytest.mark.parametrize("language_code", LANGUAGES)
|
|
144
|
+
def test_resume_blocked_ends_with_the_help_line_exactly_once(
|
|
145
|
+
monkeypatch, language_code):
|
|
146
|
+
"""failure.resume_blocked: the scene that already appended the line
|
|
147
|
+
itself now gets it from the exit — never twice."""
|
|
148
|
+
calls = capture_blocked_writes(monkeypatch)
|
|
149
|
+
error = RuntimeError("no run state file")
|
|
150
|
+
failure_report._report_resume_failure(
|
|
151
|
+
number=42, source_repo=REPO, run_id=RUN_ID, error=error,
|
|
152
|
+
language_code=language_code,
|
|
153
|
+
)
|
|
154
|
+
body = posted_body(calls)
|
|
155
|
+
# The claimed Issue still carries the queue label, so the blocked
|
|
156
|
+
# terminal clears it with the in-flight label (Issue #1775).
|
|
157
|
+
assert calls[0][2]["current_labels"] == {"ai-in-progress", "ai-ready"}
|
|
158
|
+
expected = (
|
|
159
|
+
f"{run_marker(RUN_ID)}\n"
|
|
160
|
+
f"{comment_kind_marker(COMMENT_KIND_FAILURE)}\n"
|
|
161
|
+
f"{stop_record()}\n"
|
|
162
|
+
+ language.text(
|
|
163
|
+
language_code, "failure.resume_blocked",
|
|
164
|
+
detail="no run state file", run_id=RUN_ID,
|
|
165
|
+
)
|
|
166
|
+
)
|
|
167
|
+
assert body == f"{expected}\n\n{help_line(language_code)}"
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
class Publisher:
|
|
171
|
+
"""Records the milestone publish without GitHub."""
|
|
172
|
+
|
|
173
|
+
def __init__(self) -> None:
|
|
174
|
+
self.milestones: list[str] = []
|
|
175
|
+
|
|
176
|
+
def milestone(self, body: str, **kwargs) -> None:
|
|
177
|
+
self.milestones.append(body)
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
@pytest.mark.parametrize("language_code", LANGUAGES)
|
|
181
|
+
def test_delivery_failure_diagnostic_ends_with_the_help_line(
|
|
182
|
+
monkeypatch, tmp_path, language_code):
|
|
183
|
+
"""The classified blocked diagnostic (failure.failure_comment_body):
|
|
184
|
+
its renderer stopped appending the line; the exit adds it once."""
|
|
185
|
+
calls = capture_blocked_writes(monkeypatch)
|
|
186
|
+
outcome = failure_report.report_delivery_failure(
|
|
187
|
+
failure_report.UnrecoverableDeliveryError(
|
|
188
|
+
"cannot continue the interrupted run",
|
|
189
|
+
),
|
|
190
|
+
issue={"number": 42, "title": "task", "labels": []},
|
|
191
|
+
source_repo=REPO, run_id=RUN_ID, pr_url=None,
|
|
192
|
+
worktree=tmp_path, branch="orbi/task", role="review",
|
|
193
|
+
classify=True, finish=False, publisher=Publisher(),
|
|
194
|
+
current_labels=set(), language_code=language_code,
|
|
195
|
+
)
|
|
196
|
+
assert outcome == "blocked"
|
|
197
|
+
body = posted_body(calls)
|
|
198
|
+
assert calls[0][2]["current_labels"] == set()
|
|
199
|
+
assert language.text(language_code, "failure.headline_blocked") in body
|
|
200
|
+
assert_one_help_line(body, language_code)
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
PR_URL = "https://github.com/owner/repo/pull/7"
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
def stop_scene_bodies(language_code: str) -> dict[str, str]:
|
|
207
|
+
"""The body each ONE of the eleven ai-blocked stop scenes hands over.
|
|
208
|
+
|
|
209
|
+
Each body is composed the way its writer composes it (run marker first,
|
|
210
|
+
then the scene's own text / kind / record), so the table below covers
|
|
211
|
+
the whole set of stops that label an Issue `ai-blocked` — the four
|
|
212
|
+
failure report scenes, the permission stop, the claim scan, the release,
|
|
213
|
+
the external PR, the label repair, the closed PR and the ticket-only
|
|
214
|
+
stop (Issue #2245).
|
|
215
|
+
"""
|
|
216
|
+
marker = run_marker(RUN_ID)
|
|
217
|
+
kind = comment_kind_marker(COMMENT_KIND_FAILURE)
|
|
218
|
+
summary = {
|
|
219
|
+
"status_url": None, "issue": 42, "title": "task",
|
|
220
|
+
"language_code": language_code,
|
|
221
|
+
}
|
|
222
|
+
return {
|
|
223
|
+
# failure_report: the malformed opened-PR scene.
|
|
224
|
+
"scene_blocked": (
|
|
225
|
+
f"{marker}\n{kind}\n"
|
|
226
|
+
+ language.text(
|
|
227
|
+
language_code, "failure.scene_blocked",
|
|
228
|
+
error=ValueError("bad scene"),
|
|
229
|
+
)
|
|
230
|
+
),
|
|
231
|
+
# failure_report: the invalid repository config.
|
|
232
|
+
"repo_config_blocked": (
|
|
233
|
+
f"{marker}\n{kind}\n"
|
|
234
|
+
+ language.text(
|
|
235
|
+
language_code, "failure.repo_config_blocked",
|
|
236
|
+
error=ValueError("bad key"),
|
|
237
|
+
)
|
|
238
|
+
),
|
|
239
|
+
# failure_report: the unverifiable resumed run.
|
|
240
|
+
"resume_blocked": (
|
|
241
|
+
f"{marker}\n{kind}\n"
|
|
242
|
+
+ language.text(
|
|
243
|
+
language_code, "failure.resume_blocked",
|
|
244
|
+
detail="no run state", run_id=RUN_ID,
|
|
245
|
+
)
|
|
246
|
+
),
|
|
247
|
+
# failure_report: the classified delivery failure (its own record).
|
|
248
|
+
"delivery_failure": (
|
|
249
|
+
f"{marker}\n{kind}\n"
|
|
250
|
+
+ failure.failure_comment_body(
|
|
251
|
+
outcome="blocked", action="fix", reason="boom",
|
|
252
|
+
diagnosis="diagnosis", scene="scene", evidence="",
|
|
253
|
+
pr_url=None, issue="owner/repo#42", run_id=RUN_ID,
|
|
254
|
+
language_code=language_code, issue_number=42,
|
|
255
|
+
issue_title="task",
|
|
256
|
+
)
|
|
257
|
+
),
|
|
258
|
+
# check_permission: the App has not approved the check read.
|
|
259
|
+
"checks_permission_missing": check_permission.comment_body(
|
|
260
|
+
check_permission.CheckPermission(pr=7),
|
|
261
|
+
url="https://github.com/settings/installations/9",
|
|
262
|
+
run_id=RUN_ID, issue_number=42, issue_title="task",
|
|
263
|
+
language_code=language_code,
|
|
264
|
+
),
|
|
265
|
+
# resume_scan: the opened-PR scene comment is missing.
|
|
266
|
+
"claim_scene_missing": user_summary.notice(
|
|
267
|
+
marker, "claim.scene_missing", error="gone", **summary,
|
|
268
|
+
),
|
|
269
|
+
# release_closeout: the release task failed.
|
|
270
|
+
"release_failed": release_comments.release_failure_comment_body(
|
|
271
|
+
RUN_ID, RunFields(RUN_ID, "normal"), ValueError("boom"),
|
|
272
|
+
language_code=language_code, step="publish",
|
|
273
|
+
),
|
|
274
|
+
# review_merge: the external PR that passed review.
|
|
275
|
+
"external_pr": (
|
|
276
|
+
f"{marker}\n"
|
|
277
|
+
+ language.text(
|
|
278
|
+
language_code, "review.external_conclusion", run_id=RUN_ID,
|
|
279
|
+
)
|
|
280
|
+
+ "\n\n"
|
|
281
|
+
+ question.external_pr_stop(
|
|
282
|
+
number=42, source_repo=REPO, pr_url=PR_URL,
|
|
283
|
+
language_code=language_code, comments=[],
|
|
284
|
+
)
|
|
285
|
+
),
|
|
286
|
+
# review_merge: the delivery labels could not be repaired.
|
|
287
|
+
"label_repair_failed": user_summary.append_summary(
|
|
288
|
+
marker + "\n" + language.text(
|
|
289
|
+
language_code, "review.label_repair_failed",
|
|
290
|
+
pr_url=PR_URL, reason="labels unreadable",
|
|
291
|
+
),
|
|
292
|
+
**summary,
|
|
293
|
+
),
|
|
294
|
+
# runner: the PR was closed without a merge.
|
|
295
|
+
"pr_closed": user_summary.notice(
|
|
296
|
+
marker, "runner.pr_closed_comment", pr_url=PR_URL, **summary,
|
|
297
|
+
),
|
|
298
|
+
# runner: the ticket-only delivery failed.
|
|
299
|
+
"ticket_only_failed": user_summary.notice(
|
|
300
|
+
marker, "runner.ticket_only_failed", detail="boom",
|
|
301
|
+
run_info="base_branch=main", run_id=RUN_ID, **summary,
|
|
302
|
+
),
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
@pytest.mark.parametrize("scene", sorted(stop_scene_bodies("en")))
|
|
307
|
+
def test_every_ai_blocked_stop_writes_the_failure_kind_and_record(
|
|
308
|
+
monkeypatch, scene):
|
|
309
|
+
"""Issue #2245 acceptance 2: every stop that labels an Issue
|
|
310
|
+
`ai-blocked` writes ONE `orbi:failure:v1` record with outcome
|
|
311
|
+
`blocked` and a closed-set reason, beside the failure kind — a reader
|
|
312
|
+
that identifies a stop by its record (the Cloud status page) finds
|
|
313
|
+
every one of them."""
|
|
314
|
+
calls = capture_blocked_writes(monkeypatch)
|
|
315
|
+
blocked_comment.post_blocked_comment(
|
|
316
|
+
42, repo=REPO, body=stop_scene_bodies("en")[scene],
|
|
317
|
+
current_labels=set(), language_code="en",
|
|
318
|
+
)
|
|
319
|
+
body = posted_body(calls)
|
|
320
|
+
assert body.splitlines()[1] == comment_kind_marker(COMMENT_KIND_FAILURE)
|
|
321
|
+
assert body.count("<!-- orbi:failure:v1 ") == 1
|
|
322
|
+
record = failure.parse(body)
|
|
323
|
+
assert record is not None
|
|
324
|
+
assert record.outcome == "blocked"
|
|
325
|
+
assert record.reason_code in failure.REASON_CODES
|
|
@@ -34,6 +34,7 @@ import orbi.runner as runner
|
|
|
34
34
|
from orbi import config as config_domain
|
|
35
35
|
from orbi import failure
|
|
36
36
|
from orbi import language
|
|
37
|
+
from orbi.comment_kind import COMMENT_KIND_FAILURE, comment_kind_marker
|
|
37
38
|
|
|
38
39
|
# Issue #1826: the operator's one optional project status page.
|
|
39
40
|
TASK_STATUS_URL = "https://tasks.example.org/project-status?repo=example%2Fwidget"
|
|
@@ -3188,11 +3189,12 @@ def test_process_release_failure_comment_carries_failure_block(monkeypatch):
|
|
|
3188
3189
|
assert failure.parse(body) == expected
|
|
3189
3190
|
assert expected.reason_code in failure.REASON_CODES
|
|
3190
3191
|
assert expected.action_code in failure.ACTION_CODES
|
|
3191
|
-
# Exactly one block,
|
|
3192
|
+
# Exactly one block, kind second, block directly under it (Issue #2245).
|
|
3192
3193
|
assert body.count("<!-- orbi:failure:v1") == 1
|
|
3193
3194
|
lines = body.splitlines()
|
|
3194
3195
|
assert lines[0] == "<!-- orbi:run=a1b2c3d4 -->"
|
|
3195
|
-
assert lines[1] ==
|
|
3196
|
+
assert lines[1] == comment_kind_marker(COMMENT_KIND_FAILURE)
|
|
3197
|
+
assert lines[2] == failure.render(expected)
|
|
3196
3198
|
assert "Orbi release failed (ai-blocked)" in body
|
|
3197
3199
|
|
|
3198
3200
|
|
|
@@ -1030,12 +1030,20 @@ def test_resume_blocked_comment_is_redacted_and_ends_with_help_line(
|
|
|
1030
1030
|
run_id=RUN_ID,
|
|
1031
1031
|
)
|
|
1032
1032
|
help_line = language.text(language_code, "help.community")
|
|
1033
|
+
# Issue #2245: the blocked stop now also states the terminal failure
|
|
1034
|
+
# record, so a reader that identifies a stop by its record finds this
|
|
1035
|
+
# one too.
|
|
1036
|
+
record = failure.render(failure.Failure(
|
|
1037
|
+
reason_code="human_decision_required", action_code="decide",
|
|
1038
|
+
retry_safe=False, outcome="blocked",
|
|
1039
|
+
))
|
|
1033
1040
|
# The comment layer appends the hidden runner marker; everything before
|
|
1034
1041
|
# it is this function's body, asserted byte for byte.
|
|
1035
1042
|
assert re.fullmatch(
|
|
1036
1043
|
re.escape(
|
|
1037
1044
|
f"<!-- orbi:run={RUN_ID} -->\n"
|
|
1038
1045
|
f"<!-- orbi:comment=failure -->\n"
|
|
1046
|
+
f"{record}\n"
|
|
1039
1047
|
f"{sentence}\n"
|
|
1040
1048
|
f"\n"
|
|
1041
1049
|
f"{help_line}"
|
|
@@ -18,9 +18,10 @@ from pathlib import Path
|
|
|
18
18
|
import pytest
|
|
19
19
|
|
|
20
20
|
from orbi import (
|
|
21
|
-
acceptance_section, failure_report, notify, question, requeue,
|
|
21
|
+
acceptance_section, failure, failure_report, notify, question, requeue,
|
|
22
22
|
review_merge, runner,
|
|
23
23
|
)
|
|
24
|
+
from orbi.comment_kind import COMMENT_KIND_FAILURE, comment_kind_marker
|
|
24
25
|
from orbi.delivery_labels import BLOCKED_LABEL, FIX_NEEDED_LABEL, PR_OPENED_LABEL
|
|
25
26
|
from tests.fakes.github import FakeGh
|
|
26
27
|
from tests.fakes.question import (
|
|
@@ -264,6 +265,14 @@ def test_the_external_pr_stop_asks_the_maintainers_three_questions(gh, monkeypat
|
|
|
264
265
|
assert review_merge._round_external_phase(work) is True
|
|
265
266
|
|
|
266
267
|
body = posted[0]
|
|
268
|
+
# Issue #2245 acceptance 1: the posted stop carries the blocked failure
|
|
269
|
+
# record beside the unchanged question, so a reader that identifies a
|
|
270
|
+
# stop by its failure record finds it.
|
|
271
|
+
assert body.splitlines()[1] == comment_kind_marker(COMMENT_KIND_FAILURE)
|
|
272
|
+
record = failure.parse(body)
|
|
273
|
+
assert record is not None
|
|
274
|
+
assert record.outcome == "blocked"
|
|
275
|
+
assert record.reason_code in failure.REASON_CODES
|
|
267
276
|
stop = question.parse_question_block(body)
|
|
268
277
|
assert stop is not None
|
|
269
278
|
assert stop.decision_class == question.DECISION_AUTHORITY
|