Skip to content

Commit 8961a31

Browse files
craig[bot]mgartnerRaduBerindeyuzefovichsjbarag
committed
107498: TEAMS: use workflow for SQL Queries issue triage r=mgartner a=mgartner The SQL Queries team now uses Github Projects v2. This commit updates `TEAMS.yaml` and `.github/workflows/add-issues-to-project.yml` so that issues are assigned to the correct project for triage. Epic: None Release note: None 107513: go.mod: bump Pebble to 7ef7553fd9e1 r=RaduBerinde a=RaduBerinde 7ef7553f objstorage: rename 'shared' to 'remote' 4afa98e7 record: increase record.SyncConcurrency 05db8784 objstorage: rename sharedobjcat to remoteobjcat 2e84c30f record: pool LogWriter blocks f79908fb record: allow unbounded queued blocks in LogWriter fcaeb47a db: fix estimatedCompactionDebt metric 91c76637 sstable: split Iterator and helpers out of reader.go 64a6c5dd sstable: split single-level iter out of reader.go 7d2ca3be sstable: split two-level iter out of reader.go 55801b4b sstable: split VirtualReader out of reader.go 2291eb0a sstable: split Layout out of reader.go Release note: none Epic: none 107514: sqlsmith: a couple of minor fixes r=yuzefovich a=yuzefovich Fixes: cockroachdb#107458. 107543: dev,ui: make external symlink detection more resilient r=rickystewart a=sjbarag Previously, a pre-build assertion (that no JS dependencies are provided by symlinks outside the Bazel workspace) would return errors when it encountered a non-symlink file. While pnpm only produces symlinks for packages it installs, a stale node_modules/ tree could result in unintended errors. Test if a file is a symlink before attempting to call os.Readlink on it. Release note: None Epic: none 107560: ui: Update pnpm lockfile and version of pnpm r=nathanstilwell a=nathanstilwell Potentially due to a recent bug in pnpm[^1] where the order of the dependencies would effect the checksum, there is an error currently[^2] in the Cluster UI publishing workflow. To resolve this, this commit did the following: 1. With an updated version of pnpm (version 8.6.10), ran `pnpm install` which updated the `pnpm-lock.yaml` 1. Added and `engines` entry in `pkg/ui/package.json` to ensure that at least pnpm version 8.6.10 is used. 1. Updated the version of pnpm used in cluster ui release actions to 8.6.10 [^1]: pnpm/pnpm#6824 [^2]: https://go.crdb.dev/p/zhjq-wq6u-hnfk Release note (build change): fixing a bug in Cluster UI publishing due to pnpm version. Co-authored-by: Marcus Gartner <[email protected]> Co-authored-by: Radu Berinde <[email protected]> Co-authored-by: Yahor Yuzefovich <[email protected]> Co-authored-by: Sean Barag <[email protected]> Co-authored-by: Nathan Stilwell <[email protected]>
6 parents ea114b9 + 9a1b230 + b004fb8 + 9e84acb + 5d15692 + 5f7ccf4 commit 8961a31

File tree

18 files changed

+97
-24
lines changed

18 files changed

+97
-24
lines changed

.github/workflows/add-issues-to-project.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,8 @@ jobs:
3030
project-url: https://github.com/orgs/cockroachdb/projects/35
3131
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
3232
labeled: T-jobs
33+
- uses: actions/[email protected]
34+
with:
35+
project-url: https://github.com/orgs/cockroachdb/projects/45
36+
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
37+
labeled: T-sql-queries

.github/workflows/cluster-ui-release-next.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
- uses: pnpm/action-setup@v2
3232
with:
33-
version: 8
33+
version: ">=8.6.10"
3434

3535
- name: Setup NodeJS
3636
uses: actions/setup-node@v3

.github/workflows/cluster-ui-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
- uses: pnpm/action-setup@v2
3131
with:
32-
version: 8
32+
version: ">=8.6.10"
3333

3434
- name: Setup NodeJS
3535
uses: actions/setup-node@v3

