# Nonconforming entries are tests that are expected to fail. These are named
# the same way as the test harness, e.g.:
#
#    <category>/<suite>/<case>.<test>
#
# `<category>` can be a language e.g. `cpp2` or a language plus config options
# e.g. `rust[client=cpp,protocol=binary]`.
#
# Entries support globs with `*` to match any run of characters and `?` to
# match any single one. e.g. `python/ThriftRPCServerTest/Bidi*`.
#
# When matching config options `*` admits any options the line doesn't list, so
# `rust[client=cpp,*]/...` matchs any configuration of `rust` with the `cpp`
# client.
#
# The tests listed here *must* fail. If a test listed here passes that's a
# test failure because it now conforms. The line should be removed if it passes.

# TODO(afuller): Fix equivelence check in GTestHarness.
cpp2/CompatibilityTest/testset.binary.string/ChangeFieldType/bad_utf8.*
csharp/CompatibilityTest/testset.binary.string/ChangeFieldType/bad_utf8.*
python/CompatibilityTest/testset.binary.string/ChangeFieldType/bad_utf8.*

###
# Language: Python
###

## Python client
python/ThriftRPCClientTest/SinkBasic/Success.SinkBasicTest
python/ThriftRPCClientTest/SinkFragmentation/Success.SinkFragmentationTest
python/ThriftRPCClientTest/SinkSubsequestCredits/Success.SinkSubsequentCreditsTest
python/ThriftRPCClientTest/SinkInitialResponse/Success.SinkInitialResponseTest
python/ThriftRPCClientTest/SinkDeclaredException/Success.SinkDeclaredExceptionTest
python/ThriftRPCClientTest/SinkUndeclaredException/Success.SinkUndeclaredExceptionTest
python/ThriftRPCClientTest/StreamChunkTimeout/Success.StreamChunkTimeoutTest
python/ThriftRPCClientTest/InteractionConstructorPersistsStateTest/Success.InteractionConstructorPersistsStateTest
python/ThriftRPCClientTest/InteractionConstructorTerminationTest/Success.InteractionConstructorTerminationTest
python/ThriftRPCClientTest/InteractionConstructorTest/Success.InteractionConstructorTest
python/ThriftRPCClientTest/InteractionFactoryFunctionPersistsStateTest/Success.InteractionFactoryFunctionPersistsStateTest
python/ThriftRPCClientTest/InteractionFactoryFunctionTerminationTest/Success.InteractionFactoryFunctionTerminationTest
python/ThriftRPCClientTest/InteractionFactoryFunctionTest/Success.InteractionFactoryFunctionTest
python/ThriftRPCClientTest/StreamDeclaredException/Success.StreamDeclaredExceptionTest
python/ThriftRPCClientTest/StreamUndeclaredException/Success.StreamUndeclaredExceptionTest
python/ThriftRPCClientTest/StreamInitialDeclaredException/Success.StreamInitialDeclaredExceptionTest
python/ThriftRPCClientTest/StreamInitialUndeclaredException/Success.StreamInitialUndeclaredExceptionTest
python/ThriftRPCClientTest/StreamInitialTimeout/Success.StreamInitialTimeoutTest

# Python client does not support BiDi streaming
python/ThriftRPCClientTest/Bidi*

## Python server
python/ThriftRPCServerTest/StreamBasic/Success.StreamBasicTest
python/ThriftRPCServerTest/StreamDeclaredException/Success.StreamDeclaredExceptionTest
python/ThriftRPCServerTest/StreamFragmentation/Success.StreamFragmentationTest
python/ThriftRPCServerTest/StreamInitialDeclaredException/Success.StreamInitialDeclaredExceptionTest
python/ThriftRPCServerTest/StreamInitialResponse/Success.StreamInitialResponseTest
python/ThriftRPCServerTest/StreamInitialUndeclaredException/Success.StreamInitialUndeclaredExceptionTest
python/ThriftRPCServerTest/StreamSubsequentCredits/Success.StreamSubsequentCreditsTest
python/ThriftRPCServerTest/StreamUndeclaredException/Success.StreamUndeclaredExceptionTest
python/ThriftRPCServerTest/SinkBasic/Success.SinkBasicTest
python/ThriftRPCServerTest/SinkChunkTimeout/Success.SinkChunkTimeoutTest
python/ThriftRPCServerTest/SinkSubsequestCredits/Success.SinkSubsequentCreditsTest
python/ThriftRPCServerTest/SinkFragmentation/Success.SinkFragmentationTest
python/ThriftRPCServerTest/SinkInitialResponse/Success.SinkInitialResponseTest
python/ThriftRPCServerTest/SinkDeclaredException/Success.SinkDeclaredExceptionTest
python/ThriftRPCServerTest/SinkUndeclaredException/Success.SinkUndeclaredExceptionTest
python/ThriftRPCServerTest/SinkServerDeclaredException/Success.SinkServerDeclaredExceptionTest
python/ThriftRPCServerTest/InteractionConstructorPersistsStateTest/Success.InteractionConstructorPersistsStateTest
python/ThriftRPCServerTest/InteractionConstructorTerminationTest/Success.InteractionConstructorTerminationTest
python/ThriftRPCServerTest/InteractionConstructorTest/Success.InteractionConstructorTest
python/ThriftRPCServerTest/InteractionFactoryFunctionPersistsStateTest/Success.InteractionFactoryFunctionPersistsStateTest
python/ThriftRPCServerTest/InteractionFactoryFunctionTerminationTest/Success.InteractionFactoryFunctionTerminationTest
python/ThriftRPCServerTest/InteractionFactoryFunctionTest/Success.InteractionFactoryFunctionTest
python/ThriftRPCServerTest/Bidi*

###
# Language: Java
###
java2/CompatibilityTest/testset.binary.string/ChangeFieldType/bad_utf8.*
java2/CompatibilityTest/testset.Terse.Unqualified/ChangeQualifier/empty.*

# Client has an empty struct (v0) for StringStruct and BinaryStruct, server
# has one additional field (v1). Client is expecting an empty value for the
# additional field, as the field is defined as non optional (unqualified).
# Server is sending a null, missing the field.
java2/CompatibilityTest/testset.binary/AddField.*
java2/CompatibilityTest/testset.string/AddField.*

# TODO(dokwon): Move this to rpc specific nonconforming.txt
java2/ThriftRPCClientTest/InteractionFactoryFunctionPersistsStateTest/Success.InteractionFactoryFunctionPersistsStateTest
java2/ThriftRPCClientTest/InteractionFactoryFunctionTerminationTest/Success.InteractionFactoryFunctionTerminationTest
java2/ThriftRPCClientTest/InteractionFactoryFunctionTest/Success.InteractionFactoryFunctionTest
java2/ThriftRPCClientTest/InteractionConstructorPersistsStateTest/Success.InteractionConstructorPersistsStateTest
java2/ThriftRPCClientTest/InteractionConstructorTerminationTest/Success.InteractionConstructorTerminationTest
java2/ThriftRPCClientTest/StreamChunkTimeout/Success.StreamChunkTimeoutTest
java2/ThriftRPCClientTest/StreamCreditTimeout/Success.StreamCreditTimeoutTest
java2/ThriftRPCClientTest/StreamInitialTimeout/Success.StreamInitialTimeoutTest
java2/ThriftRPCClientTest/SinkInitialResponse/Success.SinkInitialResponseTest
java2/ThriftRPCClientTest/SinkDeclaredException/Success.SinkDeclaredExceptionTest
java2/ThriftRPCClientTest/SinkUndeclaredException/Success.SinkUndeclaredExceptionTest
java2/ThriftRPCServerTest/InteractionConstructorPersistsStateTest/Success.InteractionConstructorPersistsStateTest
java2/ThriftRPCServerTest/InteractionConstructorTerminationTest/Success.InteractionConstructorTerminationTest
java2/ThriftRPCServerTest/InteractionConstructorTest/Success.InteractionConstructorTest
java2/ThriftRPCServerTest/InteractionFactoryFunctionPersistsStateTest/Success.InteractionFactoryFunctionPersistsStateTest
java2/ThriftRPCServerTest/InteractionFactoryFunctionTerminationTest/Success.InteractionFactoryFunctionTerminationTest
java2/ThriftRPCServerTest/InteractionFactoryFunctionTest/Success.InteractionFactoryFunctionTest
java2/ThriftRPCServerTest/SinkBasic/Success.SinkBasicTest
java2/ThriftRPCServerTest/SinkInitialResponse/Success.SinkInitialResponseTest
java2/ThriftRPCServerTest/SinkDeclaredException/Success.SinkDeclaredExceptionTest
java2/ThriftRPCServerTest/SinkUndeclaredException/Success.SinkUndeclaredExceptionTest
java2/ThriftRPCServerTest/SinkSubsequestCredits/Success.SinkSubsequentCreditsTest
java2/ThriftRPCServerTest/SinkChunkTimeout/Success.SinkChunkTimeoutTest
java2/ThriftRPCServerTest/SinkFragmentation/Success.SinkFragmentationTest

# Java does not support BiDi streaming codegen
java2/ThriftRPCClientTest/Bidi*
java2/ThriftRPCServerTest/Bidi*

# All type change tests are failing in Java
java2/CompatibilityTest/testset.binary/ChangeContainerToSingular/*
java2/CompatibilityTest/testset.*/ChangeSingularToContainer/*
java2/CompatibilityTest/testset.string/ChangeContainerToSingular/*

###
# Language: Hack
###
hack/CompatibilityTest/testset.binary.string/ChangeFieldType/bad_utf8.*
hack/CompatibilityTest/testset.binary/AddOptionalFieldWithCustomDefault.*
hack/CompatibilityTest/testset.bool/AddOptionalFieldWithCustomDefault.*
hack/CompatibilityTest/testset.byte/AddOptionalFieldWithCustomDefault.*
hack/CompatibilityTest/testset.double/AddOptionalFieldWithCustomDefault.*
hack/CompatibilityTest/testset.float/AddOptionalFieldWithCustomDefault.*
hack/CompatibilityTest/testset.i??/AddOptionalFieldWithCustomDefault.*
hack/CompatibilityTest/testset.string/AddOptionalFieldWithCustomDefault.*
hack/CompatibilityTest/testset.binary/ChangeOptionalFieldCustomDefault.*
hack/CompatibilityTest/testset.bool/ChangeOptionalFieldCustomDefault.*
hack/CompatibilityTest/testset.byte/ChangeOptionalFieldCustomDefault.*
hack/CompatibilityTest/testset.double/ChangeOptionalFieldCustomDefault.*
hack/CompatibilityTest/testset.float/ChangeOptionalFieldCustomDefault.*
hack/CompatibilityTest/testset.i??/ChangeOptionalFieldCustomDefault.*
hack/CompatibilityTest/testset.string/ChangeOptionalFieldCustomDefault.*
hack/CompatibilityTest/testset.i32.i16/ChangeFieldType/max.*
hack/CompatibilityTest/testset.i32.i16/ChangeFieldType/min.*
hack/CompatibilityTest/testset.i32.i16/ChangeFieldType/neg_one.*
hack/CompatibilityTest/testset.i32.i16/ChangeFieldType/one.*
hack/CompatibilityTest/testset.i32.i16/ChangeFieldType/zero.*
hack/CompatibilityTest/testset.i32.i64/ChangeFieldType/max.*
hack/CompatibilityTest/testset.i32.i64/ChangeFieldType/min.*
hack/CompatibilityTest/testset.i32.i64/ChangeFieldType/neg_one.*
hack/CompatibilityTest/testset.i32.i64/ChangeFieldType/one.*
hack/CompatibilityTest/testset.i32.i64/ChangeFieldType/zero.*

## Hack client

# fragmentation and factory function interactions are not yet supported by the
# Hack client
hack/ThriftRPCClientTest/StreamFragmentation/Success.StreamFragmentationTest
hack/ThriftRPCClientTest/SinkFragmentation/Success.SinkFragmentationTest
hack/ThriftRPCClientTest/RequestResponseFragmentation/Success.RequestResponseFragmentationTest
hack/ThriftRPCClientTest/InteractionFactoryFunctionTest/Success.InteractionFactoryFunctionTest
hack/ThriftRPCServerTest/SinkChunkTimeout/Success.SinkChunkTimeoutTest
hack/ThriftRPCServerTest/InteractionConstructorPersistsStateTest/Success.InteractionConstructorPersistsStateTest
hack/ThriftRPCServerTest/InteractionConstructorTerminationTest/Success.InteractionConstructorTerminationTest
hack/ThriftRPCServerTest/InteractionConstructorTest/Success.InteractionConstructorTest
hack/ThriftRPCServerTest/InteractionFactoryFunctionPersistsStateTest/Success.InteractionFactoryFunctionPersistsStateTest
hack/ThriftRPCServerTest/InteractionFactoryFunctionTerminationTest/Success.InteractionFactoryFunctionTerminationTest
hack/ThriftRPCServerTest/InteractionFactoryFunctionTest/Success.InteractionFactoryFunctionTest

###
# Language: Erlang
###

# Erlang. Only basic client RPC is supported in conformance test framework.
erlang/ThriftRPCClientTest/Stream*
erlang/ThriftRPCClientTest/Sink*
erlang/ThriftRPCClientTest/Interaction*

# Erlang does not support BiDi streaming
erlang/ThriftRPCClientTest/Bidi*

###
# Language: C#
###

# C#'s `__fbthrift_is_empty()` counts an unqualified field at its default as
# empty, so it leaves out a terse field holding such a struct. C++ never treats
# a struct with an unqualified field as empty.
csharp/RoundTripTest/testset.Terse.struct/unqualified_zero.*

###
# Language: Go
###

# Go Data conformance roundtrip tests [FAILED]
# Go does not support Terse [WONTFIX]
go/RoundTripTest/testset.Terse.bool/false.*
go/RoundTripTest/testset.Terse.*/zero.*
go/RoundTripTest/testset.Terse.*/empty.*
# Go also writes the nested struct's empty terse field.
go/RoundTripTest/testset.Terse.struct/optional_zero.*

# Go Data conformance compatibility tests [FAILED]
# Go does not support Terse [WONTFIX]
go/CompatibilityTest/testset.Unqualified.Terse/ChangeQualifier/empty.*
go/CompatibilityTest/testset.Optional.Terse/ChangeQualifier/empty.*
go/CompatibilityTest/testset/ChangeEnumType/Standard.0.TerseStandard.0.*

# Go Data conformance compatibility tests [FAILED]
# Failed tests related to optional defaults T162510833
go/CompatibilityTest/testset.*/AddOptionalFieldWithCustomDefault.*
go/CompatibilityTest/testset.*/ChangeOptionalFieldCustomDefault.*

# bad_utf8 Go Data conformance compatibility tests [FAILED]
# bad_utf8 is broken in test harness and not a Go specific issue
go/CompatibilityTest/testset.binary.string/ChangeFieldType/bad_utf8.*

## Go client

go/ThriftRPCClientTest/InteractionConstructorPersistsStateTest/Success.InteractionConstructorPersistsStateTest
go/ThriftRPCClientTest/InteractionConstructorTerminationTest/Success.InteractionConstructorTerminationTest
go/ThriftRPCClientTest/InteractionConstructorTest/Success.InteractionConstructorTest
go/ThriftRPCClientTest/StreamChunkTimeout/Success.StreamChunkTimeoutTest
go/ThriftRPCClientTest/StreamCreditTimeout/Success.StreamCreditTimeoutTest

## Go server

go/ThriftRPCServerTest/SinkChunkTimeout/Success.SinkChunkTimeoutTest
go/ThriftRPCServerTest/InteractionConstructorPersistsStateTest/Success.InteractionConstructorPersistsStateTest
go/ThriftRPCServerTest/InteractionConstructorTerminationTest/Success.InteractionConstructorTerminationTest
go/ThriftRPCServerTest/InteractionConstructorTest/Success.InteractionConstructorTest

###
# Language: Rust
###

# compatibility-test
rust/CompatibilityTest/testset.binary.string/ChangeFieldType/bad_utf8.*

# Under deprecated_default_enum_min_i32 an absent enum field reads back as
# i32::MIN so Rust writes a terse enum field even when the value is 0.
rust/CompatibilityTest/testset/ChangeEnumType/Standard.0.TerseStandard.0.*

## Rust server

# This is an actual non-conformance failure, because we are trying to send
# encoded data to a server about a runtime exn T218969298
rust/ThriftRPCServerTest/SinkUndeclaredException/Success.SinkUndeclaredExceptionTest

# Rust does not yet support BiDi streaming in conformance tests
rust/ThriftRPCServerTest/Bidi*

## Rust client

# This one is a pain to setup, while we support the flows, it requires
# configuring the server in a client-test specific way. It should be
# supported, but it's not today
rust[client=cpp,*]/ThriftRPCClientTest/StreamCreditTimeout/Success.StreamCreditTimeoutTest

# bareclient does not implement `Transport::call_bidirectional`, so every bidi
# case fails in fbthrift's default method ("Bidirectional streaming is not
# supported by this transport") rather than on the wire. `rpc_client.rs`
# answers them with an error to match; `rust[client=native]` runs the real
# thing.
rust[client=cpp,*]/ThriftRPCClientTest/Bidi*

# bareclient's C++ client decodes the `Any` this exception arrives in, but only
# into read headers it never hands a Rust caller, so `rpc_client.rs` reports
# the message and nothing else. `rust[client=native]` reads the exception
# itself.
rust[client=cpp,*]/ThriftRPCClientTest/RequestResponseAnyException/Success.RequestResponseAnyExceptionTest

# When the server fails a sink with its chunk timeout, bareclient's Rust side
# reports "Sink generator was aborted" instead of the TIMEOUT exception its
# C++ client raised.
rust[client=cpp,*]/ThriftRPCClientTest/SinkChunkTimeout/Success.SinkChunkTimeoutTest

# When the server answers a sink before the client has sent everything,
# bareclient's Rust side reports "Sink generator was aborted" instead of the
# final response.
rust[client=cpp,*]/ThriftRPCClientTest/SinkEarlyFinalResponse/Success.SinkEarlyFinalResponseTest

# A sink dropped without ever being called stays open at the server until the
# connection closes: bareclient never destroys the C++ ClientSink whose
# destructor would cancel it.
rust[client=cpp,*]/ThriftRPCClientTest/SinkAbort*

# bareclient hands its Rust caller only the text of the TTransportException its
# C++ client raised, so `rpc_client.rs` cannot report the exception's type.
rust[client=cpp,transport=http2]/ThriftRPCClientTest/RequestResponseBadContentLength/Success.RequestResponseBadContentLengthTest

###
# Transport: HTTP
# Run every client test over HTTP/2
###

# A C++ server runs its preprocess functions only for Rocket and header requests
# (ThriftRocketServerHandler, Cpp2Connection), never for HTTP/2, so nothing
# sheds the call under test and every client gets the handler's answer instead,
# the C++ one included.
*[transport=http2,*]/ThriftRPCClientTest/RequestResponseLoadshedding/Success.RequestResponseLoadsheddingTest
