mirror of
https://github.com/facebook/sapling.git
synced 2024-10-05 14:28:17 +03:00
verify_integrity: switch to using Rust client in Mononoke integration tests
Summary: We use Rust verify_integrity client in prod which always does checks remotely while tests use Python client with local checks. Let's change tests to match prod while also unblocking removal of the old client. See D34076245 for more details. Reviewed By: yancouto Differential Revision: D34109250 fbshipit-source-id: eb01ce1b61a2dd30a216fca7637ec721eb1f9f07
This commit is contained in:
parent
25af6ba894
commit
835e9c1819
@ -2030,3 +2030,24 @@ function derived_data_client() {
|
||||
-h "localhost:$PORT_2DS" \
|
||||
"$@"
|
||||
}
|
||||
|
||||
function verify_integrity_service_health() {
|
||||
$THRIFTDBG sendRequest getStatus "{}" --host "localhost" --port "$VI_SERVICE_PORT"
|
||||
}
|
||||
|
||||
function verify_integrity_service() {
|
||||
export VI_SERVICE_PORT
|
||||
local VI_SERVICE_ADDR_FILE
|
||||
VI_SERVICE_ADDR_FILE="$TESTTMP/verify_integrity_service_addr.txt"
|
||||
"$VERIFY_INTEGRITY_SERVICE" "$@" \
|
||||
--service.port 0 \
|
||||
--bound-address-file "$VI_SERVICE_ADDR_FILE" \
|
||||
>> "$TESTTMP/verify_integrity_service.out" 2>&1 &
|
||||
|
||||
pid=$!
|
||||
echo "$pid" >> "$DAEMON_PIDS"
|
||||
|
||||
wait_for_server "Verify Integrity service" VI_SERVICE_PORT "$TESTTMP/verify_integrity_service.out" \
|
||||
"30" "$VI_SERVICE_ADDR_FILE" \
|
||||
verify_integrity_service_health
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user