Closed Bug 1882393 Opened 1 year ago Closed 11 months ago

Minor UTF-8 table formatting difference in ui-test-apk task logs

Categories

(Release Engineering :: General, defect, P3)

Tracking

(firefox129 fixed)

RESOLVED FIXED
Tracking Status
firefox129 --- fixed

People

(Reporter: aaronmt, Assigned: gbrown)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Minor UTF-8 issue I'm seeing with legibilitiy on Oak branch ui-test-apk tasks

Current:

[task 2024-02-27T19:46:44.563Z] ┌─────────┬──────────────────────┬──────────┬────────────────┬──────────────────────────────┬─────────────────────┐
[task 2024-02-27T19:46:44.563Z] │ OUTCOME │      MATRIX ID       │ APP NAME │ TEST FILE NAME │       TEST AXIS VALUE        │    TEST DETAILS     │
[task 2024-02-27T19:46:44.563Z] ├─────────┼──────────────────────┼──────────┼────────────────┼──────────────────────────────┼─────────────────────┤
[task 2024-02-27T19:46:44.563Z] │ failure │ matrix-1rtc3bogrwgqm │ app.apk  │ N/A            │ oriole-31-en_US-portrait     │ Application crashed │
[task 2024-02-27T19:46:44.563Z] │ success │ matrix-1rtc3bogrwgqm │ app.apk  │ N/A            │ redfin-30-en_US-portrait     │ ---                 │
[task 2024-02-27T19:46:44.564Z] │ success │ matrix-1rtc3bogrwgqm │ app.apk  │ N/A            │ x1q-29-en_US-portrait        │ ---                 │
[task 2024-02-27T19:46:44.564Z] │ success │ matrix-1rtc3bogrwgqm │ app.apk  │ N/A            │ java-30-en_US-portrait       │ ---                 │
[task 2024-02-27T19:46:44.564Z] │ success │ matrix-1rtc3bogrwgqm │ app.apk  │ N/A            │ Pixel2.arm-27-en_US-portrait │ ---                 │
[task 2024-02-27T19:46:44.564Z] └─────────┴──────────────────────┴──────────┴────────────────┴──────────────────────────────┴─────────────────────┘

Oak:

[task 2024-02-22T20:36:13.011Z] ????????????????????????????????????????????????????????????????????????????????????????????????????????????
[task 2024-02-22T20:36:13.011Z] ? OUTCOME ?      MATRIX ID       ? APP NAME ? TEST FILE NAME ?       TEST AXIS VALUE        ? TEST DETAILS ?
[task 2024-02-22T20:36:13.011Z] ????????????????????????????????????????????????????????????????????????????????????????????????????????????
[task 2024-02-22T20:36:13.011Z] ? success ? matrix-1l4jznrvnebbr ? app.apk  ? N/A            ? java-30-en_US-portrait       ? ---          ?
[task 2024-02-22T20:36:13.011Z] ? success ? matrix-1l4jznrvnebbr ? app.apk  ? N/A            ? oriole-31-en_US-portrait     ? ---          ?
[task 2024-02-22T20:36:13.011Z] ? success ? matrix-1l4jznrvnebbr ? app.apk  ? N/A            ? x1q-29-en_US-portrait        ? ---          ?
[task 2024-02-22T20:36:13.011Z] ? success ? matrix-1l4jznrvnebbr ? app.apk  ? N/A            ? redfin-30-en_US-portrait     ? ---          ?
[task 2024-02-22T20:36:13.011Z] ? success ? matrix-1l4jznrvnebbr ? app.apk  ? N/A            ? Pixel2.arm-27-en_US-portrait ? ---          ?
[task 2024-02-22T20:36:13.011Z] ????????????????????????????????????????????????????????????????????????????????????????????????????????????

Not the end of the world, but I'm guessing it's a UTF-8 issue with the host. Is this configurable anywhere?

I dumped the environment from a github (good) ui-test-apk-fenix-debug task:

