-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
build/teamcity: nightly Pebble metamorphic runs failed to create GH issue on failure #81546
Comments
Looking into why no issues were posted. |
The scripts only post issues if
So in other words the |
Cool - thanks for digging into that @rickystewart! Does the timeline line up with when this would have broken? It's hard to tell from the history, as these tests tend to fail infrequently, and some of the test history has since rolled. I believe the last time we got a hit was this one (cockroachdb/pebble#1499), from back in Feb. We also have some other nightlies, so it would be good to ensure those are set up to post too:
|
Aah, I may have changed this when I was setting up other nightly tests: |
I'm looking at the history of the build configuration and don't see anything that explains things breaking on or around 5/1. I also see @bananabrick's changes and I don't think they caused this, but I may be wrong.
I have already looked through all the Pebble build configurations and updated the triggers to match up to the Pebble metamorphic trigger. |
How TeamCity sets the `TC_BUILD_BRANCH` environment variable is a bit unpredictable. While we expect it to be a string like `master`, at times (see cockroachdb#81546) this variable can be set to a ref like `refs/heads/master`. This inconsistency means that we are sometimes not reporting issues to GitHub as we should be. To be resilient to this I make sure we strip off the `refs/heads/` prefix when performing the `tc_release_branch` check. Release note: None
That change did not appear to do the trick so I have #81580. |
80707: server: correctly redact sql constants in ListSessions api r=matthewtodd a=xinhaoz Previously, there was a bug in the redaction of SQL constants for `VIEWACTIVITYREDACTED` users in the `ListSessions` api. Firstly, the range loop used to set the sql query field was manipulating the copy of the query object provided by the range. Secondly, the previous logic when redacting set the `Sql` and `LastActiveQuery` fields to empty strings. Since these fields are read in other parts of the codebase (e.g. to fill out columns of virtual tables), we should just set these fields to equal `SqlNoConstants` and `LastActiveQueryNoConstants` respectively. Release note (bug fix): constants in sql query fields are correctly removed for VIEWACTIVITYREDACTED users 81580: ci: update how the `tc_release_branch` check is performed r=rail a=rickystewart How TeamCity sets the `TC_BUILD_BRANCH` environment variable is a bit unpredictable. While we expect it to be a string like `master`, at times (see #81546) this variable can be set to a ref like `refs/heads/master`. This inconsistency means that we are sometimes not reporting issues to GitHub as we should be. To be resilient to this I make sure we strip off the `refs/heads/` prefix when performing the `tc_release_branch` check. Release note: None Co-authored-by: Xin Hao Zhang <[email protected]> Co-authored-by: Ricky Stewart <[email protected]>
Looks like the change worked:
We should see it post issues next time. |
Thank you! |
How TeamCity sets the `TC_BUILD_BRANCH` environment variable is a bit unpredictable. While we expect it to be a string like `master`, at times (see cockroachdb#81546) this variable can be set to a ref like `refs/heads/master`. This inconsistency means that we are sometimes not reporting issues to GitHub as we should be. To be resilient to this I make sure we strip off the `refs/heads/` prefix when performing the `tc_release_branch` check. Release note: None
We had four nightly metamorphic test runs fail since 5/1, none of which created a corresponding issue on the Pebble repo notifying us of the failure. Typically, we get an issue like this.
For now I've created four separate issues manually so we can investigate:
Jira issue: CRDB-15081
The text was updated successfully, but these errors were encountered: