<< Back to previous view

[QB-3205] [User Agent Issue][Git] If the file name changes, Git proof build has been failed on cloning repository checkout step.
Created: 29/May/18  Updated: 12/Jun/18

Status: Resolved
Project: QuickBuild
Component/s: None
Affects Version/s: 7.0.30
Fix Version/s: 8.0.8

Type: Bug Priority: Major
Reporter: Yoongeon Lee Assigned To: Robin Shen
Resolution: Fixed Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown
Environment: Windows 10 Enterprise

File Attachments: Zip Archive buildagent.zip     PNG File Config_Buildagent.png     PNG File Config_Useragent.png     PNG File Configuration-Failed Build Step.png     PNG File Failed Build Step.png     PNG File GIT-Repository_1.png     PNG File GIT-Repository_2_Proof.png     File LOG_BuildAgent.7z     PNG File Proof Build Option.png     Text File QBuild_Failed_Log.txt     File Screenshots_BuildAgent.7z     Zip Archive useragent.zip    

 Description   
We have been using the GIT repository in Quick Build.
We encourage all developers to merge their code into a remote repository through a proof build.
But if the file name is changed on the PC where the user agent is running, the proof build has been failed at the repository>checkout step.
This is a big issue for us. Here is the step to reproduce this issue:

1. Check if user agent is running properly on your PC
2. Go to the path where the local repository(your project path) is located ( ex. E:\_GitHub\3d-sprint )
3. Change file name
4. Check your repository status with the command "git status"
4. Add and commit your change
5. Check your repository history with the command "git log"
6. Run proof build with your commit ID
7. Proof build fails on the "repository>checkout" step
8. Please see the log file attached.

If the file name is changed, it seems that the wrong command is executed.
I changed the file name from deletedocumentoperation to closedocumentoperation.h.
In this case, I doubt following command which is executed on user agent pc:
- git ls-tree 34911c9d8230f690ea4e462386e7694ffbcf9802 "private/printframework/include/printoperation/deletedocumentoperation.h private/printframework/include/printoperation/closedocumentoperation.h"

For more information, this part log is where the error occurs. you can see the full log attached.
08:29:19,784 DEBUG - Executing command: git ls-tree 34911c9d8230f690ea4e462386e7694ffbcf9802 private/printframework/include/printinteraction/command/printcommandhelper.h
08:29:19,784 DEBUG - Command working directory: E:\_GitHub\3d-sprint
08:29:19,823 DEBUG - Reading content of path: private/printframework/include/printinteraction/command/printcommandhelper.h
08:29:19,823 DEBUG - Executing command: git show 34911c9d8230f690ea4e462386e7694ffbcf9802:private/printframework/include/printinteraction/command/printcommandhelper.h
08:29:19,823 DEBUG - Command working directory: E:\_GitHub\3d-sprint
08:29:19,865 DEBUG - Executing command: git ls-tree 34911c9d8230f690ea4e462386e7694ffbcf9802 "private/printframework/include/printoperation/deletedocumentoperation.h private/printframework/include/printoperation/closedocumentoperation.h"
08:29:19,865 DEBUG - Command working directory: E:\_GitHub\3d-sprint
08:29:17,144 INFO - Executing post-execute action...
08:29:17,144 ERROR - Step 'master>Proof>3D Sprint>Clone a Repository Into Build Server' is failed: Unable to create directory: C:\QBuildAgent\temp\local_change\store\private\printframework\include\printoperation\deletedocumentoperation.h private\printframework\include\printoperation

 Comments   
Comment by Robin Shen [ 30/May/18 12:25 AM ]
This turns out to be a QB bug, will be fixed in next patch release together with other bugs.
Comment by Yoongeon Lee [ 30/May/18 04:09 PM ]
Hi, Robin
Could you tell me the schedule of next patch release? This issue will be a big issue for us. Thanks
Comment by Robin Shen [ 31/May/18 01:41 AM ]
Fixed now in 8.0.8:
https://build.pmease.com/build/4514/overview
Comment by Yoongeon Lee [ 31/May/18 08:10 AM ]
Thanks, Robin
I have some more request for checking if new version works properly in our environment.
1) Could you please separate the new version like build agent and user agent that I attached?
2) Do I need additional program to run the new version?
Comment by Robin Shen [ 31/May/18 11:42 PM ]
QB does not maintain separate versions for buildagent and useragent, and they always sync with QB server. This makes it possible to upgrade/downgrade user agent/build agent automatically when server upgrades/downgrades, without the risk of incompatibilities between server and agents.

To test the new version, you just need to install the new server, and either add new agents, or connect existing agents to it.
Comment by Yoongeon Lee [ 01/Jun/18 06:20 AM ]
Thanks, Robin. I fully understand. I need to talk with our qbuild admin about it. I'll let you know the result.
Comment by Yoongeon Lee [ 10/Jun/18 08:39 AM ]
Hi, Robin

We have been using Windows 8 to run build agent program. Our release build has been failed on build agent PC after we install fixed version 8.0.8 on server.

Here are main error messages: ( please see screenshots and log attached )
- ERROR - Unable to find job af735594-7cfc-4215-bc6a-32a28db4ad7b on node ' KOR-BUILD01:8811' (Job is ever started: true).
- Could not send response error 500: javax.servlet.ServletException javax.servlet.ServletException org.eclipse.jetty.io.EofException


Do we have to update the OS to use the fixed version correctly? Please check it. thanks.
Comment by Robin Shen [ 10/Jun/18 10:46 PM ]
For some reason, the node "KOR-BUILD01:8811" can not connect to "p10-qbuild01.3dsystems.internal:1080" , please run below command from KOR-BUILD01 to see if it succeeds:
telnet p10-qbuild01.3dsystems.internal 1080
Comment by Yoongeon Lee [ 12/Jun/18 09:08 AM ]
Hi, Robin

I upgraded to the latest Java and solved them. Also, I checked this issue was fixed properly on fixed version. Thanks for all your help.
Generated at Thu May 02 13:02:20 UTC 2024 using JIRA 189.