Skip to content

Align Python Timer editor settings for root and src workspaces - #6

Draft
Manvir Kaur (manvkaur) wants to merge 2 commits into
mainfrom
manvkaur/python-timer-editor-20261002-e0d8036e6e
Draft

Manvir Kaur (manvkaur) wants to merge 2 commits into
mainfrom
manvkaur/python-timer-editor-20261002-e0d8036e6e

Conversation

@manvkaur

Copy link
Copy Markdown
Collaborator

Purpose

  • Align the repository-root and src VS Code workspaces with the existing src/.venv environment using portable interpreter-directory defaults.
  • Add the missing child-workspace azureFunctions.pythonVenv setting and correct its deployment subpath from src to ..
  • Document environment creation and explicit interpreter selection when a workspace already has a saved selection.
  • Preserve the correctly scoped root tasks, application code, runtime, dependencies and hosting.

Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type

What kind of change does this Pull Request introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

  • Get the code
git clone https://github.com/Azure-Samples/functions-quickstart-python-azd-timer.git
cd functions-quickstart-python-azd-timer
git checkout manvkaur/python-timer-editor-20261002-e0d8036e6e
  • Test the code

From src, create .venv using a supported Python version, then use that environment's Python:

python -m venv .venv
python -m pip install -r requirements.txt
python -m compileall -q function_app.py
python -m pip check

Activate .venv before the pip/compile commands. On Windows its Python is .venv\Scripts\python.exe; on POSIX it is .venv/bin/python.
Open either the root or src workspace, explicitly select the environment if needed, start Azurite, and exercise F5 as described in the README.

Local results on the exact source candidate over base 3d2bd58a78d13736f6cf325c59f6e2c2ef8dd13a:

  • PASS: Python 3.13 compilation, pip check, application import/function registration, Functions host indexing and health HTTP 200.
  • PASS: actual scheduled timer executions using an isolated Azurite instance.
  • NOT RUN: actual Template Gallery creation/first-F5 in VS Code, Azure deployment, cloud execution and full IaC acceptance. CLI host success is not evidence that F5 works.

What to Check

Verify that the following are valid

  • Root and child workspaces resolve the same src/.venv; saved interpreter selections are handled explicitly.
  • The child deployment subpath resolves to the application folder.
  • Actual gallery/first-F5 and Azure/cloud acceptance still require validation before merge.

Other Information

Draft for review, not merge- or closure-ready.
Related to microsoft/vscode-azurefunctions#5196.
Merged sample PR #5 covered only the root environment name; the reporter's subsequent retest still failed. This is the remaining sample-owned configuration work, not complete delivery of the consumer report; extension-owned initialization/debugging work is separate.
N/A: application, dependency, infrastructure, release and manifest-pin changes.

Manvir Kaur (manvkaur) and others added 2 commits October 1, 2026 20:29
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 53bf77ef-313f-41d1-af59-748fc3dd9515
Remove duplicate src workspace configuration and align setup instructions with the root workspace.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 53bf77ef-313f-41d1-af59-748fc3dd9515
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.

1 participant