Skip to content

Commit e23b835

Browse files
committed
[GR-19691] Add documentation about releases and needing to mx sforceimports.
PullRequest: truffleruby/1764
2 parents 188df16 + dedf65c commit e23b835

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ try running your full Rails application on. However it is ready for
120120
experimentation and curious end-users to try on their gems and smaller
121121
applications, and to send us reports of issues they find.
122122

123+
## Releases
124+
125+
TruffleRuby has the same version and is released at the same time as GraalVM.
126+
There is a release every 3 months, see the [release roadmap](https://www.graalvm.org/docs/release-notes/version-roadmap/).
127+
There are additional Critical Patch Update releases which are based on regular releases and include extra security fixes.
128+
123129
## Migration from MRI
124130

125131
TruffleRuby should in most cases work as a drop-in replacement for MRI, but you

doc/contributor/workflow.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,25 @@ Note that build information such as the date and Git revision hash will not be
8484
updated when you build for a second time. Releases should always be built from
8585
scratch.
8686

87+
### Using the correct version of the graal repository
88+
89+
TruffleRuby needs the `truffle` and `sulong` suites from the `graal` repository.
90+
`jt build` will automatically clone the repository but not enforce a specific version (commit).
91+
When running `jt build`, you might see an early warning:
92+
```
93+
$ jt build
94+
$ mx --env jvm scheckimports --ignore-uncommitted --warn-only
95+
WARNING: imported version of sulong in truffleruby (89aaf87268) does not match parent (aa6d8e07a6)
96+
You might want to run "mx sforceimports" to use the imported version or update the import with "mx scheckimports"
97+
```
98+
99+
This warning is important.
100+
If you did not create new commits in `graal`, you will typically need to run `jt mx sforceimports`
101+
so that a known compatible commit of `graal` is used (that commit is recorded in `mx.truffleruby/suite.py`).
102+
103+
This is not done automatically, because sometimes you might want to have changes in `graal`,
104+
and because developers of the Truffle or Sulong team typically want to use a different commit of `graal` to test their changes.
105+
87106
### Building C Extensions more quickly
88107

89108
To speed up compilation of bundled C extensions, it is possible to use

doc/user/debugging.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
There are two ways to print exceptions, which can be useful to find the source of an error:
66

7-
* the standard Ruby `-d` flag which print the `file:line` where each exception was raised.
7+
* the standard Ruby `-d` flag which prints the `file:line` where each exception was raised.
88
* `--backtraces-raise` which show the full backtrace on each exception raised.
99

1010
Both print all exceptions even if the exceptions are later rescued.
1111

12-
Java exceptions can be printed with `exceptions-print-uncaught-java` or
12+
Java exceptions can be printed with `--exceptions-print-uncaught-java` or
1313
`--exceptions-print-java`.
1414

1515
See other `--backtraces-*` and `--exceptions-*` options for more possibilities.

0 commit comments

Comments
 (0)