[task 2024-03-01T22:13:22.202Z] ENV SHELL: /bin/bash
[task 2024-03-01T22:13:22.202Z] ENV HOSTNAME: 25c8af835882
[task 2024-03-01T22:13:22.202Z] ENV MOZ_AUTOMATION: 1
[task 2024-03-01T22:13:22.202Z] ENV MOBILE_HEAD_REF: debug-utf8
[task 2024-03-01T22:13:22.202Z] ENV MOBILE_HEAD_REV: 9fa1eae9dde1174da89e04a96be3b89973928bff
[task 2024-03-01T22:13:22.202Z] ENV TASKCLUSTER_ROOT_URL: https://firefox-ci-tc.services.mozilla.com
[task 2024-03-01T22:13:22.203Z] ENV PWD: /builds/worker/checkouts/vcs/fenix
[task 2024-03-01T22:13:22.203Z] ENV TASKCLUSTER_WORKER_POOL: mobile-1/b-linux-gcp
[task 2024-03-01T22:13:22.203Z] ENV GOOGLE_APPLICATION_CREDENTIALS: .firebase_token.json
[task 2024-03-01T22:13:22.203Z] ENV GOOGLE_SDK_DOWNLOAD: ./gcloud.tar.gz
[task 2024-03-01T22:13:22.203Z] ENV TASK_WORKDIR: /builds/worker
[task 2024-03-01T22:13:22.203Z] ENV TASKCLUSTER_PORT_80_TCP_PORT: 80
[task 2024-03-01T22:13:22.203Z] ENV HOME: /builds/worker
[task 2024-03-01T22:13:22.203Z] ENV TASKCLUSTER_WORKER_GROUP: us-central1
[task 2024-03-01T22:13:22.203Z] ENV LANG: en_US.UTF-8
[task 2024-03-01T22:13:22.203Z] ENV TASKCLUSTER_NAME: /clever_poincare/taskcluster
[task 2024-03-01T22:13:22.203Z] ENV VCS_PATH: /builds/worker/checkouts/vcs
[task 2024-03-01T22:13:22.203Z] ENV TASKCLUSTER_INSTANCE_TYPE: projects/887720501152/machineTypes/n2-standard-4
[task 2024-03-01T22:13:22.203Z] ENV TEST_TOOLS: /builds/worker/test-tools
[task 2024-03-01T22:13:22.203Z] ENV CURL: curl --location --retry 5
[task 2024-03-01T22:13:22.203Z] ENV TASKCLUSTER_PORT: tcp://172.17.0.3:80
[task 2024-03-01T22:13:22.203Z] ENV MOBILE_HEAD_REPOSITORY: https://github.com/gbrownmozilla/firefox-android
[task 2024-03-01T22:13:22.203Z] ENV TASKCLUSTER_WORKER_LOCATION: {"cloud":"google","region":"us-central1","zone":"us-central1-b"}
[task 2024-03-01T22:13:22.203Z] ENV TERM: dumb
[task 2024-03-01T22:13:22.203Z] ENV TASKCLUSTER_PUBLIC_IP: 34.68.235.162
[task 2024-03-01T22:13:22.203Z] ENV HG_STORE_PATH: /builds/worker/checkouts/hg-store
[task 2024-03-01T22:13:22.203Z] ENV TASKCLUSTER_PORT_80_TCP_PROTO: tcp
[task 2024-03-01T22:13:22.203Z] ENV MOZ_SCM_LEVEL: 1
[task 2024-03-01T22:13:22.203Z] ENV SHLVL: 0
[task 2024-03-01T22:13:22.203Z] ENV TASKCLUSTER_PROXY_URL: http://taskcluster
[task 2024-03-01T22:13:22.203Z] ENV MOBILE_REPOSITORY_TYPE: git
[task 2024-03-01T22:13:22.203Z] ENV SCCACHE_DISABLE: 1
[task 2024-03-01T22:13:22.203Z] ENV REPOSITORIES: {"mobile": "firefox-android"}
[task 2024-03-01T22:13:22.203Z] ENV GOOGLE_PROJECT: moz-fenix
[task 2024-03-01T22:13:22.203Z] ENV GOOGLE_SDK_VERSION: 450
[task 2024-03-01T22:13:22.203Z] ENV GRADLE_OPTS: -Xmx4096m -Dorg.gradle.daemon=false -Dorg.gradle.parallel=false
[task 2024-03-01T22:13:22.203Z] ENV PATH: /builds/worker/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/builds/worker/test-tools:/builds/worker/test-tools/google-cloud-sdk/bin
[task 2024-03-01T22:13:22.203Z] ENV RUN_ID: 0
[task 2024-03-01T22:13:22.203Z] ENV MOBILE_BASE_REPOSITORY: https://github.com/mozilla-mobile/firefox-android
[task 2024-03-01T22:13:22.203Z] ENV TASK_ID: EpuExeoUSq6pIMYvVzqICw
[task 2024-03-01T22:13:22.203Z] ENV TASKCLUSTER_WORKER_TYPE: b-linux-gcp
[task 2024-03-01T22:13:22.203Z] ENV PULL_REQUEST_NUMBER: 5844
[task 2024-03-01T22:13:22.203Z] ENV TASKCLUSTER_PORT_80_TCP_ADDR: 172.17.0.3
[task 2024-03-01T22:13:22.203Z] ENV TASKCLUSTER_PORT_80_TCP: tcp://172.17.0.3:80
[task 2024-03-01T22:13:22.203Z] ENV OLDPWD: /builds/worker/checkouts/vcs
[task 2024-03-01T22:13:22.203Z] ENV _: /usr/bin/python3

The severity field is not set for this bug.
:jlorenzo, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jlorenzo)
Severity: -- → S3
Flags: needinfo?(jlorenzo)
Priority: -- → P3
[task 2024-03-14T18:33:34.088Z] ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
[task 2024-03-14T18:33:34.088Z] ? OUTCOME ?      MATRIX ID       ? APP NAME ?  TEST FILE NAME  ?       TEST AXIS VALUE        ?     TEST DETAILS      ?
[task 2024-03-14T18:33:34.088Z] ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
[task 2024-03-14T18:33:34.088Z] ? success ? matrix-y5khjhvyl0zwa ? app.apk  ? android-test.apk ? Pixel2.arm-30-en_US-portrait ? 118 test cases passed ?
[task 2024-03-14T18:33:34.088Z] ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

The presence of ANSI escape codes (e.g., [32msuccess[0m) suggests that the output is intended to be color-coded in the terminal as well

Color-coded run from firefox-android https://firefox-ci-tc.services.mozilla.com/tasks/EpuExeoUSq6pIMYvVzqICw/runs/0/logs/public/logs/live.log#L2939

Blocks: monorepo-cleanup
No longer blocks: android-to-gecko-repos

Ah I see the issue, before migration to Mozilla-Central the previous parent docker image defined an environment with

ENV LANG='en_US.UTF-8' \ LC_ALL='en_US.UTF-8' \ LANGUAGE='en_US:en'

I don't see a base Docker anymore after migration, so it looks like we can just declare this in taskcluster/docker/android-ui-tests/Dockerfile

Assignee: nobody → gbrown

I checked over the various ENV differences, but none of them had an affect on the display of this table. Similarly, I tried changing the google sdk version, checked flank.yml, etc - no change on the table. I also noticed that the MatrixResultsReport.txt artifact is identical for old tasks with the correct formatting and new tasks; I don't understand that.

I found exactly one way to restore the old table display: switch the base image from Debian back to Ubuntu.

Change the android-ui-tests docker image to be based on Ubuntu (as it was on github) rather than Debian, to restore the preferred log formatting of summary results.

Pushed by gbrown@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/09529efb551a Use ubuntu for android-ui-tests docker image r=jcristau,aaronmt

I forgot to test against the android-components ui-tests! They require many of the original packages from https://searchfox.org/mozilla-central/source/taskcluster/docker/android-components/Dockerfile -- I restored much of that.

Flags: needinfo?(gbrown)
Pushed by gbrown@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0f95ac036cde Use ubuntu for android-ui-tests docker image r=jcristau,aaronmt
Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: