Skip to content

Clean up build canonical warnings#6880

Merged
DOsinga merged 3 commits intomainfrom
split-build-canonical-models
Feb 2, 2026
Merged

Clean up build canonical warnings#6880
DOsinga merged 3 commits intomainfrom
split-build-canonical-models

Conversation

@DOsinga
Copy link
Collaborator

@DOsinga DOsinga commented Feb 1, 2026

Summary

Remove a warning for too many lines. also other clean up.

@DOsinga DOsinga marked this pull request as ready for review February 1, 2026 13:36
@DOsinga DOsinga requested review from Copilot and katzdave February 1, 2026 13:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors the canonical model builder/checker script to reduce warnings and clean up repetitive logic while keeping behavior largely the same.

Changes:

  • Extracted helpers for data-path construction, models.dev fetch, and per-model processing.
  • Reduced repeated string allocations/cloning in mapping-report generation/comparison by using &str-backed maps/sets.
  • Centralized repeated output formatting into separator constants.

Comment on lines +327 to +330
response
.json()
.await
.context("Failed to parse models.dev response")?;
.context("Failed to parse models.dev response")
Copy link

Copilot AI Feb 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fetch_models_dev parses the response body as JSON without first checking for non-2xx HTTP status codes, which can hide the real failure cause (e.g., 404/500) behind a JSON parse error. Call error_for_status() (or explicitly check status().is_success()) on the response before attempting .json() and include the status in the error context.

Copilot uses AI. Check for mistakes.
@DOsinga DOsinga added this pull request to the merge queue Feb 2, 2026
Merged via the queue into main with commit 603f252 Feb 2, 2026
18 checks passed
@DOsinga DOsinga deleted the split-build-canonical-models branch February 2, 2026 17:47
katzdave added a commit that referenced this pull request Feb 3, 2026
…ntext

* 'main' of github.com:block/goose:
  refactor(providers): extract ProviderDef trait and OpenAiCompatibleProvider (#6832)
  feat: ask ai discord bot (#6842)
  chore(maintenance): make GitHub repo configurable for auto-updater and publisher (#6828)
  fix: make apps work in built copies of goose (#6901)
  Remove dependency on goose-mcp from goose crate (#6637)
  Clean up build canonical warnings (#6880)
  Sync desktop_prompt with UI (#6898)
stebbins pushed a commit to stebbins/goose that referenced this pull request Feb 4, 2026
Co-authored-by: Douwe Osinga <[email protected]>
Signed-off-by: Harrison <[email protected]>
kuccello pushed a commit to kuccello/goose that referenced this pull request Feb 7, 2026
Tyler-Hardin pushed a commit to Tyler-Hardin/goose that referenced this pull request Feb 11, 2026
Tyler-Hardin pushed a commit to Tyler-Hardin/goose that referenced this pull request Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants