Skip to content
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

ArtilleryError on Lambda deployment #2543

Open
mplaul opened this issue Mar 5, 2024 · 5 comments
Open

ArtilleryError on Lambda deployment #2543

mplaul opened this issue Mar 5, 2024 · 5 comments

Comments

@mplaul
Copy link

mplaul commented Mar 5, 2024

Version info:

VERSION INFO:

Artillery: 2.0.0-30
Node.js:   v20.5.1
OS:        darwin

Running this command:

./packages/artillery/bin/run run --platform aws:lambda --platform-opt region=eu-west-1 --count 60 configs/lt-221.yml

I expected to see this happen:

A load test with 60 lambda workers running the specified config

Instead, this happened:

[ebceaa13-cdc2-46ee-904c-c835e471ed83]: A Lambda function has exited with an error. Reason: ArtilleryError
{
  stdout: "worker error, id: 1 TypeError [Error]: Cannot read properties of undefined (reading 'plugins')\n" +
    '    at prepare (/var/task/node_modules/artillery/lib/platform/local/worker.js:114:51)\n' +
    '    at async MessagePort.onMessage (/var/task/node_modules/artillery/lib/platform/local/worker.js:50:5)\n',
  stderr: ''
}

Files being used:

config:
  target: <redacted>
  phases:
    - duration: 60
      arrivalRate: 20
      name: Load Test
scenarios:
  - flow:
      - loop:
          - post:
              url: "/"
              json:
                {
                  "id": "{{ $randomString(10) }}",
                  “event”: "7d8b1631-faeb-4b47-926e-077da7ed4f7c",
                }
        count: 100
@bernardobridge
Copy link
Contributor

Hey @mplaul 👋

Thanks for reporting the issue. For anyone else reading this, if you're facing this issue you'll need to upgrade Artillery preferably to latest (v2.0.7).

Note: This sort of breaking change will no longer happen with any version after v2.0.1, as it was a bug in how we managed dependant packages that was solved with the v2.0.1 release.

@mplaul
Copy link
Author

mplaul commented Mar 6, 2024

Thanks @bernardobridge. Upgrading to 2.0.7 worked.

@mirao
Copy link

mirao commented Mar 8, 2024

We got the same issue after an upgrade of Playwright 1.41 to 1.42.1 in our CodeceptJS project.
From some reason the upgrade of Playwright caused also an upgrade of some Artillery components. Then when we started an Artillery test, it failed with:

$ npx artillery run -e dev --output output/artillery.json load-test.yml
worker error, id: 1 TypeError [Error]: Cannot read properties of undefined (reading 'plugins')

Upgrade of Artillery from 2.0.0-34 to 2.0.7 helped ✔️

@mirao
Copy link

mirao commented Mar 9, 2024

From some reason the upgrade of Playwright caused also an upgrade of some Artillery components.

It's not caused by upgrade of Playwright, but by the process pnpm update itself.
It seems that once Artillery 2.0.7 was released with some updated components (e.g. artillery-plugin-publish-metrics 2.12 => 2.13 etc.), the components were updated by pnpm (by chance during update of Playwright) and then they become incompatible with our installed Artillery 2.0.0-34)

@sahmeepee
Copy link

sahmeepee commented May 7, 2024

Is there a working method of installing versions of Artillery 2.0.0-36 or earlier? I'm trying to work out at what point this bug was introduced: #2115
According to the issue it was between v2.0.0-7 and 2.0.0-36 (inclusive) so I would like to be able to bisect those versions to narrow it down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants