You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
147978: dev: remove stale --oss flag from ui subcommand r=rickystewart a=soma00333
### Overview
This PR removes the deprecated `--oss` flag and its associated logic from the `dev ui` subcommand, resolving a piece of technical debt and simplifying the UI development workflow.
Fixes#136606
### Description of Changes
The `dev ui watch` command and its helpers contained a boolean `--oss` flag and corresponding logic to build only the open-source parts of the UI. This build path is no longer used, as development now exclusively targets the CCL version.
This change fully removes the `--oss` flag and its related logic from `pkg/cmd/dev/ui.go`:
- The `ossFlag` constant has been deleted.
- The `--oss` flag definition and its parsing logic have been removed from the `makeUIWatchCmd` function.
- The build process for `dev ui watch` is now streamlined to always build the CCL version, removing all conditional build arguments.
- As part of the cleanup, the `arrangeFilesForWatchers` helper function was refactored to remove the now-redundant `ossOnly` boolean parameter. This simplified its signature and call sites in the `test` and `storybook` subcommands as well.
### Verification Steps
The changes were thoroughly verified locally to ensure correctness and prevent regressions.
1. **Environment Setup:**
* The local `dev` tool cache (`bin/dev-versions/dev.110`) was manually cleared to ensure the changes to `ui.go` were correctly compiled and loaded.
2. **Command-Line Verification:**
* A local DB cluster was started using `./cockroach start-single-node --insecure`.
* The following `./dev ui` commands were executed sequentially, and their outputs were confirmed to match expectations:
1. `./dev ui watch --oss`
* **Result:** Correctly failed with `ERROR: unknown flag: --oss`.
2. `./dev ui watch --db=http://localhost:8080`
* **Result:** Successfully launched the DB Console (CCL version), which was accessible and fully functional at `http://localhost:3000`.
3. `./dev ui test`
* **Result:** All UI unit tests (`db-console` and `cluster-ui`) passed successfully.
4. `./dev ui storybook --project db-console`
* **Result:** Successfully launched Storybook, which was accessible and functional at `http://localhost:6006`.
All verification steps passed, confirming that the `--oss` flag has been removed cleanly and that the associated refactoring did not introduce any side effects.
148112: roachtest: Add db-console/mixed-version-endpoints roachtest r=alyshanjahani-crl a=alyshanjahani-crl
This commit registers a mixed-version variation of the db-console/endpoints roachtest.
Part of: #145536
Release note: None
Co-authored-by: soma00333 <[email protected]>
Co-authored-by: Alyshan Jahani <[email protected]>
0 commit comments