/{.github,cmd}: comment out ci, disable proxied-server mode
This commit is contained in:
parent
d13c2ee56b
commit
6c59d533b5
2 changed files with 58 additions and 50 deletions
96
.github/workflows/ci.yml
vendored
96
.github/workflows/ci.yml
vendored
|
|
@ -254,52 +254,60 @@ jobs:
|
|||
BEADS_TEST_BD_BINARY: /tmp/bd-uow-test
|
||||
run: go test -tags gms_pure_go -race -count=1 -v ./internal/storage/domain/... ./internal/storage/uow/...
|
||||
|
||||
# End-to-end coverage for `bd create` in proxied-server mode. Each sub-test
|
||||
# spawns a real dolt sql-server via the proxy and exercises the CLI
|
||||
# subprocess against it (see cmd/bd/create_proxied_integration_test.go).
|
||||
# # End-to-end coverage for proxied-server CLI subcommands. Each sub-test
|
||||
# # spawns a real dolt sql-server via the proxy and exercises the bd CLI
|
||||
# # subprocess against it (see cmd/bd/*_proxied_integration_test.go).
|
||||
# #
|
||||
# # The -run pattern intentionally matches the TestProxiedServer* prefix so
|
||||
# # new proxied integration suites (TestProxiedServerCreate, ...Update,
|
||||
# # ...Show, etc.) are auto-included without further CI edits. Adopt the
|
||||
# # `TestProxiedServer<Subcommand>` naming convention for any new entry
|
||||
# # points and they will be picked up here.
|
||||
# #
|
||||
# # Companion to test-domain-uow (which tests the storage/uow layer); this
|
||||
# # job is the CLI-side gate that ensures the proxied path stays at parity
|
||||
# # with the embedded path's behavior.
|
||||
# #
|
||||
# # The package-level testcontainers Dolt singleton (started by
|
||||
# # cmd/bd/test_dolt_server_cgo_test.go) is automatically skipped when
|
||||
# # BEADS_TEST_PROXIED_SERVER=1 is set, so this lane is ~50s faster than
|
||||
# # it would otherwise be.
|
||||
# test-proxied-server-cmd:
|
||||
# name: Test (proxied-server cmd)
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
||||
#
|
||||
# Companion to test-domain-uow (which tests the storage/uow layer); this
|
||||
# job is the CLI-side gate that ensures the proxied bd create path stays
|
||||
# at parity with the embedded path's behavior.
|
||||
# - name: Set up Go
|
||||
# uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
|
||||
# with:
|
||||
# go-version-file: 'go.mod'
|
||||
#
|
||||
# The package-level testcontainers Dolt singleton (started by
|
||||
# cmd/bd/test_dolt_server_cgo_test.go) is automatically skipped when
|
||||
# BEADS_TEST_PROXIED_SERVER=1 is set, so this lane is ~50s faster than
|
||||
# it would otherwise be.
|
||||
test-proxied-server-cmd:
|
||||
name: Test (proxied-server cmd)
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
|
||||
with:
|
||||
go-version-file: 'go.mod'
|
||||
|
||||
- name: Install Dolt CLI
|
||||
run: curl -fsSL https://github.com/dolthub/dolt/releases/latest/download/install.sh | sudo bash
|
||||
|
||||
- name: Verify dolt on PATH
|
||||
run: dolt version
|
||||
|
||||
- name: Configure Git and Dolt identity
|
||||
run: |
|
||||
git config --global user.name "CI Bot"
|
||||
git config --global user.email "ci@beads.test"
|
||||
dolt config --global --add user.name "CI Bot"
|
||||
dolt config --global --add user.email "ci@beads.test"
|
||||
|
||||
- name: Pre-build bd binary for proxied integration tests
|
||||
# The test's buildEmbeddedBD helper picks up BEADS_TEST_BD_BINARY,
|
||||
# skipping a per-test ~45s rebuild for each invocation.
|
||||
run: go build -tags gms_pure_go -o /tmp/bd-proxied-test ./cmd/bd
|
||||
|
||||
- name: Test proxied-server bd create
|
||||
env:
|
||||
BEADS_TEST_PROXIED_SERVER: "1"
|
||||
BEADS_TEST_BD_BINARY: /tmp/bd-proxied-test
|
||||
run: go test -tags gms_pure_go -count=1 -timeout=10m -v -run '^TestProxiedServerCreate$' ./cmd/bd/
|
||||
# - name: Install Dolt CLI
|
||||
# run: curl -fsSL https://github.com/dolthub/dolt/releases/latest/download/install.sh | sudo bash
|
||||
#
|
||||
# - name: Verify dolt on PATH
|
||||
# run: dolt version
|
||||
#
|
||||
# - name: Configure Git and Dolt identity
|
||||
# run: |
|
||||
# git config --global user.name "CI Bot"
|
||||
# git config --global user.email "ci@beads.test"
|
||||
# dolt config --global --add user.name "CI Bot"
|
||||
# dolt config --global --add user.email "ci@beads.test"
|
||||
#
|
||||
# - name: Pre-build bd binary for proxied integration tests
|
||||
# # The test's buildEmbeddedBD helper picks up BEADS_TEST_BD_BINARY,
|
||||
# # skipping a per-test ~45s rebuild for each invocation.
|
||||
# run: go build -tags gms_pure_go -o /tmp/bd-proxied-test ./cmd/bd
|
||||
#
|
||||
# - name: Test proxied-server bd subcommands
|
||||
# env:
|
||||
# BEADS_TEST_PROXIED_SERVER: "1"
|
||||
# BEADS_TEST_BD_BINARY: /tmp/bd-proxied-test
|
||||
# # ^TestProxiedServer matches every proxied-server top-level test
|
||||
# # (Create today; future Update/Show/etc. auto-join without edits).
|
||||
# run: go test -tags gms_pure_go -count=1 -timeout=10m -v -run '^TestProxiedServer' ./cmd/bd/
|
||||
|
||||
# Embedded Dolt tests - test the in-process Dolt engine (no server required)
|
||||
#
|
||||
|
|
|
|||
|
|
@ -111,12 +111,12 @@ Non-interactive mode (--non-interactive or BD_NON_INTERACTIVE=1):
|
|||
if os.Getenv("BEADS_DOLT_PROXIED_SERVER") == "1" {
|
||||
initProxiedServer = true
|
||||
}
|
||||
// if initProxiedServer {
|
||||
// // Proxied-server mode has no local Dolt init lifecycle yet. When it
|
||||
// // is implemented, that path must mark any local .dolt/ it creates or
|
||||
// // acknowledges with doltserver.MarkDoltDirCompatible.
|
||||
// FatalError("--proxied-server is not yet implemented")
|
||||
// }
|
||||
if initProxiedServer {
|
||||
// Proxied-server mode has no local Dolt init lifecycle yet. When it
|
||||
// is implemented, that path must mark any local .dolt/ it creates or
|
||||
// acknowledges with doltserver.MarkDoltDirCompatible.
|
||||
FatalError("--proxied-server is not yet implemented")
|
||||
}
|
||||
if initProxiedServer && initServerMode {
|
||||
FatalError("--server and --proxied-server are mutually exclusive")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue