You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by lc...@apache.org on 2016/12/22 17:53:59 UTC

[1/2] incubator-beam git commit: Add experiments alias for DebugOptions

Repository: incubator-beam
Updated Branches:
  refs/heads/python-sdk 7c5382b33 -> c8a8bb21e


Add experiments alias for DebugOptions


Project: http://git-wip-us.apache.org/repos/asf/incubator-beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-beam/commit/df663884
Tree: http://git-wip-us.apache.org/repos/asf/incubator-beam/tree/df663884
Diff: http://git-wip-us.apache.org/repos/asf/incubator-beam/diff/df663884

Branch: refs/heads/python-sdk
Commit: df6638849e5d31c5bff3649ee2b96f6e074bd953
Parents: 7c5382b
Author: Vikas Kedigehalli <vi...@google.com>
Authored: Wed Dec 21 16:53:30 2016 -0800
Committer: Luke Cwik <lc...@google.com>
Committed: Thu Dec 22 09:53:08 2016 -0800

----------------------------------------------------------------------
 sdks/python/apache_beam/utils/options.py               | 2 +-
 sdks/python/apache_beam/utils/pipeline_options_test.py | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-beam/blob/df663884/sdks/python/apache_beam/utils/options.py
----------------------------------------------------------------------
diff --git a/sdks/python/apache_beam/utils/options.py b/sdks/python/apache_beam/utils/options.py
index 085c09c..e4ef10b 100644
--- a/sdks/python/apache_beam/utils/options.py
+++ b/sdks/python/apache_beam/utils/options.py
@@ -384,7 +384,7 @@ class DebugOptions(PipelineOptions):
                         default=None,
                         help='Debug file to write the workflow specification.')
     parser.add_argument(
-        '--experiment',
+        '--experiment', '--experiments',
         dest='experiments',
         action='append',
         default=None,

http://git-wip-us.apache.org/repos/asf/incubator-beam/blob/df663884/sdks/python/apache_beam/utils/pipeline_options_test.py
----------------------------------------------------------------------
diff --git a/sdks/python/apache_beam/utils/pipeline_options_test.py b/sdks/python/apache_beam/utils/pipeline_options_test.py
index d9439e9..75bd6a2 100644
--- a/sdks/python/apache_beam/utils/pipeline_options_test.py
+++ b/sdks/python/apache_beam/utils/pipeline_options_test.py
@@ -138,6 +138,10 @@ class PipelineOptionsTest(unittest.TestCase):
     self.assertEqual(
         sorted(options.get_all_options()['experiments']), ['abc', 'def'])
 
+    options = PipelineOptions(['--experiments', 'abc', '--experiments', 'def'])
+    self.assertEqual(
+        sorted(options.get_all_options()['experiments']), ['abc', 'def'])
+
     options = PipelineOptions(flags=[''])
     self.assertEqual(options.get_all_options()['experiments'], None)
 


[2/2] incubator-beam git commit: Add experiments alias for DebugOptions

Posted by lc...@apache.org.
Add experiments alias for DebugOptions

This closes #1682


Project: http://git-wip-us.apache.org/repos/asf/incubator-beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-beam/commit/c8a8bb21
Tree: http://git-wip-us.apache.org/repos/asf/incubator-beam/tree/c8a8bb21
Diff: http://git-wip-us.apache.org/repos/asf/incubator-beam/diff/c8a8bb21

Branch: refs/heads/python-sdk
Commit: c8a8bb21eac7d365159dabd3a70e5cc5cd0c5d28
Parents: 7c5382b df66388
Author: Luke Cwik <lc...@google.com>
Authored: Thu Dec 22 09:53:48 2016 -0800
Committer: Luke Cwik <lc...@google.com>
Committed: Thu Dec 22 09:53:48 2016 -0800

----------------------------------------------------------------------
 sdks/python/apache_beam/utils/options.py               | 2 +-
 sdks/python/apache_beam/utils/pipeline_options_test.py | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------