From 457eef39863593c570505f0cf6387e877035f6c2 Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Tue, 20 Feb 2018 11:07:57 +0100 Subject: [PATCH 01/22] Add new test script. --- actions/print_version.sh | 2 ++ actions/print_version.yaml | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100755 actions/print_version.sh create mode 100644 actions/print_version.yaml diff --git a/actions/print_version.sh b/actions/print_version.sh new file mode 100755 index 0000000..64ab65f --- /dev/null +++ b/actions/print_version.sh @@ -0,0 +1,2 @@ +echo "v0.5.0" +exit 0 diff --git a/actions/print_version.yaml b/actions/print_version.yaml new file mode 100644 index 0000000..38411d7 --- /dev/null +++ b/actions/print_version.yaml @@ -0,0 +1,7 @@ +--- +"name": "print_version" +"runner_type": "local-shell-script" +"description": "Action which prints pack version." +"enabled": true +"entry_point": "print_version.sh" +"parameters": {} From 1bcd30743e6ade15cefd83b9e9ba19b3cb3d7ec4 Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Tue, 20 Feb 2018 11:08:42 +0100 Subject: [PATCH 02/22] Update version to v0.7.0. --- actions/print_version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/print_version.sh b/actions/print_version.sh index 64ab65f..0bffd16 100755 --- a/actions/print_version.sh +++ b/actions/print_version.sh @@ -1,2 +1,2 @@ -echo "v0.5.0" +echo "v0.7.0" exit 0 From 69feae5d085172552d6a25bc7f531d224198a0f8 Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Tue, 20 Feb 2018 11:08:57 +0100 Subject: [PATCH 03/22] Update version to v0.8.0. --- actions/print_version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/print_version.sh b/actions/print_version.sh index 0bffd16..ed2aa6e 100755 --- a/actions/print_version.sh +++ b/actions/print_version.sh @@ -1,2 +1,2 @@ -echo "v0.7.0" +echo "v0.8.0" exit 0 From fcebd92097fd0f8279de42b5fb750ea5765ae98b Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Tue, 20 Feb 2018 12:23:09 +0100 Subject: [PATCH 04/22] Add new python runner action for printing version. --- actions/print_version.py | 12 ++++++++++++ actions/python_runner_print_version.yaml | 7 +++++++ 2 files changed, 19 insertions(+) create mode 100644 actions/print_version.py create mode 100644 actions/python_runner_print_version.yaml diff --git a/actions/print_version.py b/actions/print_version.py new file mode 100644 index 0000000..881d8f7 --- /dev/null +++ b/actions/print_version.py @@ -0,0 +1,12 @@ +from st2actions.runners.pythonrunner import Action + +__all__ = [ + 'PrintVersionAction' +] + + +class PrintVersionAction(Action): + def run(self, data): + version = 'v0.10.0' + print version + return version diff --git a/actions/python_runner_print_version.yaml b/actions/python_runner_print_version.yaml new file mode 100644 index 0000000..9fc8837 --- /dev/null +++ b/actions/python_runner_print_version.yaml @@ -0,0 +1,7 @@ +--- +"name": "python_runner_print_version" +"runner_type": "python-script" +"description": "Action which prints pack version." +"enabled": true +"entry_point": "print_version.py" +"parameters": {} From 6be3350098161bc50a4702d7a638c98bd28b3832 Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Tue, 20 Feb 2018 12:23:32 +0100 Subject: [PATCH 05/22] Update version. --- actions/print_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/print_version.py b/actions/print_version.py index 881d8f7..9feb798 100644 --- a/actions/print_version.py +++ b/actions/print_version.py @@ -7,6 +7,6 @@ class PrintVersionAction(Action): def run(self, data): - version = 'v0.10.0' + version = 'v0.11.0' print version return version From 3b674fcf013fad4d6e80787f19b94c7559fe0fd1 Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Tue, 20 Feb 2018 12:26:32 +0100 Subject: [PATCH 06/22] Fix typo. --- actions/print_version.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actions/print_version.py b/actions/print_version.py index 9feb798..57ab373 100644 --- a/actions/print_version.py +++ b/actions/print_version.py @@ -6,7 +6,7 @@ class PrintVersionAction(Action): - def run(self, data): - version = 'v0.11.0' + def run(self): + version = 'v0.12.0' print version return version From 9e5fb615d62554e1970420fc214016c88933d74b Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Tue, 20 Feb 2018 12:26:45 +0100 Subject: [PATCH 07/22] Bump version. --- actions/print_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/print_version.py b/actions/print_version.py index 57ab373..7b9ff3e 100644 --- a/actions/print_version.py +++ b/actions/print_version.py @@ -7,6 +7,6 @@ class PrintVersionAction(Action): def run(self): - version = 'v0.12.0' + version = 'v0.13.0' print version return version From 7fd041824cb224b184e13ceb57ca714bea9634d7 Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Tue, 20 Feb 2018 12:57:20 +0100 Subject: [PATCH 08/22] Use consistent names. --- ...rint_version.yaml => local_script_runner_print_version.yaml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename actions/{print_version.yaml => local_script_runner_print_version.yaml} (78%) diff --git a/actions/print_version.yaml b/actions/local_script_runner_print_version.yaml similarity index 78% rename from actions/print_version.yaml rename to actions/local_script_runner_print_version.yaml index 38411d7..49688f1 100644 --- a/actions/print_version.yaml +++ b/actions/local_script_runner_print_version.yaml @@ -1,5 +1,5 @@ --- -"name": "print_version" +"name": "local_script_runner_print_version" "runner_type": "local-shell-script" "description": "Action which prints pack version." "enabled": true From 931c2cad264851019e1f1f7807d70bc76ecdf734 Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Tue, 20 Feb 2018 12:57:31 +0100 Subject: [PATCH 09/22] Update version. --- actions/print_version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/print_version.sh b/actions/print_version.sh index ed2aa6e..c49b5e5 100755 --- a/actions/print_version.sh +++ b/actions/print_version.sh @@ -1,2 +1,2 @@ -echo "v0.8.0" +echo "v0.20.0" exit 0 From f89231e2f99d4cd3a2be109263df63b9335ac530 Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Tue, 20 Feb 2018 12:57:45 +0100 Subject: [PATCH 10/22] Bump version. --- actions/print_version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/print_version.sh b/actions/print_version.sh index c49b5e5..8dbb50a 100755 --- a/actions/print_version.sh +++ b/actions/print_version.sh @@ -1,2 +1,2 @@ -echo "v0.20.0" +echo "v0.21.0" exit 0 From 1d330ef533e1afb1ee5cb74d59dc52186a1d13ca Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Tue, 20 Feb 2018 18:44:44 +0100 Subject: [PATCH 11/22] Fix lint. --- actions/list_vms.py | 1 + 1 file changed, 1 insertion(+) diff --git a/actions/list_vms.py b/actions/list_vms.py index 2a36596..a71c31f 100644 --- a/actions/list_vms.py +++ b/actions/list_vms.py @@ -4,5 +4,6 @@ class Foo(object): pass + x = Foo() # x.doesnt_exist() From 9a319d4bd1c9d0807f766d2b2860dadd8857b8a6 Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Tue, 20 Feb 2018 19:07:23 +0100 Subject: [PATCH 12/22] Fix lint. --- actions/print_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/print_version.py b/actions/print_version.py index 7b9ff3e..061e7d6 100644 --- a/actions/print_version.py +++ b/actions/print_version.py @@ -8,5 +8,5 @@ class PrintVersionAction(Action): def run(self): version = 'v0.13.0' - print version + print(version) return version From ca1684f78b8b7370a3498deb912b2982405aa620 Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Mon, 26 Feb 2018 12:50:33 +0100 Subject: [PATCH 13/22] Add new action which relies on a local import. --- actions/print_version_local_import.py | 17 +++++++++++++++++ ...ython_runner_print_version_local_import.yaml | 7 +++++++ 2 files changed, 24 insertions(+) create mode 100644 actions/print_version_local_import.py create mode 100644 actions/python_runner_print_version_local_import.yaml diff --git a/actions/print_version_local_import.py b/actions/print_version_local_import.py new file mode 100644 index 0000000..3ee17a9 --- /dev/null +++ b/actions/print_version_local_import.py @@ -0,0 +1,17 @@ +from st2actions.runners.pythonrunner import Action + +import local_module +from local_module import CONSTANT_FOO + +__all__ = [ + 'PrintVersionAction' +] + + +class PrintVersionAction(Action): + def run(self): + version = 'v0.13.0' + print(local_module) + print(CONSTANT_FOO) + print(version) + return version diff --git a/actions/python_runner_print_version_local_import.yaml b/actions/python_runner_print_version_local_import.yaml new file mode 100644 index 0000000..827dd7e --- /dev/null +++ b/actions/python_runner_print_version_local_import.yaml @@ -0,0 +1,7 @@ +--- +"name": "python_runner_print_version_local_import" +"runner_type": "python-script" +"description": "Action which prints pack version." +"enabled": true +"entry_point": "print_version_local_import.py" +"parameters": {} From a39ccf37fe11ad64f4ed84ef1383b9dc3052d88c Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Mon, 26 Feb 2018 12:51:24 +0100 Subject: [PATCH 14/22] Bump version. --- actions/print_version_local_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/print_version_local_import.py b/actions/print_version_local_import.py index 3ee17a9..a3779d2 100644 --- a/actions/print_version_local_import.py +++ b/actions/print_version_local_import.py @@ -10,7 +10,7 @@ class PrintVersionAction(Action): def run(self): - version = 'v0.13.0' + version = 'v0.22.0' print(local_module) print(CONSTANT_FOO) print(version) From 00eb63098c0fedacec214667068fc982037a2ff4 Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Mon, 26 Feb 2018 13:08:06 +0100 Subject: [PATCH 15/22] Add missing file. --- actions/local_module.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 actions/local_module.py diff --git a/actions/local_module.py b/actions/local_module.py new file mode 100644 index 0000000..86560f4 --- /dev/null +++ b/actions/local_module.py @@ -0,0 +1 @@ +CONSTANT_FOO = 'bar' From 2eea806064c460ea503d183db6c22b270b74904f Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Mon, 26 Feb 2018 13:22:08 +0100 Subject: [PATCH 16/22] Bump version. --- actions/print_version_local_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/print_version_local_import.py b/actions/print_version_local_import.py index a3779d2..3bfe345 100644 --- a/actions/print_version_local_import.py +++ b/actions/print_version_local_import.py @@ -10,7 +10,7 @@ class PrintVersionAction(Action): def run(self): - version = 'v0.22.0' + version = 'v0.24.0' print(local_module) print(CONSTANT_FOO) print(version) From 129361445b4fbb5a1e82ba5ec21c8253ac498ca9 Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Mon, 26 Feb 2018 13:58:08 +0100 Subject: [PATCH 17/22] Bump version. --- actions/print_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/print_version.py b/actions/print_version.py index 061e7d6..5873047 100644 --- a/actions/print_version.py +++ b/actions/print_version.py @@ -7,6 +7,6 @@ class PrintVersionAction(Action): def run(self): - version = 'v0.13.0' + version = 'v0.25.0' print(version) return version From 2b8214665760db93c2632af0f5707da474e4cfb1 Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Tue, 10 Apr 2018 10:58:12 +0200 Subject: [PATCH 18/22] Add new print_python_version action. --- actions/print_python_version.py | 12 ++++++++++++ actions/print_python_version.yaml | 7 +++++++ pack.yaml | 2 +- 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 actions/print_python_version.py create mode 100644 actions/print_python_version.yaml diff --git a/actions/print_python_version.py b/actions/print_python_version.py new file mode 100644 index 0000000..73ef5f3 --- /dev/null +++ b/actions/print_python_version.py @@ -0,0 +1,12 @@ +import sys + +from st2actions.runners.pythonrunner import Action + +__all__ = [ + 'PrintPythonVersionAction' +] + + +class PrintPythonVersionAction(Action): + def run(self): + print('%s on %s' % (sys.version, sys.platform)) diff --git a/actions/print_python_version.yaml b/actions/print_python_version.yaml new file mode 100644 index 0000000..7cfea80 --- /dev/null +++ b/actions/print_python_version.yaml @@ -0,0 +1,7 @@ +--- +"name": "print_python_version" +"runner_type": "python-script" +"description": "Action which prints Python version under which action is executed." +"enabled": true +"entry_point": "print_version.py" +"parameters": {} diff --git a/pack.yaml b/pack.yaml index f75a6f0..ed756d2 100644 --- a/pack.yaml +++ b/pack.yaml @@ -1,6 +1,6 @@ --- name : test -description : st2 pack to test package management pipeline +description : st2 pack for testing various functionality (content_version, python 3, CI, etc.) keywords: - some - search From bfefe14d0d155291c3110e83b1c411e7501bfce7 Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Wed, 11 Apr 2018 10:59:47 +0200 Subject: [PATCH 19/22] Add readme. --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9c558e3..9c2dad5 100644 --- a/README.md +++ b/README.md @@ -1 +1,8 @@ -. +## StackStorm Test Pack + +NOTE: This pack is used for testing our pack Continous Integration system +and as such, it intentionally has actions which fail lint and other checks. + +In addition to that, it also uses a non-master default branch on Github +(``aaa```) to verify that CI works with non-master default branches - +please don't change. From 9a57089126a7a663563c54c811f90183b9fb33b3 Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Wed, 11 Apr 2018 11:00:17 +0200 Subject: [PATCH 20/22] Update description. --- pack.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pack.yaml b/pack.yaml index ed756d2..96f8ae1 100644 --- a/pack.yaml +++ b/pack.yaml @@ -1,6 +1,6 @@ --- name : test -description : st2 pack for testing various functionality (content_version, python 3, CI, etc.) +description : StackStorm pack for testing various functionality and StackStorm pack CI system. keywords: - some - search From a4179567119f84f16d4ff05452e7231fd72870db Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Wed, 11 Apr 2018 11:02:14 +0200 Subject: [PATCH 21/22] Fix typo. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9c2dad5..813cb1a 100644 --- a/README.md +++ b/README.md @@ -4,5 +4,5 @@ NOTE: This pack is used for testing our pack Continous Integration system and as such, it intentionally has actions which fail lint and other checks. In addition to that, it also uses a non-master default branch on Github -(``aaa```) to verify that CI works with non-master default branches - +(``aaa``) to verify that CI works with non-master default branches - please don't change. From 5e924bb3ab359a071955d467449fea978e872ad1 Mon Sep 17 00:00:00 2001 From: blag Date: Thu, 30 Jan 2020 15:32:09 -0800 Subject: [PATCH 22/22] Add explicit Python version support (including Python 3) --- pack.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pack.yaml b/pack.yaml index 96f8ae1..26ac2a5 100644 --- a/pack.yaml +++ b/pack.yaml @@ -8,3 +8,6 @@ keywords: version : 0.4.0 author : st2-dev email : info@stackstorm.com +python_versions: + - "2" + - "3"