zara-github: fail malformed numeric config with GitHubConfigError #105

Closed
opened 2026-09-08 02:02:59 +00:00 by nsaspy · 0 comments
Owner

Problem

GitHubConfig.load() rejects boolean numeric settings, but otherwise calls float()/int() directly. Malformed values such as None, objects, or non-numeric strings can leak incidental TypeError/ValueError instead of the provider's structured GitHubConfigError boundary.

Slice

  • deterministic RED coverage for malformed timeout/result/response numeric configuration;
  • reject invalid numeric descriptors with GitHubConfigError before provider construction/network access;
  • preserve valid numeric-string configuration and existing bounds;
  • exact-head compatibility, registry, plugin and generated Nix package gates before merge.

Dependency-ready zara-github correctness slice. No external todo work.

## Problem `GitHubConfig.load()` rejects boolean numeric settings, but otherwise calls `float()`/`int()` directly. Malformed values such as `None`, objects, or non-numeric strings can leak incidental `TypeError`/`ValueError` instead of the provider's structured `GitHubConfigError` boundary. ## Slice - deterministic RED coverage for malformed timeout/result/response numeric configuration; - reject invalid numeric descriptors with `GitHubConfigError` before provider construction/network access; - preserve valid numeric-string configuration and existing bounds; - exact-head compatibility, registry, plugin and generated Nix package gates before merge. Dependency-ready `zara-github` correctness slice. No external todo work.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nsaspy/zara-plugins#105
No description provided.