Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

roachtest: fix benchmark failing tests #135633

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

sambhav-jain-16
Copy link
Contributor

@sambhav-jain-16 sambhav-jain-16 commented Nov 18, 2024

This change intends to fix 3 failures detected in benchmark runs after #133035

  1. admission-control/elastic-io due to one wrong flag.
  2. tpcc/headroom/n4cpu16 due to wrong passing of labels in case of openmetrics, removed suite label since it is not required.
  3. tpccbench/* erroring out with nil pointer error in case of openmetrics, reverted the changes in this PR. Will fix in a different PR.

Epic: none
Fixes: #135393

@sambhav-jain-16 sambhav-jain-16 requested a review from a team as a code owner November 18, 2024 21:29
@sambhav-jain-16 sambhav-jain-16 requested review from srosenberg and nameisbhaskar and removed request for a team November 18, 2024 21:29
@cockroach-teamcity
Copy link
Member

This change is Reviewable

This change intends to fix 3 failures detected in benchmark runs after cockroachdb#133035
1. admission-control/elastic-io due to one wrong flag.
2. tpcc/headroom/n4cpu16 due to wrong passing of labels in case of openmetrics, removed suite label since it is not required.
3. tpccbench/* erroring out with nil pointer error in case of openmetrics, reverted the changes in this PR. Will fix in a different PR.

Epic: none
Fixes: cockroachdb#135393
@@ -413,7 +413,6 @@ func GetOpenmetricsLabelMap(
defaultMap := map[string]string{
"cloud": c.Cloud().String(),
"owner": string(t.Spec().(*registry.TestSpec).Owner),
"suite": t.Spec().(*registry.TestSpec).Suites.String(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you say more about this change? It's not immediately clear why it's needed by this hotfix.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tpcc/headroom/n4cpu16 started failing due to the following error.

 ./cockroach workload run tpcc   {pgurl:1-3} --duration 2h0m0s --histogram-export-format openmetrics --histograms perf/stats.om --openmetrics-labels cloud="gce",database="",duration="2h0m0s",owner="test-eng",ramp="5m0s",subtest_1="headroom",subtest_2="n4cpu16",suite="nightly,release_qualification",test="tpcc",test_run_id="teamcity-17804790",warehouses="875" --pprofport 33333 --prometheus-port 2112 --ramp 5m0s --warehouses 875
  |   | ```
  |   | stdout: <empty>
  |   | stderr:I241118 01:55:30.585513 1 workload/cli/run.go:665  [-] 1  random seed: 3344266357670910272
  |   | Error: error creating metrics exporter: invalid histogram label "release_qualification"

link

turns out, suites can be multiple values and this caused problems of a label with multiple values. Also, suites is not a necessary label so removed it in this change.

@sambhav-jain-16
Copy link
Contributor Author

TFTR!

bors r=@srosenberg

@craig craig bot merged commit 8cf1ed2 into cockroachdb:master Nov 19, 2024
22 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

roachtest: admission-control/elastic-io failed
3 participants