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

Key: QB-2445
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Unassigned
Reporter: Alexey Shumkin
Votes: 0
Watchers: 0

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

Git proof build fails if submodules are in a changeset

Created: 18/May/15 04:06 PM   Updated: 19/May/15 11:16 AM
Component/s: None
Affects Version/s: 5.1.43
Fix Version/s: 6.0.17

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
System Date and Time 2015-05-18 19:01:45
Operating System Linux 3.13.0-32-generic, amd64
JVM OpenJDK 64-Bit Server VM 1.7.0_65, Oracle Corporation
QuickBuild Version 5.1.43 - Sat Jan 17 05:04:39 MSK 2015
OS User Name quickbuild

 Description  « Hide
If Git submodule changed (modified or added; but not deleted) then proof build fails
Here is log cut of a failure cause
18:59:54,761 INFO - commit f300e364eef97998ca73cec69a3b2da0a777c50e
18:59:54,761 INFO - tree dd743ebcf0e518405011e02c6767abbe36f60ff4
18:59:54,761 INFO - parent dba7c927af47b9e4fd1d7b634d511a109fd771a6
18:59:54,761 INFO - author ...
18:59:54,761 INFO - committer ...
18:59:54,761 INFO - encoding Windows-1251
18:59:54,761 INFO -
18:59:54,761 INFO - test proofbuild submodule change
18:59:54,761 INFO -
18:59:54,761 INFO - M lib/gems/rake-delphi
18:59:54,765 DEBUG - Reading content of path: lib/gems/rake-delphi
18:59:54,765 DEBUG - Executing command: git show f300e364eef97998ca73cec69a3b2da0a777c50e:lib/gems/rake-delphi
18:59:54,765 DEBUG - Command working directory: ...
18:59:54,784 ERROR - fatal: bad object f300e364eef97998ca73cec69a3b2da0a777c50e:lib/gems/rake-delphi
18:59:55,911 INFO - Executing post-execute action...
18:59:55,911 ERROR - Step 'master>checkout repo>checkout Git' is failed: Failed to run command: git show f300e364eef97998ca73cec69a3b2da0a777c50e:lib/gems/rake-delphi
Command return code: 128
Command error output: fatal: bad object f300e364eef97998ca73cec69a3b2da0a777c50e:lib/gems/rake-delphi

 All   Comments   Work Log   Change History      Sort Order:
Alexey Shumkin [18/May/15 08:45 PM]
"lib/gems/rake" in the log cut above is a submodule

Alexey Shumkin [18/May/15 08:50 PM]
Upgraged to the latest 6.0.15.
The issue is observed.

Alexey Shumkin [19/May/15 11:16 AM]
I confirm fix of a reported issue

But there is a related issue (I guess, I can report it here):
After a successful proof build on a "Local Change" tab one can view listed changeset of this proof build including changed submodule files.
If to click on a changed repository file, one can see it's differences.
But an error occures if to click on modified (not added or deleted) submodule files:

Error Detail
Message: Failed to run command: git show dba7c927af47b9e4fd1d7b634d511a109fd771a6:lib/gems/rake-delphi/lib/rake/delphi/dcc32.rb
Command return code: 128
Command error output: fatal: Path 'lib/gems/rake-delphi/lib/rake/delphi/dcc32.rb' exists on disk, but not in 'dba7c927af47b9e4fd1d7b634d511a109fd771a6'.

Root cause:

com.pmease.quickbuild.QuickbuildException: Failed to run command: git show dba7c927af47b9e4fd1d7b634d511a109fd771a6:lib/gems/rake-delphi/lib/rake/delphi/dcc32.rb
Command return code: 128
Command error output: fatal: Path 'lib/gems/rake-delphi/lib/rake/delphi/dcc32.rb' exists on disk, but not in 'dba7c927af47b9e4fd1d7b634d511a109fd771a6'.
at com.pmease.quickbuild.execution.Commandline$ExecuteResult.buildException(Commandline.java:485)
at com.pmease.quickbuild.execution.Commandline$ExecuteResult.checkReturnCode(Commandline.java:500)
at com.pmease.quickbuild.plugin.scm.helper.ScmCli.run(ScmCli.java:90)
at com.pmease.quickbuild.plugin.scm.helper.ScmCli.run(ScmCli.java:79)
at com.pmease.quickbuild.plugin.scm.helper.ScmCli.run(ScmCli.java:71)
at com.pmease.quickbuild.plugin.scm.git.GitCli.show(GitCli.java:377)
at com.pmease.quickbuild.plugin.scm.git.GitSourceViewSupport.readSourceByRevision(GitSourceViewSupport.java:57)
at com.pmease.quickbuild.plugin.scm.git.GitSourceViewSupport.readSourceByRevision(GitSourceViewSupport.java:19)
at com.pmease.quickbuild.repositorysupport.WorkingDirLocator$SourceViewJob.execute(WorkingDirLocator.java:73)
at com.pmease.quickbuild.grid.NodeJobExecuteJob.execute(NodeJobExecuteJob.java:25)
at com.pmease.quickbuild.grid.GridJob.run(GridJob.java:106)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecuto