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

Chromium process left running after running all tests #1417

Open
ankur22 opened this issue Sep 9, 2024 · 0 comments
Open

Chromium process left running after running all tests #1417

ankur22 opened this issue Sep 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ankur22
Copy link
Collaborator

ankur22 commented Sep 9, 2024

Brief summary

After running all the tests, chromium browser processes are left running, even when all tests pass. I've looked as far back as v1.6.0 of xk6-browser and the problem still exists.

xk6-browser version

v0.53.0

OS

NA

Chrome version

NA

Docker version and image (if applicable)

No response

Steps to reproduce the problem

Run this from the root of the project:

go clean -testcache && go test -v -p 2 -race -timeout 240s ./...

Expected behaviour

Test passes/fails but no chromium process found with at the end of the run:

ps -ef | grep "k6"

Actual behaviour

After the tests pass/fail left with running chromium processes:

  501 90854     1   0  1:17pm ttys002    0:00.68 /Applications/Google Chrome.app/Contents/MacOS/Google Chrome --user-data-dir=/var/folders/7s/686mfghs7vndw75bv87qwrmh0000gn/T/xk6-browser-data-3565833613 --enable-features=NetworkService,NetworkServiceInProcess --disable-prompt-on-repost --no-first-run --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --disable-renderer-backgrounding --no-default-browser-check --headless --metrics-recording-only --no-service-autorun --hide-scrollbars --disable-backgrounding-occluded-windows --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,AcceptCHFrame --disable-hang-monitor --disable-dev-shm-usage --password-store=basic --window-size=800,600 --disable-extensions --disable-popup-blocking --mute-audio --disable-background-timer-throttling --disable-breakpad --disable-default-apps --use-mock-keychain --disable-component-extensions-with-background-pages --force-color-profile=srgb --enable-automation --disable-background-networking --disable-ipc-flooding-protection --no-startup-window --remote-debugging-port=0
  501 90893 90854   0  1:17pm ttys002    0:00.20 /Applications/Google Chrome.app/Contents/Frameworks/Google Chrome Framework.framework/Versions/128.0.6613.120/Helpers/Google Chrome Helper (GPU).app/Contents/MacOS/Google Chrome Helper (GPU) --type=gpu-process --disable-breakpad --headless --noerrdialogs --user-data-dir=/var/folders/7s/686mfghs7vndw75bv87qwrmh0000gn/T/xk6-browser-data-3565833613 --gpu-preferences=UAAAAAAAAAAgAAAEAAAAAAAAAAAAAAAAAABgAAEAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAAAAAAAIAAAAAAAAAAgAAAAAAAAA --shared-files --field-trial-handle=1718379636,r,9472759110147634492,16591740235793374593,262144 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=AcceptCHFrame,DestroyProfileOnBrowserClose,GlobalMediaControls,ImprovedCookieControls,LazyFrameLoading,MediaRouter,PaintHolding --variations-seed-version --seatbelt-client=23
  501 90898 90854   0  1:17pm ttys002    0:00.13 /Applications/Google Chrome.app/Contents/Frameworks/Google Chrome Framework.framework/Versions/128.0.6613.120/Helpers/Google Chrome Helper.app/Contents/MacOS/Google Chrome Helper --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-GB --service-sandbox-type=network --use-mock-keychain --mute-audio --noerrdialogs --user-data-dir=/var/folders/7s/686mfghs7vndw75bv87qwrmh0000gn/T/xk6-browser-data-3565833613 --shared-files --field-trial-handle=1718379636,r,9472759110147634492,16591740235793374593,262144 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=AcceptCHFrame,DestroyProfileOnBrowserClose,GlobalMediaControls,ImprovedCookieControls,LazyFrameLoading,MediaRouter,PaintHolding --variations-seed-version --seatbelt-client=23
  501 90900 90854   0  1:17pm ttys002    0:00.04 /Applications/Google Chrome.app/Contents/Frameworks/Google Chrome Framework.framework/Versions/128.0.6613.120/Helpers/Google Chrome Helper.app/Contents/MacOS/Google Chrome Helper --type=utility --utility-sub-type=storage.mojom.StorageService --lang=en-GB --service-sandbox-type=service --use-mock-keychain --mute-audio --noerrdialogs --user-data-dir=/var/folders/7s/686mfghs7vndw75bv87qwrmh0000gn/T/xk6-browser-data-3565833613 --shared-files --field-trial-handle=1718379636,r,9472759110147634492,16591740235793374593,262144 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=AcceptCHFrame,DestroyProfileOnBrowserClose,GlobalMediaControls,ImprovedCookieControls,LazyFrameLoading,MediaRouter,PaintHolding --variations-seed-version --seatbelt-client=35
@ankur22 ankur22 added the bug Something isn't working label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant