Skip to content

Shorten ECMWF HTTP 404 fallback warnings - #1180

Merged
aldenks merged 2 commits into
mainfrom
concise-ecmwf-404-warnings
Oct 8, 2026
Merged

aldenks merged 2 commits into
mainfrom
concise-ecmwf-404-warnings

Conversation

@aldenks

@aldenks aldenks commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

ECMWF mirror fallback warnings repeat the 404 response XML and multiline debug representation for each missing object. Keep these warnings at WARNING, but shorten messages containing 404 Not Found to the source, exception class, status and the first HTTP(S) URL when present.

Classification uses a simple substring check. Messages without 404 Not Found retain their full detail. Source ordering, retry behavior, warning count, and re-raising the original final exception are unchanged. This shared helper covers IFS ENS 15-day, AIFS ENS and AIFS single.

Validation: uv run pytest -m "not slow" tests/ecmwf — 485 passed; real obstore whole-object/range 404s, unfamiliar 404 formats with and without URLs, non-404 logging and original final-exception identity. Repository-wide Ruff formatting/lint and ty checks passed.

@aldenks aldenks assigned aldenks and unassigned aldenks Oct 8, 2026
@aldenks
aldenks enabled auto-merge (squash) October 8, 2026 20:20
@aldenks
aldenks merged commit f24c4ec into main Oct 8, 2026
9 checks passed
@aldenks
aldenks deleted the concise-ecmwf-404-warnings branch October 8, 2026 20:24
@aldenks aldenks self-assigned this Oct 8, 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.

1 participant