Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Troubleshoot wasm-bindgen CI tests with firefox #1121

Open
insipx opened this issue Oct 7, 2024 · 0 comments
Open

Troubleshoot wasm-bindgen CI tests with firefox #1121

insipx opened this issue Oct 7, 2024 · 0 comments
Labels
bug Something isn't working wasm-backend

Comments

@insipx
Copy link
Contributor

insipx commented Oct 7, 2024

wasm-bindgen headless tests with firefox using geckodriver complete successfully locally. In GithubCI, chrome headless tests also complete successfully. Firefox tests fail with a glx crash seemingly related to X-Server on ubuntu:

It would be nice to run webassembly tests on multiple browser engines

link to failing github action

driver status: signal: 9 (SIGKILL)
driver stdout:
    1728079653616	geckodriver	INFO	Listening on 127.0.0.1:39405
    1728079653719	mozrunner::runner	INFO	Running command: MOZ_CRASHREPORTER="1" MOZ_CRASHREPORTER_NO_REPORT="1" MOZ_CRASHREPORTER_SHUTDOWN="1" MOZ_NO_REMOTE="1" "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofileICQv1s"
    console.warn: services.settings: Ignoring preference override of remote settings server
    console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
    [GFX1-]: glxtest: Unable to open a connection to the X server
    1728079653899	Marionette	INFO	Marionette enabled
    1728079654024	Marionette	INFO	Listening on port 39683
    Read port: 39683
    [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
    console.error: ({})
    1728079775034	Marionette	INFO	Stopped listening on port 39683

driver stderr:
    *** You are running in headless mode.

These are the lines to run firefox tests in CI (can be added to test-webassembly.yml workflow:

- name: test with firefox
        run: |
          cargo test --release --target=wasm32-unknown-unknown -p xmtp_mls -p xmtp_id -p xmtp_api_http -- \
            --skip xmtp_mls::subscriptions --skip xmtp_mls::groups::subscriptions \
            --skip xmtp_mls::storage::encrypted_store::group_message::tests::it_cannot_insert_message_without_group \
            --skip xmtp_mls::groups::tests::process_messages_abort_on_retryable_error \
            --skip  xmtp_mls::storage::encrypted_store::group::tests::test_find_groups \
            --skip xmtp_mls::storage::encrypted_store::group::tests::test_installations_last_checked_is_updated
        working-directory: ./
        env:
          GECKODRIVER: "geckodriver"
@insipx insipx added bug Something isn't working wasm-backend labels Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wasm-backend
Projects
Status: No status
Development

No branches or pull requests

1 participant