Skip to content

[test]: can't run test suite locally on MacOS arm64 #1392

Open
@VerteDinde

Description

@VerteDinde

Preflight Checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Issue Details

  • Electron Packager Version:
    • main/15.5.0
  • Electron Version:
    • Electron 6.0.0 (headers used in test suite)
  • Operating System:
    • macOS 12.4.0 arm64
  • Last Known Working Electron Packager version::
    • N/A, issue is specific to Apple Silicon

Expected Behavior

Running ./test/ci/before_install.sh and npm test should run the test suite locally.

Actual Behavior

Running npm test works as expected on x64, but fails on arm64 with the following error:

Downloading Electron v1.4.13 before running tests...
HTTPError: Response code 404 (Not Found) for https://github.com/electron/electron/releases/download/v6.0.0/electron-v6.0.0-darwin-arm64.zip

This is almost certainly because Electron 6 was released before arm64 was available, and there was no version of Electron being built for arm64. While there are several tests that depend on testing specific Electron versions (e.g. 6.0.0), we may want to modify tests that don't depend on those versions to be able to run locally on an arm64 machine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions