8296240: Augment discussion of test tiers in doc/testing.md

Reviewed-by: alanb
This commit is contained in:
Joe Darcy 2023-11-02 20:28:16 +00:00
parent ffaecd4aa2
commit c788160f8a
2 changed files with 31 additions and 13 deletions

View File

@ -207,13 +207,22 @@ changed, and the first N tiers they can afford to run, but at least
tier1.</p> tier1.</p>
<p>A brief description of the tiered test groups:</p> <p>A brief description of the tiered test groups:</p>
<ul> <ul>
<li><p><code>tier1</code>: This is the lowest test tier. Multiple <li><p><code>tier1</code>: This is the most fundamental test tier.
developers run these tests every day. Because of the widespread use, the Roughly speaking, a failure of a test in this tier has the potential to
tests in <code>tier1</code> are carefully selected and optimized to run indicate a problem that would affect many Java programs. Tests in
fast, and to run in the most stable manner. The test failures in <code>tier1</code> include tests of HotSpot, core APIs in the
<code>tier1</code> are usually followed up on quickly, either with <code>java.base</code> module, and the <code>javac</code> compiler.
fixes, or adding relevant tests to problem list. GitHub Actions Multiple developers run these tests every day. Because of the widespread
workflows, if enabled, run <code>tier1</code> tests.</p></li> use, the tests in <code>tier1</code> are carefully selected and
optimized to run fast, and to run in the most stable manner. As a
guideline, nearly all individual tests in <code>tier1</code> are
expected to run to completion in ten seconds or less when run on common
configurations used for development. Long-running tests, even of core
functionality, should occur in higher tiers or be covered in other kinds
of testing. The test failures in <code>tier1</code> are usually followed
up on quickly, either with fixes, or adding relevant tests to problem
list. GitHub Actions workflows, if enabled, run <code>tier1</code>
tests.</p></li>
<li><p><code>tier2</code>: This test group covers even more ground. <li><p><code>tier2</code>: This test group covers even more ground.
These contain, among other things, tests that either run for too long to These contain, among other things, tests that either run for too long to
be at <code>tier1</code>, or may require special configuration, or tests be at <code>tier1</code>, or may require special configuration, or tests

View File

@ -135,12 +135,21 @@ the first N tiers they can afford to run, but at least tier1.
A brief description of the tiered test groups: A brief description of the tiered test groups:
- `tier1`: This is the lowest test tier. Multiple developers run these tests - `tier1`: This is the most fundamental test tier.
every day. Because of the widespread use, the tests in `tier1` are Roughly speaking, a failure of a test in this tier has the potential
carefully selected and optimized to run fast, and to run in the most stable to indicate a problem that would affect many Java programs. Tests in
manner. The test failures in `tier1` are usually followed up on quickly, `tier1` include tests of HotSpot, core APIs in the `java.base`
either with fixes, or adding relevant tests to problem list. GitHub Actions module, and the `javac` compiler. Multiple developers run these
workflows, if enabled, run `tier1` tests. tests every day. Because of the widespread use, the tests in `tier1`
are carefully selected and optimized to run fast, and to run in the
most stable manner. As a guideline, nearly all individual tests in
`tier1` are expected to run to completion in ten seconds or less
when run on common configurations used for development. Long-running
tests, even of core functionality, should occur in higher tiers or
be covered in other kinds of testing. The test failures in `tier1`
are usually followed up on quickly, either with fixes, or adding
relevant tests to problem list. GitHub Actions workflows, if
enabled, run `tier1` tests.
- `tier2`: This test group covers even more ground. These contain, among other - `tier2`: This test group covers even more ground. These contain, among other
things, tests that either run for too long to be at `tier1`, or may require things, tests that either run for too long to be at `tier1`, or may require