Skip to content

Story: Perform Twisted ticket migration #16

@danuker

Description

@danuker

Migrate the Twisted tickets:

Latest benchmark if nothing goes wrong: Importing the 8 sample tickets took 3 minutes (2.666 tickets/minute; all Twisted tickets would take 64.66 hours if the sample is representative)

Script modification:

Migration:

twisted-trac-staging

  • generate placeholder tickets until reaching the same ID
  • import twisted-trac-staging tickets

twisted/twisted

  • If there have been previous partial migrations:
    • Get the latest milestones_created.tsv
    • Get the latest tickets_created.tsv
    • Get the one and only tickets_expected_gold.tsv (generated from a dry-run for all repos at the beginning, to allow ID preservation for linking)
  • Use proper credentials (twisted-trac) and other settings in config.py
  • Uncomment Twisted contributors from ASSIGNABLE_USERS in config.py
  • Disable pre-commit
  • Make sure https://github.com/twisted/twisted/settings/key_links has trac# prefix going to https://twistedmatrix.com/trac/ticket/<num>
  • Disable Trac edits
  • Get latest trac.db using postgres-to-sqlite.sh: check if have latest events in timeline
  • Get latest Trac attachments, publish them to https://github.com/twisted/twistedmatrix.com-trac-attachments
  • Dry-run
    • check assigned issue numbers (compare fresh tickets_expected.tsv with tickets_expected_gold.tsv)
  • Update the plan to limit interfaction only to colaborators "Limit to repository collaborators" - https://github.com/twisted/twisted/settings/interaction_limits
  • Update the Twisted PR and issue templates to ask the contributor to wait for the migration to be complete, since opening a PR/issue will cause a ticket in migration to have a misaligned ID.
  • Fix ticket links of the form ticket:1234 in the case of tickets with a different ID on GitHub versus Trac.

From Adi:

Hooks server (unrelated to migration):

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions