Page MenuHomePhabricator

Fix cxserver CI errors related to MTClient
Closed, ResolvedPublic2 Estimated Story Points

Description

See: https://integration.wikimedia.org/ci/job/cxserver-pipeline-test/919/console

# Subtest: Test: Find longest match among multiple matches
    not ok 8 - Test: Find longest match among multiple matches

not ok 10 - Apertium machine translation
  ---
  duration_ms: 112.559846
  type: 'suite'
  failureType: 'subtestsFailed'
  error: '1 subtest failed'
  code: 'ERR_TEST_FAILURE'

# Subtest: Machine translation result with extra spaces
    # Subtest: Should be cleaned up
    not ok 1 - Should be cleaned up

not ok 15 - Machine translation result with extra spaces
...

Appears to happen if you checkout to master branch and then run npm update and then run npm unittest

This is being caused because we perform string comparison of HTML, and the HTML attributes returned may not always be in the same order.

CI Log in-case it's deleted:

Event Timeline

abi_ raised the priority of this task from Medium to High.

Change #1150682 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/services/cxserver@master] tests: Add method to perform deep DOM structure

https://gerrit.wikimedia.org/r/1150682

Change #1150682 merged by jenkins-bot:

[mediawiki/services/cxserver@master] tests: Add method to perform deep DOM structure

https://gerrit.wikimedia.org/r/1150682

Change #1151408 had a related patch set uploaded (by KartikMistry; author: KartikMistry):

[operations/deployment-charts@master] Update cxserver to 2025-05-28-042852-production

https://gerrit.wikimedia.org/r/1151408

Change #1151408 merged by jenkins-bot:

[operations/deployment-charts@master] Update cxserver to 2025-05-28-042852-production

https://gerrit.wikimedia.org/r/1151408

Mentioned in SAL (#wikimedia-operations) [2025-05-28T06:44:01Z] <kart_> Updated cxserver to 2025-05-28-042852-production (T387229, T395259)