Page MenuHomePhabricator

Add a `bin/bulk export` CLI tool to make debugging and profiling large exports easier
ClosedPublic

Authored by epriestley on Jan 30 2018, 1:54 PM.
Tags
None
Referenced Files
F19011123: D18965.diff
Nov 22 2025, 7:36 AM
F18903814: D18965.diff
Nov 8 2025, 6:25 AM
F18902782: D18965.id45487.diff
Nov 8 2025, 2:41 AM
F18876208: D18965.diff
Nov 5 2025, 10:25 PM
F18828083: D18965.id45492.diff
Oct 24 2025, 2:08 PM
F18814733: D18965.diff
Oct 20 2025, 11:50 PM
F18762408: D18965.diff
Oct 6 2025, 6:50 PM
F18733296: D18965.diff
Sep 30 2025, 10:26 PM
Subscribers
None

Details

Summary

Ref T13049. When stuff executes asynchronously on the bulk workflow it can be hard to inspect directly, and/or a pain to test because you have to go through a bunch of steps to run it again.

Make future work here easier by making export triggerable from the CLI. This makes it easy to repeat, inspect with --trace, profile with --xprofile, etc.

Test Plan
  • Ran several invalid commands, got sensible error messages.
  • Ran some valid commands, got exported data.
  • Used --xprofile to look at the profile for a 300MB dump of 100K tasks which took about 40 seconds to export. Nothing jumped out as sketchy to me -- CustomField wrangling is a little slow but most of the time looked like it was being spent legitimately.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable