• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

snowplow / enrich / 8092387763
74%
master: 74%

Build:
Build:
LAST BUILD BRANCH: iglu-client-4.0.2
DEFAULT BRANCH: master
Ran 29 Feb 2024 07:37AM UTC
Jobs 1
Files 130
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Feb 2024 07:18AM UTC coverage: 74.387% (+0.3%) from 74.045%
8092387763

Pull #883

github

benjben
Switch bad row type from EnrichmentFailures to SchemaViolations for some errors

There are 3 places that currently produce an EnrichmentFailures bad row
whereas the more appropriate type is SchemaViolations:

1. When the input fields of the HTTP requests are mapped to the atomic event.
2. When the enrichments contexts get validated.
3. When the atomic fields lengths get validated.

For 1 and 3, the error should be mapped into an Iglu ValidationError
with the atomic schema referenced.

Before this change, if there was any error in the mapping of the atomic fields,
a bad row would get emitted right away and we would not try to validate
the entities and unstruct event. Now all these errors are wrapped inside
a same SchemaViolations bad row.

Likewise, before this change when an enrichment context was invalid,
we were emitting a bad row right away and not checking the lengths of
the atomic fields. Now all these errors are wrapped inside a same
SchemaViolations bad row.
Pull Request #883: Switch bad row type from EnrichmentFailures to SchemaViolations for s…

89 of 104 new or added lines in 11 files covered. (85.58%)

27 existing lines in 10 files now uncovered.

4034 of 5423 relevant lines covered (74.39%)

1.19 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
88.89
-1.11% modules/common/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/enrichments/EventEnrichments.scala
2
93.1
11.29% modules/common/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/utils/JsonUtils.scala
12
77.65
4.65% modules/common/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/utils/ConversionUtils.scala

Uncovered Existing Lines

Lines Coverage ∆ File
1
72.37
0.0% modules/common-fs2/src/main/scala/com/snowplowanalytics/snowplow/enrich/common/fs2/Enrich.scala
1
71.19
-1.69% modules/common/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/adapters/AdapterRegistry.scala
1
96.62
-0.31% modules/common/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/adapters/registry/GoogleAnalyticsAdapter.scala
1
87.18
-2.56% modules/common/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/adapters/registry/RemoteAdapter.scala
1
73.68
-5.26% modules/common/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/enrichments/registry/apirequest/Output.scala
1
94.12
0.0% modules/common/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/enrichments/registry/RefererParserEnrichment.scala
1
56.67
0.0% modules/common/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/enrichments/registry/sqlquery/JsonOutput.scala
1
75.0
-8.33% modules/common/src/main/scala/io/circe/jackson/enrich/CirceJsonModule.scala
2
85.05
-1.87% modules/common/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/enrichments/registry/pii/PiiPseudonymizerEnrichment.scala
17
43.18
0.0% modules/common/src/main/scala/com.snowplowanalytics.snowplow.enrich/common/outputs/EnrichedEvent.scala
Jobs
ID Job ID Ran Files Coverage
1 8092387763.1 29 Feb 2024 07:37AM UTC 130
74.39
GitHub Action Run
Source Files on build 8092387763
  • Tree
  • List 130
  • Changed 42
  • Source Changed 18
  • Coverage Changed 29
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #883
  • PR Base - develop (#8006508963)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc