Commit Graph

3956 Commits

Author SHA1 Message Date
Neil Macneale IV
e8387cdbb0 Merge pull request #10349 from dolthub/macneale4-claude/rebase-non-ii
Remove requirement for -i in dolt_rebase
2026-01-22 11:18:41 -08:00
Nathan Gabrielson
9a483ff402 typo in bats test 2026-01-22 09:19:19 -08:00
Nathan Gabrielson
59aed48f07 Tests and CLI stuff 2026-01-22 09:19:19 -08:00
Nick Tobey
6b5d5373d1 Merge pull request #10227 from codeaucafe/codeaucafe/5862/make-ignore-system-table
dolthub/dolt#5862: Add ignore system table
2026-01-22 00:41:21 -08:00
Neil Macneale IV
5f2a48f801 better test, removed dumb comments 2026-01-21 16:33:07 -08:00
Neil Macneale IV
1c3ad069cb Remove requirement for -i in dolt_rebase 2026-01-21 23:44:43 +00:00
Aaron Son
5b46ec56a4 Merge pull request #10341 from dolthub/aaron/fix-10331-no-truncate-on-read-only-journal-open
go/store/nbs: Fix possible data loss from Dolt CLI utilization when executing against a running server that was in the process of writing to its journal file.
2026-01-21 02:31:27 +01:00
Aaron Son
bbb46c269b integration-tests/go-sql-server-driver: repro_10331_test.go: Add a regression test for #10331. 2026-01-20 16:21:35 -08:00
Aaron Son
1dae7661a3 integration-tests/bats: Update bats tests which are checking for dolt working without write perms to still have read perms on the directory. 2026-01-20 15:55:56 -08:00
elianddb
e3cacaaf24 rm volume from bats test 2026-01-15 15:12:19 -08:00
Neil Macneale IV
6ab64f393b When DB files can't be read off disk, fail with a clear error rather than a panic 2026-01-13 15:41:46 -08:00
David Dansby
5155e81a09 Merge branch 'main' of https://github.com/dolthub/dolt into codeaucafe/5862/make-ignore-system-table 2026-01-11 23:22:02 -08:00
David Dansby
6aaf56f2aa test(bats): fix dolt_status_ignored bool assert
Update test assert to check for "false" bool instead of
int "0" for the ignored column. This is to align with change to use
boolean type for the ignored column in the dolt_status_ignored system
table. The other tests were previously fixed to handle this type change,
but this one slipped through the cracks.

Refs: #5862
2026-01-11 17:16:51 -08:00
David Dansby
a94e5bee12 fix(sqle): update tests to use bool type for ignored column
Update test assertions in dolt_status_ignored tests to use boolean
values (true/false) instead of byte values (byte(0)/byte(1)) for the
ignored column in statusIgnoredTableRow.

Refs: #5862
2026-01-08 21:19:15 -08:00
macneale4
0dd890c782 add -vv support to dolt branch 2026-01-08 16:37:49 -08:00
Tim Sehn
2107971fed Merge pull request #10289 from dolthub/tim/fix-rerquires-repo
Consistently implement which commands require a repo
2026-01-08 13:27:44 -08:00
Neil Macneale IV
75f15a448b pr feedback 2026-01-08 12:37:14 -08:00
Neil Macneale IV
8c3f5cdd4c fix the test a little more correctly 2026-01-08 12:27:55 -08:00
Neil Macneale IV
8973fd06e2 Make fsck commit errors more consistent, and remove appendErr function 2026-01-08 09:55:34 -08:00
Neil Macneale IV
bdd586393b Fix hanging test 2026-01-08 09:55:34 -08:00
Neil Macneale IV
593fc0cd75 Fix fsck test with message update 2026-01-08 09:55:34 -08:00
Neil Macneale IV
4d40aefd99 Add missing table test 2026-01-08 09:55:33 -08:00
Neil Macneale IV
c082bf77b0 Remove a FK object 2026-01-08 09:55:33 -08:00
Neil Macneale IV
9c3b53f12a Add test for missing schema object 2026-01-08 09:55:33 -08:00
Neil Macneale IV
386f52b726 Add missing closure test 2026-01-08 09:55:33 -08:00
Tim Sehn
5313db0049 Remove new test file from being executed with a server running 2026-01-08 09:43:44 -08:00
Tim Sehn
13390f62c3 Fix bats tests for repo requirement changes
- init.bats: Use status != 0 instead of status == 1 for flexibility
- shallow-clone.bats: Add cd into cloned directory after dolt_clone
- sql-local-remote.bats: Run commands from within the dolt database directory

These tests now properly cd into the dolt database directory before
running commands that require a repository context.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 17:41:00 -08:00
Tim Sehn
aeaee6be70 Various fixes 2026-01-07 16:55:39 -08:00
Tim Sehn
fbe3ca367d Consistently implement which commands require a repo and which do not. Add a test file to ensure behavior 2026-01-07 15:58:13 -08:00
Elian
1dff1790f8 Merge pull request #10241 from dolthub/elian/tz
Embed IANA time zone database for clean environments
2026-01-06 15:22:20 -08:00
elianddb
e73302f77b add comments 2026-01-06 14:01:29 -08:00
coffeegoddd☕️✨
d9376a3cae /{go,integration-tests}: pr feedback 2026-01-06 12:53:00 -08:00
coffeegoddd☕️✨
f88ac3dc1a /integration-tests/bats/sql-server-config-env-interpolation.bats: remove comments 2026-01-06 09:49:19 -08:00
coffeegoddd☕️✨
a48f8d8efb /{go,integration-tests}: support environment variable interpolation 2026-01-05 16:53:00 -08:00
Neil Macneale IV
86b08bae1a go mod tidy in integration-tests/go-sql-server-driver 2026-01-05 14:14:07 -08:00
elianddb
4aed001be4 rm tzdata explicit import and replace with timetzdata build tag 2025-12-26 13:59:40 -08:00
elianddb
0dd36d6129 add curr latest release to test env missing tz db 2025-12-26 10:37:35 -08:00
elianddb
b84f40de59 fix test tag for no lambda 2025-12-23 15:52:44 -08:00
elianddb
8e64912eca amend dolt->cdolt function to avoid binary conflicts 2025-12-23 15:36:50 -08:00
elianddb
f08b645f03 fix bats test comment typo 2025-12-23 15:36:50 -08:00
elianddb
95d1ccc787 add clarifying comment on bats test 2025-12-23 15:36:50 -08:00
elianddb
e584503d69 mv user init and add test from customer 2025-12-23 15:36:50 -08:00
elianddb
11e4ebea39 embed tzdata for dolt binary and add test with environment without iana database 2025-12-23 15:36:50 -08:00
David Dansby
a3c7660df1 fix(sqle): address PR feedback for dolt_status_ignored; fix & add tests
Address PR review feedback for dolt_status_ignored implementation
with refactors to error handling, adapter pattern, test
coverage, and copyright year.

Changes:
- Fix copyright year from 2020 to 2025 in status_ignored_table.go
- Add adapter pattern to NewStatusIgnoredTable; matches
StatusTable implementation.
- Add NewStatusIgnoredTableWithNoAdapter for default behavior
- Fix error handling in checkIfIgnored to return errors instead
of silently returning byte(0)
- Propagate ignore pattern errors up the call stack

Test coverage additions:
- Empty dolt_ignore table test verifying all tables show
ignored=0
- Conflicting patterns test with wildcard (test_*=true) vs
specific override (test_special=false)
- Update ls.bats to expect 27 system tables instead of 26

Error handling refactored to now matches patterns in status.go, commit
.go, and diff.go where IsTableNameIgnored errors are properly propagated
up rather than swallowed.

Refs: #5862
2025-12-19 01:19:40 -08:00
Neil Macneale IV
5215ed2f36 added pull command tests 2025-12-18 20:33:50 +00:00
David Dansby
00f459df84 feat(sqle): add dolt_status_ignored system table
Add new dolt_status_ignored system table that extends dolt_status with
an "ignored" column to show which unstaged tables match dolt_ignore
patterns. This provides SQL equivalent of dolt status --ignored
functionality.

Implementation includes:
- StatusIgnoredTable type with schema containing table_name,
staged, status, and ignored columns
- Registration in system table constants and generated table
names lists
- Helper function getStatusTableRootsProvider to eliminate
duplicate switch case logic between StatusTableName and
StatusIgnoredTableName in database.go
- Shared getStatusRowsData function used by both dolt_status
and dolt_status_ignored to collect status data from roots and
working set
- Unexported helper functions in status_ignored_table.go for
ignore pattern checking: getIgnorePatterns,
buildUnstagedTableNameSet, and checkIfIgnored
- bats integration tests verifying behavior

The ignored column is only set for unstaged tables that match
patterns in dolt_ignore. Staged tables, constraint violations,
merge conflicts, and schema conflicts always have ignored = 0.

Refs: #5862
2025-12-17 23:12:56 -08:00
Brian Hendriks
657ba0aebe Merge pull request #10188 from dolthub/bh/metrics-auth
Bh/metrics auth
2025-12-11 13:55:52 -08:00
Brian Hendriks
a8ea53509d repo formatting 2025-12-11 13:05:35 -08:00
Brian Hendriks
e44048ed20 add ability to skip metrics auth for the localhost 2025-12-11 11:50:11 -08:00
Brian Hendriks
6832617c61 jwt auth integration tests 2025-12-10 16:20:08 -08:00