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

wip: add pgvector implementation #12

Open
wants to merge 965 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
965 commits
Select commit Hold shift + click to select a range
ea899a9
sql: simplify the assignment of `shouldCollectTxnExecutionStats`
xinhaoz May 7, 2024
223d617
sql: add sqlstats.RecordedTxnStats to OnRecordTxnFinish test hook
xinhaoz May 7, 2024
4ea8f39
roachprod: don't overwrite tenant in `pgurl` expansion
renatolabs May 7, 2024
55d02fb
pgwire: deflake TestParseClientProvidedSessionParameters
rafiss May 7, 2024
6ca4d5e
logictest: preserve logs for cockroach-go/testserver in remote execution
rafiss May 7, 2024
0ab7633
roachtest: disable azure tests that use zfs or specify ssd counts
DarrylWong May 7, 2024
4dae9f2
sql: consider BEGIN's nil txn when getting MemberOfWithAdminOption
annrpom May 3, 2024
5112d0c
Merge #123769
May 7, 2024
8b066cc
build: update to go 1.22.3
rail May 7, 2024
661ad9c
authors: add Kyle Wong to authors
kyle-a-wong May 2, 2024
d4cfb36
Merge #123753
May 7, 2024
14b5956
restore: download only the restored span
dt May 7, 2024
7ba2ab8
Revert "changefeedccl: make mock pulsar sink synchronous"
rharding6373 May 7, 2024
09ac089
Merge #123730
May 7, 2024
1fb89af
Merge #123791
May 7, 2024
73a2a79
util/metamorphic: introduce `metamorphic` package
rickystewart May 1, 2024
1bb9662
opt: don't apply huge cost for full scans of virtual tables
yuzefovich May 7, 2024
2f498d0
Merge #123432
May 7, 2024
a1e3ec3
Merge #123765
May 8, 2024
025e935
restore: download the restored spans
dt May 7, 2024
ba6b500
Merge #123424 #123674 #123773
May 8, 2024
0e54e90
sql_test: add BenchmarkDropLargeDatabaseWithGenerateTestObjects
rafiss May 8, 2024
86ddea1
restore: avoid corrupting endkeys with rewrite
dt May 8, 2024
af7d2f4
Merge #122285
May 8, 2024
5b7ebc9
roachtest: fix spot VM flag in tests
nameisbhaskar May 8, 2024
7756496
Merge #123733
May 8, 2024
b31618c
mixedversion: redirect failures to test-eng if user hooks never ran
renatolabs May 6, 2024
821cb7f
sql: don't use SetWithPlanner for `password_encryption`
yuzefovich May 8, 2024
e0d587c
Merge #123810
May 8, 2024
2b3e39b
Merge #123785
May 8, 2024
b66922d
roachtest: turn on DistSender circuit breakers for failover chaos tests
arulajmani May 8, 2024
3155bd1
roachprod: reintroduce --secure flag
renatolabs May 8, 2024
6442fe4
tla-plus: add .cfg file for ParallelCommits spec
nvanbenschoten Apr 29, 2024
52e5419
bazel: remove `simplestamp` configuration
rickystewart May 8, 2024
a793872
Merge #123799
May 8, 2024
0ad22c6
Merge #123680 #123779 #123828
May 8, 2024
488551c
roachprod: identify apt failures automatically and mark them as flakes
vidit-bhat May 7, 2024
5a259b9
kv: handle range-key-mismatch in LinkExternalSSTable
dt May 8, 2024
f00a152
streamingccl: hold mutex in rangefeed client metadata event handler f…
msbutler May 8, 2024
c1c0e5f
Merge #123827
May 8, 2024
3c480ac
drtprod: add datadog-agent setup for workload-chaos
itsbilal May 7, 2024
22d8890
Merge #123834
May 8, 2024
ccfb104
Merge #123421 #123764 #123793 #123826
May 8, 2024
8ea5b68
metamorphic: rename metamorphic functions to reduce stuttering
rickystewart May 8, 2024
b56a70a
Merge #123817
May 8, 2024
0c843e6
roachprod: fall back to default azure subscription
DarrylWong May 8, 2024
5c52fbd
roachprod: fix decision of when to pass `cluster` parameter
renatolabs May 8, 2024
30c8f44
Merge #123521
May 8, 2024
96ade3b
master: Update pkg/testutils/release/cockroach_releases.yaml
cockroach-teamcity May 9, 2024
15210bc
kvcoord: finish request span of proxied trace
kvoli May 2, 2024
1ee6c19
Merge #123857
May 9, 2024
d290435
roachprod: support for dynamic admin url port
nameisbhaskar May 2, 2024
85ac7d9
server: adding API side redaction support for debug zip
kousiknath Apr 11, 2024
f0c6f0a
cli: adding column redaction to selected system and crdb_internal tables
kousiknath Apr 1, 2024
5d0b4da
Merge #122181
May 9, 2024
c6b012b
Merge #121448
May 9, 2024
c823f74
pkg/cli: debugzip - decode some system tables before dumping them
arjunmahishi May 9, 2024
b8ba30a
Merge #123619
May 9, 2024
fc8482f
Merge #123725
May 9, 2024
a8636af
sqlstats: generate PCT_RUNTIME sort when requested
dhartunian May 8, 2024
2fad9f3
streamingccl: fix replicating split log line
msbutler May 8, 2024
482c9bc
Merge #123599
May 9, 2024
cd17692
Merge #123833
May 9, 2024
e0951b9
Merge #123780
May 9, 2024
0292b4b
clusterversion: start 24.2 versions
RaduBerinde May 8, 2024
ffeb2e1
scplan: update rules for new version
RaduBerinde May 8, 2024
ceeb0b1
roachtest: add v24.1 fixtures
RaduBerinde May 8, 2024
80f0343
upgrademanger: TestPostJobInfoTableQueryDuplicateJobInfo fix
RaduBerinde May 8, 2024
2958ce7
status: fix possible index out of bounds in cpu sampling
yuzefovich May 9, 2024
266062e
Merge #123853
May 9, 2024
bf7788e
Merge #123846 #123891
May 9, 2024
b300fa2
roachtest: emit datadog events in runOperation
itsbilal May 7, 2024
3962ffc
skip: remove `skip.UnderStressRace{,WithIssue}`
rickystewart May 9, 2024
8042adf
Merge #123750
May 9, 2024
2dc449a
Merge #123650 #123850
May 9, 2024
e59c678
skip,metamorphic: break dependency on `metamorphic` from `skip`
rickystewart May 1, 2024
79711d8
Merge #123819 #123910
May 9, 2024
d301389
Merge #123440
May 9, 2024
95b41e3
streamproducer: break up large partitions in spec
dt Apr 8, 2024
ae09196
streamproducer: remove InitialScanParallelism
dt May 9, 2024
5820b31
go.mod: bump Pebble to a43bb5d5a335
jbowens May 9, 2024
16d4175
Merge #123919
May 10, 2024
21a6fa9
roachtest: address ORM test issues after enabling READ COMMITTED
rafiss May 10, 2024
d4ef147
roachtest: expand and cloudify cdc/initial-scan-rolling-restart
andyyang890 May 8, 2024
6e1b82d
Merge #123820
May 10, 2024
c11c071
raft/tracker: pause after empty probes too
pav-kv May 9, 2024
6420951
streamingccl: mark cutback retention jobs as successful
dt May 10, 2024
d9689c8
Merge #121932
May 10, 2024
ace6694
Merge #123873
May 10, 2024
eeb36a0
rangefeed: improve regression seen from memory accounting
wenyihu6 Apr 28, 2024
94faed5
roachtest: add multi-store-remove roachtest
nicktrav May 3, 2024
b4891b3
Merge #123763
May 10, 2024
11edce0
roachprod: add env var for secure default
dt May 10, 2024
459b971
roachprod: fix lint failures
rickystewart May 10, 2024
33b7128
Merge #123923
May 10, 2024
4012e13
Merge #123949
May 10, 2024
a7a9a01
[CC-28198] sqlproxy: fix ProxyProtocolListenAddr using wrong ACL.
DuskEagle May 2, 2024
f171ff6
Merge #123694
May 10, 2024
0144505
roachtest: skip some multi-region tests on Azure
nvanbenschoten May 10, 2024
fd581e5
Merge #123924 #123945
May 10, 2024
19733bc
Merge #123955
May 10, 2024
07845ec
changefeedccl: fix initial scan checkpointing
wenyihu6 May 4, 2024
421a23b
sql: deflake TestReadCommittedStmtRetry
nvanbenschoten May 10, 2024
9d775ee
Merge #123602
May 10, 2024
81e0abb
Merge #123625
May 10, 2024
e974381
sqlstats: fix sampling logic for first recording of a statement
xinhaoz May 6, 2024
abd8d90
roachprod: fix prom target panic
msbutler May 10, 2024
c92f002
roachprod: add install cmd for side-eye
dt May 10, 2024
f95f0e9
Merge #123943
May 10, 2024
c69cf9d
drtprod: ingest kv workload metrics as a datadog distribution
itsbilal May 10, 2024
59b261a
Merge #123975
May 10, 2024
feab208
githubpost: assign backupccl test failures to disaster-recovery
renatolabs May 11, 2024
4c2e776
Merge #123729
May 11, 2024
e794554
schemachanger: consider "dropping" columns during alter primary key
MattSilvaa May 12, 2024
664124b
clisqlshell: fix `\d` metacommand to exclude indexes by default.
miyamo2 May 12, 2024
790ccde
go.mod: bump Pebble to 5ee10bd4b992
RaduBerinde May 12, 2024
0144c31
Merge #124008
May 12, 2024
f9395e0
roachtest: implement `As` for `ErrorWithOwnership`
renatolabs May 12, 2024
4cc0bfc
Merge #123957
May 13, 2024
c8e257e
Merge #124001
May 13, 2024
2f739e8
Merge #123983
May 13, 2024
37510f2
roachtest: fix maxWaitDuration in lease-preferences
nvanbenschoten May 13, 2024
3e5a211
roachtest: bump timeout of failover/chaos tests
nvanbenschoten May 13, 2024
8f9a986
Merge #123302
May 13, 2024
83e84ac
rangefeed: deflake TestDBClientScan
nvanbenschoten May 13, 2024
9203985
Merge #123784
May 13, 2024
43f9535
util/span: add random test comparing btree to llbr
dt May 13, 2024
724d6bb
kvcoord: add proxy tracing test
kvoli May 13, 2024
843a2e7
roachtest: teach multitenant-upgrade test about 24.2
msbutler May 13, 2024
c42bfde
roachtest: delete weekly tpce backup fixture test
msbutler May 13, 2024
25edb96
sql: grant/revoke on a large number of objects can create a lot of jobs
Dedej-Bergin Apr 25, 2024
558ef03
admission: separate elastic and regular store work queue metrics
aadityasondhi May 9, 2024
d8999f7
Merge #123974
May 13, 2024
b159df0
Merge #124040 #124042
May 13, 2024
f51ccd1
Merge #123414 #123696
May 13, 2024
a621810
streamingccl: deflake TestBackupRestoreSystemUsers
msbutler May 13, 2024
7d78545
Merge #124007
May 13, 2024
c179d3f
Merge #123934 #124037
May 13, 2024
15a2dbb
roachtest: run sequelize on insecure mode and default sql port
DarrylWong May 13, 2024
568c525
sql: fix crash when planning stats collection on virtual col with UDT
michae2 May 10, 2024
a3cde79
Merge #123926
May 13, 2024
8cd7566
build,compose: build libgeos for compose tests
rafiss May 7, 2024
337e5d3
Merge #123971
May 13, 2024
0b25bdb
Merge #123990 #124047
May 13, 2024
93bfb32
orchestration: released CockroachDB version 23.2.5. Next version: 23.2.6
cockroach-teamcity May 13, 2024
839e23e
invertedidx: right-size pre-allocation for trigram rule
yuzefovich May 6, 2024
32168d8
allocatorimpl: include full store count in allocator error
kvoli May 13, 2024
264a264
Merge #123648 #123703 #124034 #124053
May 13, 2024
3bc03d4
Merge #123890
May 13, 2024
921731b
sql: fix merge skew in sql.(*createStatsResumer).Resume
michae2 May 13, 2024
ae79a73
Merge #124041
May 13, 2024
ee28f87
kvstreamer: improve logging a bit
yuzefovich May 13, 2024
42e3772
Merge #124088
May 13, 2024
b185402
Merge #124090
May 13, 2024
1d591ba
mixedversion: split cockroach addressing into services
renatolabs Apr 16, 2024
da5ee1c
roachprod: secure clusters in dynamic admin url port
nameisbhaskar May 12, 2024
227dfe8
Merge #123865
May 14, 2024
0a2f34e
roachtest: prefix all logs with worker tags
vidit-bhat May 13, 2024
dadee6d
ccl,sql,util: Fix jwt auth and add sensitive error logs
souravcrl May 6, 2024
ecf5456
Merge #124010
May 14, 2024
3d2e415
Merge #123134
May 14, 2024
1e9eabb
Merge #124027
May 14, 2024
ab7cebf
Merge #123697
May 14, 2024
dbeb37b
streamingccl: enable snappy compression in transit
dt May 13, 2024
01e574a
sql/schema_changer_test.go not checking err, fix for linting issue
Dedej-Bergin May 14, 2024
622c49c
Merge #124128
May 14, 2024
17c37f2
backupccl: don't append to backup file larger than 64 MB, uncompressed
msbutler May 13, 2024
103644c
Merge #124070
May 14, 2024
a720a57
docs: fix generated description for system visible cluster setting
souravcrl May 13, 2024
dd4ea19
sql: refresh stats for multi-tenant system database conversions
fqazi May 9, 2024
78bcdd8
kvclient: change the default circuit breaker to liveness
andrewbaptist May 7, 2024
cef5cf4
Merge #124056
May 14, 2024
98dc793
go.mod: bump Pebble to 5597cf1ed079
RaduBerinde May 14, 2024
fbbb956
nogo: adjust include/exclude rules
rickystewart May 14, 2024
bb4479c
Merge #124043
May 14, 2024
d58a84b
authors: add annaw2193 to authors
annaw2193 May 14, 2024
d04ee9b
authors: add uzair.ahmad to authors
Uzair5162 May 14, 2024
48233b4
sql/delegate: refactoring/cleaning up show_grants.go
Dedej-Bergin Apr 22, 2024
f33e65d
Merge #124073
May 14, 2024
1269197
streamingccl: deflake a few tests
msbutler May 14, 2024
b4ebe8f
dev: in `lint`, ignore cached test results
rickystewart May 14, 2024
1ecc0d8
Merge #123428
May 14, 2024
a3f9437
pkg/sql: revert "deflake TestTenantGlobalAggregatedLivebytes"
jaylim-crl May 14, 2024
7e83319
Merge #124155
May 14, 2024
1ba1fb1
roachtest: update pg_regress diff for new version
yuzefovich May 14, 2024
7c6feb0
Merge #123707 #124165
May 14, 2024
34f70ae
sql: remove optimizer_apply_full_scan_penalty_to_virtual_tables
yuzefovich May 14, 2024
7641e6e
Merge #124162
May 14, 2024
d7b2d88
authors: add nick.tao to authors
nicholas-tao May 14, 2024
7cafe60
Merge #124163
May 14, 2024
6ec873a
Merge #124141
May 14, 2024
ca3a223
master: Update pkg/testutils/release/cockroach_releases.yaml
cockroach-teamcity May 15, 2024
f7cd0bc
Merge #124170
May 15, 2024
6300c3c
Merge #123905
May 15, 2024
cc91c32
roachtest/cdc: ensure hydra endpoint is up
rharding6373 May 1, 2024
b5f6a18
roachtest: fix pgurl in `debug doctor`
renatolabs May 15, 2024
239350e
Merge #124028
May 15, 2024
ae582ed
Merge #124193
May 15, 2024
a3d98b5
Merge #124199
May 15, 2024
fa7a4fc
Merge #124015
May 15, 2024
5f51f8d
concurrency: add ConcurrencyManager test for lock promotion deadlocks
arulajmani Apr 29, 2024
ce4063e
Merge #123209
May 15, 2024
f691d11
Merge #123345 #124145
May 15, 2024
d883247
Merge #123229
May 15, 2024
db48cf1
Merge #124176 #124179
May 15, 2024
4e85671
Merge #123811
May 15, 2024
28bce06
Merge #124035
May 15, 2024
424d37a
roachtest: update dsc job compat to mixed version v241-v242
annrpom Apr 29, 2024
2906783
sqlerrors: move gloval var errNoZoneConfigApplies into sqlerrors package
Xiang-Gu Feb 14, 2024
1d110f0
scbuildstmt: Rerewrite a few function with better APIs
Xiang-Gu Feb 14, 2024
11545da
sqlstats: remove unnecessary StatementFingerprintID construction
xinhaoz May 15, 2024
708c361
admission: introduce elastic io token exhausted duration metric
aadityasondhi May 13, 2024
1c3cea8
sql: expose an ability to request redacted stmt bundles
yuzefovich May 9, 2024
10122bf
lease: remove outdated NightlyStress call
rafiss May 15, 2024
1ab532b
roachtest: increase timeout of acceptance/multitenant-multiregion
rafiss May 15, 2024
5344e5d
sql: simplify usage of some enum settings
yuzefovich May 14, 2024
dd6551e
Merge #124234
May 15, 2024
e4a2287
Merge #124235
May 15, 2024
b5330e1
execinfra: add a sanity check that DistSQL version is not bumped
yuzefovich May 15, 2024
90af00c
Merge #120362 #123405 #124078
May 15, 2024
3d18eee
Updated the AUTHORS file to include Naveen Setlur
navsetlur May 15, 2024
046440d
Merge #123859
May 15, 2024
f94a339
roachtest: skip multi-store-remove while debugging
nicktrav May 14, 2024
9eeb215
Merge #124189 #124237 #124241
May 15, 2024
f32ebd3
Merge #124226
May 15, 2024
2566197
pgwire: add a metric for number of pipelined requests
rafiss May 15, 2024
7d5ffef
Merge #124231
May 15, 2024
efaf724
Merge #124177
May 15, 2024
9e71578
clusterversion: remove deprecated internal versions
RaduBerinde May 16, 2024
7728895
Merge #124013
May 16, 2024
67fa2fd
sql: fix the type of copy_num_retries_per_batch
yuzefovich May 8, 2024
1e0377a
sql: fix cost_scans_with_default_col_size
yuzefovich May 8, 2024
8ed9c31
sql: fix up defaults for a few session variables
yuzefovich May 8, 2024
4e5c031
sql: improve env collection in stmt bundles
yuzefovich May 8, 2024
992d457
Merge #123794
May 16, 2024
473f257
roachprod: fetch secrets from cloud store
nameisbhaskar May 14, 2024
71da6da
Merge #124099
May 16, 2024
b113c17
roachtest: add cluster settings operations
herkolategan May 8, 2024
cb9891f
roachtest: fix `OperationRequiresNodes` dependency check
herkolategan May 8, 2024
1beef0c
roachprod: cluster settings operation owners
herkolategan May 16, 2024
f6ddbd3
roachprod: deploy cockroach
herkolategan May 2, 2024
48f4f57
roachprod: add deploy applications explanation
herkolategan May 16, 2024
7d2c5e0
Merge #123461
May 16, 2024
021c72a
Merge #123806
May 16, 2024
115b2a5
sql: implement pgvector datatype and evaluation
jordanlewis Mar 16, 2024
0d302cd
vector: add kmeans implementation
jordanlewis Mar 21, 2024
cab5069
add geopb
jordanlewis Mar 31, 2024
0a6fde3
catalog: add centroids stuff
jordanlewis Mar 31, 2024
39a713a
fixup! sql: implement pgvector datatype and evaluation
jordanlewis Apr 1, 2024
510bbc3
index creation
jordanlewis Apr 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 1 addition & 7 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ build:crosslinuxfips '--workspace_status_command=./build/bazelutil/stamp.sh x86_
build:crosslinuxfips --config=crosslinuxfipsbase
build:crosslinuxfipsbase --platforms=//build/toolchains:cross_linux
build:crosslinuxfipsbase --config=cross
build:crosslinuxfipsbase --@io_bazel_rules_go//go/toolchain:sdk_version=1.21.5fips
build:crosslinuxfipsbase --@io_bazel_rules_go//go/toolchain:sdk_version=1.22.3fips
build:crosswindows '--workspace_status_command=./build/bazelutil/stamp.sh x86_64-w64-mingw32'
build:crosswindows --config=crosswindowsbase
build:crosswindowsbase --platforms=//build/toolchains:cross_windows
Expand Down Expand Up @@ -113,12 +113,6 @@ build:macos --host_action_env=PATH=/opt/homebrew/bin:/opt/local/bin:/usr/local/b
build:macos --linkopt="-Xlinker"
build:macos --linkopt="-no_warn_duplicate_libraries"

# --config=simplestamp configures the build to stamp the build with inferred
# information about the configuration.
# All `dev` builds will use this configuration; all `cross` builds will use a
# more precise --workspace_status_command option.
build:simplestamp --stamp --workspace_status_command=./build/bazelutil/stamp.sh

build:engflowbase --define=EXECUTOR=remote
build:engflowbase --disk_cache=
build:engflowbase --experimental_inmemory_dotd_files
Expand Down
6 changes: 6 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
# maintaining team ownership) prefixing the line with `#!`.
# (This will hide the line from GitHub, but our internal tooling continues to
# parse it).
# Note that it is customary also to use a team name with `-noreview` suffix in
# the lines that start with `#!` (the suffix is trimmed in codeowners package).
# - there is a special team @cockroachdb/unowned (only to be used with #! prefix as
# to not confuse Github) for the rare situations in which a file has no canonical owner.
# Please use this sparingly.
Expand Down Expand Up @@ -115,6 +117,9 @@
/pkg/sql/zone*.go @cockroachdb/sql-foundations
/pkg/cmd/sql-bootstrap-data/ @cockroachdb/sql-foundations

#!/pkg/sql/logictest/tests/cockroach-go-testserver-*/*.go @cockroachdb/sql-foundations-noreview
#!/pkg/sql/logictest/tests/local-mixed-*/*.go @cockroachdb/sql-foundations-noreview

# Beware to not assign the CLI package directory to a single team, at
# least until we heavily refactor the package to extract team-specific
# functionality into sub-packages assigned to their respective teams.
Expand Down Expand Up @@ -434,6 +439,7 @@
/pkg/cmd/generate-staticcheck/ @cockroachdb/dev-inf
/pkg/cmd/generate-cgo/ @cockroachdb/dev-inf
/pkg/cmd/geoviz/ @cockroachdb/spatial
/pkg/cmd/github-action-poller/ @cockroachdb/dev-inf
/pkg/cmd/github-post/ @cockroachdb/test-eng
/pkg/cmd/github-pull-request-make/ @cockroachdb/dev-inf
/pkg/cmd/gossipsim/ @cockroachdb/kv-prs
Expand Down
2 changes: 1 addition & 1 deletion .github/bors.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# List of commit statuses that must pass on the merge commit before it is
# pushed to master.
status = [
"Bazel Essential CI (Cockroach)",
"acceptance",
"check_generated_code",
"docker_image_amd64",
Expand All @@ -16,6 +15,7 @@ status = [
"local_roachtest_fips",
"macos_amd64_build",
"macos_arm64_build",
"unit_tests",
"windows_build",
]

Expand Down
135 changes: 135 additions & 0 deletions .github/workflows/crdb-api-client-npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
# This workflow establishes two-step process of building and publishing `crdb-api-client` NPM package
# when the produced outputs are changed comparing to last published version.
# 1st step (first CI run) checks that built files contain changes comparing to previous version and
# if NPM package version incremented:
# - if yes, it publishes to NPM registry
# - if no, new PR created (with incremented version in package.json file) which should be merged and
# then second step is executed (runs workflow again) and publishes package.
name: Publish crdb-api-client package to NPM registry
on:
workflow_dispatch:
push:
branches:
- master
paths:
- 'pkg/ui/workspaces/crdb-api-client'
- 'pkg/**/*.proto'

jobs:
publish_crdb_api_client:
if: github.repository == 'cockroachdb/cockroach'
environment: ${{ github.ref_name == 'master' && 'master' || null }}
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}

steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Bazel Cache
uses: actions/cache@v3
with:
path: ~/.cache/bazel
key: ${{ runner.os }}-bazel-cache

- uses: pnpm/action-setup@v2
with:
version: "8.6.10"

- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
always-auth: true
cache: 'pnpm'
cache-dependency-path: "${{ github.workspace }}/pkg/ui/pnpm-lock.yaml"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Build crdb-api-client package
id: bazel-build
run: |
pnpm --dir pkg/ui install
bazel build //pkg/ui/workspaces/crdb-api-client:crdb-api-client
PACKAGE_PATH=$(bazel info execution_root)/$(bazel cquery //pkg/ui/workspaces/crdb-api-client:crdb-api-client --output=files)
echo "package_path=$PACKAGE_PATH" >> $GITHUB_OUTPUT

- name: Check for changes
id: check-changes
working-directory: ${{ steps.bazel-build.outputs.package_path }}
shell: bash
run: |
if [[ $(npm diff) ]]; then
echo "modified=true" >> $GITHUB_OUTPUT
else
echo "modified=false" >> $GITHUB_OUTPUT
fi
PUBLISHED_VERSION=$(npm view @cockroachlabs/crdb-api-client version);
PACKAGE_VERSION=$(cat ./package.json | jq -r ".version");
echo "package_version=$PACKAGE_VERSION" >> $GITHUB_OUTPUT;
if [[ $PUBLISHED_VERSION == $PACKAGE_VERSION ]]; then
echo "same_version=true" >> $GITHUB_OUTPUT
else
echo "same_version=false" >> $GITHUB_OUTPUT
fi
# Check if PR to increment package version already exists.
prs=$(gh pr list \
--repo "${{ github.repository }}" \
--head 'crdb-api-client-increment-version' \
--base 'master' \
--author 'cockroach-teamcity' \
--json title \
--jq 'length')
if ((prs > 0)); then
echo "has_pr=true" >> "$GITHUB_OUTPUT"
else
echo "has_pr=false" >> "$GITHUB_OUTPUT"
fi

- name: Increment version
if: |
steps.check-changes.outputs.modified == 'true' && \
steps.check-changes.outputs.same_version == 'true' && \
steps.check-changes.outputs.has_pr == 'false'
working-directory: pkg/ui/workspaces/crdb-api-client
run: npm version patch

- name: Create PR to increment package version
if: |
steps.check-changes.outputs.modified == 'true' && \
steps.check-changes.outputs.same_version == 'true' && \
steps.check-changes.outputs.has_pr == 'false'
uses: peter-evans/create-pull-request@v5
with:
base: master
token: ${{ secrets.GH_TOKEN_PR }}
push-to-fork: "cockroach-teamcity/cockroach"
add-paths: pkg/ui/workspaces/crdb-api-client/package.json
branch: "crdb-api-client-increment-version"
title: "ui: Increment @cockroachlabs/crdb-api-client version"
author: "CRL Release bot <teamcity@cockroachlabs.com>"
reviewers: koorosh
body: |
Update pkg/ui/workspaces/crdb-api-client/package.json file with incremented patch version.

Epic: None
Release note: None
Release justification: non-production code changes
commit-message: |
ui: Increment crdb-api-client version to ${{ steps.check-changes.outputs.package_version }}

Update pkg/ui/workspaces/crdb-api-client/package.json
file with incremented patch version.

Epic: None
Release note: None
Release justification: non-production code changes
delete-branch: true

- name: Publish package
if: steps.check-changes.outputs.modified == 'true' && steps.check-changes.outputs.same_version == 'false'
working-directory: pkg/ui/workspaces/crdb-api-client
run: npm publish --access public --tag latest --ignore-scripts
102 changes: 65 additions & 37 deletions .github/workflows/github-actions-essential-ci.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,52 @@
name: GitHub Actions Essential CI
on:
pull_request:
types: [ opened, reopened, synchronize ]
types: [opened, reopened, synchronize]
branches:
- 'master'
- 'release-*'
- '!release-1.0*'
- '!release-1.1*'
- '!release-2.0*'
- '!release-2.1*'
- '!release-19.1*'
- '!release-19.2*'
- '!release-20.1*'
- '!release-20.2*'
- '!release-21.1*'
- '!release-21.2*'
- '!release-22.1*'
- '!release-22.2*'
- '!release-23.1*'
- '!release-23.2*'
- "master"
- "release-*"
- "staging-*"
- "!release-1.0*"
- "!release-1.1*"
- "!release-2.0*"
- "!release-2.1*"
- "!release-19.1*"
- "!release-19.2*"
- "!release-20.1*"
- "!release-20.2*"
- "!release-21.1*"
- "!release-21.2*"
- "!release-22.1*"
- "!release-22.2*"
- "!release-23.1*"
- "!release-23.2*"
- "!staging-v22.2*"
- "!staging-v23.1*"
- "!staging-v23.2*"
push:
branches:
- 'master'
- 'release-*'
- 'staging'
- 'trying'
- '!release-1.0*'
- '!release-1.1*'
- '!release-2.0*'
- '!release-2.1*'
- '!release-19.1*'
- '!release-19.2*'
- '!release-20.1*'
- '!release-20.2*'
- '!release-21.1*'
- '!release-21.2*'
- '!release-22.1*'
- '!release-22.2*'
- '!release-23.1*'
- '!release-23.2*'
- "master"
- "release-*"
- "staging-*"
- "staging"
- "trying"
- "!release-1.0*"
- "!release-1.1*"
- "!release-2.0*"
- "!release-2.1*"
- "!release-19.1*"
- "!release-19.2*"
- "!release-20.1*"
- "!release-20.2*"
- "!release-21.1*"
- "!release-21.2*"
- "!release-22.1*"
- "!release-22.2*"
- "!release-23.1*"
- "!release-23.2*"
- "!staging-v22.2*"
- "!staging-v23.1*"
- "!staging-v23.2*"
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
Expand All @@ -58,6 +66,8 @@ jobs:
- name: upload build results
run: ./build/github/summarize-build.sh bes.bin
if: always()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
Expand Down Expand Up @@ -95,6 +105,8 @@ jobs:
- name: upload build results
run: ./build/github/summarize-build.sh bes.bin
if: always()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: clean up
run: ./build/github/cleanup-engflow-keys.sh
if: always()
Expand Down Expand Up @@ -136,6 +148,8 @@ jobs:
- name: upload build results
run: ./build/github/summarize-build.sh bes.bin
if: always()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: clean up
run: ./build/github/cleanup-engflow-keys.sh
if: always()
Expand Down Expand Up @@ -194,6 +208,8 @@ jobs:
- name: upload build results
run: ./build/github/summarize-build.sh bes.bin
if: always()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: clean up
run: ./build/github/cleanup-engflow-keys.sh
if: always()
Expand All @@ -212,6 +228,8 @@ jobs:
- name: upload build results
run: ./build/github/summarize-build.sh bes.bin
if: always()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: clean up
run: ./build/github/cleanup-engflow-keys.sh
if: always()
Expand All @@ -230,6 +248,8 @@ jobs:
- name: upload build results
run: ./build/github/summarize-build.sh bes.bin
if: always()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: clean up
run: ./build/github/cleanup-engflow-keys.sh
if: always()
Expand All @@ -248,6 +268,8 @@ jobs:
- name: upload build results
run: ./build/github/summarize-build.sh bes.bin
if: always()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: clean up
run: ./build/github/cleanup-engflow-keys.sh
if: always()
Expand All @@ -266,10 +288,12 @@ jobs:
- name: upload build results
run: ./build/github/summarize-build.sh bes.bin
if: always()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: clean up
run: ./build/github/cleanup-engflow-keys.sh
if: always()
EXPERIMENTAL_unit_tests:
unit_tests:
runs-on: [self-hosted, basic_runner_group]
steps:
- uses: actions/checkout@v4
Expand All @@ -282,10 +306,12 @@ jobs:
- run: ./build/github/get-engflow-keys.sh
- run: ./build/github/prepare-summarize-build.sh
- name: run tests
run: bazel test //pkg:all_tests //pkg/ui:lint //pkg/ui:test --config crosslinux --jobs 300 --remote_download_minimal --bes_keywords ci-unit-test --config=use_ci_timeouts --build_event_binary_file=bes.bin $(./build/github/engflow-args.sh)
run: ./build/github/unit-tests.sh
- name: upload test results
run: ./build/github/summarize-build.sh bes.bin
if: always()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: clean up
run: ./build/github/cleanup-engflow-keys.sh
if: always()
Expand All @@ -304,6 +330,8 @@ jobs:
- name: upload build results
run: ./build/github/summarize-build.sh bes.bin
if: always()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: clean up
run: ./build/github/cleanup-engflow-keys.sh
if: always()
Loading
Loading