Commit Graph

3899 Commits

Author SHA1 Message Date
Elian
6fc0e63acc Merge pull request #10146 from dolthub/elian/7628b
dolthub/dolt#7628: Amend `dolt_backup` DoltgresSQL privilege check for server only
2025-12-02 10:19:39 -08:00
elianddb
aceb329a05 amend elixir docker image to locked ver. 1.18.3 2025-12-01 19:49:38 -08:00
Neil Macneale IV
7511148191 Merge pull request #10078 from dolthub/macneale4/journal-errors
journal errors, recovery, and testing
2025-12-01 17:31:15 -08:00
Elian
91eda61d50 Merge pull request #10110 from dolthub/elian/7628
dolthub/dolt#7628: Refactor `dolt backup` to use SQL interface
2025-11-26 15:23:21 -08:00
Neil Macneale IV
098ce3d7d6 Fix last test 2025-11-26 10:51:37 -08:00
Neil Macneale IV
16c1724332 more messaging about journal corruption 2025-11-26 10:25:32 -08:00
Neil Macneale IV
b065275a17 Truncate garbabe bytes, don't null pad. More testing 2025-11-26 10:25:32 -08:00
Neil Macneale IV
400e2e724e Handle corrupted journals with invalid record lengths 2025-11-26 10:25:32 -08:00
Neil Macneale IV
4324660973 Refactor fsck to load it's own database 2025-11-26 10:25:32 -08:00
Neil Macneale IV
20c5e23c0c Add a new test for fsck that trips on journal with bad entries not in jounal.idx 2025-11-26 10:25:32 -08:00
elianddb
074086b6f2 add skip for sql-server only test 2025-11-25 16:12:16 -08:00
elianddb
7b63af54a0 leave sql-backup.bats in local-remote.bash 2025-11-25 15:46:19 -08:00
elianddb
2ffae2939c fix test expectations for bats and script tests
- add invalid name test for remote bats
- add --force flag in usage tests
- add test for aws params block for dolt_backup when using server
2025-11-25 15:25:56 -08:00
elianddb
3ced9f13a3 fix system-tables.bats dolt_help expectation 2025-11-24 20:01:09 -08:00
elianddb
3fbce76fb3 fix dolt_backup proc bats test 2025-11-24 15:57:23 -08:00
elianddb
9a45d1ce43 rm del on stop_remotesrv dir 2025-11-24 15:47:32 -08:00
elianddb
fb3e8c163e fix err wrap and usage doc 2025-11-24 15:44:46 -08:00
elianddb
d128e67e9a fix unknown backup err in bats tests 2025-11-24 15:44:46 -08:00
elianddb
ee35df6ff6 mv query-server-common.bash load to remotesrv-common.bash 2025-11-24 15:44:46 -08:00
elianddb
0f1a3ab4ac mv start_remotesrv, stop_remotesrv, and wait_for_port to new remotesrv-common.bash and fix backup.bats tests 2025-11-24 15:44:46 -08:00
elianddb
3ccfc07044 rm outdated bats test in sql-backup.bats 2025-11-24 15:44:29 -08:00
elianddb
27bc150480 add http and https support to dolt_backup proc 2025-11-24 15:44:29 -08:00
elianddb
2a7270ff89 rm backup.bats from local-remote only tests list 2025-11-24 15:44:29 -08:00
elianddb
bfb80549db add dolt_backups() script tests and bats test 2025-11-24 15:44:29 -08:00
Aaron Son
a2fe5295b3 go/cmd/dolt: Allow the Dolt CLI to connect to a running dolt sql-server which is configured with require_secure_transport: true.
When Dolt CLI is running in a directory with a corresponding running sql-server
process, it will connect to the server process and complete its work using SQL
statements. Previously, the Dolt CLI was configured to always connect on a
plaintext TCP connection for these connections. That meant it did not work for
servers configured with require_secure_transport: true. One consequence was
that the published Dolt dockerhub image did not work with
require_secure_transport: true, since that image runs `dolt sql` against the
running server as part of its entrypoint.

This changes `dolt` CLI to connect over (non-verified) TLS if such as an option
is presented by the server. The CLI still falls back to plaintext as well.

