Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
18 kB
2
Indexable
Never
❯ cd Documents/odoo_dev/customaddons/hardware_info_systems/Odoo/customaddons
❯ ls
as_built_assembly_update             stock_inventory_lockdown
as_built_fleet_report_kanban_base    stock_inventory_verification_request
as_built_report_base                 stock_no_negative
backend_iframe                       supplier_certification
base_user_role                       web_environment_ribbon
bi_import_sale_purchase              zip_aras_viewer
bi_mo_serial_no                      zip_bom_effectivity
clear_to_build_report                zip_bom_extension
dynamic_barcode_labels               zip_characteristics_update
edit_lot_mrp_base                    zip_common_utils
extended_stock_ledger_report         zip_contacts
fleet_kanban_services_base           zip_debug_permission
fleet_kanban_services_zipline        zip_equipment
fleet_traceability_base              zip_import_sale
fleet_traceability_zipline           zip_maintenance
hierarchical_warehouse_location      zip_mo_prod_sn
import_order_lines                   zip_mrp
kanban_for_manufacturing             zip_mrp_planning
kanban_for_manufacturing_zipline     zip_order_schedule
kanban_scan                          zip_product
ks_dashboard_ninja                   zip_project
ks_dn_advance                        zip_purchase_order
license_plates                       zip_purchase_order_line
manufacturing_traceability_base      zip_purchase_order_report
many2one_tree_clickable              zip_quality
mrp_batch_operation                  zip_stock
mrp_product_prognosis                zip_stock_cycle_count
mrp_production_draft                 zip_stock_putaway
multi_search_with_comma              zip_unittest
partial_serialization_base           zip_users
purchase_stock_receipts              zip_website
serial_lot_status_base               zip_zqap
serial_lot_status_zipline            zipline_configuration
stock_cycle_count                    zipline_configuration_enterprise
stock_inventory_discrepancy          zipline_material_consumption
stock_inventory_exclude_sublocation  zipline_transportation_management
❯ docker run --rm --network host -v ${PWD}:/opt/odoo/customaddons novobizipline/sonar-scanner test_new_cl
Pylint is running...
Pylint is done...
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarScanner 4.7.0.2747
INFO: Java 11.0.14.1 Eclipse Adoptium (64-bit)
INFO: Linux 5.10.76-linuxkit amd64
INFO: User cache: /opt/sonar-scanner/.sonar/cache
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: Analyzing on SonarQube server 9.3.0
INFO: Default locale: "en_US", source code encoding: "UTF-8" (analysis is platform dependent)
INFO: Load global settings
INFO: Load global settings (done) | time=410ms
INFO: Server id: 303924D4-AX9qnYzxBYv9qw7fnJKa
INFO: User cache: /opt/sonar-scanner/.sonar/cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=317ms
INFO: Load/download plugins (done) | time=5413ms
INFO: Process project properties
INFO: Process project properties (done) | time=1ms
INFO: Execute project builders
INFO: Execute project builders (done) | time=4ms
INFO: Project key: test_new_cl
INFO: Base dir: /opt/odoo/customaddons
INFO: Working dir: /opt/odoo/customaddons/.scannerwork
INFO: Load project settings for component key: 'test_new_cl'
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=581ms
INFO: Load active rules
INFO: Load active rules (done) | time=3830ms
WARN: SCM provider autodetection failed. Please use "sonar.scm.provider" to define SCM of your project, or disable the SCM Sensor in the project settings.
INFO: Indexing files...
INFO: Project configuration:
INFO: 2437 files indexed
INFO: Quality profile for css: Ignored
INFO: Quality profile for js: Ignored
INFO: Quality profile for py: Zipline way
INFO: Quality profile for web: Ignored
INFO: Quality profile for xml: Ignored
INFO: ------------- Run sensors on module test_new_cl
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=255ms
INFO: Sensor Import external issues report
INFO: Load project repositories
INFO: Load project repositories (done) | time=245ms
INFO: Imported 3201 issues in 603 files
INFO: Sensor Import external issues report (done) | time=15227ms
INFO: Sensor Python Sensor [python]
WARN: Your code is analyzed as compatible with python 2 and 3 by default. This will prevent the detection of issues specific to python 2 or python 3. You can get a more precise analysis by setting a python version in your configuration via the parameter "sonar.python.version"
INFO: Starting global symbols computation
INFO: 750 source files to be analyzed
INFO: 369/750 files analyzed, current file: zip_import_sale/sale.py
INFO: 750/750 source files have been analyzed
INFO: Starting rules execution
INFO: 750 source files to be analyzed
INFO: 91/750 files analyzed, current file: stock_inventory_exclude_sublocation/__manifest__.py
INFO: 188/750 files analyzed, current file: zip_order_schedule/tests/__init__.py
INFO: 323/750 files analyzed, current file: fleet_kanban_services_zipline/models/fleet_vehicle_cost.py
INFO: 442/750 files analyzed, current file: zipline_transportation_management/models/shipment.py
INFO: 533/750 files analyzed, current file: zip_purchase_order/models/stock_picking.py
WARN: Unable to analyze file: zip_purchase_order/models/stock_picking.py
java.lang.IllegalArgumentException: Unable to register token in file zip_purchase_order/models/stock_picking.py
	at org.sonar.api.batch.sensor.cpd.internal.DefaultCpdTokens.addToken(DefaultCpdTokens.java:69)
	at org.sonar.plugins.python.cpd.PythonCpdAnalyzer.pushCpdTokens(PythonCpdAnalyzer.java:57)
	at org.sonar.plugins.python.PythonScanner.saveMeasures(PythonScanner.java:209)
	at org.sonar.plugins.python.PythonScanner.scanFile(PythonScanner.java:99)
	at org.sonar.plugins.python.Scanner.execute(Scanner.java:52)
	at org.sonar.plugins.python.PythonSensor.execute(PythonSensor.java:126)
	at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:64)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:85)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$1(ModuleSensorsExecutor.java:59)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:77)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:59)
	at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:79)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
	at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:384)
	at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:380)
	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:349)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:136)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
	at com.sun.proxy.$Proxy0.execute(Unknown Source)
	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
	at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
	at org.sonarsource.scanner.cli.Main.execute(Main.java:112)
	at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
	at org.sonarsource.scanner.cli.Main.main(Main.java:61)
Caused by: java.lang.IllegalArgumentException: 48 is not a valid line offset for pointer. File zip_purchase_order/models/stock_picking.py has 39 character(s) at line 88
	at org.sonar.api.utils.Preconditions.checkArgument(Preconditions.java:43)
	at org.sonar.api.batch.fs.internal.DefaultInputFile.checkValid(DefaultInputFile.java:339)
	at org.sonar.api.batch.fs.internal.DefaultInputFile.newPointer(DefaultInputFile.java:272)
	at org.sonar.api.batch.fs.internal.DefaultInputFile.newRange(DefaultInputFile.java:288)
	at org.sonar.api.batch.sensor.cpd.internal.DefaultCpdTokens.addToken(DefaultCpdTokens.java:67)
	... 35 common frames omitted

INFO: 626/750 files analyzed, current file: license_plates/models/stock_quant_package.py
INFO: 734/750 files analyzed, current file: zip_characteristics_update/__manifest__.py
INFO: 750/750 source files have been analyzed
INFO: Sensor Python Sensor [python] (done) | time=88911ms
INFO: Sensor Cobertura Sensor for Python coverage [python]
WARN: No report was found for sonar.python.coverage.reportPaths using pattern /opt/odoo/customaddons/coverage.xml
INFO: Sensor Cobertura Sensor for Python coverage [python] (done) | time=8162ms
INFO: Sensor PythonXUnitSensor [python]
INFO: Sensor PythonXUnitSensor [python] (done) | time=922ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=14ms
INFO: Sensor JavaScript analysis [javascript]
INFO: 55 source files to be analyzed
INFO: 6/55 files analyzed, current file: /opt/odoo/customaddons/ks_dashboard_ninja/static/lib/js/spectrum.js
INFO: 7/55 files analyzed, current file: /opt/odoo/customaddons/fleet_kanban_services_zipline/static/src/js/calendar_popover.js
INFO: 18/55 files analyzed, current file: /opt/odoo/customaddons/manufacturing_traceability_base/static/src/js/mrp_workorder.js
INFO: 38/55 files analyzed, current file: /opt/odoo/customaddons/kanban_scan/static/src/js/kanban_reordering.js
INFO: 42/55 files analyzed, current file: /opt/odoo/customaddons/ks_dashboard_ninja/static/src/js/ks_dashboard_ninja.js
INFO: 44/55 files analyzed, current file: /opt/odoo/customaddons/ks_dashboard_ninja/static/src/js/ks_domain_fix.js
INFO: 55/55 source files have been analyzed
INFO: Sensor JavaScript analysis [javascript] (done) | time=227740ms
INFO: Sensor TypeScript analysis [javascript]
INFO: No input files found for analysis
INFO: Sensor TypeScript analysis [javascript] (done) | time=6ms
INFO: Sensor CSS Metrics [javascript]
INFO: Sensor CSS Metrics [javascript] (done) | time=1260ms
INFO: Sensor C# Project Type Information [csharp]
INFO: Sensor C# Project Type Information [csharp] (done) | time=4ms
INFO: Sensor C# Analysis Log [csharp]
INFO: Sensor C# Analysis Log [csharp] (done) | time=49ms
INFO: Sensor C# Properties [csharp]
INFO: Sensor C# Properties [csharp] (done) | time=0ms
INFO: Sensor HTML [web]
INFO: Sensor HTML [web] (done) | time=1783ms
INFO: Sensor XML Sensor [xml]
INFO: 512 source files to be analyzed
WARN: Unable to analyse file file:///opt/odoo/customaddons/zip_purchase_order_report/views/purhase_report.xml;
WARN: Unable to analyse file file:///opt/odoo/customaddons/zip_stock/views/mrp_production.xml;
WARN: Unable to analyse file file:///opt/odoo/customaddons/zip_stock/views/stock_picking_views.xml;
INFO: 321/512 files analyzed, current file: fleet_kanban_services_base/static/src/xml/repair_order.xml
WARN: Unable to analyse file file:///opt/odoo/customaddons/zip_users/views/zip_team_view.xml;
INFO: 512/512 source files have been analyzed
INFO: Sensor XML Sensor [xml] (done) | time=15002ms
INFO: Sensor Text Sensor [text]
INFO: 1364 source files to be analyzed
INFO: 1364/1364 source files have been analyzed
INFO: Sensor Text Sensor [text] (done) | time=5347ms
INFO: Sensor VB.NET Project Type Information [vbnet]
INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=5ms
INFO: Sensor VB.NET Analysis Log [vbnet]
INFO: Sensor VB.NET Analysis Log [vbnet] (done) | time=42ms
INFO: Sensor VB.NET Properties [vbnet]
INFO: Sensor VB.NET Properties [vbnet] (done) | time=1ms
INFO: ------------- Run sensors on project
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=7537ms
INFO: SCM Publisher No SCM system was detected. You can use the 'sonar.scm.provider' property to explicitly specify it.
INFO: CPD Executor 265 files had no CPD blocks
INFO: CPD Executor Calculating CPD for 558 files
INFO: CPD Executor CPD calculation finished (done) | time=2458ms
INFO: Analysis report generated in 16359ms, dir size=10.9 MB
INFO: Analysis report compressed in 1374160ms, zip size=4.6 MB
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 32:34.379s
INFO: Final Memory: 41M/147M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: Failed to upload report: Fail to request url: http://127.0.0.1:9000/api/ce/submit?projectKey=test_new_cl
	at org.sonar.scanner.report.ReportPublisher.upload(ReportPublisher.java:207)
	at org.sonar.scanner.report.ReportPublisher.execute(ReportPublisher.java:142)
	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:357)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:136)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
	at com.sun.proxy.$Proxy0.execute(Unknown Source)
	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
	at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
	at org.sonarsource.scanner.cli.Main.execute(Main.java:112)
	at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
	at org.sonarsource.scanner.cli.Main.main(Main.java:61)
Caused by: java.lang.IllegalStateException: Fail to request url: http://127.0.0.1:9000/api/ce/submit?projectKey=test_new_cl
	at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:205)
	at org.sonarqube.ws.client.HttpConnector.post(HttpConnector.java:155)
	at org.sonarqube.ws.client.HttpConnector.call(HttpConnector.java:114)
	at org.sonar.scanner.bootstrap.DefaultScannerWsClient.call(DefaultScannerWsClient.java:73)
	at org.sonar.scanner.report.ReportPublisher.upload(ReportPublisher.java:205)
	... 21 more
Caused by: java.net.ConnectException: Failed to connect to /127.0.0.1:9000
	at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:297)
	at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:207)
	at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226)
	at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
	at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
	at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
	at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
	at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
	at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:203)
	... 25 more
Caused by: java.net.ConnectException: Connection refused (Connection refused)
	at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.base/java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
	at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
	at java.base/java.net.AbstractPlainSocketImpl.connect(Unknown Source)
	at java.base/java.net.SocksSocketImpl.connect(Unknown Source)
	at java.base/java.net.Socket.connect(Unknown Source)
	at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:128)
	at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:295)
	... 41 more
ERROR: 
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.