DEPS.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,10 +1585,10 @@ def go_deps():
15851585
patches = [
15861586
"@com_github_cockroachdb_cockroach//build/patches:com_github_cockroachdb_pebble.patch",
15871587
],
1588-
sha256 = "9175ac8aaf2f5e7a475fbebecb5b05ed013c1dd7fce1f1ec0504cb873bf71744",
1589-
strip_prefix = "github.com/cockroachdb/[email protected]20230721205111-94f91669304b",
1588+
sha256 = "34017dde1a11e1792a7f46420cf683e7615e689c6da982405bc7e80271ffcb58",
1589+
strip_prefix = "github.com/cockroachdb/[email protected]20230724234444-7ef7553fd9e1",
15901590
urls = [
1591-
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/pebble/com_github_cockroachdb_pebble-v0.0.0-20230721205111-94f91669304b.zip",
1591+
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/pebble/com_github_cockroachdb_pebble-v0.0.0-20230724234444-7ef7553fd9e1.zip",
15921592
],
15931593
)
15941594
go_repository(

TEAMS.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ cockroachdb/sql-queries:
3232
aliases:
3333
cockroachdb/sql-optimizer: other
3434
cockroachdb/sql-opt-prs: other
35-
triage_column_id: 13549252
35+
# SQL Queries team uses GH projects v2, which doesn't have a REST API, so
36+
# there is no triage column ID.
37+
# See .github/workflows/add-issues-to-project.yml.
3638
label: T-sql-queries
3739
cockroachdb/cluster-observability:
3840
triage_column_id: 12618343

build/bazelutil/distdir_files.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ DISTDIR_FILES = {
319319
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/go-test-teamcity/com_github_cockroachdb_go_test_teamcity-v0.0.0-20191211140407-cff980ad0a55.zip": "bac30148e525b79d004da84d16453ddd2d5cd20528e9187f1d7dac708335674b",
320320
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/gostdlib/com_github_cockroachdb_gostdlib-v1.19.0.zip": "c4d516bcfe8c07b6fc09b8a9a07a95065b36c2855627cb3514e40c98f872b69e",
321321
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/logtags/com_github_cockroachdb_logtags-v0.0.0-20230118201751-21c54148d20b.zip": "ca7776f47e5fecb4c495490a679036bfc29d95bd7625290cfdb9abb0baf97476",
322-
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/pebble/com_github_cockroachdb_pebble-v0.0.0-20230721205111-94f91669304b.zip": "9175ac8aaf2f5e7a475fbebecb5b05ed013c1dd7fce1f1ec0504cb873bf71744",
322+
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/pebble/com_github_cockroachdb_pebble-v0.0.0-20230724234444-7ef7553fd9e1.zip": "34017dde1a11e1792a7f46420cf683e7615e689c6da982405bc7e80271ffcb58",
323323
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/redact/com_github_cockroachdb_redact-v1.1.5.zip": "11b30528eb0dafc8bc1a5ba39d81277c257cbe6946a7564402f588357c164560",
324324
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/returncheck/com_github_cockroachdb_returncheck-v0.0.0-20200612231554-92cdbca611dd.zip": "ce92ba4352deec995b1f2eecf16eba7f5d51f5aa245a1c362dfe24c83d31f82b",
325325
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/sentry-go/com_github_cockroachdb_sentry_go-v0.6.1-cockroachdb.2.zip": "fbb2207d02aecfdd411b1357efe1192dbb827959e36b7cab7491731ac55935c9",

dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fi
88
set -euo pipefail
99

1010
# Bump this counter to force rebuilding `dev` on all machines.
11-
DEV_VERSION=81
11+
DEV_VERSION=82
1212

1313
THIS_DIR=$(cd "$(dirname "$0")" && pwd)
1414
BINARY_DIR=$THIS_DIR/bin/dev-versions

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ require (
116116
github.com/cockroachdb/go-test-teamcity v0.0.0-20191211140407-cff980ad0a55
117117
github.com/cockroachdb/gostdlib v1.19.0
118118
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b
119-
github.com/cockroachdb/pebble v0.0.0-20230721205111-94f91669304b
119+
github.com/cockroachdb/pebble v0.0.0-20230724234444-7ef7553fd9e1
120120
github.com/cockroachdb/redact v1.1.5
121121
github.com/cockroachdb/returncheck v0.0.0-20200612231554-92cdbca611dd
122122
github.com/cockroachdb/stress v0.0.0-20220803192808-1806698b1b7b

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,8 +490,8 @@ github.com/cockroachdb/gostdlib v1.19.0/go.mod h1:+dqqpARXbE/gRDEhCak6dm0l14AaTy
490490
github.com/cockroachdb/logtags v0.0.0-20211118104740-dabe8e521a4f/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs=
491491
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b h1:r6VH0faHjZeQy818SGhaone5OnYfxFR/+AzdY3sf5aE=
492492
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs=
493-
github.com/cockroachdb/pebble v0.0.0-20230721205111-94f91669304b h1:QU4vwZQ2DkcrMMB9wnLKa2uQZnzlye8kSCwnmDSPUrQ=
494-
github.com/cockroachdb/pebble v0.0.0-20230721205111-94f91669304b/go.mod h1:FN5O47SBEz5+kO9fG8UTR64g2WS1u5ZFCgTvxGjoSks=
493+
github.com/cockroachdb/pebble v0.0.0-20230724234444-7ef7553fd9e1 h1:aBPW14kJEdbuzyryv+8u1wxY6k8bu7uNVEuifOZxjRg=
494+
github.com/cockroachdb/pebble v0.0.0-20230724234444-7ef7553fd9e1/go.mod h1:FN5O47SBEz5+kO9fG8UTR64g2WS1u5ZFCgTvxGjoSks=
495495
github.com/cockroachdb/redact v1.1.3/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg=
496496
github.com/cockroachdb/redact v1.1.5 h1:u1PMllDkdFfPWaNGMyLD1+so+aq3uUItthCFqzwPJ30=
497497
github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg=

pkg/cmd/dev/io/os/os.go

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,35 @@ func (o *OS) Setenv(key, value string) error {
195195
return err
196196
}
197197

198+
// IsSymlink wraps around os.Lstat to determine if filename is a symbolic link
199+
// or not.
200+
func (o *OS) IsSymlink(filename string) (bool, error) {
201+
command := fmt.Sprintf("stat %s", filename)
202+
if !o.knobs.silent {
203+
o.logger.Print(command)
204+
}
205+
206+
isLinkStr, err := o.Next(command, func() (string, error) {
207+
// Use os.Lstat here, since it does not attempt to resolve symlinks.
208+
stat, err := os.Lstat(filename)
209+
if err != nil {
210+
return "", err
211+
}
212+
213+
isLink := stat.Mode()&fs.ModeSymlink != 0
214+
215+
// o.Next only accepts string return values, so serialize a boolean
216+
// and deserialize it outside of o.Next.
217+
return strconv.FormatBool(isLink), nil
218+
})
219+
220+
if err != nil {
221+
return false, err
222+
}
223+
224+
return strconv.ParseBool(isLinkStr)
225+
}
226+
198227
// Readlink wraps around os.Readlink, which returns the destination of the named
199228
// symbolic link. If there is an error, it will be of type *PathError.
200229
func (o *OS) Readlink(filename string) (string, error) {

0 commit comments

Comments
 (0)