Dolt CLI still does not work when the server is configured with
require_client_certificate, since Dolt CLI does not currently have a way to
configure its presented client certificate and private key. As a consequence,
at least for the time being, the published DockerHub images for Dolt do not
work with require_client_certificate: true.
2025-11-24 13:42:37 -08:00
Neil Macneale IV
63f9b5272c Enable sql-engine=remote for cherry-pick.bats 2025-11-21 10:15:01 -08:00
Neil Macneale IV
abd975f73a Change status_table type to use a byte rather than a bool 2025-11-21 10:15:01 -08:00
Jason Fulghum
e5026cba91 PR feedback 2025-11-20 15:20:00 -08:00
Jason Fulghum
db779f95d5 Add require_client_cert to sql server configuration options 2025-11-20 12:48:55 -08:00
Jason Fulghum
f2969f6b44 Adding support for configuring a CA to validate client certs, and BATS tests for client-cert auth. 2025-11-14 14:32:22 -08:00
Neil Macneale IV
dbe2d1a4ab Merge pull request #10072 from dolthub/macneale4-claude/branch-activity-disable
Optionally enable branch activity stats
2025-11-12 17:57:29 -08:00
Neil Macneale IV
84915c99cd Fix bats test to properly configure server port
The issue was that start_sql_server_with_args appends --port after
--config, but the config file was resetting to defaults. Fixed by:
1. Calling definePORT to get an available port
2. Including the port in the config file under listener.port
3. Using start_sql_server_with_args_no_port which expects PORT to be set

All 6 branch-activity tests now pass.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-13 00:01:51 +00:00
Neil Macneale IV
237fe89968 Fix bats test config to avoid duplicate YAML keys
The start_sql_server_with_config function creates a config with
a 'behavior:' section and appends the provided config file. This
caused a YAML parse error when our config also had a 'behavior:' key.

Fixed by creating a complete config file and using start_sql_server_with_args
instead, which avoids the duplicate key issue.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-12 23:27:50 +00:00
Neil Macneale IV
44ba402768 Add error handling for disabled branch activity tracking
- Modified branch-activity.bats to use config file that enables tracking
- Added IsTrackingEnabled() method to BranchActivityTracker
- Added error check in branch_activity_table to return helpful error message
  when tracking is disabled
- Added new test case to verify error is shown when tracking is disabled
- Error message instructs users to enable via config:
  'behavior.branch_activity_tracking: true'

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-12 23:14:51 +00:00
coffeegoddd☕️✨
89ca6b26a1 /go.{mod,sum}: run go mod tidy 2025-11-10 16:20:53 -08:00
elianddb
df97c884dc amend to only fix 2025-11-10 12:55:48 -05:00
elianddb
56e2213301 fix json and yaml to both apply 2025-11-10 11:47:39 -05:00
elianddb
5d8ee7fc40 add support for doltcfg.d/ sql-server yaml 2025-11-10 11:23:59 -05:00
elianddb
8de37c3525 mv to bats for server test 2025-11-07 17:40:45 -08:00
elianddb
f1d02f5588 mv tests to binlogreplication/ 2025-11-05 14:47:42 -08:00
elianddb
b819ff3bbd fix go ver
# Conflicts:
#	go/go.mod
#	go/go.sum
2025-11-05 14:47:41 -08:00
elianddb
fdb34cc988 fix deps and dir struct
# Conflicts:
#	go/go.mod
#	go/go.sum
2025-11-05 14:47:41 -08:00
elianddb
6d74f5488a mv mariadb-binlog.bats to mysql-client-tests 2025-11-05 14:47:41 -08:00
elianddb
bcb2dfbd79 add priv test 2025-11-05 14:47:41 -08:00
elianddb
48e7ae75b7 add mariadb-binlog.bats 2025-11-05 14:47:40 -08:00
Elian
33237a9e0f Merge pull request #10033 from dolthub/elian/10015
dolthub/dolt#10015: Support `read_only` to always be true in standby mode
2025-11-05 14:46:29 -08:00
elianddb
106bc07219 amend flaky build tests 2025-11-05 13:53:28 -08:00
elianddb
b59aad1939 read_only always true on standby 2025-11-05 13:03:29 -08:00
Neil Macneale IV
a74a4a62a8 Merge pull request #10020 from dolthub/macneale4/ci-9946
refactor: make dolt_diff_summary respect dolt_ignore patterns
2025-11-03 12:06:39 -08:00
Nick Tobey
ce7311833f Merge pull request #9989 from dolthub/nicktobey/nonlocal-fks
Allow foreign keys on nonlocal tables
2025-10-29 14:49:47 -07:00