I am new to both git and Crucible, and I am trying to figure out the best workflow/process to do code reviews.
One method I have gotten working is a code review on code that is already pushed to the remote repository, but that is a little late for doing a review.
I have a local clone of the remote repository with changes, I have tried both committing them locally or just staging them, and cannot figure out how to create a review from that. I did attempt to use the "patch" file, creating a diff of the changes, but then I get an error regarding "Crucible cannot anchor the patch to this repository".
Thank you everyone for your feedback. I am going to look into option 1.
As for the crucible.py, I tried using that for the pre-commit review and was getting a connectivity error.
It looks like this error only happens when the CR already exists.
$ ~/crucible.py CR-4
Crucible server: http://xxxxxxxxxxxx
Crucible username: xxxxxxxxxx
No matching FishEye repository detected Please choose a repository to anchor to, or press Enter to skip anchoring: xxx-xx
Received an unexpected response HTTP Error 400: Bad Request. Please check that http://xxxxxxxxxx is a Crucible server
I put x's for any data I didn't want to expose.
If I re-run with a new CR number (ex, the next available number CR-6), rather than the one I was trying to start, it looks to work fine.
Hi Allan,
One method I have gotten working is a code review on code that is already pushed to the remote repository, but that is a little late for doing a review.
The standard workflow would be to do all the work on a feature branch. You can then push it to the remote repository whenever you want.
Once all the work on the feature branch is ready you can create a review in Crucible. Select all commits that you want to review or better do a branch review. When the review is done merge the feature branch into the main branch.
Patch reviews are more usable in a centralised workflow where all the work is done on the main branch. It can be done with GIT and Crucible will handle it, but the feature branch workflow is definitely the way to it.
Best regards,
Mac
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Allan Haywood,
That's very typical approach when you want to get your changes reviewed before they are pushed to the production code. Basically there are two main approaches that development teams usually would follow, pick up the one that suits you best.
Hope that helps,
Piotr
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.