-
Notifications
You must be signed in to change notification settings - Fork 200
Move core-tools setup to separate yml. Use dotnet run. #3289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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-buildinstead 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.
d25ca90 to
db851c6
Compare
Issue describing the changes in this PR
resolves #issue_for_this_pr
Pull request checklist
release_notes.mdAdditional 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:
dotnet runfor running the function apps, which will find func on the path.PATHon install.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.