This message was deleted.
# rancher-desktop
a
This message was deleted.
f
Can you provide more information about your setup? Is this an M1 (or M2) Mac? Did you install the corresponding version of Rancher Desktop on it? What exactly do you do to run "unit test cases"? Maybe open a Github issue and include all the information necessary for somebody else to reproduce the problem!
h
@fast-garage-66093 Thank you for replying. Its M1 Memory 16Gb.MacOS Ventura 13.5.1. Rancher Desktop Version -1.10.0. PFB the settings applied in Rancher Desktop
prasadhu@prasadhu-mac fsgbu-ob-cdda-pp-wd-status % sh runUT.sh fsgbu-ob-cdda-pp-wd-status
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
fsgbu-ob-cdda-pp-wd-status branch is [194807] Using gulpfile /usr/src/app/gulpfile.js [194807] Starting 'runUnitTests'... [194807] Starting 'copySrcJS'... [194807] Starting 'copySrcHTML'... [194807] Starting 'copySrcSCSS'... [194807] Starting 'copySrcImages'... [194807] Starting 'copySrcJSON'... [194807] Starting 'copyTemplates'... [194808] Finished 'copySrcImages' after 1.45 s [194809] Finished 'copySrcJSON' after 1.72 s [194809] Finished 'copySrcHTML' after 1.82 s [194809] Finished 'copySrcSCSS' after 1.82 s [194809] Finished 'copySrcJS' after 1.9 s [194809] Finished 'copyTemplates' after 1.97 s [194809] Starting 'unitTests'... 05 10 2023 194829.072:WARN [filelist]: Pattern "/usr/src/app/test/**/*.json" does not match any file. 05 10 2023 194843.168:INFO [karma-server]: Karma v4.4.1 server started at http://0.0.0.0:9876/ 05 10 2023 194843.179:INFO [launcher]: Launching browsers HeadlessChrome with concurrency unlimited 05 10 2023 194843.230:INFO [launcher]: Starting browser ChromeHeadless
05 10 2023 19:48:45.094:ERROR [launcher]: Cannot start ChromeHeadless
DevTools listening on ws://127.0.0.1:9222/devtools/browser/81d47b0f-f1c1-4e7c-9ff6-4d8cd1acf168 qemu: unknown option 'type=gpu-process'
f
Thank you! I don't know what
runUT.sh
is doing, so I can't tell you why it is failing. Is this available from Github somewhere?
h
I will share the file.But is it something to do with the warning in the first line of the logs?
prasadhu@prasadhu-mac fsgbu-ob-cdda-pp-wd-status % sh runUT.sh @fast-garage-66093 fsgbu-ob-cdda-pp-wd-status
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
@fast-garage-66093 this is my runUT.sh
Copy code
DOCKER_REGISTRY_PREFIX=${DOCKER_REGISTRY}/oracle/fsgbu
DOCKER_IMAGE_NAME=${DOCKER_REGISTRY_PREFIX}/plato-ui/${CI_PROJECT_NAMESPACE}/unit-test
 echo "$2"
 
docker rm -f "${CI_PROJECT_NAMESPACE}"
if [ -z "$2" ]
then
    docker run --name "${CI_PROJECT_NAMESPACE}" -t ${DOCKER_IMAGE_NAME} sh -c "chmod +x ./wrapper.sh; ./wrapper.sh $CI_PROJECT_NAMESPACE"
elif [[ "$2" == *"redwood"* || "$2" == *"cloud"* || "$2" == *"maint"* || "$2" == *"hotfix"* ]]
then
    docker run --name "${CI_PROJECT_NAMESPACE}" -t ${DOCKER_IMAGE_NAME}
else
    docker run --name "${CI_PROJECT_NAMESPACE}" -t ${DOCKER_IMAGE_NAME} sh -c "chmod +x ./wrapper.sh; ./wrapper.sh $CI_PROJECT_NAMESPACE $2"
fi

docker cp "${CI_PROJECT_NAMESPACE}":/usr/src/app/reports ./reports
docker cp "${CI_PROJECT_NAMESPACE}":/usr/src/app/web/ .

# touch -m ./reports/junit/TEST-frontend-results.xml
TEST_RESULT=$(docker logs -f "${CI_PROJECT_NAMESPACE}" | grep -c "failed\|FAILED")
if [ "$TEST_RESULT" -ne 0 ]
then
    echo "############## Unit Test Case Execution Failed ################"
    exit 1
fi

docker rm -f "${CI_PROJECT_NAMESPACE}"