Skip to content

fix(k8s): Drop the tests that assert values of manifests and config - #6075

Merged
dan-petty merged 1 commit into
mainfrom
test/6060-drop-config-value-tests
Nov 17, 2026
Merged

dan-petty merged 1 commit into
mainfrom
test/6060-drop-config-value-tests

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Tests read committed manifests and config files (Helm values, Argo CD Applications, ConfigMap templates, the gateway and Renovate config, workflows, Dockerfiles) and asserted chosen values: versions, digests, models, limits, ports and keys. A Renovate update of a pin failed them although no code changed. This change deletes those tests, and the fixtures, helpers and dead code that only they used. Tests that hold a safety rule, or agree code with a manifest at run time, stay unchanged as gray cases for the owner.

deploy-stack now reads each chart version from the Argo CD Application of the tree, so the code holds no version, and the gate that held the Crawl4AI image to a constant goes. A new check of the test-tree row refuses a new test that reads a committed config file, with a count for each module that only falls. docs/TESTING.md states the rules.

Closes #6060

Change: openspec/changes/archive/2026-11-16-6060-drop-config-value-tests/

@dan-petty dan-petty added type/test Type test: a new or changed test scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 16, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Gray cases of #6060 for the owner (1 of 2)

These tests still read a committed manifest or config file. Each one holds a safety rule, or agrees code with a manifest at run time, so this pull request keeps it unchanged. No final choice is made here. tests/gate/tree_checks/config_reads.toml holds the count of each module until you decide; a deletion lowers the count.

Decisions: delete (a CI validator or another check covers it), move (to a gate row, a policy or a load-time check in src/), keep (as a rule test), narrow (keep the rule, drop the value asserts).

Kubernetes manifests and chart values

