Page MenuHomePhabricator

Provide `bin/storage quickstart` to automate generation of `quickstart.sql`
ClosedPublic

Authored by epriestley on Sep 28 2014, 8:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 7, 7:33 AM
Unknown Object (File)
Sat, May 4, 5:46 AM
Unknown Object (File)
Fri, May 3, 6:45 AM
Unknown Object (File)
Fri, Apr 26, 4:11 PM
Unknown Object (File)
Fri, Apr 26, 6:20 AM
Unknown Object (File)
Thu, Apr 25, 1:17 AM
Unknown Object (File)
Wed, Apr 17, 8:13 PM
Unknown Object (File)
Apr 8 2024, 6:02 PM
Subscribers

Details

Summary

Ref T1191. Currently, the quickstart.sql gets generated in a pretty manual fashion. This is a pain, and will become more of a pain in the world of utf8mb4.

Provide a workflow which does upgrade + adjust + dump + destroy, then massages the output to produce a workable quickstart.sql.

Test Plan

Inspected output; I'll test this more throughly before actually generating a new quickstart, but that's some ways away.

Diff Detail

Repository
rP Phabricator
Branch
utfx27
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 2693
Build 2697: [Placeholder Plan] Wait for 30 Seconds

Unit TestsFailed

TimeTest
0 mstestMySQLAgreesWithUsAboutBMP
0 mstestRejectMySQLBMPQueries
0 mstestApplicationsInstalled
0 mstestCelerityMaps
0 mstestConnectionFailures
View Full Test Results (2 Failed · 11 Passed)

Event Timeline

epriestley retitled this revision from to Provide `bin/storage quickstart` to automate generation of `quickstart.sql`.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.

This'll be cool.

resources/sql/patches/065.sshkeys.sql
7

sneaking this in here?

This revision is now accepted and ready to land.Sep 30 2014, 5:08 PM
resources/sql/patches/065.sshkeys.sql
7

When reapplying the patches with --no-quickstart (which normal users will never do), this patch failed, probably because of MySQL version differences. This makes it succeed; the column type will be adjusted later if necessary.

src/infrastructure/storage/management/workflow/PhabricatorStorageManagementQuickstartWorkflow.php
106–109

Although we no longer generate these after --single-transaction, I'm leaving them since they don't hurt anything and improve generality.

This revision was automatically updated to reflect the committed changes.