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

rm-hull / news-barge / 37159892085
93%

Build:
DEFAULT BRANCH: main
Ran 03 Oct 2026 10:53PM UTC
Jobs 1
Files 12
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

03 Oct 2026 10:52PM UTC coverage: 91.625% (-0.01%) from 91.635%
37159892085

push

github

rm-hull
perf(scraper): reuse shared Playwright BrowserContext

Reuse a single `BrowserContext` for all Playwright fetches (listings and
articles) rather than creating a new context per article. This avoids
the
expensive ~2.8s per-context setup cost on every fetch (issue #49).

```mermaid
sequenceDiagram
    participant Main as main_async
    participant Browser as Playwright Browser
    participant Context as Shared BrowserContext
    participant Fetcher as fetch_html_playwright

    Main->>Browser: launch(headless=True)
    Main->>Browser: new_context(...)
    Browser-->>Main: shared_context
    Note over Main,Context: Created once per run (avoids ~2.8s per-fetch
 overhead)

    loop For each article/listing
        Main->>Fetcher: url, shared_context, semaphore
        Fetcher->>Context: new_page()
        Context-->>Fetcher: page (cheap)
        Fetcher->>Fetcher: goto(url), extract HTML
        Fetcher->>Context: page.close()
    end

    Main->>Context: close()
    Main->>Browser: close()
```

Fixes #49

12 of 13 new or added lines in 3 files covered. (92.31%)

733 of 800 relevant lines covered (91.63%)

0.92 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
93.16
-0.21% scraper/src/scrape.py
Jobs
ID Job ID Ran Files Coverage
1 37159892085.1 03 Oct 2026 10:53PM UTC 12
91.63
GitHub Action Run
Source Files on build 37159892085
  • Tree
  • List 12
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #37159892085
  • d5800241 on github
  • Prev Build on main (#37158349214)
  • Next Build on main (#37160343559)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc