Commit Graph

12 Commits

Author SHA1 Message Date
Devin Binnie
dcbb8b7a91 Fix bad path name for user data dir, upgrade node-abi (#3406)
* Fix bad path name for user data dir, upgrade node-abi

* Run windows e2e

* Enable Windows tests and fix linux e2e crash

* chore: remove redundant dependencies and environment variables in e2e workflow

* fix: resolve Linux GPU process initialization errors in GitHub Actions

* Fix linux tests

* Fix lint

* fix: Enhance GPU handling to prevent process crashes in E2E tests

This commit addresses GPU-related stability issues in our E2E test environment by:

1. Updating GPU helper utility with more comprehensive disabling methods
2. Adding environment variables to force software rendering
3. Configuring Electron to use in-process GPU rendering
4. Adding additional Linux dependencies for better GPU support
5. Expanding command-line flags to mitigate GPU process crashes

The changes include modifications to:
- e2e/utils/gpu-helper.js
- e2e/modules/environment.js
- .github/workflows/e2e-functional-template.yml
- .github/actions/install-os-dependencies/action.yaml

* Fix linux tests

* Fix linux tests

* Fix linux tests

* Fix linux tests

* Fix linux tests

* Revert "chore: remove redundant dependencies and environment variables in e2e workflow"

This reverts commit 6a8eb0cbee155c3fd3f26df8d45af8c1f5cf2f12.

* run tests with xvfb-run --auto-servernum

* change ubuntu-runner to use latest

* change ubuntu-runner to use 24.04 version

* fix linux tests

* fix linux tests

* add preload test script

* add preload test script

* add preload test script

* update preload script

* reset all changes made to fix linux e2e error

* reset all changes made to fix linux e2e error

* reset all changes made to fix linux e2e error

* fix linux package instalation

* fix chrome sandbox permission issue

* bump electron version to 36.1.0

* Revert "bump electron version to 36.1.0"

This reverts commit 4a9bf858754c0c1909b3626f703578913adf3714.

* install dbus and declare DBUS_SYSTEM_BUS_ADDRESS

* fix dbus error

* fix dbus error

* fix dbus error

* fix dbus error

* fix: Try the community suggestion

-  https://github.com/actions/runner-images/issues/12127#issuecomment-2854346891

* change libasound2 to libasound2t64

* use gcc-12-aarch64-linux-gnu instead of gcc-aarch64-linux-gnu

* remove multilib

* fix xvfb crash

* fix: add PW_CHROMIUM_ARGS

* fix: add --disable-gpu-sandbox to the e2e run command

* fix: windows job

* pass version to electron rebuild

* fix post install script under /e2e

* Revert "fix post install script under /e2e"

This reverts commit 01efeed2e5038684c0aea5bb0be837b7041be8ca.

* skip postinstall scipt for windows job

* hardcode electron version in the e2e/package.json

* update script

* Revert "update script"

This reverts commit 078d197e44dc78972876a977f4a91182d89024b6.

* update script

* reset

* upgrade electron/rebuild package

* Revert "upgrade electron/rebuild package"

This reverts commit 25b144df05152b0bc112db6473263bfd68850874.

* Patch electron/rebuild

* Fix macOS test

---------

Co-authored-by: yasserfaraazkhan <attitude3cena.yf@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2025-06-19 10:39:16 -04:00
yasser khan
9090f243b3 Upgrade E2E dependencies (#3370)
* Disable Windows job

* Fix linux Darkmode test
2025-03-11 16:28:34 -04:00
mm-prodsec-bot
4fdee550fd fix: upgrade @electron/rebuild from 3.7.0 to 3.7.1 (#3330)
Snyk has created this PR to upgrade @electron/rebuild from 3.7.0 to 3.7.1.

See this package in npm:
@electron/rebuild

See this project in Snyk:
https://app.snyk.io/org/mattermost-core/project/3dea6042-a212-4359-aa52-4b8845ec1c35?utm_source=github-enterprise&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2025-02-14 09:26:32 -05:00
mm-prodsec-bot
4e4591edb4 fix: upgrade @aws-sdk/client-s3 from 3.529.0 to 3.726.1 (#3326)
Snyk has created this PR to upgrade @aws-sdk/client-s3 from 3.529.0 to 3.726.1.

See this package in npm:
@aws-sdk/client-s3

See this project in Snyk:
https://app.snyk.io/org/mattermost-core/project/3dea6042-a212-4359-aa52-4b8845ec1c35?utm_source=github-enterprise&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2025-02-14 09:02:28 -05:00
mm-prodsec-bot
f0aaac5dc9 fix: upgrade chai from 4.3.6 to 4.5.0 (#3327)
Snyk has created this PR to upgrade chai from 4.3.6 to 4.5.0.

See this package in npm:
chai

See this project in Snyk:
https://app.snyk.io/org/mattermost-core/project/3dea6042-a212-4359-aa52-4b8845ec1c35?utm_source=github-enterprise&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2025-02-14 09:01:15 -05:00
mm-prodsec-bot
79ac9d7a7e fix: upgrade playwright from 1.42.0 to 1.49.1 (#3324)
Snyk has created this PR to upgrade playwright from 1.42.0 to 1.49.1.

See this package in npm:
playwright

See this project in Snyk:
https://app.snyk.io/org/mattermost-core/project/3dea6042-a212-4359-aa52-4b8845ec1c35?utm_source=github-enterprise&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2025-02-14 08:59:43 -05:00
Devin Binnie
f00dd624a1 [MM-62589] Push cross-spawn to v7.0.6 (#3319) 2025-02-11 08:38:30 -05:00
Devin Binnie
14bb75eaed [MM-61271] Upgrade to Electron v33.0.2 (#3181)
* [MM-61271] Upgrade to Electron v33.0.2

* Fix node-abi

* Fix and patch nan
2024-10-25 09:35:13 -04:00
mm-prodsec-bot
4ac0d68ed8 fix: e2e/package.json & e2e/package-lock.json to reduce vulnerabilities (#3163)
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-INFLIGHT-6095116

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2024-10-11 13:21:31 -04:00
mm-prodsec-bot
8771c9bc93 fix: e2e/package.json & e2e/package-lock.json to reduce vulnerabilities (#3123)
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-AXIOS-7361793

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2024-08-22 10:16:00 -04:00
mm-prodsec-bot
074ef5dd8a [Snyk] Security upgrade @aws-sdk/client-s3 from 3.445.0 to 3.529.0 (#3117)
* fix: e2e/package.json & e2e/package-lock.json to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-FASTXMLPARSER-7573289

* Fix: Cannot find module 'fast-xml-parser'

* Fix: Cannot find module 'mochawesome-report-generator'

---------

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: yasserfaraazkhan <attitude3cena.yf@gmail.com>
2024-08-01 09:11:25 -04:00
Devin Binnie
7b1b25b6e0 Move all E2E dependencies into its own folder, run from there (#3068)
* Move all E2E dependencies into its own folder, run from there

* Run flaky-tests from E2E folder

* This should work better

* Fix E2E test for Linux

* Fix for Windows, fix lint
2024-06-17 15:24:15 -04:00