Commit graph

1463 commits

Author SHA1 Message Date
Takashi Kokubun
24f8a78709 btest jobs are now passing 2025-04-18 21:52:58 +09:00
Takashi Kokubun
d68f878976 Ignore btest failures for now 2025-04-18 21:52:58 +09:00
Takashi Kokubun
83da2dd1ea Try to fix the BTESTS path 2025-04-18 21:52:58 +09:00
Takashi Kokubun
ec35162536 Fix BTESTS path 2025-04-18 21:52:58 +09:00
Takashi Kokubun
d093793e6b Pass BTESTS to make properly 2025-04-18 21:52:58 +09:00
Takashi Kokubun
fc03b7353d Start testing the actual JIT code on CI 2025-04-18 21:52:58 +09:00
Takashi Kokubun
6f3f69098b Drop redundant options in workflows 2025-04-18 21:52:58 +09:00
Alan Wu
ed2ff3bb4c zjit-ubuntu: remove continue on error for make zjit-test. Passes now 2025-04-18 21:52:58 +09:00
Takashi Kokubun
78d60548ef Allow failing zjit-test on Linux 2025-04-18 21:52:58 +09:00
Takashi Kokubun
daced753a5 Fix YJIT references in comments 2025-04-18 21:52:58 +09:00
Takashi Kokubun
fa9713d59c Drop cargo build jobs
It doesn't seem important to keep `cargo build`-only jobs. The zjit-test
task should be covering most of what we wanted in the job now.
2025-04-18 21:52:58 +09:00
Alan Wu
ea932d8735 Fix s/test-zjit/zjit-test/ 2025-04-18 21:52:58 +09:00
Alan Wu
b3ff735b2a CI: get cargo-nextest 2025-04-18 21:52:58 +09:00
Alan Wu
5627121ef9 fix typo to actually test zjit in zjit-macos 2025-04-18 21:52:58 +09:00
Alan Wu
b19dce1fba ci blindshot for make test-zjit 2025-04-18 21:52:57 +09:00
Takashi Kokubun
05c451343f Set up a CI for Arm64 macOS too 2025-04-18 21:52:57 +09:00
Takashi Kokubun
0d791686f9 Fix configure for zjit-bindgen 2025-04-18 21:52:57 +09:00
Takashi Kokubun
6bc9e8e423 We don't need the result job for now 2025-04-18 21:52:57 +09:00
Takashi Kokubun
f3b673d062 Run a basic CI for ZJIT without --zjit 2025-04-18 21:52:57 +09:00
Takashi Kokubun
bcacf7c849 Add configuration for git commit
and test auto-style again by adding spaces to app_fib
2025-04-18 09:08:57 +09:00
Takashi Kokubun
4805f20f44 Use github.event.before 2025-04-18 08:58:37 +09:00
Takashi Kokubun
69c1e4c422 Check GitHub context for push events 2025-04-18 08:55:29 +09:00
Takashi Kokubun
3e1dae8d2a Port auto-style to GitHub Actions 2025-04-18 08:52:52 +09:00
Yusuke Endoh
6556a7be26 Temporarily stop the trailing-space check in CI
I will restore the check after the preview release
2025-04-17 19:59:19 +09:00
Hiroshi SHIBATA
7e2ba5a91b Don't use admin grant 2025-04-17 08:08:37 +09:00
Hiroshi SHIBATA
9b5ae69aac Use uutils-coreutils 2025-04-17 08:08:37 +09:00
Hiroshi SHIBATA
b4c29b7af6 Use coreutils instead of msys2 because msys2 is not provided windows-11-arm 2025-04-17 08:08:37 +09:00
Hiroshi SHIBATA
a4eb81a083 Revert advanced-security/filter-sarif update for v1.0.1 2025-04-16 11:40:11 +09:00
Hiroshi SHIBATA
02152501a4 Bump up to msys2/setup-msys2 to v2.27.0 2025-04-16 11:40:11 +09:00
Hiroshi SHIBATA
49c29cff47 Bump up to the latest versions of actions 2025-04-16 11:40:11 +09:00
Hiroshi SHIBATA
0a35c5b4d9 Restore Windows 2022 build with VS2019 toolset 2025-04-11 13:24:03 +09:00
Hiroshi SHIBATA
8a15f80653 Fixed wrong usage of matrix.vs. That label is os version, not vs version 2025-04-11 12:18:56 +09:00
Hiroshi SHIBATA
b4a94011ca
Hardening auto-merge workflow
https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#enabling-automerge-on-a-pull-request
2025-04-04 11:58:59 +09:00
Hiroshi SHIBATA
1598a2cab8 Enforce to use CMake 3 because CMake 4 is not compatible to build libyaml via vcpkg 2025-04-03 10:12:34 +09:00
Andrew Konchin
c577416b27 Do not run ruby/spec on CI on Ruby 3.0 2025-03-27 11:09:24 +01:00
Naoto Ono
56b89d31c7
Launchable: Fix CI scripts by adding backslashes (#12974)
The following command doesn't work correctly since a backslash doesn't exist after `exec`. This PR fixes it.

```
if [ -n "${LAUNCHABLE_ORGANIZATION}" ]; then
  exec
  > >(tee launchable_stdout.log) \
  2> >(tee launchable_stderr.log)
fi
```
2025-03-24 11:45:24 +00:00
dependabot[bot]
08d81ac627 Bump actions/cache in /.github/actions/setup/directories
Bumps [actions/cache](https://github.com/actions/cache) from 4.2.2 to 4.2.3.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](d4323d4df1...5a3ec84eff)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-24 09:24:54 +09:00
Naoto Ono
c68088038f
Launchable: Disable request retries when a timeout exception occurs (#12877)
When a Launchable server is unstable, a ReadTimeoutException occurs in the Launchable CLI. In such case, the Launchable CLI retries requests, which slows down CI execution. In this PR, I configured the environment variable SKIP_TIMEOUT_RETRY to disable retry attempts on requests(Link: https://github.com/launchableinc/cli/pull/992).

```
WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='api.mercury.launchableinc.com', port=443): Read timed out. (read timeout=15)")': /intake/organizations/ruby/workspaces/ruby/commits/collect/options
  WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='api.mercury.launchableinc.com', port=443): Read timed out. (read timeout=15)")': /intake/organizations/ruby/workspaces/ruby/commits/collect/options
  WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='api.mercury.launchableinc.com', port=443): Read timed out. (read timeout=15)")': /intake/organizations/ruby/workspaces/ruby/commits/collect/options
  HTTPSConnectionPool(host='api.mercury.launchableinc.com', port=443): Max retries exceeded with url: /intake/organizations/ruby/workspaces/ruby/commits/collect/options (Caused by ReadTimeoutError("HTTPSConnectionPool(host='api.mercury.launchableinc.com', port=443): Read timed out. (read timeout=15)"))
  Exception in thread "main" javax.net.ssl.SSLException: Connection reset
  	at sun.security.ssl.Alert.createSSLException(Alert.java:127)
  	at sun.security.ssl.TransportContext.fatal(TransportContext.java:331)
  	at sun.security.ssl.TransportContext.fatal(TransportContext.java:274)
  	at sun.security.ssl.TransportContext.fatal(TransportContext.java:269)
  	at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1572)
  	at sun.security.ssl.SSLSocketImpl.access$400(SSLSocketImpl.java:73)
  	at sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:982)
  	at org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:137)
  	at org.apache.http.impl.io.SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:153)
  	at org.apache.http.impl.io.SessionInputBufferImpl.readLine(SessionInputBufferImpl.java:280)
  	at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138)
  	at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
  	at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
  	at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163)
  	at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:157)
  	at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
  	at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
  	at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272)
  	at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
  	at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
  	at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
  	at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
  	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
  	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
  	at com.launchableinc.ingest.commits.CommitGraphCollector.transfer(CommitGraphCollector.java:131)
  	at com.launchableinc.ingest.commits.CommitIngester.run(CommitIngester.java:145)
  	at com.launchableinc.ingest.commits.CommitIngester.main(CommitIngester.java:72)
  	Suppressed: java.net.SocketException: Broken pipe (Write failed)
  		at java.net.SocketOutputStream.socketWrite0(Native Method)
  		at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:111)
  		at java.net.SocketOutputStream.write(SocketOutputStream.java:155)
  		at sun.security.ssl.SSLSocketOutputRecord.encodeAlert(SSLSocketOutputRecord.java:81)
  		at sun.security.ssl.TransportContext.fatal(TransportContext.java:362)
  		... 25 more
  Caused by: java.net.SocketException: Connection reset
  	at java.net.SocketInputStream.read(SocketInputStream.java:210)
  	at java.net.SocketInputStream.read(SocketInputStream.java:141)
  	at sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:464)
  	at sun.security.ssl.SSLSocketInputRecord.bytesInCompletePacket(SSLSocketInputRecord.java:68)
  	at sun.security.ssl.SSLSocketImpl.readApplicationRecord(SSLSocketImpl.java:1350)
  	at sun.security.ssl.SSLSocketImpl.access$300(SSLSocketImpl.java:73)
  	at sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:966)
  	... 20 more
  Couldn't get commit history from `/github/workspace/src`. Do you run command root of git-controlled directory? If not, please set a directory use by --source option.
  HTTPSConnectionPool(host='api.mercury.launchableinc.com', port=443): Read timed out. (read timeout=60)
  Command '['java', '-jar', '/root/.local/pipx/venvs/launchable/lib/python3.10/site-packages/launchable/jar/exe_deploy.jar', 'ingest:commit', '-endpoint', 
```

3793952924
2025-03-12 02:34:03 +00:00
Naoto Ono
c939d0c85d
Launchable: Send stdout and stderr (#12785)
Currently, the Launchable team is developing a new feature to attach any logs. Attached log can be anything, such as system logs or stdout. Users can find these logs using any text search. Please note that this feature is a work in progress, so we can't use it yet.

I'm going to attach stdout and stderr as attached logs because they will be useful for finding interpreter bugs. When running tests, we sometimes see interpreter itself crash, and the stack is output to stderr. When debugging the cause of the issue, this feature is useful.
2025-03-06 12:39:39 +09:00
Takashi Kokubun
0d03183748 auto-request-review should run only for master
Backport PRs are reviewed only by the branch maintainers.
2025-03-05 15:46:51 -08:00
dependabot[bot]
e3960c5aa2 Bump actions/cache in /.github/actions/setup/directories
Bumps [actions/cache](https://github.com/actions/cache) from 4.2.1 to 4.2.2.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](0c907a75c2...d4323d4df1)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-06 08:46:09 +09:00
Hiroshi SHIBATA
d7a96a285c Sync skip rules from ubuntu.yml 2025-03-04 18:58:10 +09:00
Hiroshi SHIBATA
bb6674f96c Try to build WSL on GitHub Actions 2025-03-04 18:58:10 +09:00
Naoto Ono
1ead1eb6db
Increase timeouts in Compilations actions to reduce intermittent failures (#12827)
Compilations actions are flaky and intermittently failing now. This run (1357211209) is an example of the issue. The job fails due to exceeding the timeout, resulting in termination. To prevent these intermittent failures, I'm going to increase the timeout.
2025-02-28 08:01:19 +00:00
Hiroshi SHIBATA
56f46e5448 Visual Studio 2022 17.13.x couldn't build miniruby.exe. It prevents other PRs.
e43209e139

```
user32.lib advapi32.lib shell32.lib ws2_32.lib iphlpapi.lib gmp.lib imagehlp.lib shlwapi.lib bcrypt.lib
linking miniruby.exe
   Creating library miniruby.lib and object miniruby.exp
[BUG] heap_idx_for_size: allocation size too large (size=145u, heap_idx=25u)
ruby 3.5.0dev (2025-02-28T01:12:37Z pull/12827/merge 3d6a5a1883) [x64-mswin64_140]
```

```
user32.lib advapi32.lib shell32.lib ws2_32.lib iphlpapi.lib imagehlp.lib shlwapi.lib bcrypt.lib
  linking miniruby.exe
  NMAKE : fatal error U1077: '@ miniruby.exe -v' : return code '0xc0000005'
```
2025-02-28 15:51:11 +09:00
Naoto Ono
0c9f149b4d
Launchable: Fix launchable record session command failures (#12810)
Currently, the `launchable record session` command is failing some workflows such as YJIT on macOS. This occurs because of word splitting, as explained in https://www.shellcheck.net/wiki/SC2086. This PR addresses the issue.

```
+ launchable record session --build refs_pull_12785_merge_5ac818aaf7402e232de6b3e1b078765da3dc6279 --observation --flavor os=macos-14 --flavor test_task=check --flavor test_opts=--enable-yjit --flavor workflow=YJIT macOS Arm64 --test-suite yjit-test-all
Usage: launchable record session [OPTIONS]
Try 'launchable record session --help' for help.

Error: Got unexpected extra arguments (macOS Arm64)
Error: Process completed with exit code 2.
```

3782582604 (step):10:354
2025-02-26 03:50:54 +00:00
dependabot[bot]
8619520570 Bump actions/cache in /.github/actions/setup/directories
Bumps [actions/cache](https://github.com/actions/cache) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](1bd1e32a3b...0c907a75c2)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-20 12:18:28 +09:00
Yuta Saito
bd84c75a01 [wasm] Update WASI SDK to 25
to include WASI Preview 2 related changes added in the SDK.
2025-02-19 13:54:51 +09:00
Naoto Ono
6e510d78c0
Launchable: Remove unused file names (#12782)
I found file names that were not used anymore. I'm gonna delete them in this PR.
2025-02-19 08:48:33 +09:00
Hiroshi SHIBATA
de490a132c Enabled test_gmp_version 2025-02-17 18:08:37 +09:00