A rerun of the Bump Version job finds the tag it pushed before, so
tagged is false and the image build was skipped: a failed dispatch
could not be retried. The build now starts whenever the release tag
points to the commit of the run. The release docs name the manual
fallback.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: Claude Code (claude-opus-5-5)
bump-version.yml pushes the release tag with GITHUB_TOKEN. Events from
GITHUB_TOKEN do not start other workflows, so docker-build.yml never
ran for v0.3.0, and Docker Hub has no 0.3.0 or 0.3 image. bump-version
now starts docker-build.yml for the new tag with a workflow_dispatch
event, which GITHUB_TOKEN may trigger. docker/metadata-action takes the
version tags from the tag ref, also for workflow_dispatch.
Additional changes
Describe the tag and the Docker images in the release process docs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: Claude Code (claude-opus-5-5)
test_update_method_with_defaults expected the prediction window to end 48
real hours after the start, given in the local zone of the test run. The
window ends at the same wall-clock time, as documented in end_datetime, so
the test failed where DST ends within the window, e.g. in
America/Los_Angeles on 2024-11-03. The start is now given in a fixed zone,
and a second case crosses the end of DST on purpose and checks the 49 hours.
Fixes#1570
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: Claude Code (claude-opus-5-5)
The irradiance tests create their lookup times and the one-hour offset
with to_datetime and to_duration, as the project rules require for new
code, and share one helper for the mocked HTTP response.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: Claude Code (claude-opus-5-5)
WeatherOpenMeteo stored Open-Meteo's direct_radiation, the beam on the
horizontal plane, as weather_dni. PVForecastPVLib transposes weather_dni
as direct normal irradiance, so for a 40 deg south plane in Berlin the
clear-sky plane-of-array irradiance came out at 25 % of the true value
on 21 December, 58 % on 21 March and 80 % on 21 June. The plain
Open-Meteo radiation variables are also means over the preceding hour,
stored at the hour's end, while EOS weather irradiance is the value at
the record time, as BrightSky and ClearOutside derive it from the cloud
cover and as PVForecastPVLib reads it with the sun position at the
record time.
The provider now requests and maps shortwave_radiation_instant,
direct_normal_irradiance_instant and diffuse_radiation_instant. The
instantaneous variables (temperature, humidity, clouds, wind) keep
their stamps; no record is shifted.
test_update_data and test_openmeteo_radiation_mapping pinned the old
mapping of direct_radiation to weather_dni and now expect the instant
variables. The recorded sample response predates them, so the tests
add clear-sky irradiance to it instead of a new recording.
Additional changes
Describe the irradiance of the OpenMeteo provider in the prediction docs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: Claude Code (claude-opus-5-5)
.readthedocs.yaml installed requirements-dev.txt, which #896 removed.
Every Read the Docs build since 2026-02-23 failed with "Could not open
requirements file", so the published documentation stayed at 0.2.0.
Read the Docs now runs uv sync with the dev extra, which holds the
Sphinx packages, and takes the versions from uv.lock like CI.
Additional changes
Build the documentation with Python 3.13 like CI, pre-commit and Docker
Test that every file, path and extra in .readthedocs.yaml exists
Fixes#1561
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: Claude Code (claude-opus-5-5)
cache_in_file created the cache file before it called the function. When
the call raised, e.g. a provider request answered with HTTP 500, the
empty file stayed in the store until it expired, and the next call logged
"Read failed: Ran out of input" before it called the function again. The
function is now called first; a failed call leaves the store unchanged.
Refs #1571
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: Claude Code (claude-opus-5-5)
The prediction container stopped at the first enabled provider that
failed to update, so the providers after it in the sequence were not
updated in that run. A failing weather provider, at the start of the
sequence, thus also kept the electricity price, feed-in tariff, load and
PV forecasts from being updated. The container now updates all providers
and then raises one RuntimeError with the failures of all enabled
providers; with one failing provider the message is unchanged.
Refs #1571
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: Claude Code (claude-opus-5-5)
Additional changes
The migration copies the old file to the backup instead of moving it and replaces the file atomically, only after the migration succeeded.
An explicit save keeps a copy of a file that could not be loaded and serializes the configuration before it opens the file.
The configuration guide describes the migration backup and what happens to a file that cannot be loaded.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: Claude Code (claude-opus-5-5)
uv sync without --locked resolves again when uv.lock is out of date.
The test jobs of #1569 installed pydantic 2.14.3 and pydantic-core
2.50.4, while uv.lock pins 2.14.2 and 2.50.2, and passed. With --locked
the test jobs fail on a stale lockfile like the pre-commit job and test
the versions uv.lock pins.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: Claude Code (claude-opus-5-5)
Dependabot used the pip ecosystem, which changes only pyproject.toml.
The pre-commit job runs uv with --locked, so every Python dependency
pull request (#1565 to #1569) failed with "The lockfile at uv.lock
needs to be updated". The uv ecosystem updates uv.lock as well.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: Claude Code (claude-opus-5-5)
test-ci ran the tests without a server with `-n auto`, one pytest-xdist
worker per core. On a machine with 32 cores and 16 GB of memory this
exhausted the threads (Windows, `RuntimeError: can't start new thread`)
or the memory (WSL); with eight workers all parts passed (reported in
the review of this pull request).
The target now adds `--maxprocesses=$(TEST_CI_MAX_WORKERS)` with a
default of 8, so it still starts one worker per core, but at most
eight. `make test-ci TEST_CI_MAX_WORKERS=<n>` changes the limit. CI is
not affected: its jobs call pytest themselves, on runners with four
cores.
Additional changes
Describe the limit, `--maxprocesses` and `PYTEST_XDIST_AUTO_NUM_WORKERS`
in the developer documentation
Refs #1553
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Assisted-by: Claude Code (claude-fable-5-2)