file::test what it protects proposed decision
tests/invariants/test_k8s_argocd_apps.py::test_helm_sources_pinned_versions each Application chart is semver and matches the deploy-stack release (chart, namespace, values files); the version assert is gone keep (code agrees with the Applications)
tests/invariants/test_k8s_argocd_apps.py::test_every_application_in_argocd_apps_maps_to_deploy_stack_counterpart each Application has a deploy-stack counterpart; the version assert is gone keep
tests/invariants/test_k8s_argocd_apps.py::test_finalizers_on_applications a delete of the app of apps does not delete the cluster keep the "must not" half
tests/invariants/test_k8s_argocd_apps.py::test_chart_pvc_and_crd_safety_values Prune=false/Delete=false on chart PVCs and CRDs; Grafana admin password from a Secret keep (the gate renders only path Applications)
tests/invariants/test_k8s_argocd_apps.py::test_the_app_of_apps_keeps_the_hosts_deploy_stack_sets_on_the_homelab_applications CONST_K8S_ARGOCD_HOMELAB_APPLICATIONS agrees with ignoreDifferences (#1817) keep
tests/invariants/test_k8s_argocd_apps.py::test_the_app_of_apps_applies_the_homelab_applications_server_side the same constant agrees with ServerSideApply keep
tests/invariants/test_k8s_argocd_apps.py::test_no_homelab_application_sets_kustomize_overrides_in_git git and deploy-stack do not contend for a field keep
tests/invariants/test_k8s_argocd_apps.py::test_cert_manager_keeps_its_crds_and_its_leader_election_in_its_namespace CRD keep; no Role in kube-system keep
tests/invariants/test_k8s_argocd_apps.py::test_mattermost_operator_run_as_user non-root operator delete: Pod Security restricted refuses a root pod
tests/invariants/test_k8s_argocd_apps.py::test_mattermost_container_security_context security context of the Mattermost CR keep (trivy does not read the CR)
tests/invariants/test_k8s_argocd_apps.py::test_mattermost_namespaces_in_namespaces_yaml restricted PSS and prune protection of 4 namespaces keep
tests/invariants/test_k8s_argocd_apps.py::test_argocd_github_notifier_reads_the_keys_of_the_secret_push notifier keys are keys that CLUSTER_SECRETS pushes narrow
tests/invariants/test_k8s_argocd_apps.py::test_argocd_notifications_no_leaked_identities no webhook token or channel id in git keep
tests/invariants/test_k8s_crawl4ai.py::test_the_pod_meets_pod_security_restricted security contexts delete: trivy config
tests/invariants/test_k8s_crawl4ai.py::test_the_environment_holds_the_token_and_the_bind_and_no_switch_or_key token from the Secret; no unsafe switch; no key keep
tests/invariants/test_k8s_crawl4ai.py::test_no_route_reaches_the_service_from_outside_the_cluster perimeter keep
tests/invariants/test_k8s_crawl4ai.py::test_every_file_of_the_service_is_in_both_kustomizations_and_the_deploy_stack PRODUCT_MANIFESTS_BY_STACK agrees with the files keep, or deploy-stack reads the kustomization
tests/invariants/test_k8s_gpu_feature_discovery.py::test_the_gpu_feature_discovery_container_sets_a_read_only_root_filesystem read-only root delete: trivy config KSV-0014
tests/invariants/test_k8s_manifests.py::test_a_gateway_attempt_ends_before_the_deadline_of_the_call nested timeouts keep
tests/invariants/test_k8s_manifests.py::test_a_cooled_deepseek_deployment_is_checked_again_before_its_cooldown_ends health check < interval <= cooldown keep
tests/invariants/test_k8s_manifests.py::test_the_fix_plan_time_budget_ends_before_the_deadline_of_each_job_template nested timeouts keep
tests/invariants/test_k8s_manifests.py::test_the_gateway_keeps_a_streamed_chat_reply_open_under_the_edge_timeout keepalive < 125 s edge cut keep
tests/invariants/test_k8s_manifests.py::test_every_ollama_tier_runs_one_release_that_serves_multimodal_embedding_models Ollama digest pin, version floor, one image narrow to the digest rule
tests/invariants/test_k8s_manifests.py::test_traefik_runs_a_chart_that_ships_traefik_v3_7_16 CVE floor (a floor passes a bump) keep
tests/invariants/test_k8s_manifests.py::test_no_ingress_routes_to_loki_in_the_logging_namespace, ::test_no_ingress_is_in_the_logging_namespace, ::test_no_ingress_routes_to_the_grafana_image_renderer perimeter of unauthenticated services keep
tests/invariants/test_k8s_manifests.py::test_the_pods_that_do_not_call_the_api_mount_no_token, ::test_every_manifest_pod_with_a_token_has_a_role_or_a_named_exception, ::test_every_chart_pod_with_a_token_has_a_role_or_a_named_exception, ::test_every_exception_names_a_pod_with_a_token_that_no_role_binds, ::test_the_readers_see_each_value_and_patch_that_reaches_a_checked_object ServiceAccount token review gate keep (the Renovate fixer drops the chart versions of the table)
tests/invariants/test_k8s_manifests.py::test_every_secret_referenced_under_k8s_has_a_table_row, ::test_every_secret_key_that_a_manifest_reads_from_a_table_secret_is_a_table_entry, ::test_every_restart_target_is_a_manifest_workload_or_helm_release, ::test_each_chart_workload_is_a_restart_target CLUSTER_SECRETS agrees with the manifests keep
tests/invariants/test_k8s_mcp_server_policies.py (5 tests) MCP server perimeter; agrees with build_job and JOB_NAME_LABEL_VALUE keep
tests/invariants/test_k8s_renovate.py::test_the_timeouts_nest_inside_the_life_of_the_token nested timeouts (also pins executionTimeout 900) narrow (drop the 900)
tests/invariants/test_k8s_renovate.py::test_only_the_token_init_container_reads_the_secret, ::test_no_upgrade_task_runs_until_the_token_is_out_of_its_reach the App key stays out of reach of repository commands (#6020) keep
tests/invariants/test_k8s_renovate.py::test_the_token_init_container_writes_the_file_that_the_config_reads agrees with is_forbidden_system_path narrow
tests/invariants/test_k8s_renovate.py::test_the_pod_meets_pod_security_restricted security contexts delete: trivy config
tests/invariants/test_k8s_renovate.py::test_each_container_has_requests_and_limits_and_each_empty_dir_a_size emptyDir sizeLimit; limits narrow to sizeLimit
tests/invariants/test_k8s_renovate.py::test_the_config_uses_no_hosted_mend_service, ::test_the_perimeter_admits_no_ingress_and_only_dns_otel_and_public_https no Mend egress; perimeter keep
tests/invariants/test_k8s_renovate.py::test_every_file_is_in_both_kustomizations_and_the_deploy_stack agrees with PRODUCT_MANIFESTS_BY_STACK keep
tests/invariants/test_k8s_searxng.py (engine-names tests, 8) SearXNG engine review gate left to the Renovate fixer (owner decision 1)
tests/invariants/test_k8s_searxng.py::test_the_pod_meets_pod_security_restricted security contexts delete: trivy config
tests/invariants/test_k8s_searxng.py::test_the_environment_holds_the_server_secret_from_the_secret_and_an_ipv4_bind, ::test_no_route_reaches_the_service_from_outside_the_cluster, ::test_the_settings_turn_off_the_limiter_and_serve_json_to_the_cluster_only, ::test_every_file_of_the_service_is_in_both_kustomizations_and_the_deploy_stack secret from the Secret; perimeter; no secret_key or e-mail in git narrow
tests/core/test_k8s_local_path_placement.py::test_the_claim_table_names_each_chart_at_the_version_that_an_application_pins claim review gate (fails on a chart bump) left to the Renovate fixer (owner decision 2)
tests/core/test_k8s_local_path_placement.py (3 more) claims stay off the control-plane disk keep
tests/config/test_k8s_devops_runtime.py::test_namespace_is_restricted_and_never_pruned, ::test_credentials_arrive_only_through_the_devops_cli_secret, ::test_config_validates_as_settings_and_holds_no_credential, ::test_perimeter_admits_no_ingress_and_exactly_five_egress_rules PSS and prune protection; no credential; perimeter keep
tests/config/test_k8s_devops_runtime.py::test_security_context_is_restricted security contexts delete: trivy config
tests/config/test_k8s_devops_runtime.py::test_mcp_server_and_workloads_disable_telemetry_and_banners no third-party telemetry narrow
tests/config/test_k8s_devops_runtime.py::test_mcp_server_reads_its_bearer_token_from_the_secret_that_the_push_writes token from the Secret delete: the secret-key table test covers it
tests/k8s/test_k8s_valkey_stack.py (10 tests) no Redis license; passwords from Secrets; maxmemory below the limit; perimeter keep the rules, narrow the flag and URL values; move the license rule to the k8s gate row
tests/k8s/test_llm_gateway_config.py::test_the_router_wiring_stays_out_of_the_client_error no backend hosts in client errors keep
tests/k8s/test_roadmap_service_key.py (3 tests) least privilege of the gateway key keep, narrow the optional flags
tests/ai/test_llm_pool_metrics.py::test_the_dcgm_exporter_runs_on_every_gpu_node_without_extra_privileges only SYS_ADMIN narrow
tests/ai/spend/test_hosted_group_prices.py (4 tests) PricingRegistry prices every hosted group keep the pricing part; drop config-to-config agreement
tests/ai/benchmark/test_k8s_llm_gateway.py (27 tests) gateway perimeter, master key from the Secret, OpenRouter privacy filter, nested timeouts, LiteLLM advisory floor, code defaults that name a served model keep the rules and their controls; narrow the values; delete test_gateway_deployment_security_and_resources and test_every_ollama_tier_runs_unprivileged (trivy config)
tests/server/routes/test_k8s_roadmap_service.py::test_deployment_spec_and_container, ::test_the_grace_period_covers_both_waits_of_the_stop_and_no_hook_uses_it_first grace period agrees with CONST_SERVICE_STOP_GRACE_SECONDS narrow
tests/server/routes/test_k8s_roadmap_service.py::test_security_context_is_restricted security context (trivy runs HIGH/CRITICAL only) move to a trivy or kube-linter policy
tests/server/routes/test_k8s_roadmap_service.py::test_ingress_has_class_traefik_one_host_and_a_prefix_path_for_each_tunnel_provider, ::test_networkpolicy_admits_traefik_monitoring_and_mattermost_on_8000 public paths agree with the webhook providers; perimeter narrow
tests/server/routes/test_k8s_roadmap_service.py::test_monitoring_networkpolicy_has_egress_rule_to_devops_on_8000 an allow rule delete
tests/server/routes/test_k8s_roadmap_service.py::test_every_pod_of_the_deployment_exports_its_metrics_under_one_series_identity OTLP resource of the pods (form) keep
tests/server/test_service_log_trace_ids.py::test_grafana_links_a_service_json_line_and_an_otlp_record_to_their_trace the derived fields of Grafana match the log lines of the code keep
tests/ai/mcp/test_ai_gateway.py::TestGatewayRouter::test_direct_ollama_failover_targets_the_default_ollama_tier DEFAULT_OLLAMA_CLUSTER_URL names a Service keep
tests/ai/test_ai_gateway_portkey.py::TestK8sPortkeyManifests::test_portkey_network_policy_rules Portkey egress perimeter narrow
tests/ai/test_jev_gateway_route.py::test_the_gateway_forwards_the_path_of_the_client_to_openrouter_with_its_own_key auth on; caller key does not reach OpenRouter narrow
tests/k8s/test_searxng_check.py SearXNG saved reply left to the Renovate fixer
tests/gate/k8s_checks/ (all rows, among them job_admission_policy, network_policies, argocd_apps, runner) admission policies on built objects, perimeters, PVC safety, token rules keep: no row fails on a pin bump now; the SearXNG assert of devops_runtime.py is left to the Renovate fixer

@dan-petty

Copy link
Copy Markdown
Owner Author

Gray cases of #6060 for the owner (2 of 2)

Commands, monitoring, dashboards and tools

file::test what it protects proposed decision
tests/commands/k8s/test_k8s.py::test_teardown_stack_keeps_the_prometheus_operator_crds CRD keep policy move the annotation assert to the k8s gate row
tests/commands/k8s/test_k8s.py::test_loki_deletes_logs_once_they_are_thirty_days_old deletion_mode: disabled closes the Loki delete API narrow
tests/commands/k8s/test_k8s.py::test_k8s_stack_deploy_ssa_and_manifest_contracts PSS labels of logging; no root chown for Qdrant narrow
tests/commands/k8s/test_k8s_agents_manifests.py (5 tests) restricted PSS, no token automount, view-only RBAC of devops-agent; the only test of audit_rbac keep; add a fixture test of audit_rbac before a deletion
tests/commands/k8s/test_k8s_gitea.py (5 tests) restricted PSS; kept PVC; locked forge; rootless security contexts (the image tag assert is gone) keep, narrow the sizes and resources
tests/commands/k8s/test_k8s_logging_stack.py::test_logging_stack_security_and_scoping logging perimeter keep
tests/commands/k8s/test_k8s_logging_stack.py::test_monitoring_network_policy_alloy_egress_rules metadata address excluded delete: the perimeter test covers it
tests/commands/k8s/test_k8s_mattermost.py (5 tests) security contexts; no superuser; hardening env; perimeter (the version assert is gone) narrow
tests/commands/k8s/test_k8s_monitoring_integration.py::test_grafana_runs_the_image_renderer_of_its_chart_at_a_release_tag, ::test_loki_pyroscope_and_grafana_turn_off_unused_chart_defaults renderer limitIngress; Loki delete API off; Grafana RBAC namespaced narrow
tests/commands/k8s/test_k8s_network_policies.py (19 tests) default deny, DNS, metadata SSRF exception, Crawl4AI and SearXNG SSRF perimeters, Loki and Gitea perimeters keep, or move to tests/gate/k8s_checks/network_policies.py
tests/commands/k8s/test_k8s_qdrant_security.py (4 tests) Qdrant auth on; no chart-made key; ClusterIP; values keys exist in the vendored chart (the pin equality test is gone) keep; move the key check to a helm template render in the gate
tests/commands/k8s/test_k8s_tempo.py::test_tempo_pod_meets_the_otel_namespaces_restricted_pod_security chart security contexts keep
tests/tools_lock/test_k8s_argo_workflows.py (8 tests) restricted PSS, CRD keep, least-privilege RBAC, no Secret in the template, perimeter keep, narrow
tests/tools_lock/test_k8s_cloudflared.py (2 tests) version floor against the eMudhra CAs (a floor passes a bump) keep
tests/tools_lock/test_tools_lock.py::test_every_binary_build_is_an_https_url_with_a_sha256, ::test_every_python_tool_pins_itself_in_its_hashed_requirements https and hashes for each download move to a load-time check of src/devops_cli/tools_lock
tests/tools_lock/test_tools_lock.py::test_every_node_lockfile_is_version_3_with_a_sha512_for_each_registry_package sha512, no install scripts keep
tests/prometheus/test_dashboard_queries.py (5 tests) promtool evaluates the panel queries on fixture series keep, or move to a gate row beside the promtool rule check
tests/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 rules match the series and methods of the code keep
tests/prometheus/test_k8s_monitoring_dashboards.py::test_each_configmap_fits_kubectls_last_applied_annotation ConfigMap size under 262,144 bytes move to the k8s gate row
tests/prometheus/test_k8s_monitoring_dashboards.py::test_the_devops_root_leaves_the_product_dashboards_to_monitoring, ::test_root_kustomization_leaves_dashboards_to_monitoring_stack single owner of each dashboard ConfigMap move to the gate (drop its grafana-* skip)
tests/prometheus/test_k8s_monitoring_dashboards.py::test_each_count_of_the_result_lines_starts_with_the_base_of_the_job_grades dashboard agrees with RESULT_LINES keep
tests/prometheus/test_implement_failure_labels.py::test_each_class_value_that_a_panel_or_a_rule_matches_is_a_class_of_the_taxonomy rule classes agree with FailureClass keep
tests/grafana/test_grafana_dashboards.py::test_cli_dashboard_service_row_reads_each_series_of_the_service dashboard agrees with the metric constants move to devops grafana dashboards lint
tests/grafana/test_service_dashboard.py::test_each_committed_service_dashboard_is_the_build committed dashboards equal the generator output move to a gate row that runs make dashboards and git diff --exit-code
tests/telemetry/test_telemetry_instruments.py (5 tests) dashboard queries name sent series, with the right function; the collector deletes host.name for the SDK name of the code move to the dashboard linter with INSTRUMENTS as input; keep the SDK-name rule
tests/roadmap/implement/test_roadmap_implement_deadline_settings.py::test_the_default_ceiling_is_the_cap_of_the_admission_policy code cap agrees with the admission policy keep, or move to the gate
tests/roadmap/test_roadmap_fix_checks_row.py::test_the_limits_of_a_fix_job_nest_under_the_cap nested timeouts of the template move to a validator of RoadmapImplementConfig
tests/roadmap/test_roadmap_run_job.py (3 tests) planner sandbox: read-only mounts, no token or Secret, deny-all egress (ADR 0018) keep
tests/roadmap/test_roadmap_runner_tools.py (10 tests) the runner table of src/ agrees with the Dockerfiles and the lock; a Renovate pull request passes because its custom managers move UV_VERSION and the tool pins with the Dockerfile keep; decide whether the table reads the pins at build time

Workflows, images, Renovate and repository config

file::test what it protects proposed decision
tests/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_every_job_has_a_limit_and_each_step_limit_is_under_it, ::test_the_pre_push_hooks_end_before_the_agent_shell_limit, ::test_the_service_image_test_run_has_a_timeout_inside_the_job_limit, ::test_the_design_tokens_job_builds_the_tokens_only_when_a_path_of_its_filter_changes nested timeouts keep
tests/invariants/test_workflow_contracts.py::test_release_please_makes_every_release_on_a_push_to_main, ::test_the_release_pull_request_merges_every_6_hours_with_the_least_permissions scope of the release App token narrow to the App token
tests/invariants/test_workflow_contracts.py::test_the_release_merge_only_merges_and_reads_no_untrusted_input_in_a_script, ::test_no_run_block_interpolates_an_actions_expression, ::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_needs injection, permissions, triggers delete: zizmor (template-injection, excessive-permissions, dangerous-triggers)
tests/invariants/test_workflow_contracts.py::test_every_remote_action_is_pinned_to_a_commit_sha SHA pins move to zizmor unpinned-uses with a hash-pin policy
tests/invariants/test_workflow_contracts.py::test_every_checkout_states_its_credentials_and_only_a_pushing_job_keeps_them token out of .git/config move to zizmor artipacked as a failing audit
tests/invariants/test_workflow_contracts.py::test_the_title_check_and_the_workflow_hold_the_same_rule, ::test_every_devops_command_the_workflows_actions_and_hooks_run_resolves, ::test_the_fail_to_pass_job_runs_for_a_fix_title_and_no_other, ::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 workflows agree with the code at run time keep
tests/invariants/test_workflow_contracts.py::test_release_workflow_attest_build_provenance_contract (+ mutation) provenance of each image narrow
tests/invariants/test_workflow_contracts.py::test_copilot_setup_steps_installs_the_pinned_openspec_with_the_opt_outs telemetry opt-outs narrow
tests/invariants/test_workflow_contracts.py::test_the_main_branch_stays_refused_by_name no commit to main delete: the main ruleset
tests/invariants/test_mcp_server_image.py, test_runner_image.py, test_service_image.py (scan threshold, attestation, trivyignore reason and expiry, digest pins, telemetry opt-outs) release scan and ignore hygiene keep; delete the non-root and floor tests (trivy config DS002, the image scan)
tests/invariants/test_image_layers.py::test_the_dependency_stages_install_the_requirements_of_the_lock_with_their_hashes --require-hashes narrow
tests/invariants/test_devcontainer_config.py (2 tests) checksum flags of the image build; features resolve in the lockfile narrow; delete the lockfile one (the image job builds with --frozen-lockfile)
tests/invariants/test_architectural_invariants.py (5 tests) mypy refuses a bare ignore; suppression ceilings; stack paths exist; image path filter; no actions: write keep the first three; delete the last two (release scan, zizmor)
tests/invariants/test_agents_md.py::test_the_coverage_run_table_measures_branches branch coverage on keep
tests/core/test_renovate_config.py::test_a_searxng_bump_tells_the_person_to_refresh_the_engine_names_and_names_no_tag_age supports the SearXNG gate left to the Renovate fixer
tests/core/test_renovate_config.py::test_the_preset_writes_no_git_author no e-mail in the Renovate config move to the repository-wide private-data check
tests/core/test_gh_dash_config.py (2 rule tests) no shell syntax in key bindings; each binding resolves to a command keep
tests/core/test_third_party_telemetry.py (12 tests) no phone-home (SECURITY.md rule 9) keep
tests/commands/test_ci.py (10 tests) Bandit scope and skips, changed-line coverage 90%, release image scan and attestation, CI runs every gate row, SARIF upload keep; delete the two that zizmor or trivy cover
tests/commands/test_ci_bwrap_row.py::test_a_hung_bwrap_test_fails_before_the_gate_step_of_static_analysis_stops nested timeouts keep
tests/commands/test_openspec_scaffold.py::test_git_keeps_the_generated_skills_and_nothing_else_under_claude local settings stay out of git keep
tests/git/test_branch_form.py (2 tests) branch form of the code agrees with the hook and release-please keep
tests/release/test_release_merge_pick.py::test_the_files_that_release_please_writes_are_the_ones_its_configuration_names the write-token guard matches release-please keep, or the guard reads the config
tests/security/test_scanner_contract.py::test_every_scanner_of_the_registry_has_a_pinned_program no silent scan gap keep
tests/security/test_tf_azure_aks_security.py (3 tests) AKS API access; no IP in git delete AZU-0041 (trivy config); keep the rest
tests/ci/test_release_download_retries.py::test_every_release_download_of_the_dockerfile_keeps_its_pinned_checksum checksum of each download keep
tests/config/test_tuicr_config.py (2 tests) no update check egress; no hidden lockfile keep
tests/commands/test_zero_plaintext_invariants.py::test_zero_plaintext_in_workspace_configs no plaintext secret in local config (gitignored files) keep

Removed for Renovate (owner, 22:55Z)

what went what it protected
CRAWL4AI_IMAGE and its assert in tests/gate/k8s_checks/devops_runtime.py a person ran devops k8s crawl4ai-check on each new image; docs/CLUSTER.md now asks for the run after each bump
tests/invariants/test_k8s_manifests.py::test_loki_runs_the_grafana_community_chart_whose_loki_fixes_cve_2026_21729 the Loki CVE fix, as an exact chart pin
tests/commands/k8s/test_k8s_monitoring_integration.py::test_grafana_runs_the_grafana_community_chart_that_ships_a_patched_grafana the Grafana CVE fix, as an exact chart pin
tests/commands/k8s/test_k8s_qdrant_security.py::test_the_vendored_qdrant_chart_is_the_pinned_one the vendored chart equals the pin
tests/commands/k8s/test_k8s.py::test_deploy_stack_installs_each_chart_at_the_version_that_its_application_pins, tests/commands/k8s/test_k8s_gitea.py::test_the_gitea_application_runs_the_pinned_chart_that_deploy_stack_installs deploy-stack and Argo CD install one version; deploy-stack now reads it from the Application
tests/commands/k8s/test_stack_dashboards.py (with the dcgm checksum check) the dcgm checksum/counters annotation equals the SHA-256 of the list; the values file now says to set it

The FORM tests (code that takes a committed file as input, such as the CronJob templates of the roadmap Jobs and .github/labels.yml, and asserts no value of it) stay; config_reads.toml counts them too.

@dan-petty dan-petty changed the title test(k8s): Drop the tests that assert values of manifests and config fix(k8s): Drop the tests that assert values of manifests and config Nov 16, 2026
@dan-petty
dan-petty force-pushed the test/6060-drop-config-value-tests branch from 0a73db1 to 6a3e22a Compare November 16, 2026 23:57
@dan-petty

Copy link
Copy Markdown
Owner Author

Gray cases of #6060: addendum after the rebase

file::test what it protects proposed decision
tests/core/test_k8s_local_path_placement.py (the CNPG Cluster tests and the exemption table of #6062) a CNPG Cluster on a local-path class keeps off the control-plane disk; each exemption names the item that removes it keep; or move to a policy tool, as CT2 of docs/SERVICE_PATTERNS.md says
tests/gate/k8s_checks/runner.py::check_the_runner_cronjob_is_a_suspended_template_that_never_retries suspend, no retry, account, container name and image of the runner template the deadline 7200 and the resource literals are gone (#6076 changes them); keep the rest
tests/gate/k8s_checks/runner.py::check_the_runner_home_is_an_empty_dir_with_a_size_limit_and_the_data_dir_lives_in_it the home is an emptyDir with a size limit, and the data dir is in it the literal 8Gi is gone; keep the form
tests/gate/k8s_checks/runner.py::check_every_volume_of_the_runner_has_a_size_limit_inside_the_ephemeral_storage_limit each emptyDir has a size limit, and their sum is below the ephemeral-storage limit the literals 1Gi, 8Gi, 10Gi are gone; the relation stays
tests/gate/k8s_checks/stage_job.py (resources of the stage Job: 250m, 1Gi, 1, 2Gi) the stage Job size not changed here; delete the literals if a stage size change needs it

config_reads.toml counts no module under tests/gate/; the gate rows are in this table only.

@dan-petty

Copy link
Copy Markdown
Owner Author

Owner decision, 2026-11-17 ~00:15Z (direct answer to the question of the agent), recorded here:

Question: #6075 deletes about 100 tests that guard security or privacy controls: network policies, "a pod mounts no service account token", "config holds no credential", digest pins of actions and images, "LiteLLM telemetry off", prune protection, and the Grafana and Loki CVE chart checks. None of them blocks a Renovate update, and CI runs no tool yet that replaces most of them (kube-linter is not in CI, #6068).

Answer: "Delete them all now." Merge #6075 as it is. Trivy config and review are the checks of these controls until #6068 and the other tools land.

Follow-up: #6068 (kube-linter in CI) now carries the controls that these tests held. It needs priority.

@dan-petty

Copy link
Copy Markdown
Owner Author

Rebased onto #6070 and #6073. This PR also deletes the two manifest value tests of #6070, tests/config/test_k8s_devops_runtime.py::test_mcp_server_rolls_with_no_gap_and_its_readiness_calls_the_health_route and tests/ai/benchmark/test_k8s_llm_gateway.py::test_a_second_gateway_replica_comes_only_with_shared_cooldowns_and_a_disruption_budget. The /healthz tests of tests/ai/mcp/test_mcp_http.py stay. The two scenarios of openspec/specs/workload-rollout/spec.md now name a live check (kubectl -n devops rollout status deployment/mcp-server, kubectl -n llm get deploy,pdb) through a MODIFIED delta of the change folder.

The red checks of the last run (Changed-Test Independence, MCP Server Image, Service Image Tests shard 6, Tests & Coverage) all come from the kubectl ignores of .trivyignore-mcp-server that expired on 2026-11-17; #6079 fixes them.

@devops-cli-service

Copy link
Copy Markdown
Contributor

Pull request #6075 has merge conflicts with main at commit bc36e44c04b6. GitHub cannot merge it. Rebase the branch onto the current main, resolve the conflicts and push the branch.

@dan-petty
dan-petty marked this pull request as ready for review November 17, 2026 01:00
Delete the tests, and the parts of tests, that read a committed manifest,
ConfigMap template, gateway or Renovate config, workflow, Dockerfile or
other config file and assert a value in it. A Renovate update of a pin then
needs no test change. deploy-stack reads each chart version from the Argo
CD Application of the tree, so the code holds no version. The test-tree
row refuses a new test that reads a committed config file, and
docs/TESTING.md states the rules.
@dan-petty
dan-petty force-pushed the test/6060-drop-config-value-tests branch from bc36e44 to b47e00e Compare November 17, 2026 01:04
@dan-petty

Copy link
Copy Markdown
Owner Author

Rebased onto main after #6069, #6078, #6081 and #6087 (head b47e00e64). The conflicts and how I resolved them:

#6078 adds roadmap stage tests that test code with built input, and #6087 changes two kept perimeter tests (test_the_default_perimeter_of_devops_skips_..., test_perimeter_admits_no_ingress_and_exactly_five_egress_rules) and a gate case. None adds a test that reads a manifest or config, so the counts of config_reads.toml stay. The test-tree, k8s, openspec, docs, lint, format and constructs rows pass, and the touched tests pass (345).

@dan-petty
dan-petty enabled auto-merge (squash) November 17, 2026 01:06
@dan-petty
dan-petty merged commit d4968f6 into main Nov 17, 2026
32 of 33 checks passed
@dan-petty
dan-petty deleted the test/6060-drop-config-value-tests branch November 17, 2026 01:22
dan-petty pushed a commit that referenced this pull request Nov 17, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.169.3](v0.169.2...v0.169.3)
(2026-11-17)


### Bug Fixes

* **k8s:** drop the pin checks of SearXNG and the chart tables
([#6069](#6069))
([be2b4c1](be2b4c1)),
closes [#6063](#6063)
* **k8s:** Drop the tests that assert values of manifests and config
([#6075](#6075))
([d4968f6](d4968f6))
* **k8s:** Keep the default perimeter off the planner run pod
([#6087](#6087))
([19bfec3](19bfec3))
* **roadmap:** Keep refine decisions in stage plan
([#6078](#6078))
([88aa191](88aa191))
* **roadmap:** Stop plan rules that ask for config value tests
([#6091](#6091))
([2b4ae1f](2b4ae1f))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
dan-petty added a commit that referenced this pull request Nov 17, 2026
No CI job ran kube-linter, and #6075 deleted the tests of the security
controls of the manifests. `devops k8s lint` with no target now builds
each path source of the Argo CD Applications with Kustomize and lints
the builds with `.kube-linter.yaml`. A new `kube-linter` row of `devops
ci` runs it in Static Analysis, which installs the pinned kube-linter.

The 56 findings are fixed (explicit RollingUpdate on 7 workloads) or
annotated with `ignore-check.kube-linter.io/<check>`, a reason and an
issue; the tier render keeps such an annotation. Checked now: pod
isolation, no token on the default ServiceAccount, non-root, read-only
root, privilege escalation, no `latest` tag, requests, limits, probes,
rollout, PVC prune protection. Not yet: rule ports and peers (#4407),
digests (#6067), drop ALL and seccomp (trivy config), Namespace prune
(kept tests), charts (#6106). design.md maps each control.

Closes #6068

Change: `openspec/changes/archive/2026-11-17-6068-kube-linter-in-ci/`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/test Type test: a new or changed test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(k8s): Drop the tests that repeat third-party version pins

1 participant