Skip to content

fix: Updating test setup to build webhost #1649

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

Merged
merged 4 commits into from
Mar 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions eng/ci/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ extends:
dependsOn: []
jobs:
- template: /eng/templates/official/jobs/ci-e2e-tests.yml@self
- stage: RunLCTests
dependsOn: []
jobs:
- template: /eng/templates/official/jobs/ci-lc-tests.yml@self
# Skipping consumption tests till pipeline is fixed
# - stage: RunLCTests
# dependsOn: []
# jobs:
# - template: /eng/templates/official/jobs/ci-lc-tests.yml@self
9 changes: 5 additions & 4 deletions eng/ci/official-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ extends:
dependsOn: Build
jobs:
- template: /eng/templates/official/jobs/ci-docker-dedicated-tests.yml@self
- stage: RunLinuxConsumptionTests
dependsOn: Build
jobs:
- template: /eng/templates/official/jobs/ci-lc-tests.yml@self
# Skipping consumption tests till pipeline is fixed
# - stage: RunLinuxConsumptionTests
# dependsOn: Build
# jobs:
# - template: /eng/templates/official/jobs/ci-lc-tests.yml@self
11 changes: 8 additions & 3 deletions tests/test_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,13 @@ def compile_webhost(webhost_dir):
print(f"Compiling Functions Host from {webhost_dir}")
try:
subprocess.run(
["dotnet", "build", "WebJobs.Script.sln", "-o", "bin",
"/p:TreatWarningsAsErrors=false"],
[
"dotnet", "build", "WebJobs.Script.sln",
"/m:1", # Disable parallel MSBuild
"/nodeReuse:false", # Prevent MSBuild node reuse
f"--property:OutputPath={webhost_dir}/bin", # Set output folder
"/p:TreatWarningsAsErrors=false"
],
check=True,
cwd=str(webhost_dir),
stdout=sys.stdout,
Expand All @@ -120,7 +125,7 @@ def compile_webhost(webhost_dir):
except subprocess.CalledProcessError:
print(
f"Failed to compile webhost in {webhost_dir}. "
".NET Core SDK is required to build the solution. "
"A compatible .NET Core SDK is required to build the solution. "
"Please visit https://aka.ms/dotnet-download",
file=sys.stderr,
)
Expand Down
Loading