Skip to content

[BUG] Load test fails on Windows runner #62

Open
@jcantosz

Description

@jcantosz

Describe the bug
Load test cannot find the JMX file referenced by my config.yml on Windows runners. Works as expected on Linux runners. On Windows it fails with the message: Error: File not found loadtest\quick_test.jmx.

I need to use Windows for my self-hosted runners, so I would like this to work on Windows.

To Reproduce
Steps to reproduce the behavior:

  1. Create a load-test actions workflow
  2. Set the runs-on: to windows-2019
  3. Run the worklfow
  4. See error Error: File not found loadtest\quick_test.jmx
name: Azure Load Test

on:
  workflow_dispatch:

permissions:
  id-token: write # This is required for requesting the JWT

jobs:
  # This job runs successfully
  deploy-linux:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: 'Az CLI login'
        uses: azure/login@v1
        with:
          client-id: ${{ secrets.AZ_CLIENT_ID }}
          tenant-id: ${{ secrets.AZ_TENANT_ID }}
          subscription-id: ${{ secrets.AZ_SUBSCRIPTION_ID }}
      - name: 'Azure Load Testing'
        uses: azure/load-testing@v1
        with:
          loadTestConfigFile: 'loadtest/config.yaml'
          loadTestResource: 'jcantosz-load-test'
          resourceGroup: 'jcantosz'

  # This job fails
  deploy-windows:
    runs-on: windows-2019
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: 'Az CLI login'
        uses: azure/login@v1
        with:
          client-id: ${{ secrets.AZ_CLIENT_ID }}
          tenant-id: ${{ secrets.AZ_TENANT_ID }}
          subscription-id: ${{ secrets.AZ_SUBSCRIPTION_ID }}
      - name: 'Azure Load Testing'
        uses: azure/load-testing@v1
        with:
          loadTestConfigFile: 'loadtest/config.yaml'
          loadTestResource: 'jcantosz-load-test'
          resourceGroup: 'jcantosz'

Expected behavior
I expect the load test to run on Windows the same way it does on Linux

Screenshots
If applicable, add screenshots to help explain your problem.
Running load tests from Windows
Screenshot 2023-07-19 at 2 24 51 PM

Running same load test from Linux
Screenshot 2023-07-19 at 2 26 41 PM

Desktop (please complete the following information):

  • OS: Windows
  • Version 2019

Additional context
Add any other context about the problem here.
Test config and jmx can be found here
Workflow for testing can be found here

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions