Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-746

Fix e2e tests on s390x

    • Type: Icon: Build Failure Build Failure
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: 0.12.1
    • Component/s: CI, CLI Module, Tech debt
    • None
    • Environment:
      Linux s390x
    • Not Needed

      There are three E2E tests that are failing consistently on s390x:

      [2021/05/04 13:20:40.073] @mongosh/cli-repl:   3 failing
      [2021/05/04 13:20:40.076] @mongosh/cli-repl:   1) e2e direct connection
      [2021/05/04 13:20:40.076] @mongosh/cli-repl:        to a replica set
      [2021/05/04 13:20:40.076] @mongosh/cli-repl:          after rs.initiate()
      [2021/05/04 13:20:40.076] @mongosh/cli-repl:            connecting to secondary members directly
      [2021/05/04 13:20:40.076] @mongosh/cli-repl:              autocompletes collection names:
      [2021/05/04 13:20:40.076] @mongosh/cli-repl:       [Timed out 10000ms] Expected shell output to include "db.testcollection"
      [2021/05/04 13:20:40.076] @mongosh/cli-repl:       + expected - actual
      [2021/05/04 13:20:40.076] @mongosh/cli-repl:       -Current Mongosh Log ID:	609148ea1f470e85e20e8daf
      [2021/05/04 13:20:40.076] @mongosh/cli-repl:       -Connecting to:		mongodb://localhost:30180/test-1620134109285-64152?directConnection=true&serverSelectionTimeoutMS=2000
      [2021/05/04 13:20:40.076] @mongosh/cli-repl:       -Using MongoDB:		4.4.5
      [2021/05/04 13:20:40.076] @mongosh/cli-repl:       -Using Mongosh Beta:	0.0.0-dev.0
      [2021/05/04 13:20:40.076] @mongosh/cli-repl:       -
      [2021/05/04 13:20:40.076] @mongosh/cli-repl:       -For mongosh info see: https://docs.mongodb.com/mongodb-shell/
      [2021/05/04 13:20:40.076] @mongosh/cli-repl:       -
      [2021/05/04 13:20:40.076] @mongosh/cli-repl:       -------
      [2021/05/04 13:20:40.076] @mongosh/cli-repl:       -   The server generated these startup warnings when booting:
      [2021/05/04 13:20:40.076] @mongosh/cli-repl:       -   2021-05-04T13:14:50.436+00:00: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted
      [2021/05/04 13:20:40.076] @mongosh/cli-repl:       -   2021-05-04T13:14:50.436+00:00: This server is bound to localhost. Remote systems will be unable to connect to this server. Start the server with --bind_ip <address> to specify which IP addresses it should serve responses from, or with --bind_ip_all to bind to all interfaces. If this behavior is desired, start the server with --bind_ip 127.0.0.1 to disable this warning
      [2021/05/04 13:20:40.076] @mongosh/cli-repl:       -   2021-05-04T13:14:50.436+00:00: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. We suggest setting it to 'never'
      [2021/05/04 13:20:40.076] @mongosh/cli-repl:       -   2021-05-04T13:14:50.436+00:00: /sys/kernel/mm/transparent_hugepage/defrag is 'always'. We suggest setting it to 'never'
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       -------
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       -
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       -Enterprise replset [direct: secondary]> db.testc		
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       +db.testcollection
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:   AssertionError [ERR_ASSERTION]: Expected shell output to include "db.testcollection"
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       at new AssertionError (internal/assert/assertion_error.js:448:11)
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       at TestShell.assertContainsOutput (test/test-shell.ts:200:13)
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       at /data/mci/c5c7e044bb5578cae55996bdff4f2053/src/packages/cli-repl/test/e2e-direct.spec.ts:122:19
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       at Object.eventually (test/helpers.ts:15:13)
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       at Context.<anonymous> (test/e2e-direct.spec.ts:121:11)
      [2021/05/04 13:20:40.077] @mongosh/cli-repl: 
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:   2) e2e direct connection
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:        to a replica set
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:          after rs.initiate()
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:            connecting to primary
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:              autocompletes collection names:
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       [Timed out 10000ms] Expected shell output to include "db.testcollection"
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       + expected - actual
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       -Current Mongosh Log ID:	60914903197a99fa32ecae1f
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       -Connecting to:		mongodb://localhost:30180/test-1620134109285-64152?directConnection=true&serverSelectionTimeoutMS=2000
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       -Using MongoDB:		4.4.5
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       -Using Mongosh Beta:	0.0.0-dev.0
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       -
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       -For mongosh info see: https://docs.mongodb.com/mongodb-shell/
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       -
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       -------
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       -   The server generated these startup warnings when booting:
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       -   2021-05-04T13:14:50.436+00:00: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       -   2021-05-04T13:14:50.436+00:00: This server is bound to localhost. Remote systems will be unable to connect to this server. Start the server with --bind_ip <address> to specify which IP addresses it should serve responses from, or with --bind_ip_all to bind to all interfaces. If this behavior is desired, start the server with --bind_ip 127.0.0.1 to disable this warning
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       -   2021-05-04T13:14:50.436+00:00: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. We suggest setting it to 'never'
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       -   2021-05-04T13:14:50.436+00:00: /sys/kernel/mm/transparent_hugepage/defrag is 'always'. We suggest setting it to 'never'
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       -------
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       -
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       -Enterprise replset [direct: secondary]> db.testc		
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       +db.testcollection
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:   AssertionError [ERR_ASSERTION]: Expected shell output to include "db.testcollection"
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       at new AssertionError (internal/assert/assertion_error.js:448:11)
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       at TestShell.assertContainsOutput (test/test-shell.ts:200:13)
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       at /data/mci/c5c7e044bb5578cae55996bdff4f2053/src/packages/cli-repl/test/e2e-direct.spec.ts:194:19
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       at Object.eventually (test/helpers.ts:15:13)
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:       at Context.<anonymous> (test/e2e-direct.spec.ts:193:11)
      [2021/05/04 13:20:40.077] @mongosh/cli-repl: 
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:   3) e2e
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:        config, logging and rc file
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:          in fully accessible environment
      [2021/05/04 13:20:40.077] @mongosh/cli-repl:            history file
      [2021/05/04 13:20:40.078] @mongosh/cli-repl:              persists between sessions:
      [2021/05/04 13:20:40.078] @mongosh/cli-repl:      AssertionError: [Timed out 10000ms] expected 'Current Mongosh Log ID:\t60914a0b28cebc295f8e04d6\nUsing MongoDB:\t\tundefined\nUsing Mongosh Beta:\t0.0.0-dev.0\n\nFor mongosh info see: https://docs.mongodb.com/mongodb-shell/\n\n>; ' to include 'a = 42'
      [2021/05/04 13:20:40.078] @mongosh/cli-repl:       at /data/mci/c5c7e044bb5578cae55996bdff4f2053/src/packages/cli-repl/test/e2e.spec.ts:779:37
      [2021/05/04 13:20:40.078] @mongosh/cli-repl:       at Object.eventually (test/helpers.ts:15:13)
      [2021/05/04 13:20:40.078] @mongosh/cli-repl:       at Context.<anonymous> (test/e2e.spec.ts:778:11)
      [2021/05/04 13:20:40.078] @mongosh/cli-repl: 
      

      We should fix them. Doing so in a reasonable timeframe probably involves getting SSH access to one of the s390x hosts in some way.

            Assignee:
            Unassigned Unassigned
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: