You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[JS][CI] Timeout on macos in GitHub Actions #36154
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:
Activity
abetomo commentedon Jun 18, 2023
Should we speed up the task?
Increase timeout values?
kou commentedon Jun 19, 2023
It's better.
@domoritz Do you have any idea to speed up
gulp test?[-][JS] [CI] Timeout on `macos` in GitHub Actions[/-][+][JS][CI] Timeout on `macos` in GitHub Actions[/+]domoritz commentedon Jun 19, 2023
Not really. It’s would need significant work to make it faster.
abetomo commentedon Jun 20, 2023
take
abetomo commentedon Jun 20, 2023
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.
abetomo commentedon Jun 26, 2023
There did not seem to be any particularly slow tests.
How about a way to change the way the test is run?
--shardoption ofjestjest's--shard#36313@swc/jestinstead ofts-jestjestjestin CIkou commentedon Jun 27, 2023
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.)
Is it easy to implement?
abetomo commentedon Jun 27, 2023
Setting up a cache is easy and I would try it.
kou commentedon Jun 28, 2023
I tried running tests on arm64 macOS but
yarn build(especiallynode node_modules/gulp-cli/bin/gulp.js compile:esnext:umd) was failed:It seems that
node_modules/google-closure-compiler-osx/compileris only forx86_64:How did you run
yarn build? (Are you using arm64 macOS?)abetomo commentedon Jun 28, 2023
Store cache of
jestin CI.abetomo@d5cd02d
timeout-minutesinmacosbecause it takes longer with no cache.keyis worth considering.Time taken to test.
abetomo commentedon Jun 28, 2023
I was running on an
x86_64Mac andyarn buildcompleted successfully.kou commentedon Jun 29, 2023
It seems working.
Could you open a pull request for this?
js-jest-...for key?restore-keys: js-jest-${{ runner.os }}-${{ matrix.node-version }}-too?apacheGH-36154: [JS][CI] Use `jest` cache in CI
abetomo commentedon Jun 29, 2023
Thanks for the comment.
I have opened a PR.
I set it up because it is better to use
restore-keys.GH-36154: [JS][CI] Use `jest` cache in CI (#36373)