Skip to content

Specs: resolve GA4GH schemas locally (offline start) #76

Closed

Description

@uniqueg

Why?

The vendored GA4GH Service Registry spec cloud_registry/api/20201108.e0358db.openapi.yaml references two schemas remotely (lines 157 and 175):

$ref: 'https://raw.githubusercontent.com/ga4gh-discovery/ga4gh-service-info/v1.0.0/service-info.yaml#/components/schemas/Service'
$ref: 'https://raw.githubusercontent.com/ga4gh-discovery/ga4gh-service-info/v1.0.0/service-info.yaml#/components/schemas/ServiceType'

These are resolved when the app is built, so the app, and every test that builds it, needs network access to raw.githubusercontent.com at startup. Verified: without network access, Foca(...).create_app() fails with jsonschema.exceptions._RefResolutionError. This breaks startup in air-gapped clusters, behind restrictive egress policies, during GitHub outages or rate limiting, and in sandboxed CI or development environments. The repository already contains the same service-info spec locally (cloud_registry/api/20201108.11d2c12.service-info.yaml).

How?

  1. Point both $refs to the local service-info spec (relative file reference), or bundle the referenced schemas into the spec. Keep the change minimal and documented, since it is a vendored file (note the upstream version in a comment).
  2. Check that no other remote references remain (e.g. with a test that loads all specs with network access disabled).
  3. Add a test that builds the app with sockets blocked (e.g. pytest-socket) to prevent regressions.

Acceptance criteria

  • The app starts and all tests pass without network access.
  • The resolved Service and ServiceType schemas are unchanged.

Dependencies: #71; after #65.

Activity

  1. added
    priority: medium
    type: bug
    type: delivery
    workload: hours
    on Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumtype: bugtype: deliveryworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions