]> xenbits.xensource.com Git - libvirt.git/commitdiff
ci: helper: Drop original actions
authorErik Skultety <eskultet@redhat.com>
Thu, 24 Aug 2023 11:29:56 +0000 (13:29 +0200)
committerErik Skultety <eskultet@redhat.com>
Tue, 12 Sep 2023 09:36:03 +0000 (11:36 +0200)
Previous patches added a single 'run' command parametrized with GitLab
job specs via '--job' that cover all of these original actions, adding
some more in the process. Drop the original actions as we don't need
them anymore.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
ci/helper

index bc5de008b218fea8a99753b75e7e6e9d8059e59d..b90dc56ede417c17021f73d63c5e047f30f17f4d 100755 (executable)
--- a/ci/helper
+++ b/ci/helper
@@ -112,33 +112,6 @@ class Parser:
         )
         subparsers.required = True
 
-        # build action
-        buildparser = subparsers.add_parser(
-            "build",
-            help="run a build in a container",
-            parents=[containerparser, mesonparser],
-            formatter_class=argparse.ArgumentDefaultsHelpFormatter,
-        )
-        buildparser.set_defaults(func=Application._action_build)
-
-        # test action
-        testparser = subparsers.add_parser(
-            "test",
-            help="run a build in a container (including tests)",
-            parents=[containerparser, mesonparser],
-            formatter_class=argparse.ArgumentDefaultsHelpFormatter,
-        )
-        testparser.set_defaults(func=Application._action_test)
-
-        # shell action
-        shellparser = subparsers.add_parser(
-            "shell",
-            help="start a shell in a container",
-            parents=[containerparser],
-            formatter_class=argparse.ArgumentDefaultsHelpFormatter,
-        )
-        shellparser.set_defaults(func=Application._action_shell)
-
         jobparser = subparsers.add_parser(
             "run",
             help="Run a GitLab CI job or 'shell' in a local environment",
@@ -301,15 +274,6 @@ class Application:
             """)
             print(msg.replace("STALE_DETAILS", stale_details))
 
-    def _action_build(self):
-        self._make_run(f"ci-build@{self._args.target}")
-
-    def _action_test(self):
-        self._make_run(f"ci-test@{self._args.target}")
-
-    def _action_shell(self):
-        self._make_run(f"ci-shell@{self._args.target}")
-
     @required_deps("git")
     def _action_run(self):
         return self._lcitool_run(self._args.job)