Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/retire-python-optimizer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ftw": minor
---

Remove the Python optimizer service, its release channel, update controls and runtime settings. Energyplan ships with Core and keeps Core DP as its validated fallback and comparison shadow. Older Python engine settings migrate to Energyplan. Core updates and fresh installations no longer need a Python sidecar; the updater can retire its old Compose wiring after Energyplan is healthy.
2 changes: 0 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,3 @@ go/**/*_test.go
**/state.db-*
**/cold/
**/.DS_Store
optimizer/.venv/
optimizer/tests/
27 changes: 0 additions & 27 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,33 +119,6 @@ updates:
- "minor"
- "patch"

# ---- Python (optimizer) -----------------------------------------------
# optimizer/pyproject.toml declares PEP 621 [project] dependencies under a
# hatchling backend; the pip updater reads that standard location whatever
# the build backend is. Deps are exact-pinned (==), so bumps are clean.
#
# Reviewer note: a python base-image or interpreter move must keep
# cvxpy/highspy wheel availability in mind.
- package-ecosystem: "pip"
directory: "/optimizer"
schedule:
interval: "weekly"
day: "monday"
labels:
- "dependencies"
- "no-changeset"
commit-message:
prefix: "chore(deps)"
cooldown:
default-days: 7
groups:
python-minor-patch:
patterns:
- "*"
update-types:
- "minor"
- "patch"

# ---- npm (root) -------------------------------------------------------
# Version metadata plus the Changesets CLI only; web/ ships hand-written ES
# modules and has no package.json of its own.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/debian-base-currency.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ jobs:
run: |
title="Container base is behind Debian stable"
body="$(printf '%s\n\n```\n%s\n```\n\n%s\n\nFrom %s\n\nThis issue is rewritten by each run of the `debian base currency` workflow. Closing it without moving the pin means it comes back next Monday.\n' \
"The Debian suite pinned by the container images is no longer the current Debian stable, or the three images have drifted apart. Core, updater and optimizer are pinned to one suite on purpose: they share a single base layer, so a host pulls that rootfs once instead of three times." \
"The Debian suite pinned by the container images is no longer the current Debian stable, or the two images have drifted apart. Core and updater are pinned to one suite on purpose: they share a single base layer, so a host pulls that rootfs once instead of twice." \
"${REPORT}" \
"Moving the pin means updating the FROM lines in \`Dockerfile\`, \`Dockerfile.updater\` and \`Dockerfile.optimizer\` together, then rebuilding all three and confirming the optimizer still resolves CVXPY and HiGHS wheels on the new suite. Do not move core alone — that splits the shared layer. If the readiness lines above say a tag is not published yet, wait for it rather than splitting the pin." \
"Moving the pin means updating the FROM lines in \`Dockerfile\`, \`Dockerfile.updater\` together, then rebuilding both and checking Core and updater health. Do not move core alone — that splits the shared layer. If the readiness lines above say a tag is not published yet, wait for it rather than splitting the pin." \
"${RUN_URL}")"

existing="$(gh issue list --state open --search "in:title \"${title}\"" \
Expand Down
284 changes: 0 additions & 284 deletions .github/workflows/optimizer-release.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/release-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -329,15 +329,15 @@ jobs:
cp "bin/${BINARY}" "${STAGE}/forty-two-watts.exe"
(cd "${STAGE}" && zip -q "../../release/ftw-${PLATFORM}.zip" ftw.exe ftw-backup.exe forty-two-watts.exe)
zip -qr "release/ftw-${PLATFORM}.zip" \
drivers web optimizer/native/bundle optimizer/pyproject.toml optimizer/ftw_optimizer config.example.yaml LICENSE NOTICE
drivers web optimizer/native/bundle config.example.yaml LICENSE NOTICE
cp "release/ftw-${PLATFORM}.zip" "release/forty-two-watts-${PLATFORM}.zip"
else
cp "bin/${BINARY}" "${STAGE}/ftw"
cp "bin/ftw-backup-${PLATFORM}" "${STAGE}/ftw-backup"
ln -s ftw "${STAGE}/forty-two-watts"
tar czf "release/ftw-${PLATFORM}.tar.gz" \
-C "${STAGE}" ftw ftw-backup forty-two-watts \
-C ../.. drivers web optimizer/native/bundle optimizer/pyproject.toml optimizer/ftw_optimizer config.example.yaml LICENSE NOTICE
-C ../.. drivers web optimizer/native/bundle config.example.yaml LICENSE NOTICE
cp "release/ftw-${PLATFORM}.tar.gz" "release/forty-two-watts-${PLATFORM}.tar.gz"
fi
(
Expand Down
Loading