-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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: grafana link does not have cluster name #107894
Comments
cc @cockroachdb/test-eng |
Previously, the testeng grafana link generated after a roachtest failure directed the user to cockroachlabs.com due to a missing cluster name from the link. This patch should fix this issue by getting the cluster name from a `*githubIssues.cluster.name` instead of the `clusterName` from roachtest/cluster.go. Fixes: cockroachdb#107894 Release note (bug fix): The link to testeng grafana that is generated on a roachtest failure should now properly direct to grafana.
cockroach/pkg/cmd/roachtest/github.go Line 221 in 509f8c8
The cockroach/pkg/cmd/roachtest/main.go Lines 184 to 189 in 509f8c8
That variable will only be set if the Luckily, the @annrpom do you have the time to make that change? Let me know if the above is not clear. |
@renatolabs it is clear - thank you for the insight! my reasoning for why i thought clusterName was not being populated was ultimately incorrect (sob sob), but i do have a draft PR up: #107984 if/when you have the time, would you be able to address my comment/question about the guard i put for when a cluster creation fails (where i made the behavior == no grafana link) :> thank you for taking your time to explain this to me/look over things! |
107075: asim: add random predefined cluster config selection r=kvoli a=wenyihu6 This patch takes the first step towards a randomized framework by enabling asim testing to randomly select a cluster information configuration from a set of predefined choices. These choices are hardcoded and represent common cluster configurations. TestRandomized now takes in `true` for randOptions.cluster to enable random cluster config selection. This provides two modes for cluster generation: 1. Default: currently set to 3 nodes and 1 store per node 2. Random: randomly select a predefined cluster info Part of: #106311 Release note: None 107967: kvserver: ignore lease validity when checking lease preferences r=erikgrinaker,andrewbaptist a=kvoli In #107507, we began eagerly enqueuing into the replicate queue, when acquiring a replica acquired a new lease which violated lease preferences. Lease preferences were only considered violated when the lease itself was valid. In #107507, we saw that it is uncommon, but possible for an invalid lease to be acquired, violate lease preferences and not be enqueued as a result. The end result was a leaseholder violating the applied lease preferences which would not be resolved until the next scanner cycle. Update the eager enqueue check to only check that the replica is the incoming leaseholder when applying the lease, and that the replica violates the applied lease preferences. Note the purgatory error introduced in #107507, still checks that the lease is valid and owned by the store before proceeding. It is a condition that the lease must be valid+owned by the store to have a change planned, so whilst it is possible the lease becomes invalid somewhere in-between planning, when the replica applies a valid lease, it will still be enqueued so purgatory is unnecessary. Fixes: #107862 Release note: None 107984: roachtest: bugfix testeng grafana link missing cluster name r=renatolabs a=annrpom Previously, the testeng grafana link generated after a roachtest failure directed the user to cockroachlabs.com due to a missing cluster name from the link. This patch should fix this issue by getting the cluster name from a `*githubIssues.cluster.name` instead of the `clusterName` from roachtest/cluster.go. Fixes: #107894 Release note (bug fix): The link to testeng grafana that is generated on a roachtest failure should now properly direct to grafana. Co-authored-by: wenyihu6 <[email protected]> Co-authored-by: Austen McClernon <[email protected]> Co-authored-by: Annie Pompa <[email protected]>
Currently (as of 07/28/23), in a roachtest failure on 23.2 (like #107862), the generated Grafana link in the "Help" section redirects you to cockroachlabs.com - instead of testeng Grafana.
Looking at the issue linked above as an example, we see the following vanity link for Grafana: https://go.crdb.dev/p/roachfana//1690711427218/1690713270780
Instead, we should be seeing the following:
https://go.crdb.dev/p/roachfana/teamcity-11114747-1690696061-26-n5cpu4/1690711427218/1690713270780
The cluster name seems to be empty -
clusterName
ingenerateHelpCommand
.Jira issue: CRDB-30247
The text was updated successfully, but these errors were encountered: