apache / jena

Apache Jena
https://jena.apache.org/
Apache License 2.0
1.1k stars 647 forks source link

Cleaning the build of unnecessary log messages #2341

Open afs opened 6 months ago

afs commented 6 months ago

It is helpful if the build has no warnings and errors as far as possible so that any new ones that appear are more likely to be noticed. Some probably can't be addressed - e.g. shading warnings of overlaps.

The build currently (5.0.0) has some warnings and logging in tests - LogCtl.withLevel runs a Runnable at difefrent logging level for just the Runnable. Examples of use in the test areas.

jena-arq:
[INFO] [INFO] Running org.apache.jena.query.TestQueryCloningEssentials
[ERROR] 16:14:05 WARN  NodeValue  :: Datatype format exception: "2"^^xsd:negativeInteger
[ERROR] 16:14:05 WARN  NodeValue  :: Datatype format exception: "2"^^xsd:negativeInteger
jena-text:
[INFO] [INFO] Running org.apache.jena.query.text.TestTextMultipleProplistNotWorking
[ERROR] 16:15:41 WARN  TextIndexLuceneAssembler :: Multilingual support implicitly enabled by text:defineAnalyzers
[ERROR] 16:15:41 WARN  TextIndexLuceneAssembler :: Multilingual support implicitly enabled by text:defineAnalyzers
jena-geosparql:
[INFO] [INFO] Running org.apache.jena.geosparql.geo.topological.GenericPropertyFunctionTest
[ERROR] 16:16:57 WARN  SpatialIndex :: Lat/Lon Geo predicates also found but will not be added to index.

[INFO] [INFO] Running org.apache.jena.geosparql.configuration.GeoSPARQLOperationsTest
[ERROR] 16:16:57 WARN  GeoSPARQLOperations :: Output datatype null is not a recognised for Geometry Literal. Defaulting to http://www.opengis.net/ont/geosparql#wktLiteral.
[ERROR] 16:16:57 WARN  GeoSPARQLOperations :: Output datatype null is not a recognised for Geometry Literal. Defaulting to http://www.opengis.net/ont/geosparql#wktLiteral.
[ERROR] 16:16:57 WARN  GeoSPARQLOperations :: Output datatype null is not a recognised for Geometry Literal. Defaulting to http://www.opengis.net/ont/geosparql#wktLiteral.
[ERROR] 16:16:57 WARN  GeoSPARQLOperations :: Output datatype null is not a recognised for Geometry Literal. Defaulting to http://www.opengis.net/ont/geosparql#wktLiteral.
jena-integration-tests:
[INFO] [INFO] Running org.apache.jena.http.TestHttpOp
[ERROR] 16:17:08 WARN  org.apache.jena.fuseki.main.sys.FusekiAutoModules :: Ignored: "LegacyModule" : legacy use of interface FusekiModule which has changed to FusekiAutoModule
jena-shex:
[INFO] [WARNING] Parameter 'includePackageNames' is unknown for plugin 'maven-javadoc-plugin:3.6.3:jar (attach-javadocs)'
kinow commented 6 months ago

There are some Vue.js deprecation warnings that have been annoying me too but I haven't had time to look into those yet.

afs commented 6 months ago

There are some Vue.js deprecation warnings that have been annoying me too but I haven't had time to look into those yet.

Could you create a separate ticket please?

I'm splitting out the process ones and keeping just the test logging one here so they can be fixed and issues closed incrementally.

kinow commented 6 months ago

There are some Vue.js deprecation warnings that have been annoying me too but I haven't had time to look into those yet.

Could you create a separate ticket please?

I'm splitting out the process ones and keeping just the test logging one here so they can be fixed and issues closed incrementally.

Sure thing, done https://github.com/apache/jena/issues/2346