apache / apache/cordova-plugin-camera
`Chrome Testsuite workflow run` always fails
- Dominant language
- Objective-C
- Stars
- 976
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
# Bug Report
## Problem
When a PR is created, I always get a `Run failed: Chrome Testsuite`. It fails with this log:
```bash
------------------------------------------------------------
2. Create and configure local server to receive test results
------------------------------------------------------------
[paramedic] Creating local server...
[paramedic] Server is running on port: 45729
[paramedic] writing medic log url to project ws://127.0.0.1:45729
[paramedic] Start building app and running tests at 8:15:11 PM
---------------------------------------------------------
4. Run (Jasmine) tests...
... locally
---------------------------------------------------------
[paramedic] running tests locally
[paramedic] Waiting for test results...
Error: [paramedic] The device failed to connect to local server in 540 secs
Error: [paramedic] The device failed to connect to local server in 540 secs
at /opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/cordova-paramedic/lib/paramedic.js:252:47
at async ParamedicRunner.runLocalTests (/opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/cordova-paramedic/lib/paramedic.js:247:20)
at async ParamedicRunner.run (/opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/cordova-paramedic/lib/paramedic.js:87:29)
[paramedic] Removing Temporary Project: /tmp/tmp-2282-joX2Lc70Z16b
Error: [paramedic] The device failed to connect to local server in 540 secs
at /opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/cordova-paramedic/lib/paramedic.js:252:47
at async ParamedicRunner.runLocalTests (/opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/cordova-paramedic/lib/paramedic.js:247:20)
at async ParamedicRunner.run (/opt/hostedtoolcache/node/20.19.6/x64/lib/node_modules/cordova-paramedic/lib/paramedic.js:87:29)
Error: Process completed with exit code 1.
```
The main issue seems here:
```bash
The device failed to connect to local server in 540 secs
```
Sample URL: https://github.com/apache/cordova-plugin-camera/actions/runs/21185718407/job/60939755245
Can this be fixed?
### What is expected to happen?
### What does actually happen?
## Information
### Command or Code
### Environment, Platform, Device
### Version information
## Checklist
- [ ] I searched for existing GitHub issues
- [ ] I updated all Cordova tooling to most recent version
- [ ] I included all the necessary information above
Contributor guide
Research direction
Start with the Chrome Testsuite workflow run linked in the report and the cordova-paramedic stack trace, especially runLocalTests in paramedic.js around lines 247-252. Reproduce the workflow failure and investigate why the device does not connect to the local server; done means the Chrome Testsuite completes successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, nodejs
- Domain
- ci-cd, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100