Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DC1E2200BA6 for ; Tue, 4 Oct 2016 01:45:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DAABC160AE5; Mon, 3 Oct 2016 23:45:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 21865160ADC for ; Tue, 4 Oct 2016 01:45:26 +0200 (CEST) Received: (qmail 39286 invoked by uid 500); 3 Oct 2016 23:45:26 -0000 Mailing-List: contact dev-help@reef.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@reef.apache.org Delivered-To: mailing list dev@reef.apache.org Received: (qmail 39272 invoked by uid 99); 3 Oct 2016 23:45:25 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2016 23:45:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 94355C0185 for ; Mon, 3 Oct 2016 23:45:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id qHEe7UmiuTKk for ; Mon, 3 Oct 2016 23:45:23 +0000 (UTC) Received: from mail-ua0-f173.google.com (mail-ua0-f173.google.com [209.85.217.173]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 83FD35F253 for ; Mon, 3 Oct 2016 23:45:23 +0000 (UTC) Received: by mail-ua0-f173.google.com with SMTP id v7so90361330uaa.0 for ; Mon, 03 Oct 2016 16:45:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=Vqwry8BxyHGDuCGdZ4yRJackYHQe64W5k63whI7D6CU=; b=KhkwOkbVmA+Yqa4i1Eo8LaNANM0hIwE0PN2PyAXVWpkcZpAOFAGyafuIviMXvyuFlS 5V5okjLMYlMUwRwV2fcw9DxtX0aaeVvrZnaVjWwwZfmhxhVWc3f0axueGjiY2rhDUnvb M5lSBpy4zmC7EO7PXvcR1748OB7hXJNaFfmfjv346qNS8nVms3EEroRt1i+c5d9JOMeD 6xr93QcqJUzrADnXuwprMYehtIPBmV0blwAoj8V+ON+jEzi7WaZ+joi51UhX6bgb1gR5 cUXtRyAI2c3oX0ZcgdJ87FDFEm8il0qUJPoaObgyMgCy1UCEbtp+8HiRSjUTViFDJCVC P5Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Vqwry8BxyHGDuCGdZ4yRJackYHQe64W5k63whI7D6CU=; b=L5FV/1e1t3xD/QhRobdVtLwfIKebdhd4UrlPS+28n6UfLHuPOrXMiEnE8B9kELzRC2 LhgzfuYA3v4mNtNwu3o55tn/O5GXWOtMDP3TFs7wTTQnw3OIUOhDBBLwoYlEQBdcy+Yl cOhuZAgWTURHqAgCE44dxwreIPMd29SB/U4dT0zCyUKmGURGR0jn4aBjw1fOu0A04HzC wwOxpxT/jQ4V8XgBaqdnz5RqQ9M5VRc+zLahRHTfspUOaXjFqxN6B7mtC+jy/NzfU0Y5 vbTRt6jRMpjPRndCwmYM8GD7JHNdIPXbNFW0GUTEl64Wcw3S2X1+SrqCPG7dp6gqz9eM kkmA== X-Gm-Message-State: AA6/9RnGqEX6IEJeH+eXguu12BdHUgxc3fER5MOVsRe5rbcYd+D30u8QRB4VZPrEQ0TR359zcpCGuDBEW94tCg== X-Received: by 10.159.37.247 with SMTP id 110mr489037uaf.22.1475538316803; Mon, 03 Oct 2016 16:45:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.159.53.2 with HTTP; Mon, 3 Oct 2016 16:45:16 -0700 (PDT) From: Douglas Service Date: Mon, 3 Oct 2016 16:45:16 -0700 Message-ID: Subject: [REEF-1624] Convert C# projects to use common proto files in lang/common/proto To: dev@reef.apache.org Content-Type: multipart/alternative; boundary=001a113d03d639c889053dfe895b archived-at: Mon, 03 Oct 2016 23:45:28 -0000 --001a113d03d639c889053dfe895b Content-Type: text/plain; charset=UTF-8 Here is a diff of the proto files replicated on both the java and C# sides (Java on the left C# on the right). Each side has a different extra message and there is some namespace capitalization differences. My inclination is to use the merged super set on both sides with lower case namespaces. Questions: In addition, protoc does not run as part of the build on the C# side as the output is checked into the tree. Thus, as the probuf-net package evolves we do not know if our proto files will still compile. I looked at the history and only see one check in for the C# proto files. Do we want to start running protoc as part of the build and automate edits if needed? Comments or thoughts? dougse@reefdevlx:/code/reef$ diff -w /code/reef/lang/common/proto/client_runtime.proto /code/reef/lang/cs/Org.Apache.REEF.Common/Protobuf/Proto/ client_runtime.proto 1c1 < /* --- > /** 19d18 < 28a28,43 > message JobSubmissionProto { > required string identifier = 1; // the job identifier > required string remote_id = 2; // the remote identifier > required string configuration = 5; // the runtime configuration > required string user_name = 6; // the user name > > option java_package = "com.Org.Apache.REEF.proto"; 36,37d34 < // Field 1 removed < 38a36 > optional SIZE driver_size = 7; > optional int32 driver_memory = 8; > optional int32 priority = 9; > optional string queue = 10; > > repeated FileResourceProto global_file = 11; // files that should be placed on the driver and all subsequent evaluators > repeated FileResourceProto local_File = 12; // files that should be placed on the driver only > > } > dougse@reefdevlx:/code/reef$ diff -w /code/reef/lang/common/proto/evaluator_runtime.proto /code/reef/lang/cs/Org.Apache.REEF.Common/Protobuf/Proto/ evaluator_runtime.proto 1c1 > option java_package = "com.Org.Apache.REEF.proto"; 36,37d34 < // Field 1 removed < 38a36 < /* --- > /** > option java_package = "com.Org.Apache.REEF.proto"; 36,37d34 < // Field 1 removed < 38a36 19d18 < 27,30d25 < // ACK the done message from the evaluator < message DoneEvaluatorProto { > option java_package = "com.Org.Apache.REEF.proto"; 36,37d34 < // Field 1 removed < 38a36 > option java_package = "com.Org.Apache.REEF.proto"; 36,37d34 < // Field 1 removed < 38a36 < } < 96,97d90 < optional StopEvaluatorProto stop_evaluator = 5; < optional DoneEvaluatorProto done_evaluator = 6; dougse@reefdevlx:/code/reef$ diff -w /code/reef/lang/common/proto/reef_service_protos.proto /code/reef/lang/cs/Org.Apache.REEF.Common/Protobuf/Proto/ reef_service_protos.proto 1c1 < /* --- > /** 19,20c19 < < option java_package = "org.apache.reef.proto"; > option java_package = "com.Org.Apache.REEF.proto"; 36,37d34 < // Field 1 removed < 38a36 --- > option java_package = "org.apache.reef.reef.proto"; 36a36,60 > enum FileType { > option java_package = "com.Org.Apache.REEF.proto"; 36,37d34 < // Field 1 removed < 38a36 > PLAIN = 0; > LIB = 1; > ARCHIVE = 2; > } > > // Removed in REEF 0.3 in favor of explicit memory sizes. > // enum SIZE { > // SMALL = 0; > // MEDIUM = 1; > // LARGE = 2; > // XLARGE = 3; > //} > > enum ProcessType { > option java_package = "com.Org.Apache.REEF.proto"; 36,37d34 < // Field 1 removed < 38a36 > JVM = 0; > option java_package = "com.Org.Apache.REEF.proto"; 36,37d34 < // Field 1 removed < 38a36 > CLR = 1;It turns > } > > message FileResourceProto { > required FileType type = 1; > required string name = 2; > required string path = 3; > } > dougse@reefdevlx:/code/reef$ diff -w /code/reef/lang/common/proto/reef_protocol.proto /code/reef/lang/cs/Org.Apache.REEF.Common/Protobuf/Proto/ reef_protocol.proto 1c1 < /* --- > /** 19d18 < 27c26 < option java_package = "org.apache.reef.proto"; --- > option java_package = "com.Org.Apache.REEF.proto"; 36,37d34 < // Field 1 removed < 38a36 > optional JobSubmissionProto jobSubmission = 1; dougse@reefdevlx:/code/reef$ diff -w /code/reef/lang/common/proto/RemoteProtocol.proto /code/reef/lang/cs/Org.Apache.REEF.Wake/Remote/Proto/RemoteProtocol.proto 1,18c1,17 > 26a26,27 > optional string source = 3; > optional string sink = 4; dougse@reefdevlx:/code/reef$ --001a113d03d639c889053dfe895b--