History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-2494
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Robin Shen
Reporter: Daniel Kossakowski
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

QB doesn't track Gerrit SCM changes in build.

Created: 04/Aug/15 02:16 PM   Updated: 05/Aug/15 10:39 PM
Component/s: None
Affects Version/s: 6.0.24
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: Ubuntu 14.04, QuickBuild 6.0.24, Gerrit 2.11.1.


 Description  « Hide
QB doesn't track scm changes in builds, when source is cloned from Gerrit repository added via HTTP with basic authentication.

 All   Comments   Work Log   Change History      Sort Order:
Robin Shen [05/Aug/15 01:33 AM]
This is a limitation QB calculates changes based on branch, but in Gerrit changes, there is no reliable branch to calculate changes inside.

Daniel Kossakowski [05/Aug/15 07:22 AM]
Thanks for your reply Robin.

As far as I know Gerrit by default makes diffs between last commit from source branch and current refs branch. I think you are able to get basic information about change (like ID or commit ID?) while QB detects it and is able to set Verified label. IDK how does your function work, but I think you can take change revision for example using GET /changes/{change-id}.

Or you can get directly changes set for specified review using Get Patch or Get Diff calls from API.
https://review.typo3.org/Documentation/rest-api-changes.html#get-diff

Robin Shen [05/Aug/15 10:39 PM]
Thanks for the info Daniel. Ideally for any patch set, we can run "git log" between commit id of the target branch and commit id of the patch set, to get the changes. However inside QB changes have to be calculated between builds, and when build against gerrit changes, there is no build carrying commit id of the target branch to cause changes not being able to be calculated under QB's current change calculation mechanism.

Yes this issue is caused by QB's approach of change calculation mechanism (in order to make things simpler for a bunch of SCMs), and it is not a slight change to adjust the common change calcuation right now. I will keep this issue opened as a backlog so that we can take this into consideration when we decide to improve the common change calculation mechanism.