Repository navigation
When the determinacy check runs, save both sets of logs. - #12261
Merged
jzhou77 merged 1 commit intoAug 1, 2025
Merged
Conversation
This was referenced Jul 17, 2025
Closed
Contributor
Result of foundationdb-pr-clang-ide on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-macos-m1 on macOS Ventura 13.x
|
Contributor
Result of foundationdb-pr-clang-arm on Linux CentOS 7
|
Contributor
Result of foundationdb-pr-clang on Linux RHEL 9
|
Contributor
Result of foundationdb-pr on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
jzhou77
requested changes
Jul 18, 2025
| ## TestHarness2 Operation and Outputs | ||
|
|
||
| TestHarness2 outputs individual test results directly to stdout in XML format. Each test that runs produces a single XML summary that is immediately printed to stdout. Joshua consumes these XML outputs from stdout to track test results. | ||
| TestHarness2 outputs individual test results directly to stdout in XML format. Each test that runs produces a single XML summary that is immediately printed to stdout. [Joshua](../Joshua) consumes these XML outputs from stdout to track test results. |
Collaborator
There was a problem hiding this comment.
Joshua is not in this repo. Maybe the link should be https://github.com/FoundationDB/fdb-joshua/
|
|
||
| ## Joshua LogTool Integration | ||
|
|
||
| TestHarness2 integrates with [`joshua_logtool.py`](../joshua_logtool.py) to automatically upload trace logs to a FoundationDB cluster for long-term storage and analysis when test failures occur. |
Collaborator
There was a problem hiding this comment.
Maybe a TODO item: move joshua_logtool.py to be part of TestHarness2.
Doc the environment variables this script pays attention too. Let this be the authoritative source rather than have it in README (Point the README me here). * contrib/TestHarness2/README.md Refactor so reads better. Downplayed joshua test environment. Talked up running TestHarness2 standalone. Examples. Point to correctnessTest.sh for environment variable doc. Talk about determinacy feature that captures both logs -- the initial and the second determinacy run. * contrib/TestHarness2/analyze_determinism_failure.py Sample script for debugging determinacy. Feed it the initial and determinacy directories and it outputs point of deviation... * contrib/TestHarness2/test_harness/run.py Machinations to preserve the initial test run output and determinacy check run on failure (default had the determinacy run overwriting the initial run logs). Change the default for joshua_logtool. It used to upload logs if test was a rocksdb log regardless. Now you ask for it to upload logs. CHANGE IN BEHAVIOR. Environment variables documented in correctnessTest.sh enable and configure joshua_logtool.py. * contrib/joshua_logtool.py Undo the check_rocksdb flag. Its not needed anymore. Add facility for uploading test runner logs if flag is set (used debugging test runner bugs).
saintstack
force-pushed
the
save_both_logs_of_determinacy_check
branch
from
August 1, 2025 00:42
045312d to
59d352f
Compare
Contributor
Author
|
New push has better doc, an example determinacy checking script, and a feature in joshua_logtool.py that will pick up test runner output files if asked. |
Contributor
Result of foundationdb-pr-clang-ide on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-macos-m1 on macOS Ventura 13.x
|
Contributor
Result of foundationdb-pr-clang-arm on Linux CentOS 7
|
Contributor
Result of foundationdb-pr-macos on macOS Ventura 13.x
|
Contributor
Result of foundationdb-pr-clang on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
Contributor
Result of foundationdb-pr on Linux RHEL 9
|
jzhou77
approved these changes
Aug 1, 2025
| # Summary | ||
| print("\n=== SUMMARY ===") | ||
| if early_match and s3_match and events_match: | ||
| print("✅ DETERMINISM CHECK PASSED: All events match!") |
Collaborator
There was a problem hiding this comment.
These icons are very nice!
Contributor
Author
|
Thanks for the review (and the merge) |
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
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.
Previous the second run would overwrite the logs from the first run.
The below also includes a hefty edit of the
contrib/TestHarness2/README.md that fills out the example, removes joshua context specifics, and adds section on this new saving of the determinacy runs.
This is #12184 but simplified, only focused on the determinacy check.