Skip to content

CLI-1257: pull:db fails with too many tables #2072

CLI-1257: pull:db fails with too many tables

CLI-1257: pull:db fails with too many tables #2072

Triggered via pull request February 2, 2024 21:21
Status Success
Total duration 5m 19s
Artifacts

mutation.yml

on: pull_request
Mutation Testing
5m 10s
Mutation Testing
Fit to window
Zoom out
Zoom in

Annotations

4 warnings
Mutation Testing: src/Command/Pull/PullCommandBase.php#L387
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ $sql = 'DROP TABLE ' . implode(', ', $tables); $tempnam = $this->localMachineHelper->getFilesystem()->tempnam(sys_get_temp_dir(), 'acli_drop_table_', '.sql'); $this->localMachineHelper->getFilesystem()->dumpFile($tempnam, $sql); - $command = ['mysql', '--host', $dbHost, '--user', $dbUser, $dbName, '-e', 'source ' . $tempnam]; + $command = ['--host', $dbHost, '--user', $dbUser, $dbName, '-e', 'source ' . $tempnam]; $process = $this->localMachineHelper->execute($command, $outputCallback, NULL, FALSE, NULL, ['MYSQL_PWD' => $dbPassword]); if (!$process->isSuccessful()) { throw new AcquiaCliException('Unable to drop tables from database. {message}', ['message' => $process->getErrorOutput()]);
Mutation Testing: src/Command/Pull/PullCommandBase.php#L395
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ $sql = 'DROP TABLE ' . implode(', ', $tables); $tempnam = $this->localMachineHelper->getFilesystem()->tempnam(sys_get_temp_dir(), 'acli_drop_table_', '.sql'); $this->localMachineHelper->getFilesystem()->dumpFile($tempnam, $sql); - $command = ['mysql', '--host', $dbHost, '--user', $dbUser, $dbName, '-e', 'source ' . $tempnam]; + $command = ['mysql', '--host', $dbHost, '--user', $dbUser, $dbName, '-e', $tempnam . 'source ']; $process = $this->localMachineHelper->execute($command, $outputCallback, NULL, FALSE, NULL, ['MYSQL_PWD' => $dbPassword]); if (!$process->isSuccessful()) { throw new AcquiaCliException('Unable to drop tables from database. {message}', ['message' => $process->getErrorOutput()]);
Mutation Testing: src/Command/Pull/PullCommandBase.php#L395
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ $sql = 'DROP TABLE ' . implode(', ', $tables); $tempnam = $this->localMachineHelper->getFilesystem()->tempnam(sys_get_temp_dir(), 'acli_drop_table_', '.sql'); $this->localMachineHelper->getFilesystem()->dumpFile($tempnam, $sql); - $command = ['mysql', '--host', $dbHost, '--user', $dbUser, $dbName, '-e', 'source ' . $tempnam]; + $command = ['mysql', '--host', $dbHost, '--user', $dbUser, $dbName, '-e', 'source ']; $process = $this->localMachineHelper->execute($command, $outputCallback, NULL, FALSE, NULL, ['MYSQL_PWD' => $dbPassword]); if (!$process->isSuccessful()) { throw new AcquiaCliException('Unable to drop tables from database. {message}', ['message' => $process->getErrorOutput()]);
Mutation Testing: src/Command/Pull/PullCommandBase.php#L395
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ $sql = 'DROP TABLE ' . implode(', ', $tables); $tempnam = $this->localMachineHelper->getFilesystem()->tempnam(sys_get_temp_dir(), 'acli_drop_table_', '.sql'); $this->localMachineHelper->getFilesystem()->dumpFile($tempnam, $sql); - $command = ['mysql', '--host', $dbHost, '--user', $dbUser, $dbName, '-e', 'source ' . $tempnam]; + $command = ['mysql', '--host', $dbHost, '--user', $dbUser, $dbName, '-e', $tempnam]; $process = $this->localMachineHelper->execute($command, $outputCallback, NULL, FALSE, NULL, ['MYSQL_PWD' => $dbPassword]); if (!$process->isSuccessful()) { throw new AcquiaCliException('Unable to drop tables from database. {message}', ['message' => $process->getErrorOutput()]);