You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the issue
We added retries to protractor e2e test failures.
However, they do not seem to work: the retry will fail immediately with an error:
Re-running tests , attempt : 1
Re-running the following test files : /home/runner/work/cht-core/cht-core/tests/e2e/protractor/client-side-transitions/forms/index.js,/home/runner/work/cht-core/cht-core/tests/e2e/protractor/client-side-transitions/muting.js,/home/runner/work/cht-core/cht-core/tests/e2e/protractor/contacts/contact-summary.js,/home/runner/work/cht-core/cht-core/tests/e2e/protractor/contacts/reports-subject.js,/home/runner/work/cht-core/cht-core/tests/e2e/protractor/sms/africas-talking.js,/home/runner/work/cht-core/cht-core/tests/e2e/protractor/sms/rapidpro.spec.js,/home/runner/work/cht-core/cht-core/tests/e2e/protractor/sms/registration-by-sms.js,/home/runner/work/cht-core/cht-core/tests/e2e/protractor/sms/send-message.js,/home/runner/work/cht-core/cht-core/tests/e2e/protractor/targets/target-aggregates.spec.js,/home/runner/work/cht-core/cht-core/tests/e2e/protractor/translations/incorrect-locale.spec.js,/home/runner/work/cht-core/cht-core/tests/e2e/protractor/client-side-transitions/forms/index.js,/home/runner/work/cht-core/cht-core/tests/e2e/protractor/client-side-transitions/muting.js,/home/runner/work/cht-core/cht-core/tests/e2e/protractor/contacts/contact-summary.js,/home/runner/work/cht-core/cht-core/tests/e2e/protractor/contacts/reports-subject.js,/home/runner/work/cht-core/cht-core/tests/e2e/protractor/sms/africas-talking.js,/home/runner/work/cht-core/cht-core/tests/e2e/protractor/sms/rapidpro.spec.js,/home/runner/work/cht-core/cht-core/tests/e2e/protractor/sms/registration-by-sms.js,/home/runner/work/cht-core/cht-core/tests/e2e/protractor/sms/send-message.js,/home/runner/work/cht-core/cht-core/tests/e2e/protractor/targets/target-aggregates.spec.js,/home/runner/work/cht-core/cht-core/tests/e2e/protractor/translations/incorrect-locale.spec.js
Closing report
[12:10:57] E/launcher - callback is not a function
[12:10:57] E/launcher - TypeError: callback is not a function
at /home/runner/work/cht-core/cht-core/node_modules/protractor-jasmine2-screenshot-reporter/index.js:525:11
at FSReqCallback.oncomplete (node:fs:192:23)
dianabarsan
changed the title
Protractor test failures are not retried and clear results from previous failure
Protractor test failures are not retried and failed retries clear results from previous failure
Feb 25, 2023
Describe the issue
We added retries to protractor e2e test failures.
However, they do not seem to work: the retry will fail immediately with an error:
Example run: https://github.com/medic/cht-core/actions/runs/4269504105/jobs/7433297666#step:16:634
The report folder is also overwritten, and the other failure screenshots are deleted, which makes debugging harder.
Describe the improvement you'd like
Fix it so retries will happen.
Describe alternatives you've considered
Have it so the retrying will not clear previous results folder. even if retries don't work.
The text was updated successfully, but these errors were encountered: