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

bazel: make sure we're configuring the correct set of printf funcs for roachvet checks in nogo #80006

Closed
rickystewart opened this issue Apr 15, 2022 · 0 comments · Fixed by #90812
Assignees
Labels
A-build-system C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) T-dev-inf

Comments

@rickystewart
Copy link
Collaborator

rickystewart commented Apr 15, 2022

We have a list of printf-style functions in lint_test.go in

printfuncs := strings.Join([]string{
. We should make sure we configure this list the same way in build/bazelutil/nogo_config.json. Might be easiest to just wait until bazel-contrib/rules_go#3082 hits a release.

Jira issue: CRDB-15692

Epic CRDB-8349

@rickystewart rickystewart added C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) A-build-system T-dev-inf labels Apr 15, 2022
@jlinder jlinder added sync-me and removed sync-me labels May 20, 2022
@rickystewart rickystewart assigned rickystewart and unassigned ecwall Oct 27, 2022
craig bot pushed a commit that referenced this issue Oct 28, 2022
86968: sql: SHOW QUERIES lazily interpolates placeholders r=jordanlewis a=jordanlewis

SHOW QUERIES (and crdb_internal.node_queries, cluster_queries)
interpolates placeholder values into the statement so that it is
possible to see the placeholder values of a prepared statement - but it
used to do this unconditionally during statement execution.

This is an expensive process that spends a lot of CPU for little reason,
since the interpolation was happening in the hot path of every query.

Now, we include the placeholder values as a separate array in the
internal representation of active queries, and interpolate the values
only when they're being pulled out to examine, to avoid the
unconditional runtime interpolation costs.

As a side effect of this change, the original comments in a query are
now included in SHOW QUERIES and the two active queries tables.

Release note (sql change): the query field in the
crdb_internal.node_queries, crdb_internal.cluster_queries, and SHOW
QUERIES commands now includes the original comments in the queries.

Informs CRDB-17299

89753: diagrams: Diagrams job no longer fails when no diagrams change r=nickvigilante a=nickvigilante

If there are PRs that don't affect the diagrams or their related files, the Publish SQL Grammar Diagrams job will fail, because `git commit` produces a non-zero exit code if there are no files changed in the working directory. This fixes that problem.

Release note: None

Fixes DOC-5642

90784: ui: simplify insights sagas, fix contention query filter r=ericharmeling a=ericharmeling

This PR simplifies the insights sagas by moving the insights store refresh interval to the components and removing the root-level reset saga. The commit also updates the SQL query for the transaction contention events to not JOIN with the internal insights table, and to filter out all unresolved txn fingerprint IDs.

Fixes #90142.

Release note: None

Loom: https://www.loom.com/share/f12685c712124560b326f211b44a06d1

90800: server: use GRANT statement for test server auth user role grant r=knz,rafiss a=andyyang890

Previously, the admin role is granted to the auth user by manually inserting a row into system.role_members. This change replaces the row insertion with a GRANT statement to abstract away the interaction with system tables.

Part of #87079

Release note: None

90812: bazel: set correct flags for `printf` analyzer r=rail,healthy-pod a=rickystewart

Closes #80006.

Release note: None
Epic: CRDB-8349

90838: vendor: bump Pebble to 37cf5274896b r=nicktrav a=jbowens

```
37cf5274 crossversion: explicitly set artifacts directory
fd7e9660 vfs: use `Frsize` for computing total size on Linux
5c65b3d5 Fix lint errors from cockroachdb/pebble#2051
```

Epic: none
Release note: None

Co-authored-by: Jordan Lewis <[email protected]>
Co-authored-by: Nick Vigilante <[email protected]>
Co-authored-by: Eric Harmeling <[email protected]>
Co-authored-by: Andy Yang <[email protected]>
Co-authored-by: Ricky Stewart <[email protected]>
Co-authored-by: Jackson Owens <[email protected]>
@craig craig bot closed this as completed in 5144667 Oct 28, 2022
blathers-crl bot pushed a commit that referenced this issue Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-build-system C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) T-dev-inf
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants