Repository navigation
test(taxonomy): classify 356 unclassified test modules (#4552 item 3, partial) - #4695
Conversation
…t cost Add one module-level behavioral marker to each unclassified test module that can carry one without growing any ratchet (#4552 item 3, partial): - tests/unit modules: unit. - tests/integration modules whose tests all assert observable outcomes: e2e when they drive only the installed CLI, component otherwise. - tests/quality, tests/spec_conformance, tests/fixtures and tests/perf: component or e2e under the same rule, unit when they only assert return values of static checks. unclassified_modules shrinks 558 -> 202. AQ003, AQ006 and misplaced_modules are unchanged. The 196 return-value-only modules under tests/integration (and the 6 modules #4687 deletes) stay in the baseline; the required-classification flip is split to a follow-up. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…ract test_ado_e2e now carries its behavioural marker (e2e) next to live and requires_ado_pat; the contract still pins the opt-in and PAT gates. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
New test markers misclassify CLI and filesystem-backed tests as unit tests and an installed-CLI test as integration, prematurely treating classification debt as resolved.
2 open issues
What changed in this PR
This test-only PR partially addresses #4552 item 3 by adding behavioral classifications to 356 test modules. It reduces the unclassified baseline from 558 to 202, leaving the remaining classifications and required-classification enforcement for follow-up work.
Changes:
- Adds module-level
unit,component, ore2emarkers while preserving existing scheduling and prerequisite markers. - Removes classified modules from the unclassified baseline without changing other allowances.
- Updates the ADO workflow contract to expect the added
e2emarker.
| File | Description |
|---|---|
| tests/unit/test_windows_installer_binary_test.py | Adds unit alongside Windows coverage. |
| tests/unit/test_windows_installer_archive_fallback.py | Adds unit alongside Windows coverage. |
| tests/unit/test_windows_compat_gate_workflow.py | Adds unit marker. |
| tests/unit/test_vscode_adapter.py | Adds unit marker. |
| tests/unit/test_view_command_cli_surface.py | Adds unit marker. |
| tests/unit/test_version.py | Adds unit marker. |
| tests/unit/test_unpacker.py | Adds unit marker. |
| tests/unit/test_unpack_security.py | Adds unit marker. |
| tests/unit/test_uninstall_reintegration.py | Adds unit marker. |
| tests/unit/test_thread_safety.py | Adds unit marker. |
| tests/unit/test_skillspector_llm.py | Adds unit marker. |
| tests/unit/test_self_update_config.py | Adds unit marker. |
| tests/unit/test_script_runner.py | Adds unit marker. |
| tests/unit/test_scoped_mcp_server_names.py | Adds unit marker. |
| tests/unit/test_runtime_manager.py | Adds unit marker. |
| tests/unit/test_reflink.py | Adds unit marker. |
| tests/unit/test_reflink_filesystem_support.py | Adds unit marker. |
| tests/unit/test_prune_command.py | Adds unit marker. |
| tests/unit/test_plugin_exporter_compatibility.py | Adds unit marker. |
| tests/unit/test_packer.py | Adds unit marker. |
| tests/unit/test_mcp_registry_version_display.py | Adds unit marker. |
| tests/unit/test_mcp_lifecycle_e2e.py | Adds unit marker. |
| tests/unit/test_mcp_client_factory.py | Adds unit marker. |
| tests/unit/test_lifecycle_timeout_validation.py | Adds unit marker. |
| tests/unit/test_lifecycle_executor_paths.py | Adds unit marker. |
| tests/unit/test_lifecycle_cli.py | Adds unit marker. |
| tests/unit/test_kiro_mcp.py | Adds unit marker. |
| tests/unit/test_integration_binary_path_contract.py | Adds unit marker. |
| tests/unit/test_init_command.py | Adds unit marker. |
| tests/unit/test_helpers.py | Adds unit marker. |
| tests/unit/test_global_mcp_scope.py | Adds unit marker. |
| tests/unit/test_git_cache_branch_coverage.py | Adds unit marker. |
| tests/unit/test_gemini_mcp.py | Adds unit marker. |
| tests/unit/test_file_ops.py | Adds unit marker. |
| tests/unit/test_external_scanners.py | Adds unit marker. |
| tests/unit/test_external_options.py | Adds unit marker. |
| tests/unit/test_exclude.py | Adds unit marker. |
| tests/unit/test_enterprise_bootstrap_installers.py | Adds unit marker. |
| tests/unit/test_devcontainer_feature_retired.py | Adds unit marker. |
| tests/unit/test_deps_update_command.py | Adds unit marker. |
| tests/unit/test_cursor_mcp.py | Adds unit marker. |
| tests/unit/test_copilot_adapter.py | Adds unit marker. |
| tests/unit/test_copilot_adapter_compatibility.py | Adds unit marker. |
| tests/unit/test_content_scanner.py | Adds unit marker. |
| tests/unit/test_console_utils.py | Adds unit marker. |
| tests/unit/test_config.py | Adds unit marker. |
| tests/unit/test_config_command.py | Adds unit marker. |
| tests/unit/test_compile_rich_output.py | Adds unit marker. |
| tests/unit/test_command_logger.py | Adds unit marker. |
| tests/unit/test_collection_migration_error.py | Adds unit marker. |
| tests/unit/test_codex_adapter_compatibility.py | Adds unit marker. |
| tests/unit/test_cli_sigterm.py | Adds unit, preserving POSIX skip. |
| tests/unit/test_cli_lazy_dispatch.py | Adds unit marker. |
| tests/unit/test_cli_docs_contract.py | Adds unit marker. |
| tests/unit/test_claude_mcp.py | Adds unit marker. |
| tests/unit/test_auth_command.py | Adds unit marker. |
| tests/unit/test_audit_policy_command.py | Adds unit marker. |
| tests/unit/test_agent_plugins.py | Adds unit marker. |
| tests/unit/test_ado_live_workflow_contract.py | Adds unit; expects ADO e2e marker. |
| tests/unit/security/test_resolve_exec_decision.py | Adds unit marker. |
| tests/unit/scripts/test_check_exact_test_duplicates.py | Adds unit marker. |
| tests/unit/scripts/test_architecture_runner.py | Adds unit marker. |
| tests/unit/scripts/test_architecture_registry.py | Adds unit marker. |
| tests/unit/scripts/test_architecture_registry_conflicts.py | Adds unit marker. |
| tests/unit/scripts/test_architecture_inventory.py | Adds unit marker. |
| tests/unit/policy/test_help_consistency.py | Adds unit marker. |
| tests/unit/policy/test_ci_checks.py | Adds unit marker. |
| tests/unit/marketplace/test_version_pins.py | Adds unit marker. |
| tests/unit/marketplace/test_review_fixes.py | Adds unit marker. |
| tests/unit/marketplace/test_outputs_map_form.py | Adds unit marker. |
| tests/unit/marketplace/test_init_template.py | Adds unit marker. |
| tests/unit/marketplace/test_drift_check.py | Adds unit marker. |
| tests/unit/marketplace/test_builder.py | Adds unit marker. |
| tests/unit/integration/test_windsurf_uninstall_skills.py | Adds unit marker. |
| tests/unit/integration/test_skill_transformer.py | Adds unit marker. |
| tests/unit/integration/test_skill_integrator.py | Adds unit marker. |
| tests/unit/integration/test_skill_integrator_cowork.py | Adds unit marker. |
| tests/unit/integration/test_scope_install_uninstall.py | Adds unit marker. |
| tests/unit/integration/test_prompt_integrator.py | Adds unit marker. |
| tests/unit/integration/test_kiro_target.py | Adds unit marker. |
| tests/unit/integration/test_instruction_integrator.py | Adds unit marker. |
| tests/unit/integration/test_hook_target_selection.py | Adds unit marker. |
| tests/unit/integration/test_hook_integrator.py | Adds unit marker. |
| tests/unit/integration/test_hook_integrator_defect_regression.py | Adds unit marker. |
| tests/unit/integration/test_deployed_files_manifest.py | Adds unit marker. |
| tests/unit/integration/test_dep_target_intersection.py | Adds unit marker. |
| tests/unit/integration/test_data_driven_dispatch.py | Adds unit marker. |
| tests/unit/integration/test_copilot_cowork_paths.py | Adds unit marker. |
| tests/unit/integration/test_copilot_app_ws.py | Adds unit marker. |
| tests/unit/integration/test_copilot_app_project.py | Adds unit marker. |
| tests/unit/integration/test_copilot_app_db.py | Adds unit marker. |
| tests/unit/integration/test_command_integrator.py | Adds unit marker. |
| tests/unit/integration/test_cleanup_skill_dirs.py | Adds unit marker. |
| tests/unit/integration/test_cleanup_helper.py | Adds unit marker. |
| tests/unit/integration/test_canvas_integrator.py | Adds unit marker. |
| tests/unit/integration/test_base_integrator.py | Adds unit marker. |
| tests/unit/integration/test_agent_integrator.py | Adds unit marker. |
| tests/unit/install/test_target_contraction_logging.py | Adds unit marker. |
| tests/unit/install/test_skill_path_migration.py | Adds unit marker. |
| tests/unit/install/test_services.py | Adds unit marker. |
| tests/unit/install/test_services_rendering.py | Adds unit marker. |
| tests/unit/install/test_services_hook_scope.py | Adds unit marker. |
| tests/unit/install/test_services_branches.py | Adds unit marker. |
| tests/unit/install/test_require_hashes.py | Adds unit marker. |
| tests/unit/install/test_replay_exec_allow_map.py | Adds unit marker. |
| tests/unit/install/test_lsp_integration.py | Adds unit marker. |
| tests/unit/install/test_local_bundle_hook_trust.py | Adds unit marker. |
| tests/unit/install/test_lifecycle_trust_gate.py | Adds unit marker. |
| tests/unit/install/test_legacy_plugin_compat.py | Adds unit marker. |
| tests/unit/install/test_install_target_copilot_cowork_e2e.py | Adds unit marker. |
| tests/unit/install/test_install_safety.py | Adds unit marker. |
| tests/unit/install/test_install_local_bundle.py | Adds unit, preserving readiness skip. |
| tests/unit/install/test_frozen.py | Adds unit marker. |
| tests/unit/install/test_exec_decision_equivalence.py | Adds unit marker. |
| tests/unit/install/test_claude_native_registration.py | Adds unit marker. |
| tests/unit/install/test_architecture_invariants.py | Adds unit marker. |
| tests/unit/install/phases/test_lockfile_union.py | Adds unit marker. |
| tests/unit/install/phases/test_lockfile_orphan_prune.py | Adds unit marker. |
| tests/unit/install/phases/test_lockfile_cross_package_reconcile.py | Adds unit marker. |
| tests/unit/export/test_lazy_import.py | Adds unit marker. |
| tests/unit/deps/test_git_auth_env.py | Adds unit marker. |
| tests/unit/deps/test_bare_cache_sparse.py | Adds unit marker. |
| tests/unit/core/test_token_manager_lifecycle.py | Adds unit marker. |
| tests/unit/core/test_target_catalog_owner_invariant.py | Adds unit marker. |
| tests/unit/core/test_script_runner_execution.py | Adds unit marker. |
| tests/unit/core/test_scope.py | Adds unit marker. |
| tests/unit/core/test_output_mode.py | Adds unit marker. |
| tests/unit/core/test_lifecycle_scripts.py | Adds unit marker. |
| tests/unit/core/test_experimental.py | Adds unit marker. |
| tests/unit/core/test_error_renderer.py | Adds unit marker. |
| tests/unit/core/test_auth_credential_report.py | Adds unit, preserving POSIX skip. |
| tests/unit/commands/test_install_context.py | Adds unit marker. |
| tests/unit/commands/test_experimental_command.py | Adds unit marker. |
| tests/unit/commands/test_approve_deny.py | Adds unit marker. |
| tests/unit/cache/test_git_cache_sparse.py | Adds unit marker. |
| tests/unit/bundle/test_tar_windows_absolute_path.py | Adds unit marker. |
| tests/unit/adapters/test_hermes_client_adapter.py | Adds unit marker. |
| tests/spec_conformance/test_exec_decision_reqs.py | Adds unit; preserves requirement markers. |
| tests/spec_conformance/test_deletion_evidence_reqs.py | Adds component; preserves requirement markers. |
| tests/quality/test_test_taxonomy.py | Adds unit marker. |
| tests/quality/test_taxonomy_baseline.json | Removes 356 unclassified allowances. |
| tests/quality/test_quality_baselines.py | Adds component marker. |
| tests/quality/test_lifecycle_bug_ledger.py | Adds unit marker. |
| tests/quality/test_ci_topology.py | Adds unit marker. |
| tests/perf/test_architecture_linter_scaling.py | Adds unit, preserving opt-in gates. |
| tests/integration/test_windows_installer_launchers.py | Adds component marker. |
| tests/integration/test_wave6_outdated_view_coverage.py | Adds component marker. |
| tests/integration/test_wave6_deps_cli_coverage.py | Adds component marker. |
| tests/integration/test_vscode_adapter_phase3w4.py | Adds component marker. |
| tests/integration/test_virtual_package_lifecycle_matrix.py | Adds component marker. |
| tests/integration/test_user_scope_file_provenance_lifecycle.py | Adds e2e marker. |
| tests/integration/test_user_hook_home_migration_lifecycle.py | Adds e2e marker. |
| tests/integration/test_user_authored_name_collision_lifecycle.py | Adds e2e marker. |
| tests/integration/test_update_receipt_less_lifecycle.py | Adds e2e marker. |
| tests/integration/test_update_mcp_lsp_prune.py | Adds component marker. |
| tests/integration/test_update_e2e.py | Adds e2e, preserving credential skip. |
| tests/integration/test_unquoted_lockfile_version_lifecycle.py | Adds e2e marker. |
| tests/integration/test_unpack_destination_containment_lifecycle.py | Adds e2e marker. |
| tests/integration/test_uninstall_refusal_lockfile_truth_lifecycle.py | Adds e2e marker. |
| tests/integration/test_uninstall_multi_e2e.py | Adds e2e marker. |
| tests/integration/test_uninstall_marketplace.py | Adds e2e marker. |
| tests/integration/test_uninstall_dry_run_e2e.py | Adds e2e marker. |
| tests/integration/test_unicode_space_paths_lifecycle.py | Adds e2e marker. |
| tests/integration/test_transitive_mcp_audit_e2e.py | Adds e2e marker. |
| tests/integration/test_transitive_chain_e2e.py | Adds e2e marker. |
| tests/integration/test_tls_trust_hint_lifecycle.py | Adds e2e marker. |
| tests/integration/test_target_resolution_e2e.py | Adds component marker. |
| tests/integration/test_target_policy_gate_parity_lifecycle.py | Adds e2e marker. |
| tests/integration/test_target_manifest_upgrade_lifecycle.py | Adds e2e marker. |
| tests/integration/test_target_instruction_contraction_e2e.py | Adds e2e marker. |
| tests/integration/test_target_error_rendering_lifecycle.py | Adds e2e marker. |
| tests/integration/test_target_declaration_install_lifecycle.py | Adds e2e marker. |
| tests/integration/test_target_declaration_adjacent_commands_lifecycle.py | Adds e2e marker. |
| tests/integration/test_symlinked_mcp_config_lifecycle.py | Adds e2e marker. |
| tests/integration/test_symlinked_hook_settings_lifecycle.py | Adds e2e marker. |
| tests/integration/test_symlinked_deploy_directory_lifecycle.py | Adds e2e marker. |
| tests/integration/test_stale_cleanup_hash_authority_lifecycle.py | Adds e2e marker. |
| tests/integration/test_ssh_cache_transport_lifecycle.py | Adds e2e marker. |
| tests/integration/test_skill_integration.py | Adds e2e marker. |
| tests/integration/test_skill_install.py | Adds e2e marker. |
| tests/integration/test_skill_cleanup_containment_lifecycle.py | Adds e2e marker. |
| tests/integration/test_skill_bundle_live.py | Adds e2e, preserving live gates. |
| tests/integration/test_shared_root_skill_contraction_e2e.py | Adds e2e marker. |
| tests/integration/test_selective_install_mcp.py | Adds component marker. |
| tests/integration/test_removed_dependency_user_skill_file_lifecycle.py | Adds e2e marker. |
| tests/integration/test_release_homebrew_update.py | Adds component marker. |
| tests/integration/test_registry_redirect_origin_lifecycle.py | Adds e2e marker. |
| tests/integration/test_registry_redirect_location_hardening_lifecycle.py | Adds e2e marker. |
| tests/integration/test_registry_only_chain_lifecycle.py | Adds e2e marker. |
| tests/integration/test_prune_hook_reconciliation_e2e.py | Adds component marker. |
| tests/integration/test_profile_uninstall_runtime_scope_lifecycle.py | Adds e2e marker. |
| tests/integration/test_producer_journey.py | Adds component marker. |
| tests/integration/test_pre_compile_chain_lifecycle.py | Adds e2e marker. |
| tests/integration/test_policy_url_chain_parity.py | Adds component marker. |
| tests/integration/test_policy_tighten_chain_lifecycle.py | Adds e2e marker. |
| tests/integration/test_policy_refusal_stderr_lifecycle.py | Adds e2e marker. |
| tests/integration/test_policy_install_e2e.py | Adds component marker. |
| tests/integration/test_plugin_skill_subset_pack_e2e.py | Adds e2e marker. |
| tests/integration/test_plugin_bin_deploy_hardening.py | Adds component, preserving POSIX skip. |
| tests/integration/test_pack_unpack_e2e.py | Adds e2e marker. |
| tests/integration/test_pack_unified.py | Adds component marker. |
| tests/integration/test_pack_root_skills_e2e.py | Adds e2e marker. |
| tests/integration/test_pack_bundle_roundtrip_lifecycle.py | Adds e2e marker. |
| tests/integration/test_pack_apm_provenance_e2e.py | Adds e2e marker. |
| tests/integration/test_multitarget_edit_audit_chain_lifecycle.py | Adds e2e marker. |
| tests/integration/test_monorepo_subdirectory_switch_lifecycle.py | Adds e2e marker. |
| tests/integration/test_mixed_deps.py | Adds e2e marker. |
| tests/integration/test_mcp_transport_policy_lifecycle.py | Adds e2e marker. |
| tests/integration/test_mcp_targets_gating_e2e.py | Adds component marker. |
| tests/integration/test_mcp_stdio_env_resolution_e2e.py | Adds e2e, preserving serialization group. |
| tests/integration/test_mcp_retired_preview_lifecycle.py | Adds e2e marker. |
| tests/integration/test_mcp_pruned_runtime_dir_cleanup_lifecycle.py | Adds e2e marker. |
| tests/integration/test_mcp_env_var_headers_e2e.py | Adds e2e marker. |
| tests/integration/test_mcp_edit_policy_chain_lifecycle.py | Adds e2e marker. |
| tests/integration/test_mcp_credential_scope_lifecycle.py | Adds e2e marker. |
| tests/integration/test_mcp_config_merge_safety_lifecycle.py | Adds e2e marker. |
| tests/integration/test_marketplace_versioned_directory_lifecycle.py | Adds e2e marker. |
| tests/integration/test_marketplace_ssh_install_e2e.py | Adds component marker. |
| tests/integration/test_marketplace_package_category_lifecycle.py | Adds e2e marker. |
| tests/integration/test_marketplace_pack_producer_refs_lifecycle.py | Adds e2e marker. |
| tests/integration/test_marketplace_pack_consumer_chain_lifecycle.py | Adds e2e marker. |
| tests/integration/test_marketplace_install_local.py | Adds component, preserving Git gate. |
| tests/integration/test_marketplace_add_local.py | Adds component, preserving Git gate. |
| tests/integration/test_marketplace_add_generic_git.py | Adds component, preserving Git gate. |
| tests/integration/test_manifest_rewrite_preservation_lifecycle.py | Adds e2e marker. |
| tests/integration/test_manifest_duplicate_key_lifecycle.py | Adds e2e marker. |
| tests/integration/test_manifest_comments_e2e.py | Adds component marker. |
| tests/integration/test_manifest_anchor_rejection_lifecycle.py | Adds e2e marker. |
| tests/integration/test_lockfileless_skill_cleanup_lifecycle.py | Adds e2e marker. |
| tests/integration/test_lockfile_transitive_replay_e2e.py | Adds component marker. |
| tests/integration/test_lockfile_symlink_update_uninstall_lifecycle.py | Adds e2e marker. |
| tests/integration/test_lock_e2e.py | Adds e2e marker. |
| tests/integration/test_local_path_dependency_targets_e2e.py | Adds e2e marker. |
| tests/integration/test_local_link_rejection_lifecycle.py | Adds e2e marker. |
| tests/integration/test_local_link_audit_replay_lifecycle.py | Adds e2e marker. |
| tests/integration/test_local_install.py | Adds e2e marker. |
| tests/integration/test_local_dependency_graph_chain_lifecycle.py | Adds e2e marker. |
| tests/integration/test_local_content_audit.py | Adds e2e marker. |
| tests/integration/test_local_claude_plugin_mcp_lifecycle.py | Adds component marker. |
| tests/integration/test_local_bundle_primitive_paths_lifecycle.py | Adds e2e marker. |
| tests/integration/test_local_bundle_mcp_retire_lifecycle.py | Adds e2e marker. |
| tests/integration/test_local_bundle_manifest_targets_lifecycle.py | Adds e2e marker. |
| tests/integration/test_link_rewrite_e2e.py | Adds e2e marker. |
| tests/integration/test_lifecycle_workspace_lock.py | Adds e2e alongside Windows coverage. |
| tests/integration/test_lifecycle_trust_upgrade_lifecycle.py | Adds e2e marker. |
| tests/integration/test_lifecycle_script_interrupt_lifecycle.py | Adds e2e marker. |
| tests/integration/test_lifecycle_reconciliation.py | Adds component marker. |
| tests/integration/test_json_mcp_native_conflict_lifecycle.py | Adds e2e marker. |
| tests/integration/test_intra_package_cleanup.py | Adds e2e marker. |
| tests/integration/test_integration.py | Adds component marker. |
| tests/integration/test_install_verbose_redaction_e2e.py | Adds e2e marker. |
| tests/integration/test_install_subdir_dedup_e2e.py | Adds component marker. |
| tests/integration/test_install_silent_skip_e2e.py | Adds component marker. |
| tests/integration/test_install_root_redirect_e2e.py | Adds e2e marker. |
| tests/integration/test_install_lsp_lockfile_determinism.py | Adds component marker. |
| tests/integration/test_install_local_bundle_e2e.py | Adds component marker. |
| tests/integration/test_install_invalid_deps_format_e2e.py | Adds component marker. |
| tests/integration/test_install_dry_run_e2e.py | Adds e2e marker. |
| tests/integration/test_install_dir_plugin_audit_lifecycle.py | Adds e2e marker. |
| tests/integration/test_install_compile_claude_dedup_e2e.py | Adds e2e marker. |
| tests/integration/test_install_compile_antigravity_dedup_e2e.py | Adds e2e marker. |
| tests/integration/test_install_commit_order_lifecycle.py | Adds e2e marker. |
| tests/integration/test_install_cli_cursor_claude_import_recheck_e2e.py | Adds component marker. |
| tests/integration/test_init_removed_flags_lifecycle.py | Adds e2e marker. |
| tests/integration/test_init_reinit_targets_lifecycle.py | Adds e2e marker. |
| tests/integration/test_init_bootstrap_chain_lifecycle.py | Adds e2e marker. |
| tests/integration/test_inactive_target_ghost_e2e.py | Adds component marker. |
| tests/integration/test_ide_target_refusal_lifecycle.py | Adds e2e marker. |
| tests/integration/test_hook_wipe_target_scope_e2e.py | Adds component marker. |
| tests/integration/test_hook_target_contraction_reconciliation.py | Adds component marker. |
| tests/integration/test_hook_sidecar_drift_e2e.py | Adds e2e marker. |
| tests/integration/test_hook_root_source_drift_e2e.py | Adds e2e marker. |
| tests/integration/test_hook_removed_file_event_retirement_lifecycle.py | Adds e2e marker. |
| tests/integration/test_hook_configured_routing_e2e.py | Adds component marker. |
| tests/integration/test_hermetic_lifecycle_foundation.py | Adds e2e marker. |
| tests/integration/test_grok_bot_skill_deploy.py | Adds component marker. |
| tests/integration/test_golden_scenario_e2e.py | Adds e2e, preserving serialization group. |
| tests/integration/test_global_scope_agreement_lifecycle.py | Adds e2e marker. |
| tests/integration/test_global_mcp_lockfile_e2e.py | Adds component marker. |
| tests/integration/test_global_mcp_bootstrap_targets_lifecycle.py | Adds e2e marker. |
| tests/integration/test_global_install_e2e.py | Adds component marker. |
| tests/integration/test_global_claude_profiles_chain_lifecycle.py | Adds e2e marker. |
| tests/integration/test_gitlab_install_e2e.py | Adds component marker. |
| tests/integration/test_github_credential_scope_lifecycle.py | Adds e2e marker. |
| tests/integration/test_gemini_integration.py | Adds component marker. |
| tests/integration/test_frozen_undeclared_package_retention_lifecycle.py | Adds e2e marker. |
| tests/integration/test_frozen_deployed_hash_lifecycle.py | Adds e2e marker. |
| tests/integration/test_frozen_cold_cache_apm_package_e2e.py | Adds component marker. |
| tests/integration/test_find_command.py | Adds component marker. |
| tests/integration/test_fault_injection_atomicity_lifecycle.py | Adds e2e marker. |
| tests/integration/test_fail_before_integrate_lifecycle.py | Adds e2e marker. |
| tests/integration/test_export_patch_installed_packages_lifecycle.py | Adds e2e marker. |
| tests/integration/test_export_patch_e2e.py | Adds component marker. |
| tests/integration/test_executable_approval_replacement_lifecycle.py | Adds e2e marker. |
| tests/integration/test_executable_approval_default_host_lifecycle.py | Adds e2e marker. |
| tests/integration/test_empty_skill_dir_install_lifecycle.py | Adds e2e marker. |
| tests/integration/test_duplicate_declaration_lifecycle.py | Adds e2e marker. |
| tests/integration/test_drift_check_e2e.py | Adds component marker. |
| tests/integration/test_download_strategies_selection.py | Adds component marker. |
| tests/integration/test_diff_aware_install_e2e.py | Adds e2e marker. |
| tests/integration/test_dev_dependency_orphan_e2e.py | Adds e2e marker. |
| tests/integration/test_deps_why_promises_e2e.py | Adds component marker. |
| tests/integration/test_deps_why_e2e.py | Adds component marker. |
| tests/integration/test_deps_update_e2e.py | Adds e2e marker. |
| tests/integration/test_deps_list_uninstall_key_lifecycle.py | Adds e2e marker. |
| tests/integration/test_deployed_files_gitignore_integration.py | Adds component marker. |
| tests/integration/test_deny_remediation_lifecycle.py | Adds e2e marker. |
| tests/integration/test_cursor_user_scope_chain_lifecycle.py | Adds e2e marker. |
| tests/integration/test_cursor_mcp_schema_fidelity.py | Adds e2e marker. |
| tests/integration/test_cross_package_collision_file_survival.py | Adds component marker. |
| tests/integration/test_config_valid_keys_e2e.py | Adds component marker. |
| tests/integration/test_concurrent_manifest_mutation_lifecycle.py | Adds e2e marker. |
| tests/integration/test_compile_universal_apply_to_fastpath_e2e.py | Adds component marker. |
| tests/integration/test_compile_root_redirect_e2e.py | Adds e2e marker. |
| tests/integration/test_compile_permission_denied.py | Adds e2e marker. |
| tests/integration/test_compile_nested_context_protection_lifecycle.py | Adds e2e marker. |
| tests/integration/test_compile_global.py | Adds component marker. |
| tests/integration/test_compile_copilot_root_instructions.py | Adds e2e marker. |
| tests/integration/test_compile_claude_single_h1.py | Adds component marker. |
| tests/integration/test_commands_deep_coverage.py | Adds component marker. |
| tests/integration/test_cold_update_transitive_plugin_lifecycle.py | Adds e2e marker. |
| tests/integration/test_cold_restore_skill_adoption_lifecycle.py | Adds e2e marker. |
| tests/integration/test_cold_restore_edit_audit_chain_lifecycle.py | Adds e2e marker. |
| tests/integration/test_codex_windows_toml_install.py | Adds component marker. |
| tests/integration/test_codex_mcp_env_vars_e2e.py | Adds e2e, preserving serialization group. |
| tests/integration/test_cli_docs_contract.py | Adds component marker. |
| tests/integration/test_cleanup_deployment_evidence_lifecycle.py | Adds e2e marker. |
| tests/integration/test_case_only_rename_lifecycle.py | Adds e2e marker. |
| tests/integration/test_case_insensitive_parent_identity_lifecycle.py | Adds e2e marker. |
| tests/integration/test_bare_cache_integration.py | Adds component marker. |
| tests/integration/test_azure_skills_marketplace.py | Adds component marker. |
| tests/integration/test_azure_cli_failure_diagnostic_lifecycle.py | Adds e2e marker. |
| tests/integration/test_auto_integration.py | Adds component marker. |
| tests/integration/test_auth_upgrade_lock_replay_lifecycle.py | Adds e2e marker. |
| tests/integration/test_audit_silent_skip_e2e.py | Adds component marker. |
| tests/integration/test_audit_external_scanners.py | Adds component marker. |
| tests/integration/test_audit_dependency_skill_links_e2e.py | Adds e2e marker. |
| tests/integration/test_audit_ci_project_root_lifecycle.py | Adds e2e marker. |
| tests/integration/test_artifact_snapshot_contract.py | Adds component marker. |
| tests/integration/test_architecture_marketplace_tag_pattern.py | Adds component marker. |
| tests/integration/test_architecture_marketplace_source_admission.py | Adds component marker. |
| tests/integration/test_architecture_marketplace_output_path.py | Adds component marker. |
| tests/integration/test_architecture_marketplace_metadata_enrichment.py | Adds component marker. |
| tests/integration/test_architecture_concurrency_guards.py | Adds component marker. |
| tests/integration/test_apply_to_comma_e2e.py | Adds component marker. |
| tests/integration/test_apm_home_isolation.py | Adds e2e marker. |
| tests/integration/test_agent_skills_target.py | Adds component marker. |
| tests/integration/test_ado_marketplace_check_auth.py | Adds component marker. |
| tests/integration/test_ado_e2e.py | Adds e2e, preserving live/credential gates. |
| tests/integration/test_ado_credential_helper_install_lifecycle.py | Adds e2e marker. |
| tests/integration/test_ado_adjacent_egress_lifecycle.py | Adds e2e marker. |
| tests/integration/policy/test_required_packages_source_replacement_lifecycle.py | Adds e2e marker. |
| tests/integration/marketplace/test_outdated_integration.py | Adds component marker. |
| tests/integration/marketplace/test_live_e2e.py | Adds e2e marker. |
| tests/integration/marketplace/test_doctor_integration.py | Adds component marker. |
| tests/integration/marketplace/test_check_integration.py | Adds component marker. |
| tests/fixtures/policy/test_fixtures_load.py | Adds unit marker. |
Review effort: Balanced
…eppiel-4552-item3-markers
…itions Review found modules marked unit that use the filesystem or CliRunner, and a packaged-runner e2e module marked component. Each newly classified module is re-checked against pyproject.toml: unit only for pure logic, component for in-process filesystem or command-boundary tests whose assertions stay within AQ003, e2e only where the driver is visible to the AQ006 detector. Modules that fit no marker without growing a ratchet keep their unclassified allowance (126 restored). Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
Active findings identify test markers that contradict the defined execution boundaries, misclassifying filesystem-dependent, subprocess-based, and mocked CLI tests.
3 open issues
2 resolved since last review
Review effort: Balanced
Second review pass. A module keeps a new marker only when it plainly fits its pyproject definition; otherwise its allowance is restored: - component modules that spawn any process (python -m apm_cli, git) are not in-process (22 modules, incl. test_compile_rich_output.py and test_cli_sigterm.py); - e2e modules keep the marker only if every test reaches the installed CLI driver (test_lifecycle_workspace_lock.py reverted); - unit modules that touch files or paths are not pure logic (3, incl. tests/fixtures/policy/test_fixtures_load.py). unclassified_modules 558 -> 355 (203 classified: 2 unit, 64 component, 137 e2e). AQ003, AQ006 and misplaced_modules unchanged. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🔵 Needs a closer look
Human assessment is needed because several test-marker classifications conflict with their declared filesystem, subprocess, and installed-CLI coverage boundaries.
No open issues 🎉
3 resolved since last review
Review effort: Balanced
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> # Conflicts: # tests/quality/test_taxonomy_baseline.json
…gh discovery is mocked The gh-CLI cases leave get_gh_executable() live, so the module does filesystem discovery and cannot honour the unit marker's no-filesystem contract. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🔵 Needs a closer look
Human assessment is needed because omitted review findings indicate that several tests classified as in-process components still invoke real Git subprocesses.
No open issues 🎉
1 resolved since last review
Review effort: Balanced
f313db5
into
main

Description
TL;DR
This PR does part of #4552 item 3. It adds one module-level behavioural marker to 203 unclassified test modules, choosing whichever of the
pyproject.toml:201-203definitions fits each module's real execution boundary.unclassified_modulesshrinks 558 -> 355. It changes tests only: onepytestmarkline per module, the baseline, and one contract expectation (tests/unit/test_ado_live_workflow_contract.pypins the exact marks oftest_ado_e2e, which now includee2e).Item 3 partial; residual split. 349 modules stay unclassified (listed below). The flip that makes classification required moves to a split follow-up issue. The 6 modules that #4687 deletes are left untouched.
Review fix (70c1c04)
The first pass marked every
tests/unitmoduleunitby directory alone. Review (thanks) showed that several of them useCliRunneror the filesystem, which theunitdefinition excludes. A packaged-runner module had also been markedcomponent. Every newly classified module was re-checked against the definitions. The 126 modules that fit no marker without growing a ratchet got their unclassified allowance back.Second review fix (c0bc1b4)
A second review found boundary-ambiguous cases, so a stricter rule now applies: when in doubt, the module returns to unclassified.
componentmodules that spawn a process (python -m apm_cli.cli, git) were reverted, sincecomponentmeans in-process.e2emodule with a test that never runs the installed CLI was reverted.unitmodules that touch files or paths were reverted.How each module was classified
unitCliRunner, no process spawn, no file or path access at allcomponentCliRunner/filesystem use, no process spawn, and every test asserts output, exit code or durable state (AQ003 stays at its ceiling)e2eCliRunner, no in-process owner patches (AQ006 stays 0)The checks are the gate's own helpers in
scripts/test_static_facts.py(drives_installed_cli,uses_cli_runner,owner_patches,asserts_observable_outcome) andspawns_processesfromtests/quality/taxonomy_inventory_plugin.py. No CI lane selects onunit,componentore2e, so no test changes lane.Why 349 stay unclassified
unitis wrong for them. Their tests assert return values only, socomponentwould raise the AQ003 ceiling. The honest fix is an assertion rewrite (item 6) or a split.tests/integration/test_global_install_e2e.py) are invisible to the AQ006 detector, soe2ewould add an AQ006 hit.tests/integration. For these,unitwould growmisplaced_modulesandcomponentwould grow AQ003.The P3 lead ruled not to move modules this late in 0.38.
Residual: 349 modules, by path
Baselines (shrink only)
unclassified_modulesmisplaced_modulespromise_exempt_modulesNo entry is added and no ceiling is raised. No promise ids are added, and no
reqmarkers change, so CONFORMANCE is unchanged.Issue and approved scope
Issue: Refs #4552
Human scope-approval comment: #4552 (comment)
What remains: item 3 is partial and its residual is split. The 349 modules above and the required-classification ratchet flip move to a split issue that Intake is recording. #4687 carries items 1 and 2. Items 4 to 9 are tracked on #4552.
Type of change
Testing
Local validation at the PR head:
uvx ruff@0.15.12 checkandformat --checkon the changed files: passed.python scripts/check_test_assertions.py: clean (AQ003=5691, AQ006=9, unchanged).python scripts/check_taxonomy_allowances.py --base-ref <main>: allowances did not grow.python -m tests.quality.taxonomy --changed: tm006 clean on all changed modules.test_test_taxonomy.py,test_quality_baselines.py,test_ci_topology.py), both Build & Test shards, the Windows gates and Lifecycle Smoke.The full suite runs in CI.
Changelog
changelog.d/<pr>.<section>.md, holdingone line: user-visible effect first, 25 words or fewer, ending with
(#PR); breaking changes only under upgrade notes; no Highlights; nonew lines under
## [Unreleased]. Seechangelog.d/README.mdand.github/instructions/changelog.instructions.md.Spec conformance (OpenAPM v0.1)
If this PR changes behaviour that an OpenAPM v0.1
req-XXXcovers,confirm the three-step ritual in the
development guide:
docs/src/content/docs/specs/openapm-v0.1.mdupdated(new/changed
<a id="req-XXX"></a>anchor + prose + Appendix Crow).
docs/src/content/docs/specs/manifests/openapm-v0.1.requirements.ymlupdated.
@pytest.mark.req("req-XXX")test undertests/spec_conformance/added or extended.CONFORMANCE.{md,json}regenerated viauv run --extra dev python -m tests.spec_conformance.gen_statementand committed.