Repository navigation
Extend optional saving of test output - #12184
Closed
saintstack wants to merge 4 commits into
Closed
saintstack wants to merge 4 commits into
saintstack wants to merge 4 commits into
Conversation
saintstack
marked this pull request as draft
June 5, 2025 05:49
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 on Linux RHEL 9
|
Contributor
Result of foundationdb-pr on Linux RHEL 9
|
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-cluster-tests on Linux RHEL 9
|
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 on Linux RHEL 9
|
Contributor
Result of foundationdb-pr on Linux RHEL 9
|
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-cluster-tests on Linux RHEL 9
|
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 on Linux RHEL 9
|
Contributor
Result of foundationdb-pr on Linux RHEL 9
|
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-cluster-tests on Linux RHEL 9
|
jzhou77
reviewed
Jun 17, 2025
| Joshua's success has surpassed our expectation and has been vital to our engineering team. It seems unlikely that we would have been able to build FoundationDB without this technology. | ||
|
|
||
| * `scripts/`: This directory contains shell scripts that serve as entry points for running tests. Joshua invokes these scripts, which then set up the environment and execute the test runner. | ||
| * **`correctnessTest.sh`**: This is the primary script for running correctness tests. It is responsible for invoking the Python-based `TestHarnessV2` and passing it the necessary configuration. It also handles the creation and cleanup of temporary output directories. |
Collaborator
There was a problem hiding this comment.
Suggested change
| * **`correctnessTest.sh`**: This is the primary script for running correctness tests. It is responsible for invoking the Python-based `TestHarnessV2` and passing it the necessary configuration. It also handles the creation and cleanup of temporary output directories. | |
| * **`correctnessTest.sh`**: This is the primary script for running correctness tests. It is responsible for invoking the Python-based `TestHarness2` and passing it the necessary configuration. It also handles the creation and cleanup of temporary output directories. |
saintstack
force-pushed
the
TH_ARCHIVE_LOGS_ON_FAILURE
branch
from
July 7, 2025 19:01
1c8a80b to
a89fbaa
Compare
saintstack
marked this pull request as ready for review
July 7, 2025 19:04
Contributor
Result of foundationdb-pr-clang-ide on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-clang on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-macos-m1 on macOS Ventura 13.x
|
Contributor
Result of foundationdb-pr on Linux RHEL 9
|
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 on Linux RHEL 9
|
Contributor
Result of foundationdb-pr on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-clang-arm on Linux CentOS 7
|
Contributor
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-macos on macOS Ventura 13.x
|
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 on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-clang-arm on Linux CentOS 7
|
Contributor
Result of foundationdb-pr on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-macos on macOS Ventura 13.x
|
added 4 commits
July 8, 2025 22:03
Unified logging output so easy to download: per run there
is a th_run.ENSEMBLE_ID directory of logs.
On failure if TH_ARCHIVE_LOGS_ON_FAILURE is set, logs are
NOT cleaned up at the end of the test run: e.g.
j start --env TH_UNSEED_CHECK_RATIO=1.0 --env TH_ARCHIVE_LOGS_ON_FAILURE=true --tarball /root/BulkDumpingS3.tar.gz --max-run 1
In particular, added capture of BOTH log sets when doing the
determinacy check so can compare the runs.
Amended the joshua_logtool so doesn't run by default if it finds rocksdb
log entries -- the current configuration; instead you have to ask it to run.
It will bundle up all log files rather than just trace files (including logs
from both runs for the determinacy test). It does NOT include the
joshua.xml for now because joshua_logtool.py runs before this file is
generated (hard to refactor).
Added diagnostic logging and tracing around the joshua test runner
context. Added capture of stderr/out so can easier debug failed test/test
infrastructure (handy because I kept breaking tes runner). Retain the v1
(original) test xml result reporting even after messing w/ the xml report
to make a proper xml document of ALL the test output.
* contrib/Joshua/README.md
Some detail on scripts directory and TestHarness2 integration
* contrib/Joshua/scripts/correctnessTest.sh
Add error handling, logging, and cleanup around test launch.
* contrib/TestHarness2/README.md
Documentation on operation, output structure, and archival modes
for test harness ('th') including how to use joshua_logtool.py.
* contrib/TestHarness2/test_harness/app.py
Add capture of stdout/err into a well-defined location.
Adds XML manipulation trying to make sure the XML output
is same as it was in V1 -- the current, original output
-- adding filtering and insertion. If fatal error,
return an 'xml' fatal error. Made more robust
against the unexpected (of which there was plenty
while trying to alter how this joshua test runner
works).
* contrib/TestHarness2/test_harness/config.py
Fixup. Added --joshua-output-dir option. Made
kill seconds configurable (was 30 minutes
which was painful when app was deadlocking).
Added configurable log-level and whether to
save logs on failure.
* contrib/TestHarness2/test_harness/run.py
Improved test execution and result handling
Capture both determinacy test log sets.
* contrib/TestHarness2/test_harness/summarize.py
Hack on XML handling -- filtering -- and then
work to make it v1/original compatible.
* contrib/joshua_logtool.py
Integrate joshua_logtool. Make it pick up all logs
including double logging by determinacy test.
Add doc.
saintstack
force-pushed
the
TH_ARCHIVE_LOGS_ON_FAILURE
branch
from
July 9, 2025 18:05
b0d393b to
342675b
Compare
Contributor
Author
|
This patch has gotten too complicated; it changes too much. It is also hard to prove it is working properly. I can run it at scale but there is a failure rate that seems in excess of what the current framework does. These odd failures are hard to debug too. Let me make this a draft for now. I'll break out some of the change in here -- the documentation as separate PRs because these are useful w/o disturbing operations. |
saintstack
marked this pull request as draft
July 9, 2025 18:26
Contributor
Result of foundationdb-pr-clang-ide on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-clang-arm on Linux CentOS 7
|
Contributor
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
Contributor
Result of foundationdb-pr on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-clang on Linux RHEL 9
|
5 tasks
Contributor
Author
|
#12261 adds saving of test output in a simpler way. Resolving this PR in favor of the former. |
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.
Uh oh!
There was an error while loading. Please reload this page.