Sitelet https://github.com/nodejs/node/issues/49630
Skip to content

postject sometimes cannot inject the SEA blob on Windows, resulting in flaky test #49630

Description

@joyeecheung

Refs: nodejs/reliability#663

And from a recent run that includes #49543 https://ci.nodejs.org/job/node-test-binary-windows-js-suites/23086/RUN_SUBSET=1,nodes=win2016-COMPILED_BY-vs2022-x86/console

14:07:48     �[36mStart injection of NODE_SEA_BLOB in C:\workspace\node-test-binary-windows-js-suites\node\test\.tmp.944\sea.exe...�[0m
14:07:48     �[31mError: Aborted(). Build with -sASSERTIONS for more info.�[0m

It looks like sometimes postject is unable to inject the blob? cc @RaisinTen

Activity

  1. added
    flaky-testIssues and PRs involving tests that fail intermittently in CI.
    single-executableIssues and PRs related to single-executable applications.
    on Sep 12, 2023
  2. RaisinTen commented on Sep 13, 2023

    @RaisinTen
    Member

    My Windows setup is not working right now. I can try to take a look in a couple of days.

  3. joyeecheung commented on Sep 18, 2023

    @joyeecheung
    MemberAuthor

    It can also fail on Linux during loading, I suspect we need https://chromium-review.googlesource.com/c/v8/v8/+/4608330 to fix it, but that seems separate from the postject failure on Windows

  4. joyeecheung commented on Sep 25, 2023

    @joyeecheung
    MemberAuthor

    Not sure why but this has stopped showing up in the CI..

  5. anonrig commented on Oct 17, 2023

    @anonrig
    Member
  6. added a commit that references this issue on Oct 23, 2023
  7. added a commit that references this issue on Nov 11, 2023
  8. joyeecheung commented on Nov 15, 2023

    @joyeecheung
    MemberAuthor

    I am not sure why they are still showing up in reliability reports after #50223 but they are still flaky, and it appears that other SEA tests are flaky too probably due to the same reason nodejs/reliability#718 - SIGSEGV when executing the SEA, on RHEL, Windows and macOS. Maybe we should open a separate issue because the original issue happened during injection.

  9. joyeecheung commented on Feb 26, 2024

    @joyeecheung
    MemberAuthor

    This also shows up for the asset test on Windows: https://ci.nodejs.org/job/node-test-binary-windows-js-suites/26136/RUN_SUBSET=2,nodes=win2016-COMPILED_BY-vs2022-x86/console. I suspect that postject may have trouble injecting slightly bigger files under certain circumstances.

    14:23:39     �[36mStart injection of NODE_SEA_BLOB in C:\workspace\node-test-binary-windows-js-suites\node\test\.tmp.960\sea.exe...�[0m
    14:23:39     �[31mError: Aborted(). Build with -sASSERTIONS for more info.�[0m
    

    We could probably investigate building it with ASSERTIONS.

  10. changed the title [-]test-single-executable-application-snapshot(-and-code-cache) is flaky[/-] [+]postject sometimes cannot inject the SEA blob on Windows, resulting in flaky test[/+] on Feb 26, 2024
  11. joyeecheung commented on Feb 26, 2024

    @joyeecheung
    MemberAuthor

    I wonder if we just skip the test if any of the following failed:

    1. Copy
    2. Inject
    3. Code sign

    In those cases, the failures are unlikely to be fixable by Node.js core anyway...though it might still be useful to know when it fails 100% which indicates that something is wrong with our workflow. Not sure how we can know that in single tests though.

  12. joyeecheung commented on Apr 18, 2025

    @joyeecheung
    MemberAuthor

    This seems to have disappeared. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    flaky-testIssues and PRs involving tests that fail intermittently in CI.single-executableIssues and PRs related to single-executable applications.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions