Commit Graph

799 Commits

Author SHA1 Message Date
Dhruv Sringari
8b00e78e64 go/libraries/doltcore/merge: allow merges in an inconsistent state (#3460)
* add bats test to check that merges can succeed in a conflicted state


fix tests

* add skipped bats for merges that violate check constraints post-merge

* add types.UnionMaps

* caller can choose value when key collision occurs

* fix comment

* allow merges when conflicts or violations are committed

* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh

* skip bats on new format

* enginetest -> queries

* last bats fix

* more bats

* missing run in bats

* pr edits

Co-authored-by: druvv <druvv@users.noreply.github.com>
2022-05-31 13:19:52 -07:00
coffeegoddd
aded369797 /integration-tests/mysql-client-tests/mysql-client-tests.bats: use python3.8 2022-05-26 12:38:20 -07:00
coffeegoddd
08cd284ef5 /integration-tests/{MySQL,ORM}Dockerfile: add platform args, fix python and pip version 2022-05-26 12:03:45 -07:00
James Cor
64c2c6377a forgot new user 2022-05-24 12:21:19 -07:00
James Cor
92fbb02b03 adding restart for persistence, and skipping all for windows 2022-05-24 11:49:00 -07:00
James Cor
ffa6ac9df3 feedback + testing if unskippable on windows 2022-05-24 10:25:00 -07:00
James Cor
e5c15a2933 Merge branch 'main' into james/mysql 2022-05-24 10:07:50 -07:00
Maximilian Hoffman
4a994d31c6 Read replica update working set fixes (#3471)
* Read replica update working set fixes

Read replica pull updates the session working set after pulling a
filtered set of branches from the tracking database. The original
(buggy) implementation updates the working set to the branch specified
at server-start time. The identity of that branch was fixed for the
duration of the server, so dolt_checkout would (appear to) have no
effect on the new branch's working set. What actually happened was more
pernicious: the working set was updated to the value of the
incorrect branch.

The fix no longer statically sets the active branch for a read replica
database. The active branch is pulled from the `*sql.Context`, so the
correct working set will be updated.

* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh

* add test

* todos

* delete extraeneous line

Co-authored-by: max-hoffman <max-hoffman@users.noreply.github.com>
2022-05-23 15:00:11 -07:00
James Cor
8ec24e92f4 renaming privileges 2022-05-23 14:52:17 -07:00
James Cor
6dbd84ddf7 run cat 2022-05-23 14:44:48 -07:00
James Cor
c9ff614995 i need a space????? 2022-05-23 14:35:47 -07:00
James Cor
53b7ea6c1a ??? 2022-05-23 14:27:17 -07:00
James Cor
a88351f5d6 working tests probably 2022-05-23 14:12:03 -07:00
James Cor
9cb4b5285b finally 2022-05-23 14:01:22 -07:00
James Cor
bdc0086b1f work plz, thanks 2022-05-23 13:54:20 -07:00
James Cor
1da0fabbe8 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 2022-05-23 13:32:02 -07:00
James Cor
891f372b59 what in tarnation is even happening 2022-05-23 13:15:57 -07:00
James Cor
492dd3c0dc eargaergasdrgadrgfafga 2022-05-23 13:02:04 -07:00
James Cor
644c265fc7 better? 2022-05-23 12:44:59 -07:00
James Cor
d5b1cdf4f6 run my test first...for now 2022-05-23 12:31:48 -07:00
James Cor
14618d0ea6 aaaaaaaaaaaaaaaaaaaaaaaaaaaa 2022-05-23 12:17:42 -07:00
James Cor
b7cf3d04e4 asdfasdgasdnitkuhsdknthj 2022-05-23 11:51:45 -07:00
James Cor
2e12ba9313 root becomes dolt if you use --user 2022-05-23 11:16:31 -07:00
James Cor
b98e3e7ba9 will it work without expect? 2022-05-23 10:51:39 -07:00
James Cor
0c7040aed0 hard to see what's wrong 2022-05-23 09:20:30 -07:00
James Cor
08ef3bce38 changing expect format 2022-05-22 22:33:43 -07:00
James Cor
cb513aadbd hope this works 2022-05-22 02:22:40 -07:00
James Cor
d60d309d18 ignore loading privileges from non-existent file 2022-05-21 22:56:52 -07:00
James Cor
a121160eda see if this works 2022-05-20 16:45:12 -07:00
James Cor
d0c130d215 starting expect, got file behavior correct 2022-05-20 16:41:27 -07:00
Zach Musgrave
c1d21f1e3a Merge pull request #3455 from dolthub/zachmu/db-drop-panic
[no-release-notes] Additional tests for drop database panic
2022-05-19 08:55:12 -07:00
Zach Musgrave
43fd1404b5 Skipped drop test failing on windows: 2022-05-19 08:07:33 -07:00
Zach Musgrave
40c7f67dd0 Merge pull request #3454 from dolthub/zachmu/db-drop-panic
Fixed panic when dropping a database with active branches in use
2022-05-18 21:04:17 -07:00
Zach Musgrave
8934137ebc Added skipped tests for case sensitivity in db connection strings 2022-05-18 19:42:49 -07:00
Zach Musgrave
837a9f6ac8 Added test for dropping a branch-qualified DB 2022-05-18 19:24:55 -07:00
Zach Musgrave
964dfc361b Skipping new test on new format 2022-05-18 19:02:21 -07:00
AndyA
622eecb9ce Merge pull request #3408 from dolthub/andy/nbf-gate
[no-release-notes] Gate some CLI commands for `__DOLT_1__`
2022-05-18 18:23:49 -07:00
Zach Musgrave
c491e777a0 Fixed panic when dropping a database with active branches in use 2022-05-18 18:17:25 -07:00
Zach Musgrave
6ff2892dbc Removed test that dropping columns on a keyless table doesn't work 2022-05-18 16:26:44 -07:00
Andy Arthur
bcbb7378de . 2022-05-18 15:16:30 -07:00
Andy Arthur
805f6a8a8e skip new bats 2022-05-18 14:26:20 -07:00
Andy Arthur
6d28deda12 Merge remote-tracking branch 'origin/main' into andy/nbf-gate 2022-05-18 14:25:23 -07:00
Andy Arthur
5c012c820a gate config reset 2022-05-18 14:02:43 -07:00
Andy Arthur
8a4b22a6f0 maybe skip failing bats 2022-05-18 13:58:52 -07:00
Aaron Son
25d00df834 Merge remote-tracking branch 'origin/main' into aaron/dolt_backup-stored-procedure 2022-05-18 09:02:25 -07:00
Maximilian Hoffman
f4dd4c7d6b Dolt clean (#3440)
* Dolt clean

CLI and sql clean function. Clears untracked tables by finding the
difference betewen HEAD and the current working set and then deleting
the result.

Optionally specify `--dry-run` to avoid persisting the result root.

Optionally pass a list of table names to filter for deletion if
untracked.

* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh

* zach comments

* need clean func for proc

* fix andy's PR

Co-authored-by: max-hoffman <max-hoffman@users.noreply.github.com>
2022-05-17 18:38:24 -07:00
Andy Arthur
b4ccd71c57 Merge branch 'main' into andy/nbf-gate 2022-05-17 17:11:09 -07:00
Andy Arthur
a53b6730ac batsfixpls 2022-05-17 17:09:57 -07:00
Vinai Rachakonda
5e333b0e8f Fix error message for DOLT_MERGE conflicts (#3413) 2022-05-17 19:56:09 -04:00
Aaron Son
19f9a38628 integration-tests/bats: backup.bats: Update backup already up to date test to expect success. 2022-05-17 16:22:59 -07:00