Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test with final SQ6.4 #1157

Merged
merged 1 commit into from
Jun 21, 2017
Merged

test with final SQ6.4 #1157

merged 1 commit into from
Jun 21, 2017

Conversation

guwirth
Copy link
Collaborator

@guwirth guwirth commented Jun 8, 2017

remove deprecated DependencyAnalyzer

update POM

  • use parent version 40
  • use sonar-dotnet-tests-library 1.6

cpp-multimodule-project-2

  • cleanup sample
  • temporary exclude sample

This change is Reviewable

@guwirth guwirth added this to the 0.9.8 milestone Jun 8, 2017
@guwirth guwirth self-assigned this Jun 8, 2017
@guwirth
Copy link
Collaborator Author

guwirth commented Jun 8, 2017

Error:

Feature: cpp-multimodule-project

  Test multimodule project with reports at root of the project

  @SqApi56 @SqApi62
  Scenario: cpp-multimodule-project-2 
    Given the project "cpp-multimodule-project-2"
Given the project "cpp-multimodule-project-2"
    And platform is not "Windows"
And platform is not "Windows"
    When I run "sonar-scanner -X"
When I run "sonar-scanner -X"
    Then the analysis finishes successfully
Then the analysis finishes successfully
    And the analysis in server has completed
    Read Log : _cpp-multimodule-project-2_.log
     Get Analysis In Background : http://localhost:9000/api/ce/task?id=AVyGqdQdLYUUK8YxAoIM
     CURRENT STATUS : IN_PROGRESS
     CURRENT STATUS : IN_PROGRESS
     CURRENT STATUS : FAILED
     ...

@guwirth
Copy link
Collaborator Author

guwirth commented Jun 17, 2017

Server error:

org.sonar.server.computation.task.projectanalysis.component.VisitException: Visit failed for Component {key=cpp-multimodule-project-2:A:1:a,type=DIRECTORY}  located cpp-multimodule-project-2:A:1(type=MODULE)->cpp-multimodule-project-2:A(type=MODULE)->cpp-multimodule-project-2(type=PROJECT)
	at org.sonar.server.computation.task.projectanalysis.component.VisitException.rethrowOrWrap(VisitException.java:44)
	at org.sonar.server.computation.task.projectanalysis.component.PathAwareCrawler.visit(PathAwareCrawler.java:52)
	at org.sonar.server.computation.task.projectanalysis.component.PathAwareCrawler.visitChildren(PathAwareCrawler.java:87)
	at org.sonar.server.computation.task.projectanalysis.component.PathAwareCrawler.visitImpl(PathAwareCrawler.java:70)
	at org.sonar.server.computation.task.projectanalysis.component.PathAwareCrawler.visit(PathAwareCrawler.java:50)
	at org.sonar.server.computation.task.projectanalysis.component.PathAwareCrawler.visitChildren(PathAwareCrawler.java:87)
	at org.sonar.server.computation.task.projectanalysis.component.PathAwareCrawler.visitImpl(PathAwareCrawler.java:70)
	at org.sonar.server.computation.task.projectanalysis.component.PathAwareCrawler.visit(PathAwareCrawler.java:50)
	at org.sonar.server.computation.task.projectanalysis.component.PathAwareCrawler.visitChildren(PathAwareCrawler.java:87)
	at org.sonar.server.computation.task.projectanalysis.component.PathAwareCrawler.visitImpl(PathAwareCrawler.java:70)
	at org.sonar.server.computation.task.projectanalysis.component.PathAwareCrawler.visit(PathAwareCrawler.java:50)
	at org.sonar.server.computation.task.projectanalysis.step.PersistComponentsStep.execute(PersistComponentsStep.java:99)
	at org.sonar.server.computation.task.step.ComputationStepExecutor.executeSteps(ComputationStepExecutor.java:64)
	at org.sonar.server.computation.task.step.ComputationStepExecutor.execute(ComputationStepExecutor.java:52)
	at org.sonar.server.computation.task.projectanalysis.taskprocessor.ReportTaskProcessor.process(ReportTaskProcessor.java:75)
	at org.sonar.ce.taskprocessor.CeWorkerImpl.executeTask(CeWorkerImpl.java:92)
	at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:59)
	at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:35)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.ibatis.exceptions.PersistenceException: 
### Error updating database.  Cause: org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: "PROJECTS_KEE ON PUBLIC.PROJECTS(KEE) VALUES ( /* 9207 */ 'cpp-multimodule-project-2:A:1:a' )"; SQL statement:
INSERT INTO projects (
    organization_uuid,
    kee,
    deprecated_kee,
    uuid,
    uuid_path,
    project_uuid,
    module_uuid,
    module_uuid_path,
    name,
    long_name,
    qualifier,
    scope,
    language,
    description,
    private,
    tags,
    root_uuid,
    path,
    copy_component_uuid,
    developer_uuid,
    enabled,
    created_at,
    authorization_updated_at,
    b_changed,
    b_copy_component_uuid,
    b_description,
    b_enabled,
    b_language,
    b_long_name,
    b_module_uuid,
    b_module_uuid_path,
    b_name,
    b_path,
    b_qualifier
    )
    VALUES (
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    false,
    null,
    null,
    false,
    null,
    null,
    null,
    null,
    null,
    null,
    null
    ) [23505-176]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:344)
	at org.h2.message.DbException.get(DbException.java:178)
	at org.h2.message.DbException.get(DbException.java:154)
	at org.h2.index.BaseIndex.getDuplicateKeyException(BaseIndex.java:103)
	at org.h2.index.PageBtree.find(PageBtree.java:121)
	at org.h2.index.PageBtreeLeaf.addRow(PageBtreeLeaf.java:151)
	at org.h2.index.PageBtreeLeaf.addRowTry(PageBtreeLeaf.java:104)
	at org.h2.index.PageBtreeNode.addRowTry(PageBtreeNode.java:206)
	at org.h2.index.PageBtreeNode.addRowTry(PageBtreeNode.java:206)
	at org.h2.index.PageBtreeNode.addRowTry(PageBtreeNode.java:206)
	at org.h2.index.PageBtreeIndex.addRow(PageBtreeIndex.java:97)
	at org.h2.index.PageBtreeIndex.add(PageBtreeIndex.java:88)
	at org.h2.table.RegularTable.addRow(RegularTable.java:120)
	at org.h2.command.dml.Insert.insertRows(Insert.java:157)
	at org.h2.command.dml.Insert.update(Insert.java:115)
	at org.h2.command.CommandContainer.update(CommandContainer.java:79)
	at org.h2.command.Command.executeUpdate(Command.java:254)
	at org.h2.server.TcpServerThread.process(TcpServerThread.java:346)
	at org.h2.server.TcpServerThread.run(TcpServerThread.java:160)
	at java.lang.Thread.run(Unknown Source)

### The error may involve org.sonar.db.component.ComponentMapper.insert-Inline
### The error occurred while setting parameters
### Cause: org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: "PROJECTS_KEE ON PUBLIC.PROJECTS(KEE) VALUES ( /* 9207 */ 'cpp-multimodule-project-2:A:1:a' )"; SQL statement:
INSERT INTO projects (
    organization_uuid,
    kee,
    deprecated_kee,
    uuid,
    uuid_path,
    project_uuid,
    module_uuid,
    module_uuid_path,
    name,
    long_name,
    qualifier,
    scope,
    language,
    description,
    private,
    tags,
    root_uuid,
    path,
    copy_component_uuid,
    developer_uuid,
    enabled,
    created_at,
    authorization_updated_at,
    b_changed,
    b_copy_component_uuid,
    b_description,
    b_enabled,
    b_language,
    b_long_name,
    b_module_uuid,
    b_module_uuid_path,
    b_name,
    b_path,
    b_qualifier
    )
    VALUES (
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    false,
    null,
    null,
    false,
    null,
    null,
    null,
    null,
    null,
    null,
    null
    ) [23505-176]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:344)
	at org.h2.message.DbException.get(DbException.java:178)
	at org.h2.message.DbException.get(DbException.java:154)
	at org.h2.index.BaseIndex.getDuplicateKeyException(BaseIndex.java:103)
	at org.h2.index.PageBtree.find(PageBtree.java:121)
	at org.h2.index.PageBtreeLeaf.addRow(PageBtreeLeaf.java:151)
	at org.h2.index.PageBtreeLeaf.addRowTry(PageBtreeLeaf.java:104)
	at org.h2.index.PageBtreeNode.addRowTry(PageBtreeNode.java:206)
	at org.h2.index.PageBtreeNode.addRowTry(PageBtreeNode.java:206)
	at org.h2.index.PageBtreeNode.addRowTry(PageBtreeNode.java:206)
	at org.h2.index.PageBtreeIndex.addRow(PageBtreeIndex.java:97)
	at org.h2.index.PageBtreeIndex.add(PageBtreeIndex.java:88)
	at org.h2.table.RegularTable.addRow(RegularTable.java:120)
	at org.h2.command.dml.Insert.insertRows(Insert.java:157)
	at org.h2.command.dml.Insert.update(Insert.java:115)
	at org.h2.command.CommandContainer.update(CommandContainer.java:79)
	at org.h2.command.Command.executeUpdate(Command.java:254)
	at org.h2.server.TcpServerThread.process(TcpServerThread.java:346)
	at org.h2.server.TcpServerThread.run(TcpServerThread.java:160)
	at java.lang.Thread.run(Unknown Source)

	at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:26)
	at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:154)
	at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:141)
	at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:51)
	at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:52)
	at com.sun.proxy.$Proxy29.insert(Unknown Source)
	at org.sonar.db.component.ComponentDao.insert(ComponentDao.java:312)
	at org.sonar.server.computation.task.projectanalysis.step.PersistComponentsStep$PersistComponentStepsVisitor.persistComponent(PersistComponentsStep.java:225)
	at org.sonar.server.computation.task.projectanalysis.step.PersistComponentsStep$PersistComponentStepsVisitor.persistAndPopulateCache(PersistComponentsStep.java:217)
	at org.sonar.server.computation.task.projectanalysis.step.PersistComponentsStep$PersistComponentStepsVisitor.visitDirectory(PersistComponentsStep.java:189)
	at org.sonar.server.computation.task.projectanalysis.component.PathAwareCrawler.visitNode(PathAwareCrawler.java:102)
	at org.sonar.server.computation.task.projectanalysis.component.PathAwareCrawler.visitImpl(PathAwareCrawler.java:67)
	at org.sonar.server.computation.task.projectanalysis.component.PathAwareCrawler.visit(PathAwareCrawler.java:50)
	... 24 more
Caused by: org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: "PROJECTS_KEE ON PUBLIC.PROJECTS(KEE) VALUES ( /* 9207 */ 'cpp-multimodule-project-2:A:1:a' )"; SQL statement:
INSERT INTO projects (
    organization_uuid,
    kee,
    deprecated_kee,
    uuid,
    uuid_path,
    project_uuid,
    module_uuid,
    module_uuid_path,
    name,
    long_name,
    qualifier,
    scope,
    language,
    description,
    private,
    tags,
    root_uuid,
    path,
    copy_component_uuid,
    developer_uuid,
    enabled,
    created_at,
    authorization_updated_at,
    b_changed,
    b_copy_component_uuid,
    b_description,
    b_enabled,
    b_language,
    b_long_name,
    b_module_uuid,
    b_module_uuid_path,
    b_name,
    b_path,
    b_qualifier
    )
    VALUES (
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    ?,
    false,
    null,
    null,
    false,
    null,
    null,
    null,
    null,
    null,
    null,
    null
    ) [23505-176]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:344)
	at org.h2.message.DbException.get(DbException.java:178)
	at org.h2.message.DbException.get(DbException.java:154)
	at org.h2.index.BaseIndex.getDuplicateKeyException(BaseIndex.java:103)
	at org.h2.index.PageBtree.find(PageBtree.java:121)
	at org.h2.index.PageBtreeLeaf.addRow(PageBtreeLeaf.java:151)
	at org.h2.index.PageBtreeLeaf.addRowTry(PageBtreeLeaf.java:104)
	at org.h2.index.PageBtreeNode.addRowTry(PageBtreeNode.java:206)
	at org.h2.index.PageBtreeNode.addRowTry(PageBtreeNode.java:206)
	at org.h2.index.PageBtreeNode.addRowTry(PageBtreeNode.java:206)
	at org.h2.index.PageBtreeIndex.addRow(PageBtreeIndex.java:97)
	at org.h2.index.PageBtreeIndex.add(PageBtreeIndex.java:88)
	at org.h2.table.RegularTable.addRow(RegularTable.java:120)
	at org.h2.command.dml.Insert.insertRows(Insert.java:157)
	at org.h2.command.dml.Insert.update(Insert.java:115)
	at org.h2.command.CommandContainer.update(CommandContainer.java:79)
	at org.h2.command.Command.executeUpdate(Command.java:254)
	at org.h2.server.TcpServerThread.process(TcpServerThread.java:346)
	at org.h2.server.TcpServerThread.run(TcpServerThread.java:160)
	at java.lang.Thread.run(Unknown Source)

	at org.h2.engine.SessionRemote.done(SessionRemote.java:606)
	at org.h2.command.CommandRemote.executeUpdate(CommandRemote.java:192)
	at org.h2.jdbc.JdbcPreparedStatement.execute(JdbcPreparedStatement.java:199)
	at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)
	at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)
	at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:44)
	at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:69)
	at org.apache.ibatis.executor.ReuseExecutor.doUpdate(ReuseExecutor.java:50)
	at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:105)
	at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:71)
	at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:152)
	... 35 more

remove deprecated DependencyAnalyzer
- remove DuplicatedInclude check
- remove CycleBetweenPackages check

update POM
- use parent version 40
- use sonar-dotnet-tests-library 1.6

cpp-multimodule-project-2
- cleanup sample
- temporary exclude sample
@guwirth
Copy link
Collaborator Author

guwirth commented Jun 21, 2017

@ALL I merge this to be able to use plugin with SQ6.4. Leftover is no more working integration test cpp-multimodule-project-2. I create an issue for it.

@guwirth guwirth merged commit acfacd9 into SonarOpenCommunity:master Jun 21, 2017
@guwirth guwirth deleted the sq6.4-test branch October 3, 2017 13:53
@guwirth guwirth mentioned this pull request Oct 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Enable SQ6.4 for Travis SQ6.4: java.lang.NoClassDefFoundError: org/sonar/graph/DirectedGraphAccessor
1 participant