Skip to content

When the determinacy check runs, save both sets of logs. - #12261

Merged
jzhou77 merged 1 commit into
apple:mainfrom
saintstack:save_both_logs_of_determinacy_check
Aug 1, 2025
Merged

jzhou77 merged 1 commit into
apple:mainfrom
saintstack:save_both_logs_of_determinacy_check

Conversation

@saintstack

@saintstack saintstack commented Jul 17, 2025 •

Copy link
Copy Markdown
Contributor

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.

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-clang-ide on Linux RHEL 9

  • Commit ID: 045312d
  • Duration 0:23:52
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-macos-m1 on macOS Ventura 13.x

  • Commit ID: 045312d
  • Duration 0:39:22
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-clang-arm on Linux CentOS 7

  • Commit ID: 045312d
  • Duration 0:49:21
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-clang on Linux RHEL 9

  • Commit ID: 045312d
  • Duration 0:57:00
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr on Linux RHEL 9

  • Commit ID: 045312d
  • Duration 0:59:04
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-cluster-tests on Linux RHEL 9

  • Commit ID: 045312d
  • Duration 1:00:48
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)
  • Cluster Test Logs zip file of the test logs (available for 30 days)

@saintstack
saintstack requested a review from jzhou77 July 17, 2025 23:18

@jzhou77 jzhou77 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

Comment thread contrib/TestHarness2/README.md Outdated
## 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.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread contrib/TestHarness2/README.md Outdated

## 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.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a TODO item: move joshua_logtool.py to be part of TestHarness2.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nod

 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
saintstack force-pushed the save_both_logs_of_determinacy_check branch from 045312d to 59d352f Compare August 1, 2025 00:42
@saintstack

Copy link
Copy Markdown
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.

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-clang-ide on Linux RHEL 9

  • Commit ID: 59d352f
  • Duration 0:25:03
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-macos-m1 on macOS Ventura 13.x

  • Commit ID: 59d352f
  • Duration 0:39:31
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-clang-arm on Linux CentOS 7

  • Commit ID: 59d352f
  • Duration 0:48:46
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-macos on macOS Ventura 13.x

  • Commit ID: 59d352f
  • Duration 1:02:48
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-clang on Linux RHEL 9

  • Commit ID: 59d352f
  • Duration 1:06:35
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-cluster-tests on Linux RHEL 9

  • Commit ID: 59d352f
  • Duration 1:08:35
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)
  • Cluster Test Logs zip file of the test logs (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr on Linux RHEL 9

  • Commit ID: 59d352f
  • Duration 1:24:43
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

# Summary
print("\n=== SUMMARY ===")
if early_match and s3_match and events_match:
print("✅ DETERMINISM CHECK PASSED: All events match!")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These icons are very nice!

@jzhou77
jzhou77 merged commit a05a5c7 into apple:main Aug 1, 2025
@saintstack

Copy link
Copy Markdown
Contributor Author

Thanks for the review (and the merge)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants