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
{{ message }}
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.
After building a new Docker image for GitLab CI/CD, it happens that running angular e2e tests inside it triggers an unknown error regardless of the tests status, thus breaking the CI pipeline. It used to work with a previous Docker image and also works on another Linux machine without Docker.
import { ListPage } from "./list.po";
describe("list page", () => {
let page: ListPage;
beforeEach(() => {
page = new ListPage();
});
it("when list is open, user should see the list of available compute nodes", async () => {
await page.navigateTo();
expect(page.getCalculatorsMenuLength()).toBeGreaterThan(8);
});
});
Output from running the test
ng e2e --dev-server-target= --specs="e2e/list.e2e-spec.ts"
[11:43:09] I/update - chromedriver: file exists /build/nghyd/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_83.0.4103.39.zip
[11:43:09] I/update - chromedriver: unzipping chromedriver_83.0.4103.39.zip
[11:43:10] I/update - chromedriver: setting permissions to 0755 for /build/nghyd/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_83.0.4103.39
[11:43:10] I/update - chromedriver: chromedriver_83.0.4103.39 up to date
[11:43:10] I/launcher - Running 1 instances of WebDriver
[11:43:10] I/direct - Using ChromeDriver directly...
Started
.
1 spec, 0 failures
Finished in 3.296 seconds
[11:43:18] I/launcher - 0 instance(s) of WebDriver still running
[11:43:18] I/launcher - chrome #01 passed
events.js:291
throw er; // Unhandled 'error' event
^
Error: spawn ps ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:268:19)
at onErrorNT (internal/child_process.js:468:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:274:12)
at onErrorNT (internal/child_process.js:468:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
errno: -2,
code: 'ENOENT',
syscall: 'spawn ps',
path: 'ps',
spawnargs: [ '-o', 'pid', '--no-headers', '--ppid', 3867 ]
}
Steps to reproduce the bug
Run ng e2e in a Debian 10 based Docker container, whatever the chromium / chromedriver version (tried downgrading to 80.x), whatever the nodejs version (tried downgrading to 12.x). Running only one test as in the example above or the whole test suite changes nothing.
Running the same test suite in a previous Docker container based on Debian 9 used to work. For some reason we built a new Docker image, and the issue appeared.
Running it on a Linux Mint 19 machine with the same versions of node, Protractor, chromium, chromedriver, works (and has always worked) as expected.
Thank you
The text was updated successfully, but these errors were encountered:
After building a new Docker image for GitLab CI/CD, it happens that running angular e2e tests inside it triggers an unknown error regardless of the tests status, thus breaking the CI pipeline. It used to work with a previous Docker image and also works on another Linux machine without Docker.
14.5.0
7.0.0
9.0.6
Chromium 83.0.4103.116
Debian 10.4
Run
ng e2e
in a Debian 10 based Docker container, whatever the chromium / chromedriver version (tried downgrading to 80.x), whatever the nodejs version (tried downgrading to 12.x). Running only one test as in the example above or the whole test suite changes nothing.Running the same test suite in a previous Docker container based on Debian 9 used to work. For some reason we built a new Docker image, and the issue appeared.
Running it on a Linux Mint 19 machine with the same versions of node, Protractor, chromium, chromedriver, works (and has always worked) as expected.
Thank you
The text was updated successfully, but these errors were encountered: