Commit Graph

3430 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 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
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
Elian 7cff94757a Merge pull request #10097 from dolthub/codeaucafe/1430
dolthub/dolt#10030: `--filter` contribution for `dolt diff`
2025-12-09 15:14:32 -08:00
elianddb d9cd4eea4c add backup.bats test to make sure command is allowed to run in invalid repo 2025-12-04 11:54:07 -08:00
elianddb 298c4ee0a3 amend dolt_backup impl to work in non-dolt directories 2025-12-04 10:18: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
David Dansby f5419aab71 Merge branch 'main' of https://github.com/dolthub/dolt into codeaucafe/1430/add-filter-opt-for-diff 2025-11-28 19:47:56 -08:00
David Dansby b89f07b82c test(diff): add tests for renamed filter and removed alias
Add tests for the --filter=renamed option and the --filter=removed alias
that maps to dropped.

Go tests:
- Tests for filter=renamed checking all diff types
- Tests for "removed" alias mapping to dropped internally
- Verify renamed filter only includes renamed tables

BATS tests:
- Test --filter=renamed with table rename scenario
- Test --filter=dropped with table drop scenario
- Verify --filter=removed alias works same as dropped
- Verify other filters correctly exclude renamed/dropped tables

Refs: #1430
2025-11-28 19:47:31 -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