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

SwissDataScienceCenter / renku-data-services / 19145569596

06 Nov 2025 06:17PM UTC coverage: 86.819% (-0.03%) from 86.85%
19145569596

Pull #1101

github

web-flow
Merge 252d68849 into fabb4724c
Pull Request #1101: feat: indicate supported platforms when checking a session image

241 of 314 new or added lines in 12 files covered. (76.75%)

8 existing lines in 4 files now uncovered.

23054 of 26554 relevant lines covered (86.82%)

1.52 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

90.91
/components/renku_data_services/repositories/utils.py
1
"""Utilities for connected services."""
2

3
import httpx
2✔
4

5

6
async def probe_repository(repository_url: str) -> bool:
2✔
7
    """Probe a repository to check if it is publicly available."""
8
    async with httpx.AsyncClient(timeout=5) as client:
1✔
9
        url = f"{repository_url}/info/refs?service=git-upload-pack"
1✔
10
        try:
1✔
11
            res = await client.get(url=url, follow_redirects=True)
1✔
12
            if res.status_code != 200:
1✔
UNCOV
13
                return False
×
14
            return bool(res.headers.get("Content-Type") == "application/x-git-upload-pack-advertisement")
1✔
15
        except httpx.HTTPError:
1✔
16
            return False
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

© 2025 Coveralls, Inc