diff --git a/pkg/db/seeds/promtest/appuio_cloud_loadbalancer.jsonnet b/pkg/db/seeds/promtest/appuio_cloud_loadbalancer.jsonnet index c292e66..5c94218 100644 --- a/pkg/db/seeds/promtest/appuio_cloud_loadbalancer.jsonnet +++ b/pkg/db/seeds/promtest/appuio_cloud_loadbalancer.jsonnet @@ -41,11 +41,14 @@ local baseCalculatedLabels = { c.test('unrelated kube_namespace_labels changes do not throw errors - there is an overlap since series go stale only after a few missed scrapes', baseSeries { + testprojectNamespaceOrgLabel+: { + values: '1x10 _x10 stale', + }, testprojectNamespaceOrgLabelUpdated: self.testprojectNamespaceOrgLabel { _labels+:: { custom_appuio_io_myid: '672004be-a86b-44e0-b446-1255a1f8b340', }, - values: '_x5 1x5', + values: '_x5 1x15', }, }, query, @@ -56,6 +59,9 @@ local baseCalculatedLabels = { c.test('organization changes do not throw many-to-many errors - there is an overlap since series go stale only after a few missed scrapes', baseSeries { + testprojectNamespaceOrgLabel+: { + values: '1x7 _x10 stale', + }, testprojectNamespaceOrgLabelUpdated: self.testprojectNamespaceOrgLabel { _labels+:: { label_appuio_io_organization: 'carrot-pickers-inc', @@ -63,7 +69,7 @@ local baseCalculatedLabels = { // We cheat here and use an impossible value. // Since we use min() and bottomk() in the query this priotizes this series less than the other. // It's ugly but it prevents flaky tests since otherwise one of the series gets picked randomly. - values: '_x2 2x8', + values: '_x2 2x15', }, }, query, diff --git a/pkg/db/seeds/promtest/appuio_cloud_memory.jsonnet b/pkg/db/seeds/promtest/appuio_cloud_memory.jsonnet index 436d802..825f808 100644 --- a/pkg/db/seeds/promtest/appuio_cloud_memory.jsonnet +++ b/pkg/db/seeds/promtest/appuio_cloud_memory.jsonnet @@ -230,6 +230,9 @@ local subQueryTests = [ c.test('organization changes do not throw many-to-many errors - there is an overlap since series go stale only after a few missed scrapes', baseSeries { + testprojectNamespaceOrgLabel+: { + values: '1x7 _x10 stale', + }, testprojectNamespaceOrgLabelUpdated: self.testprojectNamespaceOrgLabel { _labels+:: { label_appuio_io_organization: 'carrot-pickers-inc', @@ -238,14 +241,13 @@ local subQueryTests = [ // Since we use min() and bottomk() in the query this priotizes this series less than the other. // It's ugly but it prevents flaky tests since otherwise one of the series gets picked randomly. // Does not influence the result. The result is flored to a minimum of 128MiB. - values: '_x2 2x8', + values: '_x2 2x15', }, }, query, [ { labels: c.formatLabels(baseCalculatedLabels), - // TODO Identify why this is the case. // Same as above it's 11*128 other queries don't have this problem value: 128 * 9, }, diff --git a/pkg/db/seeds/promtest/appuio_cloud_persistent_storage.jsonnet b/pkg/db/seeds/promtest/appuio_cloud_persistent_storage.jsonnet index e673ab3..2e53d82 100644 --- a/pkg/db/seeds/promtest/appuio_cloud_persistent_storage.jsonnet +++ b/pkg/db/seeds/promtest/appuio_cloud_persistent_storage.jsonnet @@ -77,11 +77,14 @@ local baseCalculatedLabels = { c.test('unrelated kube_namespace_labels changes do not throw errors - there is an overlap since series go stale only after a few missed scrapes', baseSeries { + testprojectNamespaceOrgLabel+: { + values: '1x10 _x10 stale', + }, testprojectNamespaceOrgLabelUpdated: self.testprojectNamespaceOrgLabel { _labels+:: { custom_appuio_io_myid: '672004be-a86b-44e0-b446-1255a1f8b340', }, - values: '_x5 1x5', + values: '_x5 1x15', }, }, query, @@ -92,6 +95,9 @@ local baseCalculatedLabels = { c.test('organization changes do not throw many-to-many errors - there is an overlap since series go stale only after a few missed scrapes', baseSeries { + testprojectNamespaceOrgLabel+: { + values: '1x7 _x10 stale', + }, testprojectNamespaceOrgLabelUpdated: self.testprojectNamespaceOrgLabel { _labels+:: { label_appuio_io_organization: 'carrot-pickers-inc', @@ -99,8 +105,8 @@ local baseCalculatedLabels = { // We cheat here and use an impossible value. // Since we use min() and bottomk() in the query this priotizes this series less than the other. // It's ugly but it prevents flaky tests since otherwise one of the series gets picked randomly. - // Does not influence the result. The result is floored to a minimum of 1GiB. - values: '_x2 2x8', + // Does not influence the result. The result is flored to a minimum of 1GiB. + values: '_x2 2x15', }, }, query,