Skip to content

feat: local dev environment deploy config for VSCode#7798

Open
ElectricalBoy wants to merge 11 commits into
mainfrom
local-deploy
Open

feat: local dev environment deploy config for VSCode#7798
ElectricalBoy wants to merge 11 commits into
mainfrom
local-deploy

Conversation

@ElectricalBoy

Copy link
Copy Markdown
Collaborator

Summary

This PR adds dev environment deploy tasks for VSCode.
Config assumes use of venv.

How did you test this change?

local dry runs

@ElectricalBoy ElectricalBoy requested review from a team as code owners July 10, 2026 06:40

@mbergen mbergen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would probably make sense to also add a .env.example file so it's easier to setup the correct variables?

Comment thread .vscode/tasks.json Outdated
Comment thread scripts/deploy.py Outdated
@ElectricalBoy ElectricalBoy requested a review from mbergen July 10, 2026 07:09
Comment thread README.md
Comment thread scripts/deploy.py
os.getenv("LUA_DEV_ENV_NAME") is None
or os.getenv("LUA_DEV_ENV_NAME") != "/dev/"
), f"Invalid dev environment: {os.getenv('LUA_DEV_ENV_NAME')}"
if len(sys.argv[1:]) == 0 and os.getenv("LUA_DEV_ENV_NAME") is None:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to further guard this path?
The modules should be protected, but there isn't really a reason why anyone would need this except for the scheduled deploy action.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe having a prefix check won't hurt much now that I think about it...

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was rather thinking about someone forgetting to set the environment variable.
So the suggestion would probably be to add a dedicated flag for the deploy-all instead

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was rather thinking about someone forgetting to set the environment variable.

vscode will always prompt for a dev env name so I don't think extra check is needed and anyone using non-admin bot will face MW yelling anyway
that only leaves admin bots and I generally think that admins are careful enough not to screw live modules up

@ElectricalBoy ElectricalBoy requested review from Eetwalt and mbergen July 10, 2026 11:24
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.

3 participants