element
element copied to clipboard
Cannot run Flood Element 2.x script on Flood.io
Describe the bug
I have a Flood Element script that is running locally in Element 2.0.4
I upload to the Flood UI (also tried via API) this script, my environment
file and my test-data file.
I launch the flood on "on-demand" instances.
Instances launch, attempt to run my test and fail.
The flood.log
says it cannot find my test script:
cat flood-logs/flood/flood.log
> @flood/[email protected] start /app
> element agent start "/data/flood/files/field-dashboard-load-test.perf.ts"
> Error! An unexpected error occurred!
Error: Test script '/data/flood/files/field-dashboard-load-test.perf.ts' does not exist
at Object.checkFile (/app/node_modules/@flood/element-cli/dist/src/cmd/common.js:8:16)
at /app/node_modules/@flood/element-cli/dist/src/cmd/agent/start.js:35:38
at Object.customChecks (/app/node_modules/yargs/build/lib/validation.js:174:26)
field-dashboard-load-test.perf.ts
is one of the files I uploaded (that contains my test)
I can see that the contents of that file in the downloaded tar.gz archive in the files
directory is correct.
To Reproduce Steps to reproduce the behavior:
- Upload a Typescript file that works on Element 2.0.4 to Flood.io
- Attempt to run it.
- It fails
Expected behavior It not fail and actually execute the test.
Screenshots
Desktop (please complete the following information):
- OS: [e.g. macOS] Mac OS
- Node.js version: [e.g. 9.4] 16
- Version [e.g. 1.0.2] Element 2.0.4
Additional context I have already asked support to upgrade my account to use Flood 2.x (which they said they did).