mirror of
https://github.com/SigNoz/signoz.git
synced 2026-06-26 10:00:28 +01:00
a023c8ed4a96e2876e2a052d03fbd8656dadcd82
18 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
dba827ee33 |
feat(infra-monitoring): namespace+cluster group by for PVC monitoring, cluster group by for namespace monitoring (#11739)
* chore: deployments -> add default namespace group by * chore: added integration tests for statefulsets * chore: namespace group by for jobs * chore: namespace group by for daemonsets * chore: added group by clustername for all workloads and integration tests for the same * chore: fix py fmt for integration tests * chore: added group by namespace, cluster for pvcs * chore: added cluster name default group by for namespaces monitoring |
||
|
|
51f180453e |
feat(infra-monitoring): add default group by namespace name, cluster name for workloads. (#11716)
* chore: deployments -> add default namespace group by * chore: added integration tests for statefulsets * chore: namespace group by for jobs * chore: namespace group by for daemonsets * chore: added group by clustername for all workloads and integration tests for the same * chore: fix py fmt for integration tests |
||
|
|
4f3b7647d3 |
feat(infra-monitoring): v2 daemonsets integration tests (#11442)
* chore: updated logic and use centralized function in the module * chore: filter metric groups * chore: filter metric groups * chore: formula correction * chore: added step flooring note * chore: comment correction * chore: comment correction * chore: removed function * chore: renamed variables * chore: added happy test * chore: added test 2 for accuracy and test 3 for missing metrics check * chore: added filter test 4 * chore: added 5th test for filterByStatus * chore: added group by tests * chore: pagination test added * chore: added validation tests * chore: added auth test * chore: added all tests * chore: fix for surfacing meta for pods custom group by * chore: added nodes integration test suite * chore: namespaces integration tests * ci: register inframonitoring suite + ruff format 01_hosts Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * chore: added integration tests for clusters * chore: formatting changed * chore: formatting changed * chore: formatting changed * chore: added volumes integration tests * chore: added deployments * chore: added tests * chore: added integration tests for jobs api * chore: added integration tests for v2 daemonsets api * chore: added order by host.name test * refactor(infra-monitoring): address review comments on hosts integration tests - inline _post helper at call sites - combine filter operator tests into parametrized test_hosts_filter - combine bad attr/grammar tests into parametrized test_hosts_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_hosts_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align pods integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_pods_filter - combine bad attr/grammar tests into parametrized test_pods_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_pods_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align nodes integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_nodes_filter - combine bad attr/grammar tests into parametrized test_nodes_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_nodes_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align namespaces integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_namespaces_filter - combine bad attr/grammar tests into parametrized test_namespaces_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_namespaces_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align clusters integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_clusters_filter - combine bad attr/grammar tests into parametrized test_clusters_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_clusters_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align volumes integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_volumes_filter - combine bad attr/grammar tests into parametrized test_volumes_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_volumes_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align deployments integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_deployments_filter - combine bad attr/grammar tests into parametrized test_deployments_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_deployments_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align statefulsets integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_statefulsets_filter - combine bad attr/grammar tests into parametrized test_statefulsets_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_statefulsets_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align jobs integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_jobs_filter - combine bad attr/grammar tests into parametrized test_jobs_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_jobs_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align daemonsets integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_daemonsets_filter - combine bad attr/grammar tests into parametrized test_daemonsets_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_daemonsets_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts groupby tests into parametrized test - merge test_hosts_groupby_hostname + test_hosts_groupby_os_type into test_hosts_groupby parametrized on (dataset, group key, expected counts/values) - preserves all assertions incl hostName populated-vs-empty branch coverage Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts orderby tests into parametrized test - merge total_invariant_across_orderby + orderby_correctness + orderby_by_host_name into test_hosts_orderby parametrized on (column, record_field) x direction - each case asserts both the total/len invariant and sortedness; sortedness now covered for all metric columns, not just cpu - single dataset (hosts_orderby.jsonl) + CONTAINS 'order-' guard on all cases Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts pagination tests - fold offset-beyond-total case into the test_hosts_pagination page walk (offset K+5 expects 0 records via max(0, min(limit, K-offset)); total invariant covers the beyond-total page's total == K) - single seed instead of two Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): merge hosts happy_path into test_hosts_accuracy - happy_path and value_accuracy datasets were structurally identical (same 4 metrics, same sample counts, 2 hosts); one test now asserts shape/contract + exact metric values in a single seed/request - drop unused hosts_happy_path.jsonl Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine pods integration tests logically - merge happy_path into test_pods_accuracy (datasets structurally identical); drop unused pods_happy_path.jsonl - merge groupby namespace/deployment into parametrized test_pods_groupby - merge orderby invariant + correctness + by-pod-name into test_pods_orderby ((column, record_field) x direction; sortedness now covered for all columns) - fold offset-beyond-total into test_pods_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine nodes integration tests logically - merge happy_path into test_nodes_accuracy; drop unused nodes_happy_path.jsonl - merge orderby invariant + correctness + by-node-name into test_nodes_orderby ((column, record_field) x direction; sortedness now covered for all columns) - fold offset-beyond-total into test_nodes_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine namespaces integration tests logically - merge happy_path into test_namespaces_accuracy; drop unused namespaces_happy_path.jsonl - merge orderby invariant + correctness + by-namespace-name into test_namespaces_orderby - fold offset-beyond-total into test_namespaces_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine clusters integration tests logically - merge happy_path into test_clusters_accuracy; drop unused clusters_happy_path.jsonl - merge orderby invariant + correctness + by-cluster-name into test_clusters_orderby - fold offset-beyond-total into test_clusters_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine volumes integration tests logically - merge happy_path into test_volumes_accuracy; drop unused volumes_happy_path.jsonl - merge orderby invariant + correctness + by-pvc-name into test_volumes_orderby - fold offset-beyond-total into test_volumes_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine deployments integration tests logically - merge happy_path into test_deployments_accuracy; drop unused deployments_happy_path.jsonl - merge orderby invariant + correctness + by-deployment-name into test_deployments_orderby - fold offset-beyond-total into test_deployments_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine statefulsets integration tests logically - merge happy_path into test_statefulsets_accuracy; drop unused statefulsets_happy_path.jsonl - merge orderby invariant + correctness + by-statefulset-name into test_statefulsets_orderby - fold offset-beyond-total into test_statefulsets_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine jobs integration tests logically - merge happy_path into test_jobs_accuracy; drop unused jobs_happy_path.jsonl - merge orderby invariant + correctness + by-job-name into test_jobs_orderby - fold offset-beyond-total into test_jobs_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine daemonsets integration tests logically - merge happy_path into test_daemonsets_accuracy; drop unused daemonsets_happy_path.jsonl - merge orderby invariant + correctness + by-daemonset-name into test_daemonsets_orderby - fold offset-beyond-total into test_daemonsets_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in hosts filter tests - regenerate hosts_filter_dataset.jsonl so every host mirrors the acc-h1 sample pattern from hosts_value_accuracy.jsonl (CI-proven expected values) - test_hosts_filter now asserts cpu/memory/wait/load15/diskUsage per filtered record against FILTER_DATASET_EXPECTED (1e-9), proving filters don't distort aggregation Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): scope filter expected values inside test_hosts_filter Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in pods filter tests - regenerate pods_filter_dataset.jsonl so every pod mirrors the acc-p1 sample pattern from pods_value_accuracy.jsonl (CI-proven expected values) - test_pods_filter now asserts the 6 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in nodes filter tests - regenerate nodes_filter_dataset.jsonl so every node mirrors the acc-n1 sample pattern from nodes_value_accuracy.jsonl (CI-proven expected values) - test_nodes_filter now asserts the 4 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in namespaces filter tests - regenerate namespaces_filter_dataset.jsonl so every namespace mirrors the acc-ns-1 sample pattern (2 pods) from namespaces_value_accuracy.jsonl - test_namespaces_filter now asserts namespaceCPU/namespaceMemory per record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in clusters filter tests - regenerate clusters_filter_dataset.jsonl so every cluster mirrors the acc-cluster-1 sample pattern (2 nodes) from clusters_value_accuracy.jsonl - test_clusters_filter now asserts the 4 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in volumes filter tests - regenerate volumes_filter_dataset.jsonl so every PVC mirrors the acc-pvc-1 sample pattern from volumes_value_accuracy.jsonl (CI-proven expected values) - test_volumes_filter now asserts all 6 volume fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in deployments filter tests - regenerate deployments_filter_dataset.jsonl so every deployment mirrors the acc-dep-1 sample pattern (2 pods) from deployments_value_accuracy.jsonl - test_deployments_filter now asserts the 6 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in statefulsets filter tests - regenerate statefulsets_filter_dataset.jsonl so every statefulset mirrors the acc-ss-1 sample pattern (2 pods) from statefulsets_value_accuracy.jsonl - test_statefulsets_filter now asserts the 6 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in jobs filter tests - regenerate jobs_filter_dataset.jsonl so every job mirrors the acc-job-1 sample pattern (2 pods) from jobs_value_accuracy.jsonl - test_jobs_filter now asserts the 6 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in daemonsets filter tests - regenerate daemonsets_filter_dataset.jsonl so every daemonset mirrors the acc-ds-1 sample pattern (2 pods) from daemonsets_value_accuracy.jsonl - test_daemonsets_filter now asserts the 6 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align nodes groupby + pod-phase tests with structure - merge pod_phase_counts_list_mode + _no_pods_on_node into parametrized test_nodes_pod_phase_counts ((dataset, node, filter, expected) cases) - rename groupby_cluster -> test_nodes_groupby, parametrize over k8s.node.name + k8s.cluster.name; adds the node-name-in-groupBy branch (nodeName populated, condition derived) that hosts/pods both cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align namespaces groupby with structure - rename groupby_cluster -> test_namespaces_groupby, parametrize over k8s.namespace.name + k8s.cluster.name; adds the namespace-name-in-groupBy branch (namespaceName populated) that hosts/pods/nodes all cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align clusters groupby with structure - rename groupby_cloud_provider -> test_clusters_groupby, parametrize over k8s.cluster.name + cloud.provider; adds the cluster-name-in-groupBy branch (clusterName populated) that hosts/pods/nodes/namespaces all cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align volumes groupby with structure - rename groupby_namespace -> test_volumes_groupby, parametrize over k8s.persistentvolumeclaim.name + k8s.namespace.name; adds the pvc-name-in-groupBy branch (persistentVolumeClaimName populated) that the other endpoints all cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align deployments groupby with structure - rename groupby_namespace -> test_deployments_groupby, parametrize over k8s.deployment.name + k8s.namespace.name; adds the deployment-name-in-groupBy branch (deploymentName populated) that the other endpoints all cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align statefulsets groupby with structure - rename groupby_namespace -> test_statefulsets_groupby, parametrize over k8s.statefulset.name + k8s.namespace.name; adds the statefulset-name-in-groupBy branch (statefulSetName populated) that the other endpoints all cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align jobs groupby with structure - rename groupby_namespace -> test_jobs_groupby, parametrize over k8s.job.name + k8s.namespace.name; adds the job-name-in-groupBy branch (jobName populated) that the other endpoints all cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align daemonsets groupby with structure - rename groupby_namespace -> test_daemonsets_groupby, parametrize over k8s.daemonset.name + k8s.namespace.name; adds the daemonset-name-in-groupBy branch (daemonSetName populated) that the other endpoints all cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> |
||
|
|
59501ce4a7 |
feat(infra-monitoring): v2 jobs integration tests (#11441)
Some checks failed
build-staging / prepare (push) Has been cancelled
build-staging / js-build (push) Has been cancelled
build-staging / go-build (push) Has been cancelled
build-staging / staging (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
* chore: updated logic and use centralized function in the module * chore: filter metric groups * chore: filter metric groups * chore: formula correction * chore: added step flooring note * chore: comment correction * chore: comment correction * chore: removed function * chore: renamed variables * chore: added happy test * chore: added test 2 for accuracy and test 3 for missing metrics check * chore: added filter test 4 * chore: added 5th test for filterByStatus * chore: added group by tests * chore: pagination test added * chore: added validation tests * chore: added auth test * chore: added all tests * chore: fix for surfacing meta for pods custom group by * chore: added nodes integration test suite * chore: namespaces integration tests * ci: register inframonitoring suite + ruff format 01_hosts Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * chore: added integration tests for clusters * chore: formatting changed * chore: formatting changed * chore: formatting changed * chore: added volumes integration tests * chore: added deployments * chore: added tests * chore: added integration tests for jobs api * chore: added order by host.name test * refactor(infra-monitoring): address review comments on hosts integration tests - inline _post helper at call sites - combine filter operator tests into parametrized test_hosts_filter - combine bad attr/grammar tests into parametrized test_hosts_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_hosts_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align pods integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_pods_filter - combine bad attr/grammar tests into parametrized test_pods_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_pods_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align nodes integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_nodes_filter - combine bad attr/grammar tests into parametrized test_nodes_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_nodes_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align namespaces integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_namespaces_filter - combine bad attr/grammar tests into parametrized test_namespaces_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_namespaces_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align clusters integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_clusters_filter - combine bad attr/grammar tests into parametrized test_clusters_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_clusters_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align volumes integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_volumes_filter - combine bad attr/grammar tests into parametrized test_volumes_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_volumes_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align deployments integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_deployments_filter - combine bad attr/grammar tests into parametrized test_deployments_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_deployments_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align statefulsets integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_statefulsets_filter - combine bad attr/grammar tests into parametrized test_statefulsets_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_statefulsets_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align jobs integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_jobs_filter - combine bad attr/grammar tests into parametrized test_jobs_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_jobs_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts groupby tests into parametrized test - merge test_hosts_groupby_hostname + test_hosts_groupby_os_type into test_hosts_groupby parametrized on (dataset, group key, expected counts/values) - preserves all assertions incl hostName populated-vs-empty branch coverage Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts orderby tests into parametrized test - merge total_invariant_across_orderby + orderby_correctness + orderby_by_host_name into test_hosts_orderby parametrized on (column, record_field) x direction - each case asserts both the total/len invariant and sortedness; sortedness now covered for all metric columns, not just cpu - single dataset (hosts_orderby.jsonl) + CONTAINS 'order-' guard on all cases Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts pagination tests - fold offset-beyond-total case into the test_hosts_pagination page walk (offset K+5 expects 0 records via max(0, min(limit, K-offset)); total invariant covers the beyond-total page's total == K) - single seed instead of two Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): merge hosts happy_path into test_hosts_accuracy - happy_path and value_accuracy datasets were structurally identical (same 4 metrics, same sample counts, 2 hosts); one test now asserts shape/contract + exact metric values in a single seed/request - drop unused hosts_happy_path.jsonl Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine pods integration tests logically - merge happy_path into test_pods_accuracy (datasets structurally identical); drop unused pods_happy_path.jsonl - merge groupby namespace/deployment into parametrized test_pods_groupby - merge orderby invariant + correctness + by-pod-name into test_pods_orderby ((column, record_field) x direction; sortedness now covered for all columns) - fold offset-beyond-total into test_pods_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine nodes integration tests logically - merge happy_path into test_nodes_accuracy; drop unused nodes_happy_path.jsonl - merge orderby invariant + correctness + by-node-name into test_nodes_orderby ((column, record_field) x direction; sortedness now covered for all columns) - fold offset-beyond-total into test_nodes_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine namespaces integration tests logically - merge happy_path into test_namespaces_accuracy; drop unused namespaces_happy_path.jsonl - merge orderby invariant + correctness + by-namespace-name into test_namespaces_orderby - fold offset-beyond-total into test_namespaces_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine clusters integration tests logically - merge happy_path into test_clusters_accuracy; drop unused clusters_happy_path.jsonl - merge orderby invariant + correctness + by-cluster-name into test_clusters_orderby - fold offset-beyond-total into test_clusters_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine volumes integration tests logically - merge happy_path into test_volumes_accuracy; drop unused volumes_happy_path.jsonl - merge orderby invariant + correctness + by-pvc-name into test_volumes_orderby - fold offset-beyond-total into test_volumes_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine deployments integration tests logically - merge happy_path into test_deployments_accuracy; drop unused deployments_happy_path.jsonl - merge orderby invariant + correctness + by-deployment-name into test_deployments_orderby - fold offset-beyond-total into test_deployments_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine statefulsets integration tests logically - merge happy_path into test_statefulsets_accuracy; drop unused statefulsets_happy_path.jsonl - merge orderby invariant + correctness + by-statefulset-name into test_statefulsets_orderby - fold offset-beyond-total into test_statefulsets_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine jobs integration tests logically - merge happy_path into test_jobs_accuracy; drop unused jobs_happy_path.jsonl - merge orderby invariant + correctness + by-job-name into test_jobs_orderby - fold offset-beyond-total into test_jobs_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in hosts filter tests - regenerate hosts_filter_dataset.jsonl so every host mirrors the acc-h1 sample pattern from hosts_value_accuracy.jsonl (CI-proven expected values) - test_hosts_filter now asserts cpu/memory/wait/load15/diskUsage per filtered record against FILTER_DATASET_EXPECTED (1e-9), proving filters don't distort aggregation Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): scope filter expected values inside test_hosts_filter Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in pods filter tests - regenerate pods_filter_dataset.jsonl so every pod mirrors the acc-p1 sample pattern from pods_value_accuracy.jsonl (CI-proven expected values) - test_pods_filter now asserts the 6 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in nodes filter tests - regenerate nodes_filter_dataset.jsonl so every node mirrors the acc-n1 sample pattern from nodes_value_accuracy.jsonl (CI-proven expected values) - test_nodes_filter now asserts the 4 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in namespaces filter tests - regenerate namespaces_filter_dataset.jsonl so every namespace mirrors the acc-ns-1 sample pattern (2 pods) from namespaces_value_accuracy.jsonl - test_namespaces_filter now asserts namespaceCPU/namespaceMemory per record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in clusters filter tests - regenerate clusters_filter_dataset.jsonl so every cluster mirrors the acc-cluster-1 sample pattern (2 nodes) from clusters_value_accuracy.jsonl - test_clusters_filter now asserts the 4 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in volumes filter tests - regenerate volumes_filter_dataset.jsonl so every PVC mirrors the acc-pvc-1 sample pattern from volumes_value_accuracy.jsonl (CI-proven expected values) - test_volumes_filter now asserts all 6 volume fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in deployments filter tests - regenerate deployments_filter_dataset.jsonl so every deployment mirrors the acc-dep-1 sample pattern (2 pods) from deployments_value_accuracy.jsonl - test_deployments_filter now asserts the 6 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in statefulsets filter tests - regenerate statefulsets_filter_dataset.jsonl so every statefulset mirrors the acc-ss-1 sample pattern (2 pods) from statefulsets_value_accuracy.jsonl - test_statefulsets_filter now asserts the 6 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in jobs filter tests - regenerate jobs_filter_dataset.jsonl so every job mirrors the acc-job-1 sample pattern (2 pods) from jobs_value_accuracy.jsonl - test_jobs_filter now asserts the 6 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align nodes groupby + pod-phase tests with structure - merge pod_phase_counts_list_mode + _no_pods_on_node into parametrized test_nodes_pod_phase_counts ((dataset, node, filter, expected) cases) - rename groupby_cluster -> test_nodes_groupby, parametrize over k8s.node.name + k8s.cluster.name; adds the node-name-in-groupBy branch (nodeName populated, condition derived) that hosts/pods both cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align namespaces groupby with structure - rename groupby_cluster -> test_namespaces_groupby, parametrize over k8s.namespace.name + k8s.cluster.name; adds the namespace-name-in-groupBy branch (namespaceName populated) that hosts/pods/nodes all cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align clusters groupby with structure - rename groupby_cloud_provider -> test_clusters_groupby, parametrize over k8s.cluster.name + cloud.provider; adds the cluster-name-in-groupBy branch (clusterName populated) that hosts/pods/nodes/namespaces all cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align volumes groupby with structure - rename groupby_namespace -> test_volumes_groupby, parametrize over k8s.persistentvolumeclaim.name + k8s.namespace.name; adds the pvc-name-in-groupBy branch (persistentVolumeClaimName populated) that the other endpoints all cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align deployments groupby with structure - rename groupby_namespace -> test_deployments_groupby, parametrize over k8s.deployment.name + k8s.namespace.name; adds the deployment-name-in-groupBy branch (deploymentName populated) that the other endpoints all cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align statefulsets groupby with structure - rename groupby_namespace -> test_statefulsets_groupby, parametrize over k8s.statefulset.name + k8s.namespace.name; adds the statefulset-name-in-groupBy branch (statefulSetName populated) that the other endpoints all cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align jobs groupby with structure - rename groupby_namespace -> test_jobs_groupby, parametrize over k8s.job.name + k8s.namespace.name; adds the job-name-in-groupBy branch (jobName populated) that the other endpoints all cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> |
||
|
|
27603e09d0 |
feat(infra-monitoring): v2 statefulsets integration tests (#11440)
* chore: updated logic and use centralized function in the module * chore: filter metric groups * chore: filter metric groups * chore: formula correction * chore: added step flooring note * chore: comment correction * chore: comment correction * chore: removed function * chore: renamed variables * chore: added happy test * chore: added test 2 for accuracy and test 3 for missing metrics check * chore: added filter test 4 * chore: added 5th test for filterByStatus * chore: added group by tests * chore: pagination test added * chore: added validation tests * chore: added auth test * chore: added all tests * chore: fix for surfacing meta for pods custom group by * chore: added nodes integration test suite * chore: namespaces integration tests * ci: register inframonitoring suite + ruff format 01_hosts Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * chore: added integration tests for clusters * chore: formatting changed * chore: formatting changed * chore: formatting changed * chore: added volumes integration tests * chore: added deployments * chore: added tests * chore: added order by host.name test * refactor(infra-monitoring): address review comments on hosts integration tests - inline _post helper at call sites - combine filter operator tests into parametrized test_hosts_filter - combine bad attr/grammar tests into parametrized test_hosts_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_hosts_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align pods integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_pods_filter - combine bad attr/grammar tests into parametrized test_pods_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_pods_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align nodes integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_nodes_filter - combine bad attr/grammar tests into parametrized test_nodes_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_nodes_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align namespaces integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_namespaces_filter - combine bad attr/grammar tests into parametrized test_namespaces_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_namespaces_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align clusters integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_clusters_filter - combine bad attr/grammar tests into parametrized test_clusters_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_clusters_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align volumes integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_volumes_filter - combine bad attr/grammar tests into parametrized test_volumes_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_volumes_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align deployments integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_deployments_filter - combine bad attr/grammar tests into parametrized test_deployments_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_deployments_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align statefulsets integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_statefulsets_filter - combine bad attr/grammar tests into parametrized test_statefulsets_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_statefulsets_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts groupby tests into parametrized test - merge test_hosts_groupby_hostname + test_hosts_groupby_os_type into test_hosts_groupby parametrized on (dataset, group key, expected counts/values) - preserves all assertions incl hostName populated-vs-empty branch coverage Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts orderby tests into parametrized test - merge total_invariant_across_orderby + orderby_correctness + orderby_by_host_name into test_hosts_orderby parametrized on (column, record_field) x direction - each case asserts both the total/len invariant and sortedness; sortedness now covered for all metric columns, not just cpu - single dataset (hosts_orderby.jsonl) + CONTAINS 'order-' guard on all cases Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts pagination tests - fold offset-beyond-total case into the test_hosts_pagination page walk (offset K+5 expects 0 records via max(0, min(limit, K-offset)); total invariant covers the beyond-total page's total == K) - single seed instead of two Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): merge hosts happy_path into test_hosts_accuracy - happy_path and value_accuracy datasets were structurally identical (same 4 metrics, same sample counts, 2 hosts); one test now asserts shape/contract + exact metric values in a single seed/request - drop unused hosts_happy_path.jsonl Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine pods integration tests logically - merge happy_path into test_pods_accuracy (datasets structurally identical); drop unused pods_happy_path.jsonl - merge groupby namespace/deployment into parametrized test_pods_groupby - merge orderby invariant + correctness + by-pod-name into test_pods_orderby ((column, record_field) x direction; sortedness now covered for all columns) - fold offset-beyond-total into test_pods_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine nodes integration tests logically - merge happy_path into test_nodes_accuracy; drop unused nodes_happy_path.jsonl - merge orderby invariant + correctness + by-node-name into test_nodes_orderby ((column, record_field) x direction; sortedness now covered for all columns) - fold offset-beyond-total into test_nodes_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine namespaces integration tests logically - merge happy_path into test_namespaces_accuracy; drop unused namespaces_happy_path.jsonl - merge orderby invariant + correctness + by-namespace-name into test_namespaces_orderby - fold offset-beyond-total into test_namespaces_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine clusters integration tests logically - merge happy_path into test_clusters_accuracy; drop unused clusters_happy_path.jsonl - merge orderby invariant + correctness + by-cluster-name into test_clusters_orderby - fold offset-beyond-total into test_clusters_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine volumes integration tests logically - merge happy_path into test_volumes_accuracy; drop unused volumes_happy_path.jsonl - merge orderby invariant + correctness + by-pvc-name into test_volumes_orderby - fold offset-beyond-total into test_volumes_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine deployments integration tests logically - merge happy_path into test_deployments_accuracy; drop unused deployments_happy_path.jsonl - merge orderby invariant + correctness + by-deployment-name into test_deployments_orderby - fold offset-beyond-total into test_deployments_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine statefulsets integration tests logically - merge happy_path into test_statefulsets_accuracy; drop unused statefulsets_happy_path.jsonl - merge orderby invariant + correctness + by-statefulset-name into test_statefulsets_orderby - fold offset-beyond-total into test_statefulsets_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in hosts filter tests - regenerate hosts_filter_dataset.jsonl so every host mirrors the acc-h1 sample pattern from hosts_value_accuracy.jsonl (CI-proven expected values) - test_hosts_filter now asserts cpu/memory/wait/load15/diskUsage per filtered record against FILTER_DATASET_EXPECTED (1e-9), proving filters don't distort aggregation Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): scope filter expected values inside test_hosts_filter Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in pods filter tests - regenerate pods_filter_dataset.jsonl so every pod mirrors the acc-p1 sample pattern from pods_value_accuracy.jsonl (CI-proven expected values) - test_pods_filter now asserts the 6 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in nodes filter tests - regenerate nodes_filter_dataset.jsonl so every node mirrors the acc-n1 sample pattern from nodes_value_accuracy.jsonl (CI-proven expected values) - test_nodes_filter now asserts the 4 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in namespaces filter tests - regenerate namespaces_filter_dataset.jsonl so every namespace mirrors the acc-ns-1 sample pattern (2 pods) from namespaces_value_accuracy.jsonl - test_namespaces_filter now asserts namespaceCPU/namespaceMemory per record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in clusters filter tests - regenerate clusters_filter_dataset.jsonl so every cluster mirrors the acc-cluster-1 sample pattern (2 nodes) from clusters_value_accuracy.jsonl - test_clusters_filter now asserts the 4 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in volumes filter tests - regenerate volumes_filter_dataset.jsonl so every PVC mirrors the acc-pvc-1 sample pattern from volumes_value_accuracy.jsonl (CI-proven expected values) - test_volumes_filter now asserts all 6 volume fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in deployments filter tests - regenerate deployments_filter_dataset.jsonl so every deployment mirrors the acc-dep-1 sample pattern (2 pods) from deployments_value_accuracy.jsonl - test_deployments_filter now asserts the 6 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in statefulsets filter tests - regenerate statefulsets_filter_dataset.jsonl so every statefulset mirrors the acc-ss-1 sample pattern (2 pods) from statefulsets_value_accuracy.jsonl - test_statefulsets_filter now asserts the 6 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align nodes groupby + pod-phase tests with structure - merge pod_phase_counts_list_mode + _no_pods_on_node into parametrized test_nodes_pod_phase_counts ((dataset, node, filter, expected) cases) - rename groupby_cluster -> test_nodes_groupby, parametrize over k8s.node.name + k8s.cluster.name; adds the node-name-in-groupBy branch (nodeName populated, condition derived) that hosts/pods both cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align namespaces groupby with structure - rename groupby_cluster -> test_namespaces_groupby, parametrize over k8s.namespace.name + k8s.cluster.name; adds the namespace-name-in-groupBy branch (namespaceName populated) that hosts/pods/nodes all cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align clusters groupby with structure - rename groupby_cloud_provider -> test_clusters_groupby, parametrize over k8s.cluster.name + cloud.provider; adds the cluster-name-in-groupBy branch (clusterName populated) that hosts/pods/nodes/namespaces all cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align volumes groupby with structure - rename groupby_namespace -> test_volumes_groupby, parametrize over k8s.persistentvolumeclaim.name + k8s.namespace.name; adds the pvc-name-in-groupBy branch (persistentVolumeClaimName populated) that the other endpoints all cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align deployments groupby with structure - rename groupby_namespace -> test_deployments_groupby, parametrize over k8s.deployment.name + k8s.namespace.name; adds the deployment-name-in-groupBy branch (deploymentName populated) that the other endpoints all cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align statefulsets groupby with structure - rename groupby_namespace -> test_statefulsets_groupby, parametrize over k8s.statefulset.name + k8s.namespace.name; adds the statefulset-name-in-groupBy branch (statefulSetName populated) that the other endpoints all cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> |
||
|
|
30f1c2d92d |
feat(infra-monitoring): v2 deployments integration tests (#11437)
* chore: updated logic and use centralized function in the module * chore: filter metric groups * chore: filter metric groups * chore: formula correction * chore: added step flooring note * chore: comment correction * chore: comment correction * chore: removed function * chore: renamed variables * chore: added happy test * chore: added test 2 for accuracy and test 3 for missing metrics check * chore: added filter test 4 * chore: added 5th test for filterByStatus * chore: added group by tests * chore: pagination test added * chore: added validation tests * chore: added auth test * chore: added all tests * chore: fix for surfacing meta for pods custom group by * chore: added nodes integration test suite * chore: namespaces integration tests * ci: register inframonitoring suite + ruff format 01_hosts Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * chore: added integration tests for clusters * chore: formatting changed * chore: formatting changed * chore: formatting changed * chore: added volumes integration tests * chore: added deployments * chore: added order by host.name test * refactor(infra-monitoring): address review comments on hosts integration tests - inline _post helper at call sites - combine filter operator tests into parametrized test_hosts_filter - combine bad attr/grammar tests into parametrized test_hosts_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_hosts_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align pods integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_pods_filter - combine bad attr/grammar tests into parametrized test_pods_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_pods_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align nodes integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_nodes_filter - combine bad attr/grammar tests into parametrized test_nodes_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_nodes_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align namespaces integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_namespaces_filter - combine bad attr/grammar tests into parametrized test_namespaces_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_namespaces_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align clusters integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_clusters_filter - combine bad attr/grammar tests into parametrized test_clusters_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_clusters_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align volumes integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_volumes_filter - combine bad attr/grammar tests into parametrized test_volumes_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_volumes_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align deployments integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_deployments_filter - combine bad attr/grammar tests into parametrized test_deployments_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_deployments_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts groupby tests into parametrized test - merge test_hosts_groupby_hostname + test_hosts_groupby_os_type into test_hosts_groupby parametrized on (dataset, group key, expected counts/values) - preserves all assertions incl hostName populated-vs-empty branch coverage Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts orderby tests into parametrized test - merge total_invariant_across_orderby + orderby_correctness + orderby_by_host_name into test_hosts_orderby parametrized on (column, record_field) x direction - each case asserts both the total/len invariant and sortedness; sortedness now covered for all metric columns, not just cpu - single dataset (hosts_orderby.jsonl) + CONTAINS 'order-' guard on all cases Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts pagination tests - fold offset-beyond-total case into the test_hosts_pagination page walk (offset K+5 expects 0 records via max(0, min(limit, K-offset)); total invariant covers the beyond-total page's total == K) - single seed instead of two Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): merge hosts happy_path into test_hosts_accuracy - happy_path and value_accuracy datasets were structurally identical (same 4 metrics, same sample counts, 2 hosts); one test now asserts shape/contract + exact metric values in a single seed/request - drop unused hosts_happy_path.jsonl Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine pods integration tests logically - merge happy_path into test_pods_accuracy (datasets structurally identical); drop unused pods_happy_path.jsonl - merge groupby namespace/deployment into parametrized test_pods_groupby - merge orderby invariant + correctness + by-pod-name into test_pods_orderby ((column, record_field) x direction; sortedness now covered for all columns) - fold offset-beyond-total into test_pods_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine nodes integration tests logically - merge happy_path into test_nodes_accuracy; drop unused nodes_happy_path.jsonl - merge orderby invariant + correctness + by-node-name into test_nodes_orderby ((column, record_field) x direction; sortedness now covered for all columns) - fold offset-beyond-total into test_nodes_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine namespaces integration tests logically - merge happy_path into test_namespaces_accuracy; drop unused namespaces_happy_path.jsonl - merge orderby invariant + correctness + by-namespace-name into test_namespaces_orderby - fold offset-beyond-total into test_namespaces_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine clusters integration tests logically - merge happy_path into test_clusters_accuracy; drop unused clusters_happy_path.jsonl - merge orderby invariant + correctness + by-cluster-name into test_clusters_orderby - fold offset-beyond-total into test_clusters_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine volumes integration tests logically - merge happy_path into test_volumes_accuracy; drop unused volumes_happy_path.jsonl - merge orderby invariant + correctness + by-pvc-name into test_volumes_orderby - fold offset-beyond-total into test_volumes_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine deployments integration tests logically - merge happy_path into test_deployments_accuracy; drop unused deployments_happy_path.jsonl - merge orderby invariant + correctness + by-deployment-name into test_deployments_orderby - fold offset-beyond-total into test_deployments_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in hosts filter tests - regenerate hosts_filter_dataset.jsonl so every host mirrors the acc-h1 sample pattern from hosts_value_accuracy.jsonl (CI-proven expected values) - test_hosts_filter now asserts cpu/memory/wait/load15/diskUsage per filtered record against FILTER_DATASET_EXPECTED (1e-9), proving filters don't distort aggregation Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): scope filter expected values inside test_hosts_filter Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in pods filter tests - regenerate pods_filter_dataset.jsonl so every pod mirrors the acc-p1 sample pattern from pods_value_accuracy.jsonl (CI-proven expected values) - test_pods_filter now asserts the 6 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in nodes filter tests - regenerate nodes_filter_dataset.jsonl so every node mirrors the acc-n1 sample pattern from nodes_value_accuracy.jsonl (CI-proven expected values) - test_nodes_filter now asserts the 4 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in namespaces filter tests - regenerate namespaces_filter_dataset.jsonl so every namespace mirrors the acc-ns-1 sample pattern (2 pods) from namespaces_value_accuracy.jsonl - test_namespaces_filter now asserts namespaceCPU/namespaceMemory per record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in clusters filter tests - regenerate clusters_filter_dataset.jsonl so every cluster mirrors the acc-cluster-1 sample pattern (2 nodes) from clusters_value_accuracy.jsonl - test_clusters_filter now asserts the 4 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in volumes filter tests - regenerate volumes_filter_dataset.jsonl so every PVC mirrors the acc-pvc-1 sample pattern from volumes_value_accuracy.jsonl (CI-proven expected values) - test_volumes_filter now asserts all 6 volume fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in deployments filter tests - regenerate deployments_filter_dataset.jsonl so every deployment mirrors the acc-dep-1 sample pattern (2 pods) from deployments_value_accuracy.jsonl - test_deployments_filter now asserts the 6 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align nodes groupby + pod-phase tests with structure - merge pod_phase_counts_list_mode + _no_pods_on_node into parametrized test_nodes_pod_phase_counts ((dataset, node, filter, expected) cases) - rename groupby_cluster -> test_nodes_groupby, parametrize over k8s.node.name + k8s.cluster.name; adds the node-name-in-groupBy branch (nodeName populated, condition derived) that hosts/pods both cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align namespaces groupby with structure - rename groupby_cluster -> test_namespaces_groupby, parametrize over k8s.namespace.name + k8s.cluster.name; adds the namespace-name-in-groupBy branch (namespaceName populated) that hosts/pods/nodes all cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align clusters groupby with structure - rename groupby_cloud_provider -> test_clusters_groupby, parametrize over k8s.cluster.name + cloud.provider; adds the cluster-name-in-groupBy branch (clusterName populated) that hosts/pods/nodes/namespaces all cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align volumes groupby with structure - rename groupby_namespace -> test_volumes_groupby, parametrize over k8s.persistentvolumeclaim.name + k8s.namespace.name; adds the pvc-name-in-groupBy branch (persistentVolumeClaimName populated) that the other endpoints all cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align deployments groupby with structure - rename groupby_namespace -> test_deployments_groupby, parametrize over k8s.deployment.name + k8s.namespace.name; adds the deployment-name-in-groupBy branch (deploymentName populated) that the other endpoints all cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> |
||
|
|
446dd4589f |
feat(infra-monitoring): v2 volumes integration tests (#11431)
Some checks failed
build-staging / staging (push) Has been cancelled
build-staging / prepare (push) Has been cancelled
build-staging / js-build (push) Has been cancelled
build-staging / go-build (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
* chore: updated logic and use centralized function in the module * chore: filter metric groups * chore: filter metric groups * chore: formula correction * chore: added step flooring note * chore: comment correction * chore: comment correction * chore: removed function * chore: renamed variables * chore: added happy test * chore: added test 2 for accuracy and test 3 for missing metrics check * chore: added filter test 4 * chore: added 5th test for filterByStatus * chore: added group by tests * chore: pagination test added * chore: added validation tests * chore: added auth test * chore: added all tests * chore: fix for surfacing meta for pods custom group by * chore: added nodes integration test suite * chore: namespaces integration tests * ci: register inframonitoring suite + ruff format 01_hosts Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * chore: added integration tests for clusters * chore: formatting changed * chore: formatting changed * chore: formatting changed * chore: added volumes integration tests * chore: added order by host.name test * refactor(infra-monitoring): address review comments on hosts integration tests - inline _post helper at call sites - combine filter operator tests into parametrized test_hosts_filter - combine bad attr/grammar tests into parametrized test_hosts_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_hosts_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align pods integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_pods_filter - combine bad attr/grammar tests into parametrized test_pods_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_pods_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align nodes integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_nodes_filter - combine bad attr/grammar tests into parametrized test_nodes_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_nodes_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align namespaces integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_namespaces_filter - combine bad attr/grammar tests into parametrized test_namespaces_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_namespaces_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align clusters integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_clusters_filter - combine bad attr/grammar tests into parametrized test_clusters_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_clusters_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align volumes integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_volumes_filter - combine bad attr/grammar tests into parametrized test_volumes_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_volumes_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts groupby tests into parametrized test - merge test_hosts_groupby_hostname + test_hosts_groupby_os_type into test_hosts_groupby parametrized on (dataset, group key, expected counts/values) - preserves all assertions incl hostName populated-vs-empty branch coverage Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts orderby tests into parametrized test - merge total_invariant_across_orderby + orderby_correctness + orderby_by_host_name into test_hosts_orderby parametrized on (column, record_field) x direction - each case asserts both the total/len invariant and sortedness; sortedness now covered for all metric columns, not just cpu - single dataset (hosts_orderby.jsonl) + CONTAINS 'order-' guard on all cases Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts pagination tests - fold offset-beyond-total case into the test_hosts_pagination page walk (offset K+5 expects 0 records via max(0, min(limit, K-offset)); total invariant covers the beyond-total page's total == K) - single seed instead of two Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): merge hosts happy_path into test_hosts_accuracy - happy_path and value_accuracy datasets were structurally identical (same 4 metrics, same sample counts, 2 hosts); one test now asserts shape/contract + exact metric values in a single seed/request - drop unused hosts_happy_path.jsonl Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine pods integration tests logically - merge happy_path into test_pods_accuracy (datasets structurally identical); drop unused pods_happy_path.jsonl - merge groupby namespace/deployment into parametrized test_pods_groupby - merge orderby invariant + correctness + by-pod-name into test_pods_orderby ((column, record_field) x direction; sortedness now covered for all columns) - fold offset-beyond-total into test_pods_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine nodes integration tests logically - merge happy_path into test_nodes_accuracy; drop unused nodes_happy_path.jsonl - merge orderby invariant + correctness + by-node-name into test_nodes_orderby ((column, record_field) x direction; sortedness now covered for all columns) - fold offset-beyond-total into test_nodes_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine namespaces integration tests logically - merge happy_path into test_namespaces_accuracy; drop unused namespaces_happy_path.jsonl - merge orderby invariant + correctness + by-namespace-name into test_namespaces_orderby - fold offset-beyond-total into test_namespaces_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine clusters integration tests logically - merge happy_path into test_clusters_accuracy; drop unused clusters_happy_path.jsonl - merge orderby invariant + correctness + by-cluster-name into test_clusters_orderby - fold offset-beyond-total into test_clusters_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine volumes integration tests logically - merge happy_path into test_volumes_accuracy; drop unused volumes_happy_path.jsonl - merge orderby invariant + correctness + by-pvc-name into test_volumes_orderby - fold offset-beyond-total into test_volumes_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in hosts filter tests - regenerate hosts_filter_dataset.jsonl so every host mirrors the acc-h1 sample pattern from hosts_value_accuracy.jsonl (CI-proven expected values) - test_hosts_filter now asserts cpu/memory/wait/load15/diskUsage per filtered record against FILTER_DATASET_EXPECTED (1e-9), proving filters don't distort aggregation Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): scope filter expected values inside test_hosts_filter Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in pods filter tests - regenerate pods_filter_dataset.jsonl so every pod mirrors the acc-p1 sample pattern from pods_value_accuracy.jsonl (CI-proven expected values) - test_pods_filter now asserts the 6 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in nodes filter tests - regenerate nodes_filter_dataset.jsonl so every node mirrors the acc-n1 sample pattern from nodes_value_accuracy.jsonl (CI-proven expected values) - test_nodes_filter now asserts the 4 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in namespaces filter tests - regenerate namespaces_filter_dataset.jsonl so every namespace mirrors the acc-ns-1 sample pattern (2 pods) from namespaces_value_accuracy.jsonl - test_namespaces_filter now asserts namespaceCPU/namespaceMemory per record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in clusters filter tests - regenerate clusters_filter_dataset.jsonl so every cluster mirrors the acc-cluster-1 sample pattern (2 nodes) from clusters_value_accuracy.jsonl - test_clusters_filter now asserts the 4 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in volumes filter tests - regenerate volumes_filter_dataset.jsonl so every PVC mirrors the acc-pvc-1 sample pattern from volumes_value_accuracy.jsonl (CI-proven expected values) - test_volumes_filter now asserts all 6 volume fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align nodes groupby + pod-phase tests with structure - merge pod_phase_counts_list_mode + _no_pods_on_node into parametrized test_nodes_pod_phase_counts ((dataset, node, filter, expected) cases) - rename groupby_cluster -> test_nodes_groupby, parametrize over k8s.node.name + k8s.cluster.name; adds the node-name-in-groupBy branch (nodeName populated, condition derived) that hosts/pods both cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align namespaces groupby with structure - rename groupby_cluster -> test_namespaces_groupby, parametrize over k8s.namespace.name + k8s.cluster.name; adds the namespace-name-in-groupBy branch (namespaceName populated) that hosts/pods/nodes all cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align clusters groupby with structure - rename groupby_cloud_provider -> test_clusters_groupby, parametrize over k8s.cluster.name + cloud.provider; adds the cluster-name-in-groupBy branch (clusterName populated) that hosts/pods/nodes/namespaces all cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align volumes groupby with structure - rename groupby_namespace -> test_volumes_groupby, parametrize over k8s.persistentvolumeclaim.name + k8s.namespace.name; adds the pvc-name-in-groupBy branch (persistentVolumeClaimName populated) that the other endpoints all cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> |
||
|
|
2e0d25479a |
feat(infra-monitoring): v2 clusters integration tests (#11430)
* chore: updated logic and use centralized function in the module * chore: filter metric groups * chore: filter metric groups * chore: formula correction * chore: added step flooring note * chore: comment correction * chore: comment correction * chore: removed function * chore: renamed variables * chore: added happy test * chore: added test 2 for accuracy and test 3 for missing metrics check * chore: added filter test 4 * chore: added 5th test for filterByStatus * chore: added group by tests * chore: pagination test added * chore: added validation tests * chore: added auth test * chore: added all tests * chore: fix for surfacing meta for pods custom group by * chore: added nodes integration test suite * chore: namespaces integration tests * ci: register inframonitoring suite + ruff format 01_hosts Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * chore: added integration tests for clusters * chore: formatting changed * chore: formatting changed * chore: formatting changed * chore: added order by host.name test * refactor(infra-monitoring): address review comments on hosts integration tests - inline _post helper at call sites - combine filter operator tests into parametrized test_hosts_filter - combine bad attr/grammar tests into parametrized test_hosts_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_hosts_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align pods integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_pods_filter - combine bad attr/grammar tests into parametrized test_pods_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_pods_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align nodes integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_nodes_filter - combine bad attr/grammar tests into parametrized test_nodes_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_nodes_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align namespaces integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_namespaces_filter - combine bad attr/grammar tests into parametrized test_namespaces_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_namespaces_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align clusters integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_clusters_filter - combine bad attr/grammar tests into parametrized test_clusters_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_clusters_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts groupby tests into parametrized test - merge test_hosts_groupby_hostname + test_hosts_groupby_os_type into test_hosts_groupby parametrized on (dataset, group key, expected counts/values) - preserves all assertions incl hostName populated-vs-empty branch coverage Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts orderby tests into parametrized test - merge total_invariant_across_orderby + orderby_correctness + orderby_by_host_name into test_hosts_orderby parametrized on (column, record_field) x direction - each case asserts both the total/len invariant and sortedness; sortedness now covered for all metric columns, not just cpu - single dataset (hosts_orderby.jsonl) + CONTAINS 'order-' guard on all cases Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts pagination tests - fold offset-beyond-total case into the test_hosts_pagination page walk (offset K+5 expects 0 records via max(0, min(limit, K-offset)); total invariant covers the beyond-total page's total == K) - single seed instead of two Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): merge hosts happy_path into test_hosts_accuracy - happy_path and value_accuracy datasets were structurally identical (same 4 metrics, same sample counts, 2 hosts); one test now asserts shape/contract + exact metric values in a single seed/request - drop unused hosts_happy_path.jsonl Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine pods integration tests logically - merge happy_path into test_pods_accuracy (datasets structurally identical); drop unused pods_happy_path.jsonl - merge groupby namespace/deployment into parametrized test_pods_groupby - merge orderby invariant + correctness + by-pod-name into test_pods_orderby ((column, record_field) x direction; sortedness now covered for all columns) - fold offset-beyond-total into test_pods_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine nodes integration tests logically - merge happy_path into test_nodes_accuracy; drop unused nodes_happy_path.jsonl - merge orderby invariant + correctness + by-node-name into test_nodes_orderby ((column, record_field) x direction; sortedness now covered for all columns) - fold offset-beyond-total into test_nodes_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine namespaces integration tests logically - merge happy_path into test_namespaces_accuracy; drop unused namespaces_happy_path.jsonl - merge orderby invariant + correctness + by-namespace-name into test_namespaces_orderby - fold offset-beyond-total into test_namespaces_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine clusters integration tests logically - merge happy_path into test_clusters_accuracy; drop unused clusters_happy_path.jsonl - merge orderby invariant + correctness + by-cluster-name into test_clusters_orderby - fold offset-beyond-total into test_clusters_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in hosts filter tests - regenerate hosts_filter_dataset.jsonl so every host mirrors the acc-h1 sample pattern from hosts_value_accuracy.jsonl (CI-proven expected values) - test_hosts_filter now asserts cpu/memory/wait/load15/diskUsage per filtered record against FILTER_DATASET_EXPECTED (1e-9), proving filters don't distort aggregation Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): scope filter expected values inside test_hosts_filter Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in pods filter tests - regenerate pods_filter_dataset.jsonl so every pod mirrors the acc-p1 sample pattern from pods_value_accuracy.jsonl (CI-proven expected values) - test_pods_filter now asserts the 6 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in nodes filter tests - regenerate nodes_filter_dataset.jsonl so every node mirrors the acc-n1 sample pattern from nodes_value_accuracy.jsonl (CI-proven expected values) - test_nodes_filter now asserts the 4 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in namespaces filter tests - regenerate namespaces_filter_dataset.jsonl so every namespace mirrors the acc-ns-1 sample pattern (2 pods) from namespaces_value_accuracy.jsonl - test_namespaces_filter now asserts namespaceCPU/namespaceMemory per record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in clusters filter tests - regenerate clusters_filter_dataset.jsonl so every cluster mirrors the acc-cluster-1 sample pattern (2 nodes) from clusters_value_accuracy.jsonl - test_clusters_filter now asserts the 4 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align nodes groupby + pod-phase tests with structure - merge pod_phase_counts_list_mode + _no_pods_on_node into parametrized test_nodes_pod_phase_counts ((dataset, node, filter, expected) cases) - rename groupby_cluster -> test_nodes_groupby, parametrize over k8s.node.name + k8s.cluster.name; adds the node-name-in-groupBy branch (nodeName populated, condition derived) that hosts/pods both cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align namespaces groupby with structure - rename groupby_cluster -> test_namespaces_groupby, parametrize over k8s.namespace.name + k8s.cluster.name; adds the namespace-name-in-groupBy branch (namespaceName populated) that hosts/pods/nodes all cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align clusters groupby with structure - rename groupby_cloud_provider -> test_clusters_groupby, parametrize over k8s.cluster.name + cloud.provider; adds the cluster-name-in-groupBy branch (clusterName populated) that hosts/pods/nodes/namespaces all cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> |
||
|
|
83b2cabbcd |
feat(infra-monitoring): v2 namespaces integration tests (#11429)
* chore: updated logic and use centralized function in the module * chore: filter metric groups * chore: filter metric groups * chore: formula correction * chore: added step flooring note * chore: comment correction * chore: comment correction * chore: removed function * chore: renamed variables * chore: added happy test * chore: added test 2 for accuracy and test 3 for missing metrics check * chore: added filter test 4 * chore: added 5th test for filterByStatus * chore: added group by tests * chore: pagination test added * chore: added validation tests * chore: added auth test * chore: added all tests * chore: fix for surfacing meta for pods custom group by * chore: added nodes integration test suite * chore: namespaces integration tests * ci: register inframonitoring suite + ruff format 01_hosts Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * chore: formatting changed * chore: formatting changed * chore: formatting changed * chore: added order by host.name test * refactor(infra-monitoring): address review comments on hosts integration tests - inline _post helper at call sites - combine filter operator tests into parametrized test_hosts_filter - combine bad attr/grammar tests into parametrized test_hosts_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_hosts_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align pods integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_pods_filter - combine bad attr/grammar tests into parametrized test_pods_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_pods_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align nodes integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_nodes_filter - combine bad attr/grammar tests into parametrized test_nodes_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_nodes_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align namespaces integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_namespaces_filter - combine bad attr/grammar tests into parametrized test_namespaces_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_namespaces_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts groupby tests into parametrized test - merge test_hosts_groupby_hostname + test_hosts_groupby_os_type into test_hosts_groupby parametrized on (dataset, group key, expected counts/values) - preserves all assertions incl hostName populated-vs-empty branch coverage Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts orderby tests into parametrized test - merge total_invariant_across_orderby + orderby_correctness + orderby_by_host_name into test_hosts_orderby parametrized on (column, record_field) x direction - each case asserts both the total/len invariant and sortedness; sortedness now covered for all metric columns, not just cpu - single dataset (hosts_orderby.jsonl) + CONTAINS 'order-' guard on all cases Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts pagination tests - fold offset-beyond-total case into the test_hosts_pagination page walk (offset K+5 expects 0 records via max(0, min(limit, K-offset)); total invariant covers the beyond-total page's total == K) - single seed instead of two Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): merge hosts happy_path into test_hosts_accuracy - happy_path and value_accuracy datasets were structurally identical (same 4 metrics, same sample counts, 2 hosts); one test now asserts shape/contract + exact metric values in a single seed/request - drop unused hosts_happy_path.jsonl Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine pods integration tests logically - merge happy_path into test_pods_accuracy (datasets structurally identical); drop unused pods_happy_path.jsonl - merge groupby namespace/deployment into parametrized test_pods_groupby - merge orderby invariant + correctness + by-pod-name into test_pods_orderby ((column, record_field) x direction; sortedness now covered for all columns) - fold offset-beyond-total into test_pods_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine nodes integration tests logically - merge happy_path into test_nodes_accuracy; drop unused nodes_happy_path.jsonl - merge orderby invariant + correctness + by-node-name into test_nodes_orderby ((column, record_field) x direction; sortedness now covered for all columns) - fold offset-beyond-total into test_nodes_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine namespaces integration tests logically - merge happy_path into test_namespaces_accuracy; drop unused namespaces_happy_path.jsonl - merge orderby invariant + correctness + by-namespace-name into test_namespaces_orderby - fold offset-beyond-total into test_namespaces_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in hosts filter tests - regenerate hosts_filter_dataset.jsonl so every host mirrors the acc-h1 sample pattern from hosts_value_accuracy.jsonl (CI-proven expected values) - test_hosts_filter now asserts cpu/memory/wait/load15/diskUsage per filtered record against FILTER_DATASET_EXPECTED (1e-9), proving filters don't distort aggregation Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): scope filter expected values inside test_hosts_filter Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in pods filter tests - regenerate pods_filter_dataset.jsonl so every pod mirrors the acc-p1 sample pattern from pods_value_accuracy.jsonl (CI-proven expected values) - test_pods_filter now asserts the 6 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in nodes filter tests - regenerate nodes_filter_dataset.jsonl so every node mirrors the acc-n1 sample pattern from nodes_value_accuracy.jsonl (CI-proven expected values) - test_nodes_filter now asserts the 4 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in namespaces filter tests - regenerate namespaces_filter_dataset.jsonl so every namespace mirrors the acc-ns-1 sample pattern (2 pods) from namespaces_value_accuracy.jsonl - test_namespaces_filter now asserts namespaceCPU/namespaceMemory per record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align nodes groupby + pod-phase tests with structure - merge pod_phase_counts_list_mode + _no_pods_on_node into parametrized test_nodes_pod_phase_counts ((dataset, node, filter, expected) cases) - rename groupby_cluster -> test_nodes_groupby, parametrize over k8s.node.name + k8s.cluster.name; adds the node-name-in-groupBy branch (nodeName populated, condition derived) that hosts/pods both cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align namespaces groupby with structure - rename groupby_cluster -> test_namespaces_groupby, parametrize over k8s.namespace.name + k8s.cluster.name; adds the namespace-name-in-groupBy branch (namespaceName populated) that hosts/pods/nodes all cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> |
||
|
|
2d3772ef10 |
feat(infra-monitoring): v2 nodes integration tests (#11428)
* chore: updated logic and use centralized function in the module * chore: filter metric groups * chore: filter metric groups * chore: formula correction * chore: added step flooring note * chore: comment correction * chore: comment correction * chore: removed function * chore: renamed variables * chore: added happy test * chore: added test 2 for accuracy and test 3 for missing metrics check * chore: added filter test 4 * chore: added 5th test for filterByStatus * chore: added group by tests * chore: pagination test added * chore: added validation tests * chore: added auth test * chore: added all tests * chore: fix for surfacing meta for pods custom group by * chore: added nodes integration test suite * ci: register inframonitoring suite + ruff format 01_hosts Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * chore: formatting changed * chore: formatting changed * chore: added order by host.name test * refactor(infra-monitoring): address review comments on hosts integration tests - inline _post helper at call sites - combine filter operator tests into parametrized test_hosts_filter - combine bad attr/grammar tests into parametrized test_hosts_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_hosts_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align pods integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_pods_filter - combine bad attr/grammar tests into parametrized test_pods_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_pods_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align nodes integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_nodes_filter - combine bad attr/grammar tests into parametrized test_nodes_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_nodes_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts groupby tests into parametrized test - merge test_hosts_groupby_hostname + test_hosts_groupby_os_type into test_hosts_groupby parametrized on (dataset, group key, expected counts/values) - preserves all assertions incl hostName populated-vs-empty branch coverage Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts orderby tests into parametrized test - merge total_invariant_across_orderby + orderby_correctness + orderby_by_host_name into test_hosts_orderby parametrized on (column, record_field) x direction - each case asserts both the total/len invariant and sortedness; sortedness now covered for all metric columns, not just cpu - single dataset (hosts_orderby.jsonl) + CONTAINS 'order-' guard on all cases Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts pagination tests - fold offset-beyond-total case into the test_hosts_pagination page walk (offset K+5 expects 0 records via max(0, min(limit, K-offset)); total invariant covers the beyond-total page's total == K) - single seed instead of two Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): merge hosts happy_path into test_hosts_accuracy - happy_path and value_accuracy datasets were structurally identical (same 4 metrics, same sample counts, 2 hosts); one test now asserts shape/contract + exact metric values in a single seed/request - drop unused hosts_happy_path.jsonl Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine pods integration tests logically - merge happy_path into test_pods_accuracy (datasets structurally identical); drop unused pods_happy_path.jsonl - merge groupby namespace/deployment into parametrized test_pods_groupby - merge orderby invariant + correctness + by-pod-name into test_pods_orderby ((column, record_field) x direction; sortedness now covered for all columns) - fold offset-beyond-total into test_pods_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine nodes integration tests logically - merge happy_path into test_nodes_accuracy; drop unused nodes_happy_path.jsonl - merge orderby invariant + correctness + by-node-name into test_nodes_orderby ((column, record_field) x direction; sortedness now covered for all columns) - fold offset-beyond-total into test_nodes_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in hosts filter tests - regenerate hosts_filter_dataset.jsonl so every host mirrors the acc-h1 sample pattern from hosts_value_accuracy.jsonl (CI-proven expected values) - test_hosts_filter now asserts cpu/memory/wait/load15/diskUsage per filtered record against FILTER_DATASET_EXPECTED (1e-9), proving filters don't distort aggregation Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): scope filter expected values inside test_hosts_filter Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in pods filter tests - regenerate pods_filter_dataset.jsonl so every pod mirrors the acc-p1 sample pattern from pods_value_accuracy.jsonl (CI-proven expected values) - test_pods_filter now asserts the 6 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in nodes filter tests - regenerate nodes_filter_dataset.jsonl so every node mirrors the acc-n1 sample pattern from nodes_value_accuracy.jsonl (CI-proven expected values) - test_nodes_filter now asserts the 4 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align nodes groupby + pod-phase tests with structure - merge pod_phase_counts_list_mode + _no_pods_on_node into parametrized test_nodes_pod_phase_counts ((dataset, node, filter, expected) cases) - rename groupby_cluster -> test_nodes_groupby, parametrize over k8s.node.name + k8s.cluster.name; adds the node-name-in-groupBy branch (nodeName populated, condition derived) that hosts/pods both cover Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> |
||
|
|
40e5cb4467 |
feat(infra-monitoring): v2 pods integration tests (#11424)
* chore: updated logic and use centralized function in the module * chore: filter metric groups * chore: filter metric groups * chore: formula correction * chore: added step flooring note * chore: comment correction * chore: comment correction * chore: removed function * chore: renamed variables * chore: added happy test * chore: added test 2 for accuracy and test 3 for missing metrics check * chore: added filter test 4 * chore: added 5th test for filterByStatus * chore: added group by tests * chore: pagination test added * chore: added validation tests * chore: added auth test * chore: added all tests * chore: fix for surfacing meta for pods custom group by * ci: register inframonitoring suite + ruff format 01_hosts Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * chore: formatting changed * chore: added order by host.name test * refactor(infra-monitoring): address review comments on hosts integration tests - inline _post helper at call sites - combine filter operator tests into parametrized test_hosts_filter - combine bad attr/grammar tests into parametrized test_hosts_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_hosts_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): align pods integration tests with review feedback - inline _post helper at call sites - combine filter operator tests into parametrized test_pods_filter - combine bad attr/grammar tests into parametrized test_pods_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_pods_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts groupby tests into parametrized test - merge test_hosts_groupby_hostname + test_hosts_groupby_os_type into test_hosts_groupby parametrized on (dataset, group key, expected counts/values) - preserves all assertions incl hostName populated-vs-empty branch coverage Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts orderby tests into parametrized test - merge total_invariant_across_orderby + orderby_correctness + orderby_by_host_name into test_hosts_orderby parametrized on (column, record_field) x direction - each case asserts both the total/len invariant and sortedness; sortedness now covered for all metric columns, not just cpu - single dataset (hosts_orderby.jsonl) + CONTAINS 'order-' guard on all cases Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts pagination tests - fold offset-beyond-total case into the test_hosts_pagination page walk (offset K+5 expects 0 records via max(0, min(limit, K-offset)); total invariant covers the beyond-total page's total == K) - single seed instead of two Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): merge hosts happy_path into test_hosts_accuracy - happy_path and value_accuracy datasets were structurally identical (same 4 metrics, same sample counts, 2 hosts); one test now asserts shape/contract + exact metric values in a single seed/request - drop unused hosts_happy_path.jsonl Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine pods integration tests logically - merge happy_path into test_pods_accuracy (datasets structurally identical); drop unused pods_happy_path.jsonl - merge groupby namespace/deployment into parametrized test_pods_groupby - merge orderby invariant + correctness + by-pod-name into test_pods_orderby ((column, record_field) x direction; sortedness now covered for all columns) - fold offset-beyond-total into test_pods_pagination page walk Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in hosts filter tests - regenerate hosts_filter_dataset.jsonl so every host mirrors the acc-h1 sample pattern from hosts_value_accuracy.jsonl (CI-proven expected values) - test_hosts_filter now asserts cpu/memory/wait/load15/diskUsage per filtered record against FILTER_DATASET_EXPECTED (1e-9), proving filters don't distort aggregation Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): scope filter expected values inside test_hosts_filter Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in pods filter tests - regenerate pods_filter_dataset.jsonl so every pod mirrors the acc-p1 sample pattern from pods_value_accuracy.jsonl (CI-proven expected values) - test_pods_filter now asserts the 6 CPU/memory fields per filtered record Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * test(infra-monitoring): drop dangling generator-script reference in pods tests pods_phases.jsonl comment referenced tests/gen_pods_datasets.py, which was never committed. Reword to describe the committed dataset instead. --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> |
||
|
|
303908542a |
feat(infra-monitoring): v2 host endpoint integration tests (#11418)
* chore: updated logic and use centralized function in the module * chore: filter metric groups * chore: filter metric groups * chore: formula correction * chore: added step flooring note * chore: comment correction * chore: comment correction * chore: removed function * chore: renamed variables * chore: added happy test * chore: added test 2 for accuracy and test 3 for missing metrics check * chore: added filter test 4 * chore: added 5th test for filterByStatus * chore: added group by tests * chore: pagination test added * chore: added validation tests * chore: added auth test * chore: fix for surfacing meta for pods custom group by * ci: register inframonitoring suite + ruff format 01_hosts Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * chore: added order by host.name test * refactor(infra-monitoring): address review comments on hosts integration tests - inline _post helper at call sites - combine filter operator tests into parametrized test_hosts_filter - combine bad attr/grammar tests into parametrized test_hosts_filter_invalid - convert orderby total-invariant nested loop to stacked parametrize - drop redundant test_hosts_auth (auth covered globally) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts groupby tests into parametrized test - merge test_hosts_groupby_hostname + test_hosts_groupby_os_type into test_hosts_groupby parametrized on (dataset, group key, expected counts/values) - preserves all assertions incl hostName populated-vs-empty branch coverage Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts orderby tests into parametrized test - merge total_invariant_across_orderby + orderby_correctness + orderby_by_host_name into test_hosts_orderby parametrized on (column, record_field) x direction - each case asserts both the total/len invariant and sortedness; sortedness now covered for all metric columns, not just cpu - single dataset (hosts_orderby.jsonl) + CONTAINS 'order-' guard on all cases Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): combine hosts pagination tests - fold offset-beyond-total case into the test_hosts_pagination page walk (offset K+5 expects 0 records via max(0, min(limit, K-offset)); total invariant covers the beyond-total page's total == K) - single seed instead of two Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): merge hosts happy_path into test_hosts_accuracy - happy_path and value_accuracy datasets were structurally identical (same 4 metrics, same sample counts, 2 hosts); one test now asserts shape/contract + exact metric values in a single seed/request - drop unused hosts_happy_path.jsonl Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(infra-monitoring): assert metric value accuracy in hosts filter tests - regenerate hosts_filter_dataset.jsonl so every host mirrors the acc-h1 sample pattern from hosts_value_accuracy.jsonl (CI-proven expected values) - test_hosts_filter now asserts cpu/memory/wait/load15/diskUsage per filtered record against FILTER_DATASET_EXPECTED (1e-9), proving filters don't distort aggregation Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(infra-monitoring): scope filter expected values inside test_hosts_filter Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> |
||
|
|
13982033dc |
fix: handle empty not() expression (#10165)
* fix: handle empty not() expression * fix: handle more cases * fix: short circuit conditions and updated unit tests * fix: revert commented code * fix: added more unit tests * fix: added integration tests * fix: make py-lint and make py-fmt * fix: moved from traces to logs for testing full text search * fix: simplify code * fix: added more unit tests * fix: addressed comments * fix: update comment Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com> * fix: update unit test Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com> * fix: update unit test Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com> * fix: instead of using true, using a skip literal * fix: unit test * fix: update integration test * fix: update unit for relevance * fix: lint error * fix: added a new literal for error condition, added more unit tests * fix: merge issues * fix: inline comments * fix: update unit tests merging from main * fix: make py-fmt and make py-lint * fix: type handling --------- Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com> |
||
|
|
396cf3194e |
feat: add support for count based aggregation in histogram metrics (#10355)
Some checks failed
build-staging / prepare (push) Has been cancelled
build-staging / js-build (push) Has been cancelled
build-staging / go-build (push) Has been cancelled
build-staging / staging (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
|
||
|
|
4c49d45cbf | fix: update rate/increase query and address several issues in builder… (#10299) | ||
|
|
4bbe5ead07 |
test(integration): alerts e2e test cases with basic rule manager alerts (#10163)
Some checks failed
build-staging / prepare (push) Has been cancelled
build-staging / js-build (push) Has been cancelled
build-staging / go-build (push) Has been cancelled
build-staging / staging (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
|
||
|
|
3726c0aac1 | feat: add support for simultaneous delta and cumulative temporality (#10202) | ||
|
|
e9501d2e0f | test(integration): add cumulative counter rate tests (#9976) |