Repository navigation
Description
Problem or Motivation
Some tests force a specific version or configuration value. Such a test fails when a dependency, a manifest, a prompt or a setting changes, although no interface changed. The update then needs an edit of a test, which blocks Renovate and makes each text change slow.
Owner direction of 2026-11-25: "remove any project tests that force a specific version or configuration that prevents the project from being updated cleanly". This continues #6060, which removed the tests of third-party version pins.
Evidence:
- Of 109 dependency update commits on
mainsince 2026-11-01, 19 changed a file undersrc/ortests/. - On 2026-11-25 a change of one sentence in
src/devops_cli/templates/AGENTS.md.j2failedtests/roadmap/refine/test_roadmap_refine_job_result.py, because the test held the literal context size 765 (docs(agents): mark a complete draft ready when its checks pass #7217).
Proposed Solution
Disposition: remove tests. No source code changes.
Remove each test, parameter case or snapshot whose assertion fails when one of these changes with no change of an interface:
- A version, tag, digest or checksum of a dependency, a tool, a base image, an action or a model.
- A pin in one real file that the test compares with a pin in another real file.
- A value that the test reads from a real manifest, workflow or configuration file of the repository.
- A default or constant of
src/devops_cli/config/that the test compares with a literal version, model name or tuned number. - An exact number or text that follows the content of a real instruction or prompt file.
A test of source code that parses or validates a file that the test writes stays. A test that is also a safety gate (workflow permissions, the safety sentences of AGENTS.md, admission policies) stays, and the owner decides each such case.
The list of the tests comes as a comment on this item after the census.
Proof: uv run devops ci test tests passes, and git diff --stat origin/main -- src shows no change.
Existing Tool Considered
The validators that CI already runs own the form of manifests and configuration: the k8s row, kube-linter, actionlint, zizmor, renovate-config-validator and uv lock --check. No new code.
Activity
dan-petty commentedon Nov 25, 2026
Both eliminate config-value tests; #6080 fixes the rules that generate them, the candidate removes the existing tests themselves.dan-petty commentedon Nov 25, 2026
Census and removal list of 2026-11-25 (pull request to follow). Owner direction of the same day: remove the tests that force a version or a setting, and also the tests of this kind that guard a safety property.
Removed: 160 test functions
tests/ai/benchmark/test_k8s_llm_gateway.py: the whole filetests/ai/benchmark/test_kb_gold_set.py:test_stale_entry_against_the_checked_in_folder_is_markedtests/ai/mcp/test_ai_gateway.py:test_direct_ollama_failover_targets_the_default_ollama_tier,test_gateway_constants_and_comment_reference_served_embedding_and_real_test_pathtests/ai/spend/test_hosted_group_prices.py:test_every_hosted_gateway_group_is_priced_by_its_route_name_and_its_deployment_model,test_every_model_of_the_service_template_is_a_gateway_group_that_is_priced_or_local,test_the_client_price_of_a_hosted_group_is_the_price_in_the_gateway_config,test_every_local_group_of_the_gateway_config_is_localtests/ai/test_ai_gateway_portkey.py:test_portkey_network_policy_rulestests/ai/test_jev_gateway_route.py:test_the_gateway_forwards_the_path_of_the_client_to_openrouter_with_its_own_keytests/ai/test_llm_pool_metrics.py:test_the_dcgm_exporter_runs_on_every_gpu_node_without_extra_privilegestests/commands/test_ci.py:test_the_security_row_scans_the_targets_that_bandit_s_config_names,test_bandit_s_config_skips_only_the_low_rules_that_need_no_decision,test_github_workflows_caching_configuration,test_changed_line_coverage_step_fails_a_pull_request_below_ninety_percent,test_service_image_ci_job_invariants,test_the_release_attests_and_tags_only_the_devcontainer_digest_its_smoke_test_started,test_service_image_smoke_test_parity,test_ci_workflow_publishes_scanner_sarif_to_code_scanning,test_ci_workflow_parity_with_check_table,test_ci_workflow_parity_mutations_failtests/commands/test_ci_bwrap_row.py:test_a_hung_bwrap_test_fails_before_the_gate_step_of_static_analysis_stopstests/commands/test_cli_startup_imports.py:test_the_four_limits_keep_their_valuestests/commands/test_security_bandit.py:test_the_bandit_targets_hold_every_python_file_the_repository_trackstests/config/test_roadmap_job_tasks.py:test_the_review_task_starts_on_deepseek_with_a_wide_windowtests/config/test_roadmap_research_settings.py:test_roadmap_research_defaultstests/config/test_service_poll_intervals.py:test_the_idle_poll_interval_defaults_to_ten_minutestests/config/test_tuicr_config.py: the whole filetests/core/test_third_party_telemetry.py:test_grafana_values_disables_telemetry_and_news,test_k8s_monitoring_values_disables_alloy_telemetry,test_loki_values_disables_analytics,test_traefik_values_disables_telemetry_and_version_check,test_gitea_values_disables_the_update_checker,test_mattermost_disables_telemetry_diagnostics_push_and_marketplace,test_open_webui_values_disables_telemetry_and_version_check,test_devcontainer_disables_telemetry,test_devcontainer_image_disables_telemetry,test_the_committed_claude_settings_opt_out_of_openspec_telemetry_and_its_update_check,test_the_ci_workflow_opts_out_of_telemetry_for_every_jobtests/git/test_branch_form.py:test_the_branch_types_are_the_types_release_please_lists,test_the_branch_form_of_the_code_is_the_form_of_the_hooktests/github/test_github_pages.py:test_the_repository_site_has_readme_as_its_home_page,test_the_cli_reference_tab_opens_on_the_indextests/github/test_github_projects.py:test_load_project_templatetests/github/test_service_limits.py:test_the_service_keeps_one_model_call_in_flight_by_default,test_a_row_runs_six_failed_rounds_in_a_row_before_a_suspension_by_defaulttests/grafana/test_service_dashboard.py:test_each_committed_service_dashboard_is_the_buildtests/http/test_gateway_review_stall.py:test_gateway_review_slots_table_and_concurrencytests/invariants/test_agents_md.py:test_the_gate_list_of_the_sdlc_names_the_openspec_row,test_agents_md_keeps_the_safety_rules_inline,test_the_coverage_run_table_measures_branchestests/invariants/test_architectural_invariants.py:test_only_update_prs_holds_actions_write_permission_and_ci_dispatches,test_suppression_lint_rules_enforced,test_mypy_ignore_without_code_enabledtests/invariants/test_declared_dependencies.py: the whole filetests/invariants/test_mcp_server_image.py: the whole filetests/invariants/test_runner_hooks.py:test_every_local_hook_runs_a_tool_that_the_runner_image_holds,test_the_branch_name_hook_accepts_a_branch_of_every_type_that_the_job_makes,test_the_main_branch_guard_does_not_refuse_the_branch_of_an_itemtests/invariants/test_runner_image.py: the whole filetests/invariants/test_service_image.py:test_the_service_stage_runs_openspec_with_telemetry_offtests/invariants/test_uv_malware_check.py:test_the_check_hooks_turn_the_malware_check_off,test_the_interactive_shells_turn_the_malware_check_off,test_a_failed_osv_lookup_does_not_stop_a_gate_row,test_the_knowledge_base_records_the_split,test_the_install_steps_keep_the_malware_check_on,test_pyproject_records_the_uv_limittests/invariants/test_workflow_contracts.py:test_the_step_that_runs_the_suite_stops_before_its_job,test_a_test_step_outlasts_the_hang_bound_of_one_test,test_the_title_check_and_the_workflow_hold_the_same_rule,test_the_fail_to_pass_job_runs_for_a_fix_title_and_no_other,test_copilot_setup_steps_installs_the_pinned_openspec_with_the_opt_outs,test_the_design_tokens_job_builds_the_tokens_only_when_a_path_of_its_filter_changes,test_the_plan_check_job_waits_for_the_title_check_and_runs_after_a_failed_one,test_the_plan_check_job_selects_the_title_that_the_stage_job_gives_a_plan,test_the_service_image_test_run_has_a_timeout_inside_the_job_limit,test_release_please_makes_every_release_on_a_push_to_main,test_the_release_pull_request_merges_every_6_hours_with_the_least_permissions,test_the_release_merge_only_merges_and_reads_no_untrusted_input_in_a_script,test_the_main_branch_stays_refused_by_name,test_the_plan_check_job_reads_checks_contents_and_pull_requests_only,test_the_alert_workflow_runs_every_day_and_has_no_workflow_run_trigger,test_the_alert_workflow_holds_only_the_permissions_it_needstests/k8s/test_k8s_argo_workflows.py: the whole filetests/prometheus/test_dashboard_queries.py:test_each_case_holds_the_current_query_of_its_panel_target,test_a_changed_query_names_the_dashboard_the_panel_and_the_ref_idtests/prometheus/test_k8s_monitoring_alerting.py:test_every_alert_rule_selects_only_series_the_stack_serves,test_the_write_rule_names_each_write_method_of_the_request_classifier,test_the_promtool_files_of_a_group_test_every_alert_of_the_group,test_each_unit_tested_rule_fires_on_a_sample_and_stays_quiet_on_a_normal_seriestests/prometheus/test_k8s_monitoring_dashboards.py: the whole filetests/release/test_release_merge_pick.py:test_the_files_that_release_please_writes_are_the_ones_its_configuration_namestests/review/test_kb_manuals_metadata.py:test_loader_matches_tool_versions_inventory_floor_and_kubernetes,test_run_group_analysis_populates_kb_drift_and_injected,test_floor_only_environment_matches_and_drifts_manuals_and_filtering_keeps_sometests/roadmap/implement/test_roadmap_implement_deadline_settings.py:test_the_defaults_are_70_minutes_90_minutes_and_four_hours,test_the_default_ceiling_is_the_cap_of_the_admission_policytests/roadmap/implement/test_roadmap_implement_extension.py:test_the_rule_extends_by_half_the_budget_for_one_edittests/roadmap/implement/test_roadmap_implement_limits.py:test_the_defaults_fit_the_measured_spend_of_steps_and_items,test_the_cap_of_the_model_fix_of_a_fix_checks_run_is_16_million_new_tokenstests/roadmap/implement/test_roadmap_implement_size.py:test_the_memory_limit_is_8gi_when_the_setting_is_not_settests/roadmap/implement/test_roadmap_implement_step_hooks.py:test_the_default_number_of_repair_rounds_is_threetests/roadmap/implement/test_roadmap_implement_timeouts.py:test_the_defaults_are_20_minutes_for_a_call_and_30_for_a_commandtests/roadmap/test_roadmap_digest_clears.py:test_the_limits_default_to_one_for_a_class_and_three_for_an_item,test_the_continuations_default_to_two_for_an_itemtests/roadmap/test_roadmap_run_job.py:test_a_write_outside_the_read_only_copy_fails,test_a_read_of_a_credential_and_of_the_service_account_token_finds_no_file,test_an_outbound_connection_failstests/roadmap/test_roadmap_runner_tools.py:test_each_tool_that_a_required_job_installs_is_held_or_left_out_with_a_reasontests/server/routes/test_k8s_roadmap_service.py:test_deployment_spec_and_container,test_ingress_has_class_traefik_one_host_and_a_prefix_path_for_each_tunnel_provider,test_security_context_is_restricted,test_networkpolicy_admits_traefik_monitoring_and_mattermost_on_8000,test_monitoring_networkpolicy_has_egress_rule_to_devops_on_8000tests/server/test_service_log_trace_ids.py:test_grafana_links_a_service_json_line_and_an_otlp_record_to_their_tracetests/telemetry/test_telemetry_instruments.py:test_every_series_is_read_through_the_function_of_its_kind,test_the_items_panels_group_only_by_labels_the_gauge_sends,test_the_collector_deletes_the_host_name_of_devops_cli_metrics_before_it_adds_them_upKept: a generic rule with no literal of a real file
tests/invariants/test_workflow_contracts.py:test_every_remote_action_is_pinned_to_a_commit_sha,test_no_run_block_interpolates_an_actions_expression,test_every_checkout_states_its_credentials_and_only_a_pushing_job_keeps_them,test_every_job_has_a_limit_and_each_step_limit_is_under_it, the attestation contract and its mutation test, the two tests of the pre-push time sumtests/invariants/test_architectural_invariants.py:test_image_path_filter_covers_dockerfile_sourcestests/invariants/test_service_image.py:test_service_dockerfile_base_images_pinned_by_digest(the digest form only)tests/invariants/test_agents_md.py:test_agents_md_stays_within_character_budgettests/invariants/test_devcontainer_config.py: the lockfile testtests/ci/test_release_download_retries.py,tests/core/test_gh_dash_config.py(key binding test)tests/roadmap/test_roadmap_run_job.py:test_the_run_job_holds_the_three_controls(live test in a cluster)Changed: 33 tests keep their behavior and lose one literal
They now compare with the constant, the setting or input of their own. Examples:
tests/commands/test_pr_dry_run.py(monitor timeout),tests/ci/test_typecheck.py(Python version slot),tests/roadmap/implement/test_roadmap_implement_step.py(snapshot with its ownAGENTS.md),tests/ai/test_ai_client_style_request.py(no snapshot).Not in this item
tests/gate/k8s_checks/: refactor(gate): drop gate checks that hold a manifest value #7231.tests/invariants/test_agents_md.py): the owner decides.devops-cli-service commentedon Nov 25, 2026
Released in v0.221.5: https://github.com/dan-petty/devops-cli/releases/tag/v0.221.5
devops-cli-service commentedon Nov 25, 2026
Live since 2026-11-25 20:47 UTC
test(tests): remove tests that hold a sentence of a document (#7249)