[COMPASS-4789] Evergreen: Fix and re-enable tests for RHEL Created: 04/May/21  Updated: 29/Oct/23  Resolved: 19/May/21

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: 1.27

Type: Task Priority: Major - P3
Reporter: Sergey Petushkov Assignee: Sergey Petushkov
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: COMPASS-4479
Documentation Changes: Not Needed

 Description   

We never ran any compass tests on RHEL machines, currently when enabled they are failing due to pretest.sh xvfb start up code. We should adjust the script so that RHEL tests can be run in CI



 Comments   
Comment by Githook User [ 03/Jun/21 ]

Author:

{'name': 'Sergey', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: test: Make sure all tests are passing on Ubuntu and RHEL COMPASS-4789 COMPASS-4791 COMPASS-4792 COMPASS-4793 COMPASS-4794 (#2199)

  • test(hadron-build): Provide package.json engine values that will not break the build
  • test(storage-mixin): Skip all tests that use keytar on linux

There is an issue with gnome-keyring in CI that needs investigation
and resolution before we can make these tests work properly. For now
we are running those tests only on other platforms that gives us
confidence that the secure backend is actually working

  • test: Always use --no-sandbox when running tests with electron runtime

This is to work around the 'Running as root without --no-sandbox is not supported'
issue on RHEL machines where evergreen always uses root user.

  • test(@mongodb-js/compass-connect): Use xvfb for tests that require it; Do not override mongodb server version set by the CI
  • test(mongodb-connection-model): Do not override mongodb server version set by the CI
  • chore: Remove gnome-keyring workaround as it doesn't seem to work anyway

See https://evergreen.mongodb.com/task_log_raw/10gen_compass_master_ubuntu_oneshot_compile_test_package_publish_patch_deada2be5e2b87484d86691426c75cdf07eec128_60a295de0305b922ca406328_21_05_17_16_12_22/0?type\=T\&text\=true where CI still fails even with the 'fix' being applied in the run

  • ci: Enable tests everywhere
Comment by Githook User [ 19/May/21 ]

Author:

{'name': 'Sergey', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: test: Make sure all tests are passing on Ubuntu and RHEL COMPASS-4789 COMPASS-4791 COMPASS-4792 COMPASS-4793 COMPASS-4794 (#2199)

  • test(hadron-build): Provide package.json engine values that will not break the build
  • test(storage-mixin): Skip all tests that use keytar on linux

There is an issue with gnome-keyring in CI that needs investigation
and resolution before we can make these tests work properly. For now
we are running those tests only on other platforms that gives us
confidence that the secure backend is actually working

  • test: Always use --no-sandbox when running tests with electron runtime

This is to work around the 'Running as root without --no-sandbox is not supported'
issue on RHEL machines where evergreen always uses root user.

  • test(@mongodb-js/compass-connect): Use xvfb for tests that require it; Do not override mongodb server version set by the CI
  • test(mongodb-connection-model): Do not override mongodb server version set by the CI
  • chore: Remove gnome-keyring workaround as it doesn't seem to work anyway

See https://evergreen.mongodb.com/task_log_raw/10gen_compass_master_ubuntu_oneshot_compile_test_package_publish_patch_deada2be5e2b87484d86691426c75cdf07eec128_60a295de0305b922ca406328_21_05_17_16_12_22/0?type\=T\&text\=true where CI still fails even with the 'fix' being applied in the run

  • ci: Enable tests everywhere
Comment by Githook User [ 19/May/21 ]

Author:

{'name': 'Sergey', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: test: Make sure all tests are passing on Ubuntu and RHEL COMPASS-4789 COMPASS-4791 COMPASS-4792 COMPASS-4793 COMPASS-4794 (#2199)

  • test(hadron-build): Provide package.json engine values that will not break the build
  • test(storage-mixin): Skip all tests that use keytar on linux

There is an issue with gnome-keyring in CI that needs investigation
and resolution before we can make these tests work properly. For now
we are running those tests only on other platforms that gives us
confidence that the secure backend is actually working

  • test: Always use --no-sandbox when running tests with electron runtime

This is to work around the 'Running as root without --no-sandbox is not supported'
issue on RHEL machines where evergreen always uses root user.

  • test(@mongodb-js/compass-connect): Use xvfb for tests that require it; Do not override mongodb server version set by the CI
  • test(mongodb-connection-model): Do not override mongodb server version set by the CI
  • chore: Remove gnome-keyring workaround as it doesn't seem to work anyway

See https://evergreen.mongodb.com/task_log_raw/10gen_compass_master_ubuntu_oneshot_compile_test_package_publish_patch_deada2be5e2b87484d86691426c75cdf07eec128_60a295de0305b922ca406328_21_05_17_16_12_22/0?type\=T\&text\=true where CI still fails even with the 'fix' being applied in the run

  • ci: Enable tests everywhere
Generated at Wed Feb 07 22:37:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.