Page MenuHomePhabricator

Add an administrative `bin/repository mark-imported` command
ClosedPublic

Authored by epriestley on Nov 6 2013, 3:03 PM.
Tags
None
Referenced Files
F15384042: D7514.diff
Fri, Mar 14, 6:37 PM
Unknown Object (File)
Mon, Mar 3, 6:17 AM
Unknown Object (File)
Wed, Feb 26, 4:59 AM
Unknown Object (File)
Feb 24 2025, 3:01 AM
Unknown Object (File)
Feb 9 2025, 10:30 AM
Unknown Object (File)
Jan 31 2025, 3:04 AM
Unknown Object (File)
Jan 29 2025, 1:46 PM
Unknown Object (File)
Jan 26 2025, 5:27 PM
Subscribers

Details

Summary

Ref T4068. In some cases like that one, I anticipate a repository not fully importing when a handful of random commits are broken. In the long run we should just deal with that properly, but in the meantime provide an administrative escape hatch so you can mark the repository as imported and get it running normally.

The major reason to do this is that Herald, Feed, Harbormaster, etc., won't activate until a repository is "imported".

Test Plan
  • Tried to mark an imported repository as imported, got an "already imported" message.
  • Same for not-imported.
  • Marked a repository not-imported.
  • Marked a repository imported.
  • Marked a repository not-imported, then waited for the daemons to mark it imported again automatically.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped