Ravenbrook / Projects / Perforce Defect Tracking Integration
Perforce Defect Tracking Integration Project
This document sketches out some of the design issues involved in adapting the P4DTI to synchronize jobs between two Perforce servers. It's based on [RB 2001-03-14].
The intended readership is project developers.
This document is not confidential.
The replicator doesn't care what kind of defect tracker it's
replicating to. It could be another Perforce server. In fact, it was
always intended for the code in replicator.py
to be more
symmetric between the defect tracker and Perforce, by putting Perforce
code into the class dt_perforce
, offering the same
interface as any other defect tracker.
So what would be required to write the dt_perforce
class? This is set out in [GDR 2000-10-16].
From [GDR
2000-10-16, 3.5], we need to implement only the new_issues
feature.
From [GDR 2000-10-16, 4.1]:
replicator_p
to tell us which jobs are replicated by the replicator. Could we
avoid storing the corresponding jobname (by querying Ravenbrook's
Perforce server using p4 jobs -e "P4DTI-issue-id=..."
)?
From [GDR 2000-10-16, 4.5]:
p4 counter
mechanism to store record
the last logger entry we looked at. (But if we use p4
logger
to get changes, then this uses up a scarce resource:
there can only be one consumer of the logger.) changelist_url
, job_url
, and p4_server_description
since we don't plan to
provide a defect tracker interface [GDR 2000-10-16,
10]. From [GDR 2000-10-16, 7.1]:
p4 jobs -e date >= start_date
.replicator
class.From [GDR 2000-10-16, 7.2]:
use_perforce_jobnames
configuration parameter turned on.P4DTI-rid
field in their jobspec.From [GDR 2000-10-16, 7.5]:
From [GDR 2000-10-16, 7.5]:
field_map
will be quite complex. Perforce have a description field, but no
title field or separate analysis field. We could put the title in the
first line, and mark the analysis somehow in the description.[GDR 2000-10-16] | "Perforce Defect Tracking Integration Integrator's Guide"; Gareth Rees; Ravenbrook Limited; 2000-10-16. |
[GDR 2001-11-14] | "Perforce Defect Tracking Integration Advanced Administrator's Guide"; Gareth Rees; Ravenbrook Limited; 2001-11-14. |
[RB 2000-08-10] | "Perforce Defect Tracking Integration Administrator's Guide"; Richard Brooksby; Ravenbrook Limited; 2000-08-10. |
[RB 2001-03-14] | "Re: Sharing jobs between Perforce and Ravenbrook" (e-mail message); Richard Brooksby; Ravenbrook Limited; 2001-03-14. |
2002-01-31 | GDR | Created based on [RB 2001-03-14]. |
Copyright © 2002 Ravenbrook Limited. This document is provided "as is", without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this document. You may make and distribute verbatim copies of this document provided that you do not charge a fee for this document or for its distribution.
$Id: //info.ravenbrook.com/project/p4dti/doc/2002-01-31/job-sync-design/index.html#1 $
Ravenbrook / Projects / Perforce Defect Tracking Integration