Skip to content

Faild to run E2E tests #4237

Open
Open
@saadalia

Description

@saadalia

I am trying to contribute to this repository but am encountering issues while running the tests.

Could you please provide some guidance?

Image

Specifically, five tests are consistently failing due to the following error:

Failed to locate the inproc6 model host at C:~path to repo~\azure-functions-core-tools\test\Azure.Functions.Cli.Tests\bin\Debug\net8.0\in-proc6\func.exe

I tried to debug the start process, it appears that the tool expects the InProc Executable directory to be present in the build directory, but it is not.

Azurite installed, templates are in place, I followed all the contribution guidelines

I am uncertain whether this issue is related to my local machine environment or another factor.

Activity

saadalia

saadalia commented on Jan 29, 2025

@saadalia
Author

Hello @liliankasem, @aishwaryabh, @kshyju

It seems we are using a specialized version of the core tools to run inproc-6 and inproc-8.

However, it's unclear how to include them in the debug folder.

The Azure Functions Artifact Assembler README states that these folders should be located under bin/debug/net8.0.

Image

However, it is not clear which namespace is responsible for them. I checked the following but couldn't find them:

  • Azure.Functions.ArtifactAssembler
  • Azure.Functions.Cli
  • Azure.Functions.Cli.Tests
  • Build

I also attempted to run the build console application using build.ps to generate artifacts, but they were not found in the artifacts folder.

Any guidance would be helpful.

aishwaryabh

aishwaryabh commented on Jan 29, 2025

@aishwaryabh
Contributor

@saadalia the inproc6 and inproc8 artifacts should be placed under azure-functions-core-tools\test\Azure.Functions.Cli.Tests\bin\Debug\net8.0. The inproc artifacts are generated from a feature branch called in-proc. The ArtifactAssembler takes all the artifacts and consolidates them together into one package.

Are you specifically making changes to inproc? If not, you could just copy and paste the latest inproc6 and inproc8 artifact folders from the latest release and move that into azure-functions-core-tools\test\Azure.Functions.Cli.Tests\bin\Debug\net8.0. That would allow the tests to run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @saadalia@aishwaryabh

      Issue actions

        Faild to run E2E tests · Issue #4237 · Azure/azure-functions-core-tools