Skip to content

Harden Azure Functions VS Code launch lifecycle and E2E coverage #19138

Description

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Post-merge review of #19001 identified seven directly related correctness and coverage gaps:

These comments were submitted after #19001 had merged and therefore require a follow-up change.

Expected Behavior

  • Existing or newly started func task executions are captured reliably.
  • Run-mode termination is reported even when no task-start event is observed.
  • Natural host exit does not attempt to terminate a stale worker PID.
  • Invalid worker process IDs fail explicitly.
  • POSIX-compatible dash and ash shells are supported.
  • Shell and argument validation fails before building.
  • The E2E test exercises real shell quoting.
  • The E2E workflow explicitly installs every required .NET runtime.

Steps To Reproduce

See the linked review threads for individual scenarios and suggested regression coverage.

Exceptions (if any)

N/A

Aspire doctor output

N/A

Anything else?

Source PR: #19001

Completion should include focused unit coverage for lifecycle, PID validation, shell classification, and fail-fast behavior, plus an Azure Functions E2E fixture containing shell-sensitive arguments.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions