Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

How does SCM Changes work ? by changelist and by file ? #2864

vart ·
Can you please let me know how does the SCM Changes work in quickbuild using a perforce repository..

I notice that some builds have the SCM Changes and some doesnot ..i have sevral questions about it

1. Some builds show changes some doesnot.. ? why ?
2. Let's say we have two builds both differ by a change of 50 changelist's or more.. then which changes does qb shows and which it doesnot ?
  • replies 18
  • views 7712
  • stars 0
robinshen ADMIN ·
To calculate changes between two builds, QB does below:
1. Consult the client mapping, and for each included depot path, call "p4 changes -s submitted <depot path>@<change list of first build>,@<change list of second build>".
2. For each change list retrieved above, call "p4 describe -s <change list>" to get to know files being modified in that change list. These files will be filtered against the client mapping to remove those not being used for checkout, and the left files will be displayed at QB web interface.

So for instance if you have a client mapping below:
//depot/project/dir1 //client/...

And if a change list since previous build modifies below files:
//depot/project/dir1/file
//depot/project/dir2/file

QB will include that change list but only display "//depot/project/dir1/file" as modified file as this is the actaul modification affecting the build.
vart ·
ok cool that sounds good enough..

Since all the SCM changes are driven by QB itself..

I found a case of consecutive builds where we do a diff to list all the changes ..
But if one build fails and the next passes .. the difference appears totally wrong -> Also it gives the wrong branches and wrong files in some cases .. do you have any idea about this ?
robinshen ADMIN ·
Can you please let me know detail steps reproducing this issue? I can then check at my side what might be wrong.
vart ·
Actually in order to reproduce the issue there are several things we have seen:

1. If we have a failed build let's say it does not show any changes in the SCM changes in the submitted by changelist option then following that build some of the passing builds also does not show any changes and the SCM Information is blank

2. random builds not showing SCM information..

can you please take a look and let me know whats the issue ..
robinshen ADMIN ·
For the build not retrieving SCM changes as expected, please do the following:
1. Turn on debug logging of quickbuild by editing file "conf/log4j.properties" on QB server.
2. Switch to "SCM changes" tab and input version of previous build in "view changes since" field at right side of the screen.
3. Press "enter", and check if the changes can be displayed.
4. If changes can not be displayed, please send me below files:
a. backup of your configuration
b. configuration and build in question
c. server log at "logs" directory.
vart ·
Hi Robin,

So i turned the debug mode on by editing the conf/log4j file and I tried this :
1. Used a changelist x in build version 1.0.79
2. Used a changelist y in build version 1.0.80 which is equivalent to x+21.

Now if i go ahead and hit SCM Changes and do "view changes since" 1.0.79 it does not display anything ..

It should show the changes right between the two changelists used in the builds with build versions 1.0.79 and 1.0.80 .. But it does not display anything ..

Any ideas why ?
steveluo ADMIN ·
Hi vart,

Please refresh your page after setting "view changes since" field to 1.0.79, because we just found this is our bug and I have created the bug below:
http://track.pmease.com/browse/QB-2106
vart ·
Hi,

I tried refreshing the page -> I still don't see anything even after I hit refresh ...

Don't know what is wrong..
robinshen ADMIN ·
[quote="vart"]Hi Robin,

So i turned the debug mode on by editing the conf/log4j file and I tried this :
1. Used a changelist x in build version 1.0.79
2. Used a changelist y in build version 1.0.80 which is equivalent to x+21.

Now if i go ahead and hit SCM Changes and do "view changes since" 1.0.79 it does not display anything ..

It should show the changes right between the two changelists used in the builds with build versions 1.0.79 and 1.0.80 .. But it does not display anything ..

Any ideas why ?[/quote]

Can you please send me [robin AT pmease DOT com] your database backup and let me know the configuration to check?
vart ·
hi Robin,

I tried sending you my database backup but looks like its too huge for me to send it over email .. Is there any other place where i can upload and share the backup with you as I am unable to send it via email..
robinshen ADMIN ·
I have sent you an email with the ftp server and account.
vart ·
Hi Robin,

Can you please send that ftp information to :

vartika.paul@intel.com
robinshen ADMIN ·
Sent to this email address now.
vart ·
hi ok..

Looks like there are some restrictions to share the backup with the vendors whose third party tools we use.. Is there something else that we can try ?
robinshen ADMIN ·
Will it work if you reproduce this issue in a demo database without any of your product information, and then send that demo database backup to me? If this is not an option, please describe steps in detail here on how to reproduce the issue.
vart ·
i took a backup of a local qb instance that i had set up on my machine that also has the same problem .. I have sent the backup to your email address .. can you please take a look
vart ·
Hi Robin,

Can you please send me that FTP Information again so that I can send you the database backup again so that we can explore and resolve this issue and look into it once again ?
vart ·
hi Robin,

I got the FTP information from one of our last conversation. But everytime I try FTPing to your site it complaints about unknown host .Do you know why ?