See <https://builds.apache.org/job/Thrift-precommit/130/changes>
Changes: [jensg] THRIFT-3629 Parser sets exitcode on errors, but generator does not ------------------------------------------ [...truncated 5352 lines...] /thrift/lib/rb/spec/gen-rb/namespaced_spec_namespace/thrift_namespaced_spec_types.rb:16: warning: already initialized constant FIELDS /thrift/lib/rb/spec/gen-rb/namespaced_spec_namespace/namespaced_nonblocking_service.rb:117: warning: already initialized constant ENGLISH /thrift/lib/rb/spec/gen-rb/namespaced_spec_namespace/namespaced_nonblocking_service.rb:119: warning: already initialized constant FIELDS /thrift/lib/rb/spec/gen-rb/namespaced_spec_namespace/namespaced_nonblocking_service.rb:133: warning: already initialized constant SUCCESS /thrift/lib/rb/spec/gen-rb/namespaced_spec_namespace/namespaced_nonblocking_service.rb:135: warning: already initialized constant FIELDS /thrift/lib/rb/spec/gen-rb/namespaced_spec_namespace/namespaced_nonblocking_service.rb:150: warning: already initialized constant FIELDS /thrift/lib/rb/spec/gen-rb/namespaced_spec_namespace/namespaced_nonblocking_service.rb:164: warning: already initialized constant SUCCESS /thrift/lib/rb/spec/gen-rb/namespaced_spec_namespace/namespaced_nonblocking_service.rb:166: warning: already initialized constant FIELDS /thrift/lib/rb/spec/gen-rb/namespaced_spec_namespace/namespaced_nonblocking_service.rb:180: warning: already initialized constant N /thrift/lib/rb/spec/gen-rb/namespaced_spec_namespace/namespaced_nonblocking_service.rb:182: warning: already initialized constant FIELDS /thrift/lib/rb/spec/gen-rb/namespaced_spec_namespace/namespaced_nonblocking_service.rb:197: warning: already initialized constant FIELDS /thrift/lib/rb/spec/gen-rb/namespaced_spec_namespace/namespaced_nonblocking_service.rb:212: warning: already initialized constant FIELDS /thrift/lib/rb/spec/gen-rb/namespaced_spec_namespace/namespaced_nonblocking_service.rb:227: warning: already initialized constant FIELDS /thrift/lib/rb/spec/gen-rb/namespaced_spec_namespace/namespaced_nonblocking_service.rb:241: warning: already initialized constant SECONDS /thrift/lib/rb/spec/gen-rb/namespaced_spec_namespace/namespaced_nonblocking_service.rb:243: warning: already initialized constant FIELDS /thrift/lib/rb/spec/gen-rb/namespaced_spec_namespace/namespaced_nonblocking_service.rb:258: warning: already initialized constant FIELDS [32m generated the right files[0m [32m did not generate the wrong files[0m [32m has a service class in the right place[0m [32m has a struct in the right place[0m [32m required an included file[0m [32m extended a service[0m NonblockingServer Thrift::NonblockingServer [32m should handle basic message passing[0m [32m should handle concurrent clients[0m [32m should handle messages from more than 5 long-lived connections[0m [31m should shut down when asked (FAILED - 1)[0m [32m should continue processing active messages when shutting down[0m [32m should kill active messages when they don't expire while shutting down[0m [32m should allow shutting down in response to a message[0m Processor Thrift::Processor [32m should call process_<message> when it receives that message[0m [32m should raise an ApplicationException when the received message cannot be processed[0m [32m should pass args off to the args class[0m [32m should write out a reply when asked[0m Serializer Thrift::Serializer [32m should serialize structs to binary by default[0m [32m should serialize structs to the given protocol[0m Thrift::Deserializer [32m should deserialize structs from binary by default[0m [32m should deserialize structs from the given protocol[0m Thrift::ServerSocket Thrift::ServerSocket [32m should create a handle when calling listen[0m [32m should accept an optional host argument[0m [32m should create a Thrift::Socket to wrap accepted sockets[0m [32m should close the handle when closed[0m [32m should return nil when accepting if there is no handle[0m [32m should return true for closed? when appropriate[0m Server Thrift::BaseServer [32m should default to BaseTransportFactory and BinaryProtocolFactory when not specified[0m Thrift::SimpleServer [32m should serve in the main thread[0m Thrift::ThreadedServer [32m should serve using threads[0m Thrift::ThreadPoolServer [32m should serve inside a thread[0m [32m should avoid running the server twice when retrying rescuable_serve[0m [32m should serve using a thread pool[0m Socket Thrift::Socket [32m should raise a TransportException when it cannot open a socket[0m [32m should open a ::Socket with default args[0m [32m should accept host/port options[0m [32m should accept an optional timeout[0m it should behave like a socket [32m should open a socket[0m [32m should be open whenever it has a handle[0m [32m should write data to the handle[0m [32m should raise an error when it cannot read from the handle[0m [32m should return the data read when reading from the handle works[0m [32m should declare itself as closed when it has an error[0m [32m should raise an error when the stream is closed[0m [32m should support the timeout accessor for read[0m [32m should support the timeout accessor for write[0m [32m should raise an error when read times out[0m [32m should raise an error when write times out[0m StructNestedContainers Thrift::Struct [32m should support nested lists inside lists[0m [32m should support nested lists inside sets[0m [32m should support nested lists in map keys[0m [32m should support nested lists in map values[0m [32m should support nested sets inside lists[0m [32m should support nested sets inside sets[0m [32m should support nested sets in map keys[0m [32m should support nested sets in map values[0m [32m should support nested maps inside lists[0m [32m should support nested maps inside sets[0m [32m should support nested maps in map keys[0m [32m should support nested maps in map values[0m Struct Thrift::Struct [32m should iterate over all fields properly[0m [32m should initialize all fields to defaults[0m [32m should initialize all fields to defaults and accept a block argument[0m [32m should not share default values between instances[0m [32m should properly initialize boolean values[0m [32m should have proper == semantics[0m [32m should print enum value names in inspect[0m [32m should pretty print binary fields[0m [32m should offer field? methods[0m [32m should be comparable[0m [32m should read itself off the wire[0m [32m should serialize false boolean fields correctly[0m [32m should skip unexpected fields in structs and use default values[0m [32m should write itself to the wire[0m [32m should raise an exception if presented with an unknown container[0m [32m should support optional type-checking in Thrift::Struct.new[0m [32m should support optional type-checking in field accessors[0m [32m should raise an exception when unknown types are given to Thrift::Struct.new[0m [32m should support `raise Xception, 'message'` for Exception structs[0m [32m should support the regular initializer for exception structs[0m Thrift::ThinHTTPServer #initialize when using the defaults [32m binds to port 80, with host 0.0.0.0, a path of '/'[0m [32m creates a ThinHTTPServer::RackApplicationContext[0m [32m uses the BinaryProtocolFactory[0m when using the options [32m accepts :ip, :port, :path[0m [32m creates a ThinHTTPServer::RackApplicationContext with a different protocol factory[0m #serve [32m starts the Thin server[0m Thrift::ThinHTTPServer::RackApplication 404 response [32m receives a non-POST[0m [32m receives a header other than application/x-thrift[0m 200 response [32m creates an IOStreamTransport[0m [32m fetches the right protocol based on the Transport[0m [32m status code 200[0m Thrift::Types type checking [32m should return the proper name for each type[0m [32m should check types properly[0m [32m should error out if nil is passed and skip_types is false[0m [32m should check element types on containers[0m [32m should give the Thrift::TypeError a readable message[0m Union Thrift::Union [32m should return nil value in unset union[0m [32m should set a field and be accessible through get_value and the named field accessor[0m [32m should work correctly when instantiated with static field constructors[0m [32m should raise for wrong set field[0m [32m should raise for wrong set field when hash initialized and type checking is off[0m [32m should not be equal to nil[0m [32m should not be equal with an empty String[0m [32m should not equate two different unions, i32 vs. string[0m [32m should properly reset setfield and setvalue[0m [32m should not equate two different unions with different values[0m [32m should not equate two different unions with different fields[0m [32m should inspect properly[0m [32m should not allow setting with instance_variable_set[0m [32m should serialize to binary correctly[0m [32m should serialize to json correctly[0m [32m should raise when validating unset union[0m [32m should validate an enum field properly[0m [32m should properly serialize and match structs with a union[0m [32m should support old style constructor[0m [32m should not throw an error when inspected and unset[0m [32m should print enum value name when inspected[0m [32m should offer field? methods[0m [32m should pretty print binary fields[0m [32m should be comparable[0m UNIXSocket Thrift::UNIXSocket [32m should raise a TransportException when it cannot open a socket[0m [32m should accept an optional timeout[0m it should behave like a socket [32m should open a socket[0m [32m should be open whenever it has a handle[0m [32m should write data to the handle[0m [32m should raise an error when it cannot read from the handle[0m [32m should return the data read when reading from the handle works[0m [32m should declare itself as closed when it has an error[0m [32m should raise an error when the stream is closed[0m [32m should support the timeout accessor for read[0m [32m should support the timeout accessor for write[0m [32m should raise an error when read times out[0m [32m should raise an error when write times out[0m Thrift::UNIXServerSocket [32m should create a handle when calling listen[0m [32m should create a Thrift::UNIXSocket to wrap accepted sockets[0m [32m should close the handle when closed[0m [32m should delete the socket when closed[0m [32m should return nil when accepting if there is no handle[0m [32m should return true for closed? when appropriate[0m Pending: [33m Client Thrift::Client should increment the sequence id when sending messages[0m [36m # it seems sequence ids are completely ignored right now[0m [36m # ./spec/client_spec.rb:55[0m Failures: 1) NonblockingServer Thrift::NonblockingServer should shut down when asked [31mFailure/Error:[0m [3...@transport.open[0m [31mThrift::TransportException:[0m [31mCould not connect to localhost:43251: Connection refused - connect(2)[0m [36m # ./lib/thrift/transport/socket.rb:54:in `rescue in open'[0m [36m # ./lib/thrift/transport/socket.rb:36:in `open'[0m [36m # ./lib/thrift/transport/framed_transport.rb:37:in `open'[0m [36m # ./spec/nonblocking_server_spec.rb:68:in `open'[0m [36m # ./spec/nonblocking_server_spec.rb:140:in `setup_client'[0m [36m # ./spec/nonblocking_server_spec.rb:229:in `block (3 levels) in <top (required)>'[0m Finished in 3.39 seconds [31m394 examples, 1 failure, 1 pending[0m Failed examples: [31mrspec ./spec/nonblocking_server_spec.rb:227[0m [36m# NonblockingServer Thrift::NonblockingServer should shut down when asked[0m rake aborted! /usr/bin/ruby1.9.1 -S rspec ./spec/base_protocol_spec.rb ./spec/base_transport_spec.rb ./spec/binary_protocol_accelerated_spec.rb ./spec/binary_protocol_spec.rb ./spec/bytes_spec.rb ./spec/client_spec.rb ./spec/compact_protocol_spec.rb ./spec/exception_spec.rb ./spec/flat_spec.rb ./spec/http_client_spec.rb ./spec/json_protocol_spec.rb ./spec/namespaced_spec.rb ./spec/nonblocking_server_spec.rb ./spec/processor_spec.rb ./spec/serializer_spec.rb ./spec/server_socket_spec.rb ./spec/server_spec.rb ./spec/socket_spec.rb ./spec/struct_nested_containers_spec.rb ./spec/struct_spec.rb ./spec/thin_http_server_spec.rb ./spec/types_spec.rb ./spec/union_spec.rb ./spec/unix_socket_spec.rb --color --format d failed /var/lib/gems/1.9.1/gems/rspec-core-2.10.1/lib/rspec/core/rake_task.rb:137:in `block (2 levels) in initialize' /var/lib/gems/1.9.1/gems/rspec-core-2.10.1/lib/rspec/core/rake_task.rb:127:in `block in initialize' Tasks: TOP => default => gem => spec => realspec (See full trace by running task with --trace) make[3]: *** [check-local] Error 1 make[3]: Leaving directory `/thrift/lib/rb' make[2]: *** [check-am] Error 2 make[2]: Leaving directory `/thrift/lib/rb' make[1]: *** [check-recursive] Error 1 make[1]: Leaving directory `/thrift/lib' make: *** [check-recursive] Error 1 Build step 'Execute shell' marked build as failure [WARNINGS] Skipping publisher since build result is FAILURE [TASKS] Skipping publisher since build result is FAILURE Archiving artifacts Publishing Javadoc Updating THRIFT-3629