diff --git a/integration-tests/bats/archive.bats b/integration-tests/bats/archive.bats index 6af2fd0e57..c3448d6f9b 100755 --- a/integration-tests/bats/archive.bats +++ b/integration-tests/bats/archive.bats @@ -276,4 +276,38 @@ mutations_and_gc_statement() { run dolt sql -q 'select sum(i) from tbl;' [[ "$status" -eq 0 ]] || false [[ "$output" =~ "138075" ]] || false # i = 1 - 525, sum is 138075 +} + +@test "archive: mixed compression types" { + port=$( definePORT ) + # run a bare server. + mkdir remotesrv + cd remotesrv + remotesrv --http-port $port --grpc-port $port & + remotesrv_pid=$! + [[ "$remotesrv_pid" -gt 0 ]] || false + cd .. + + # Copy the archive test repo to remote directory + mkdir -p repo/.dolt + cp -R $BATS_TEST_DIRNAME/archive-test-repo/* repo/.dolt + cd repo + + # Make some new commits. + update_statement + + # Get everything into a non-journal form. Repository has mixed storage types now. + dolt gc + + # Push, and enable the archive streamer. In the future this will be the default. + dolt remote add origin http://localhost:$port/test-org/test-repo + DOLT_ARCHIVE_PULL_STREAMER=1 dolt push origin main + + cd .. + + dolt clone http://localhost:$port/test-org/test-repo repo2 + cd repo2 + + dolt fsck + } \ No newline at end of file