feat: use route duration accurate for weather-aware optimization#180
Conversation
|
Hey Hiral — the algorithmic upgrade here is exactly right. Using the actual VROOM A few things need attention before this is ready to merge: Must fix
Worth fixing before merge
Frontend carry-overs from #179 (still present)
One design gap to track separately The driver PWA imports the session file in its pre-VROOM input order, not the optimized sequence. The blocking event loop (items 1 and 2) is the blocker here — especially with the re-run compounding the issue. Everything else is tractable. Happy to look at a follow-up once those are cleared. |
20dee1d to
3e9ec73
Compare
|
made all the fixes from the comment still left to fix-
|
|
Hey Hiral — all four blockers and every worth-fixing item from the first round are resolved. The two-pass solve through the coordinator is clean, the sync path correctly skips the live weather fetch, and the Two small things worth a quick fix before merge:
Tracking:
Frontend lint/typecheck/test/build are still unchecked in the validation list — those should run before this merges. |
|
CI failure — ESLint is failing with The Minor — In WeatherForecastOptions sync_weather_options = weather_options;
sync_weather_options.openweather_api_key.clear();
const WeatherImpactEstimate impact = RecalculateWeatherImpact(
sync_weather_options, *optimize_request_ptr, *result.output);
|
447773e to
652a45b
Compare
Summary
Motivation
Changes
summary.durationfrom the first optimized result.Validation
Frontend
npm --prefix app/ui run lintnpm --prefix app/ui run format:checknpm --prefix app/ui run typechecknpm --prefix app/ui run testnpm --prefix app/ui run buildnpm --prefix app/mobile run lintnpm --prefix app/mobile run typecheckBackend
cmake --preset dev.github/scripts/check-backend-static.sh build/devcmake --build --preset conan-release --parallelctest --preset conan-release -R WeatherForecastOptimizerTest --output-on-failurenpx.cmd -y clang-format@1.8.0 --dry-run --Werror app/api/include/deliveryoptimizer/api/forecast_optimizer.hpp app/api/src/endpoints/deliveries_optimize_endpoint.cpp app/api/src/forecast_optimizer.cpp app/api/src/optimization_job_runtime.cpp tests/api/forecast_optimizer/weather_forecast_optimizer_test.cppgit diff --checkcmake --build --preset dev --parallelctest --preset dev --output-on-failure --no-tests=error -LE 'e2e|docker'docker compose -f deploy/compose/docker-compose.arm64.yml --env-file deploy/env/http-server.arm64.env configRisk
Rollout and Recovery
DELIVERYOPTIMIZER_WEATHER_FORECAST_ENABLED=0.OPENWEATHER_API_KEYand the route still optimizes without live weather data.High-Signal PR Checklist