-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add optional saving of test output #12184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
saintstack
wants to merge
3
commits into
apple:main
Choose a base branch
from
saintstack:TH_ARCHIVE_LOGS_ON_FAILURE
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
+2,285
−521
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…lity This commit adds logging and an optional archiving feature to TestHarness2, Key Changes: 1. **Log Archival on Failure (`correctnessTest.sh`, `config.py`, `run.py`, `summarize.py`):** * Introduced the `TH_ARCHIVE_LOGS_ON_FAILURE` environment variable. * When set, `correctnessTest.sh` now preserves temporary directories (`/tmp/th_joshua_output...`, `/tmp/th_run_temp...`) if the Python harness (`app.py`) exits with an error. * These preserved directories contain the full `joshua.xml`, FDB trace logs, harness stdout/stderr (`python_app_stdout.log`, `python_app_stderr.log`), and other per-test-part artifacts. * `run.py` was updated to identify FDB log files for potential archival. 2. **Improved Failure Detection (`summarize.py`):** * `Summary.done()` now more robustly identifies failures, including: * Tests that start but don't produce an "ElapsedTime" event. * Positive tests with a non-zero exit code but no specific error. * Positive tests with a zero exit code that produce stderr output. * Enhanced unseed mismatch detection. 3. Added a new `contrib/TestHarness2/README.md`.
Result of foundationdb-pr-clang-ide on Linux RHEL 9
|
Result of foundationdb-pr-macos-m1 on macOS Ventura 13.x
|
Result of foundationdb-pr-clang on Linux RHEL 9
|
Result of foundationdb-pr on Linux RHEL 9
|
Result of foundationdb-pr-clang-arm on Linux CentOS 7
|
Result of foundationdb-pr-macos on macOS Ventura 13.x
|
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
Result of foundationdb-pr-clang-ide on Linux RHEL 9
|
Result of foundationdb-pr-macos-m1 on macOS Ventura 13.x
|
Result of foundationdb-pr-clang on Linux RHEL 9
|
Result of foundationdb-pr on Linux RHEL 9
|
Result of foundationdb-pr-clang-arm on Linux CentOS 7
|
Result of foundationdb-pr-macos on macOS Ventura 13.x
|
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
Result of foundationdb-pr-clang-ide on Linux RHEL 9
|
Result of foundationdb-pr-macos-m1 on macOS Ventura 13.x
|
Result of foundationdb-pr-clang on Linux RHEL 9
|
Result of foundationdb-pr on Linux RHEL 9
|
Result of foundationdb-pr-clang-arm on Linux CentOS 7
|
Result of foundationdb-pr-macos on macOS Ventura 13.x
|
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit adds logging around test runs and an optional archiving feature
Key Changes:
Log Archival on Failure (
correctnessTest.sh
,config.py
,run.py
,summarize.py
):TH_ARCHIVE_LOGS_ON_FAILURE
environment variable.correctnessTest.sh
now preserves temporary directories(
/tmp/th_joshua_output...
,/tmp/th_run_temp...
) if the Pythonharness (
app.py
) exits with an error.joshua.xml
, FDB tracelogs, harness stdout/stderr (
python_app_stdout.log
,python_app_stderr.log
), and other per-test-part artifacts.run.py
was updated to identify FDB log files for potential archival.Improved Failure Detection (
summarize.py
):Summary.done()
now more robustly identifies failures, including:Added a new
contrib/TestHarness2/README.md
.Adds logging of correctnessTest.sh environment and setup for python invocation and then logging of the python call, each to its own log in /tmp per test (distingushed by test seed)