Skip to content

[JS][CI] Timeout on macos in GitHub Actions #36154

Closed

Description

@abetomo

Describe the bug, including details regarding any error messages, version, and platform.

https://github.com/apache/arrow/actions/runs/5097749959/jobs/9164462790

macos in name: NodeJS times out.

AMD64 macOS 11 NodeJS 18
The job running on runner GitHub Actions 25 has exceeded the maximum execution time of 60 minutes.

Component(s)

JavaScript

Activity

  1. abetomo commented on Jun 18, 2023

    @abetomo
    ContributorAuthor

    Should we speed up the task?
    Increase timeout values?

  2. kou commented on Jun 19, 2023

    @kou
    Member

    Should we speed up the task?

    It's better.

    @domoritz Do you have any idea to speed up gulp test?

  3. changed the title [-][JS] [CI] Timeout on `macos` in GitHub Actions[/-] [+][JS][CI] Timeout on `macos` in GitHub Actions[/+] on Jun 19, 2023
  4. domoritz commented on Jun 19, 2023

    @domoritz
    Member

    Not really. It’s would need significant work to make it faster.

  5. abetomo commented on Jun 20, 2023

    @abetomo
    ContributorAuthor

    take

  6. abetomo commented on Jun 20, 2023

    @abetomo
    ContributorAuthor

    I will try to speed up the task.
    If you can think of any ideas on how to speed up tasks, please let me know.

  7. abetomo commented on Jun 26, 2023

    @abetomo
    ContributorAuthor

    There did not seem to be any particularly slow tests.
    How about a way to change the way the test is run?

    1. Use --shard option of jest
    2. Use @swc/jest instead of ts-jest
    3. Keep a cache of jest in CI
  8. kou commented on Jun 27, 2023

    @kou
    Member

    For example: #36313

    Oh, each sharded job takes about 40 minutes...

    https://github.com/abetomo/arrow/actions/runs/5378070925

    (Non sharded jobs for Linux/Windows takes about 40 minutes.)

    Keep a cache of jest in CI

    Is it easy to implement?

  9. abetomo commented on Jun 27, 2023

    @abetomo
    ContributorAuthor

    Setting up a cache is easy and I would try it.

  10. kou commented on Jun 28, 2023

    @kou
    Member

    I tried running tests on arm64 macOS but yarn build (especially node node_modules/gulp-cli/bin/gulp.js compile:esnext:umd) was failed:

    [10:10:34] Using gulpfile ~/work/cpp/arrow/js/gulpfile.js
    [10:10:34] Starting 'compile:esnext:umd'...
    [10:10:38] 'compile:esnext:umd' errored after 3.77 s
    [10:10:38] Error: Error: spawn Unknown system error -86
        at ChildProcess.spawn (node:internal/child_process:420:11)
        at spawn (node:child_process:757:9)
        at Compiler.run (/Users/kou/work/cpp/arrow/js/node_modules/google-closure-compiler/lib/node/closure-compiler.js:76:26)
        at CompilationStream._flush (/Users/kou/work/cpp/arrow/js/node_modules/google-closure-compiler/lib/gulp/index.js:163:40)
        at CompilationStream.final [as _final] (node:internal/streams/transform:132:10)
        at callFinal (node:internal/streams/writable:707:12)
        at prefinish (node:internal/streams/writable:719:7)
        at finishMaybe (node:internal/streams/writable:729:5)
        at Writable.end (node:internal/streams/writable:641:5)
        at DestroyableTransform.endFn (node:internal/streams/pipeline:424:11) {
      errno: -86,
      code: 'Unknown system error -86',
      syscall: 'spawn'
    }
    
        at formatError (/Users/kou/work/cpp/arrow/js/node_modules/gulp-cli/lib/versioned/^4.0.0/format-error.js:21:10)
        at Gulp.<anonymous> (/Users/kou/work/cpp/arrow/js/node_modules/gulp-cli/lib/versioned/^4.0.0/log/events.js:33:15)
        at Gulp.emit (node:events:523:35)
        at Gulp.emit (node:domain:489:12)
        at Object.error (/Users/kou/work/cpp/arrow/js/node_modules/undertaker/lib/helpers/createExtensions.js:61:10)
        at handler (/Users/kou/work/cpp/arrow/js/node_modules/now-and-later/lib/map.js:50:14)
        at f (/Users/kou/work/cpp/arrow/js/node_modules/once/once.js:25:25)
        at f (/Users/kou/work/cpp/arrow/js/node_modules/once/once.js:25:25)
        at tryCatch (/Users/kou/work/cpp/arrow/js/node_modules/bach/node_modules/async-done/index.js:24:15)
        at done (/Users/kou/work/cpp/arrow/js/node_modules/bach/node_modules/async-done/index.js:40:12)
    

    It seems that node_modules/google-closure-compiler-osx/compiler is only for x86_64:

    $ file node_modules/google-closure-compiler-osx/compiler      
    node_modules/google-closure-compiler-osx/compiler: Mach-O 64-bit executable x86_64

    How did you run yarn build? (Are you using arm64 macOS?)

  11. abetomo commented on Jun 28, 2023

    @abetomo
    ContributorAuthor

    How did you run yarn build? (Are you using arm64 macOS?)

    I was running on an x86_64 Mac and yarn build completed successfully.

  12. kou commented on Jun 29, 2023

    @kou
    Member

    It seems working.
    Could you open a pull request for this?

    • Could you use js-jest-... for key?
    • Do we need restore-keys: js-jest-${{ runner.os }}-${{ matrix.node-version }}- too?
  13. added a commit that references this issue on Jun 29, 2023
  14. abetomo commented on Jun 29, 2023

    @abetomo
    ContributorAuthor

    Thanks for the comment.
    I have opened a PR.
    I set it up because it is better to use restore-keys.

  15. added a commit that references this issue on Jul 11, 2023
  16. modified the milestones: 13.0.0, 14.0.0 on Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions