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

open-contracting / data-registry / 16084075787 / 1
58%
main: 58%

Build:
DEFAULT BRANCH: main
Ran 05 Jul 2025 03:27AM UTC
Files 43
Run time 1s
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

05 Jul 2025 03:25AM UTC coverage: 58.298% (-0.3%) from 58.574%
16084075787.1

push

github

jpmckinney
fix: Summarize OCDS Merge warnings, as they are too large to store

Used this script to manually migrate the notes:

import re
from collections import Counter
from data_registry.models import Job
OCDS_MERGE_WARNING_PATTERN = re.compile(
    r"^Multiple objects have the `id` value '.+' in the `(.+)` array$", re.MULTILINE
)
for job in Job.objects.exclude(process_notes={}).defer("process_notes"):
    counts = Counter()
    others = []
    for note, data in job.process_notes['WARNING']:
        # OCDS Merge has one warning type, which can be issued millions of times.
        if note.startswith("Multiple objects have the `id` value "):
            counts.update(OCDS_MERGE_WARNING_PATTERN.findall(note))
        else:
            others.append([note, data])
    if not counts:
        continue
    for path, count in counts.items():
        others.append(["OCDS Merge", {"count": count, "path": path}])
    job.process_notes['WARNING'] = others
    job.save(update_fields=["modified", "process_notes"])
    print(job)

959 of 1645 relevant lines covered (58.3%)

0.58 hits per line

Source Files on job 16084075787.1
  • Tree
  • List 43
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 16084075787
  • 62f5927e on github
  • Prev Job for on main (#16081320823.1)
  • Next Job for on main (#16084783195.1)
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