Open dhartunian opened 3 weeks ago
Hi @dhartunian, please add branch-* labels to identify which branch(es) this C-bug affects.
:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.
I think the Bazel 7 upgrade broke some stuff. I bisected it down to 0702e865fec87b4afa1254aa9c43b6b644c23771
(the Bazel 7 upgrade commit)
Thanks @rickystewart. I also filed this one which I think is related: https://github.com/cockroachdb/cockroach/issues/129374
Sorry the protobuf generation for the frontend is a bit of a minefield. I'd be eager to find some simplifications here. Happy to discuss further when I'm back from PTO in a few weeks, but otherwise feel free to pick these up.
The problem here is that pkg/ui/workspaces/crdb-api-client:protos
uses a directory for the output. It should be a list of files instead. I think we need some form of code generation here, and this code is pretty messy anyway so it'll be good to clean it up.
Based on the specified backports for linked PR #129677, I applied the following new label(s) to this issue: branch-release-24.1. Please adjust the labels as needed to match the branches actually affected by this issue, including adding any known older branches.
:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.
Oh, there is still that issue with eslint-plugin-crdb
. Re-opening.
Here is what I've found: running dev gen js
by itself still fails:
cockroach$ ./dev gen js --debug
$ bazel build //pkg/ui/workspaces/eslint-plugin-crdb:eslint-plugin-crdb-lib //pkg/ui/workspaces/db-console/src/js:crdb-protobuf-client //pkg/ui/workspaces/cluster-ui:ts_project
...
ERROR: Rel: can't make relative to /private/var/tmp/_bazel_ricky/be70b24e7357091e16c49d70921b7985/execroot/com_github_cockroachdb_cockroach/bazel-out/darwin_arm64-fastbuild/bin/pkg/ui/workspaces/eslint-plugin-crdb/dist
This error is associated with that directory (.../eslint-plugin-crdb/dist
) being empty.
You can fix this by running bazel build pkg/ui/workspaces/eslint-plugin-crdb:ts_project
. When you do this, then the next dev gen js --debug
will succeed.
Running
gen js
hits an error inui.go
that appears to be produced when copying files around.It has also been producing this error (known issue with
crdb-api-client
not being buildable)Jira issue: CRDB-41507
Epic CRDB-37557