This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 232195 - RemotePkgConfigTestCase.testPkgConfig and other tests failed
Summary: RemotePkgConfigTestCase.testPkgConfig and other tests failed
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-03 10:53 UTC by Vladimir Kvashin
Modified: 2013-07-26 02:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2013-07-03 10:53:48 UTC
Since cnd build 9981 on enum, RemotePkgConfigTestCase.testPkgConfig fails.
Comment 1 Vladimir Kvashin 2013-07-03 10:55:29 UTC
Log contains the following:

Copying project files to /export/home/tester1/.netbeans/remote/everest/enum-SunOS-x86_64-hudson3/ at tester1@host
[configure (Run) - tester1@host]  configure: error: cannot find sources (pkg-config.1) in . or ..
Comment 2 Vladimir Kvashin 2013-07-22 16:29:23 UTC
There is a race

Thead (1) reacts on "project open" event; 
in postConfigure() method, it tries to launch configure script,
remote-related code gathers project items:

"org.netbeans.modules.cnd.discovery.projectimport.ImportProject"
org.netbeans.modules.cnd.remote.support.RemoteProjectSupport.addExtraFiles(RemoteProjectSupport.java:208)
org.netbeans.modules.cnd.remote.support.RemoteProjectSupport.getProjectSourceDirs(RemoteProjectSupport.java:175)
org.netbeans.modules.cnd.remote.support.RemoteProjectSupport.getProjectSourceDirs(RemoteProjectSupport.java:124)
org.netbeans.modules.cnd.remote.sync.BaseSyncFactory.createNew(BaseSyncFactory.java:70)
org.netbeans.modules.cnd.api.remote.RemoteSyncSupport.createSyncWorker(RemoteSyncSupport.java:72)
org.netbeans.modules.cnd.actions.ShellRunAction.prepare(ShellRunAction.java:220)
org.netbeans.modules.cnd.actions.ShellRunAction.performAction(ShellRunAction.java:137)
org.netbeans.modules.cnd.discovery.projectimport.ImportProject.postConfigure(ImportProject.java:621)
org.netbeans.modules.cnd.discovery.projectimport.ImportProject.doWork(ImportProject.java:452)
org.netbeans.modules.cnd.discovery.projectimport.ImportProject.access$100(ImportProject.java:151)
org.netbeans.modules.cnd.discovery.projectimport.ImportProject$3.run(ImportProject.java:401)
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)


At the same time thread (2) is adding files to the project:

"org.netbeans.modules.cnd.discovery.projectimport.ImportProject"
org.netbeans.modules.cnd.makeproject.api.configurations.MakeConfigurationDescriptor.addProjectItem(MakeConfigurationDescriptor.java:671)
org.netbeans.modules.cnd.makeproject.api.configurations.Folder.addItemImpl(Folder.java:760)
org.netbeans.modules.cnd.makeproject.api.configurations.Folder.addItemFromRefreshDir(Folder.java:727)
org.netbeans.modules.cnd.makeproject.api.configurations.MakeConfigurationDescriptor.addFilesImpl(MakeConfigurationDescriptor.java:2014)
org.netbeans.modules.cnd.makeproject.api.configurations.MakeConfigurationDescriptor.addFilesFromRoot(MakeConfigurationDescriptor.java:1876)
org.netbeans.modules.cnd.discovery.projectimport.ImportProject$4.run(ImportProject.java:440)
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)


So, unsurprisingly, the 1-st thread (the one that lauches configure) gets incomplete item list => configure can not find some files and fail
Comment 3 Vladimir Kvashin 2013-07-22 18:07:41 UTC
fixed in cnd-main:
http://hg.netbeans.org/cnd-main/rev/21cde6423d3d
Comment 4 Quality Engineering 2013-07-26 02:49:31 UTC
Integrated into 'main-silver', will be available in build *201307252300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/21cde6423d3d
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #232195 RemotePkgConfigTestCase.testPkgConfig test failed