Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Repository sync time

Martin Bayreuther October 4, 2011

Hello all,

we are currently looking into a code review solution using crucible. For that we create review requests automatically when code is submitted. The problem we run into is as follows.

  • Code is submitted (at time 0:00)
  • Review request in Crucible is created (at time 0:01)

By the time the review is created, crucible is not yet aware of the change (due to the polling nature of the repository link). We have reduced the polling interval to 60 seconds but still our typical submit scenario takes 1 min. 30 seconds as we have to do something like this

  • Code is submitted (at time 0:00)
  • Wait loop until change is visible in crucible (anywhere from 0:10 to 1:30)
  • Review request in Crucible is created (anywhere from 0:20 to 1:40)

Is there a programmatic way to tell crucible about a submit and run the changeset collector on demand?

Best regards

Maba

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted
Conor
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 4, 2011

You can ask Fisheye/Crucible to perform an incremental scan using the scannow command line option

http://confluence.atlassian.com/display/FISHEYE/Command-Line+Options

If you use the -s flag the command will only return once the scan has completed.

Martin Bayreuther October 4, 2011

Hello Conor,

this would be working locally. The submit and the request for review generation are done on the users development machine. So he does a svn commit which at the same time triggers the review request. So something that works remotely via the REST interface is needed.


Best regards

Maba

Conor
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 5, 2011

It would be possible to use the Smart Commits feature (in 2.7) to have Crucible automatically create the review when it processes the commit (see http://confluence.atlassian.com/display/FISHEYE/Using+Smart+Commits)

0 votes
Martin Bayreuther October 5, 2011

The second comment from Conor is the key.

TAGS
AUG Leaders

Atlassian Community Events