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

--skipRestart is causing issue, test runs not getting completed #297

Open
dipak-amber opened this issue Jul 2, 2024 · 1 comment
Open

Comments

@dipak-amber
Copy link

flashlight test
--bundleId com.amberstudent
--beforeAllCommand "maestro test /users/dipakkorde/desktop/AppPerfScripts1/SetupHomeToSearch.yml"
--testCommand "maestro test /users/dipakkorde/desktop/AppPerfScripts1/NavHomeToSearch.yml"
--resultsFilePath /users/dipakkorde/desktop/results/resulthometosearch.json
--skipRestart

While running tests using this runs not getting completed. Getting error

/snapshot/flashlight-cloud/flashlight-open-source/packages/platforms/android/dist/src/commands/atrace/pollFpsUsage.js:11
throw new Error(Could not parse ATrace line "${line}");
^

Error: Could not parse ATrace line "CPU:2 [LOST 1457 EVENTS]"
at parseLine (/snapshot/flashlight-cloud/flashlight-open-source/packages/platforms/android/dist/src/commands/atrace/pollFpsUsage.js:11:19)
at FrameTimeParser.getFrameTimes (/snapshot/flashlight-cloud/flashlight-open-source/packages/platforms/android/dist/src/commands/atrace/pollFpsUsage.js:75:105)
at /snapshot/flashlight-cloud/flashlight-open-source/packages/platforms/android/dist/src/commands/pollPerformanceMeasures.js:30:74
at /snapshot/flashlight-cloud/flashlight-open-source/packages/platforms/android/dist/src/commands/cppProfiler.js:48:9
at /snapshot/flashlight-cloud/flashlight-open-source/packages/platforms/android/dist/src/commands/shell.js:84:13
at Array.forEach ()
at Socket. (/snapshot/flashlight-cloud/flashlight-open-source/packages/platforms/android/dist/src/commands/shell.js:83:33)
at Socket.emit (node:events:537:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)

Node.js v18.5.0

Instead when i am running tests using

flashlight test \
--bundleId com.amberstudent
--beforeAllCommand "maestro test /users/dipakkorde/desktop/AppPerfScripts/SetupFlow.yml"
--testCommand "maestro test /users/dipakkorde/desktop/AppPerfScripts/ScrollSearchPage.yml"
--resultsFilePath /users/dipakkorde/desktop/results/resulthometosearch.json

All iterations getting completed.

@Almouro
Copy link
Member

Almouro commented Jul 4, 2024

@dipak-amber this might have been mitigated with #295, can you try again with the latest flashlight?

You should be able to upgrade with curl https://get.flashlight.dev | bash

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

2 participants