Skip to content

Conversation

@jviau
Copy link
Contributor

@jviau jviau commented Jan 12, 2026

Issue describing the changes in this PR

resolves #issue_for_this_pr

Pull request checklist

  • My changes do not require documentation changes
    • Otherwise: Documentation issue linked to PR
  • My changes should not be added to the release notes for the next release
    • Otherwise: I've added my notes to release_notes.md
  • My changes do not need to be backported to a previous version
    • Otherwise: Backport tracked by issue/PR #issue_or_pr
  • I have added all required tests (Unit tests, E2E tests)

Additional information

This PR is part of an effort to make e2e tests runnable locally with no script setup required. This PR specifically does two things:

  1. Switches e2e tests to use dotnet run for running the function apps, which will find func on the path.
  2. Moves core-tools installation to its own yml step and adds func to the PATH on install.
    • Providing a specific core tools version is no longer supported. But it seems like that wasn't ever used anyways. We can add this back in if we deem it necessary.

The motivation for this PR is to reduce setup needed locally to run e2e tests, which was complicating local verification of different CI changes. This lets local runs of e2e tests just leverage your installed func cli, instead of needing it installed to a specific folder.

Copilot AI review requested due to automatic review settings January 12, 2026 17:02
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the E2E test setup to make tests runnable locally without script dependencies by: 1) Switching from direct func CLI invocation to dotnet run for starting function apps, and 2) Moving Azure Functions Core Tools installation into a separate reusable YAML template.

Changes:

  • Extracted Core Tools installation logic into a dedicated template file (install-core-tools.yml)
  • Modified test fixtures to use dotnet run --no-build instead of directly invoking the func CLI
  • Simplified using statements in TestUtility.cs to use C# 8+ using declarations

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
test/Sdk.E2ETests/TestUtility.cs Refactored nested using statements to modern using declarations (style improvement)
test/E2ETests/E2ETests/Fixtures/FixtureHelpers.cs Changed process execution from func CLI to dotnet run with updated argument handling
test/E2ETests/E2EApps/E2EAspNetCoreApp/E2EAspNetCoreApp.csproj Added blank line before closing tag (formatting)
eng/ci/templates/steps/setup-e2e-tests.yml Integrated new install-core-tools template and passed SkipCoreTools flag
eng/ci/templates/steps/install-core-tools.yml New template for downloading and installing Azure Functions Core Tools

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jviau jviau force-pushed the u/jviau/setup-core-tools branch from d25ca90 to db851c6 Compare January 12, 2026 17:39
@jviau jviau added the area: engineering Engineering improvements label Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: engineering Engineering improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants