Skip to content

Add BESS dispatch options and export#721

Open
lixiangk1 wants to merge 79 commits into
developfrom
heuristic-dispatch-mpc
Open

Add BESS dispatch options and export#721
lixiangk1 wants to merge 79 commits into
developfrom
heuristic-dispatch-mpc

Conversation

@lixiangk1

@lixiangk1 lixiangk1 commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Please check if the PR fulfills these requirements

  • CHANGELOG.md is updated
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • Any new Django model inputs have also been added to job/test/posts/all_inputs_test.json

What kind of change does this PR introduce?

(Bug fix, feature, docs update, ...)

What is the current behavior?

(You can also link to an open issue here)

What is the new behavior (if this is a feature change)?

Does this PR introduce a breaking change?

(What changes might users need to make in their application due to this PR?)

Other information:

Things to test here / in REopt.jl:

  • Net metering
  • Net billing
  • Net metering and net billing combined
  • Multiple/probabilistic outage inputs with and without min_resil_timesteps
  • Scenarios that we think could return feasible on first run and infeasible on last (after MPC)
  • Test what happens with multiple PVs and add a warning or error message

GUI and others added 30 commits April 20, 2026 20:08
- Remove old deployment files and dependencies. Some of these were even
  from older setups no longer used.

- Try to begin work on cleaning up configuration approach to make things
  easier to configure via environment variables. The previous approach
  had several layers of legacy approaches that had built up over time.
  There was also a lot of duplicate config where there were subtle
  drifts in configuration that this attempts to de-duplicate and unify.

None of this is actually hooked up yet, this is just the beginnings of
trying to work on new deployments.
Fixes various syntax errors and missing imports.

Also renames `keys.py` to `keys_env.py` just so we don't end up
conflicting with people's existing `keys.py` that was gitinored
previously.

Also sets up docker to use optional `.env` files which should simplify
the setup instructions and migration for existing users with custom
keys.py files.
This leverages GitHub Actions, along with other changes we've adopted,
like Vault for secrets, Pkl for Kubernetes configuration management, and
Carvel for deployments.

This also removes some areas that I believe are now unused, like the
nginx proxy layer, since it doesn't seem like that was previously being
used in production any longer.
Since these values were output in the metadata's own output, GitHub
Actions would fail, since it would prevent the metadata's output from
occurring since it thought it contained masked secrets.
This appears to be an existing staging issue, but it looks like django
keeps bumping into this limit and restarting workers inside the
container.
This brings back the restart job that used to be implemented in Jenkins.
While this is a bit funky to shoehorn this into this Python app, we have
other components of our deployment process that use this library to
provide easy database restores, so by leveraging this library, this is
the easiest way to integrate that process with this app.
adfarth and others added 9 commits July 1, 2026 08:17
If the user doesn't have CREATE privileges at the database level, then
even if the schema already exists, the `CREATE SCHEMA IF NOT EXISTS`
will fail.
Align everything on the `reopt` database name as the default. This
matches the other `DB_NAME` environment variables being passed into the
Celery and Django containers.
@adfarth adfarth changed the title Add MPC as an option for BESS dispatch Add BESS dispatch options and export Jul 16, 2026
adfarth and others added 19 commits July 16, 2026 13:19
PostgreSQL v18 updates; Database restores
Move to GitHub Actions for deployments; other deployment updates/cleanup
Part of the larger, manual rollout of the deployment changes in
#714
Reenable staging deploys after dry-run tests
Part of the larger, manual rollout of the deployment changes in
#714
Reenable production deploys after dry-run tests
Remove the duplicative nrel.gov ingress now that everything with
developer.nlr.gov is cutover to use the nlr.gov ingress.
This was a copy-paste issue from staging, but the production variable
name differs.
Fix ingress to set explicit host for production ingress
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.

6 participants