← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~andersson123/lpci:tim_lpci into lpci:main

 

Tim Andersson has proposed merging ~andersson123/lpci:tim_lpci into lpci:main.

Commit message:
Add branch and url info to log

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~andersson123/lpci/+git/lpci/+merge/443568

Add branch and url info to log
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~andersson123/lpci:tim_lpci into lpci:main.
diff --git a/.launchpad.yaml b/.launchpad.yaml
index d3ffd7e..c03fb4d 100644
--- a/.launchpad.yaml
+++ b/.launchpad.yaml
@@ -1,18 +1,18 @@
-pipeline:
-    - test
-    - build
-
-jobs:
-    test:
-        series: focal
-        architectures: amd64
-        packages: [git]
-        plugin: tox
-    build:
-        series: focal
-        architectures: amd64
-        plugin: pyproject-build
-        output:
-            paths:
-                - "dist/*.tar.gz"
-                - "dist/*.whl"
+#pipeline:
+#    - test
+#    - build
+#
+#jobs:
+#    test:
+#        series: focal
+#        architectures: amd64
+#        packages: [git]
+#        plugin: tox
+#    build:
+#        series: focal
+#        architectures: amd64
+#        plugin: pyproject-build
+#        output:
+#            paths:
+#                - "dist/*.tar.gz"
+#                - "dist/*.whl"
diff --git a/lpci/commands/run.py b/lpci/commands/run.py
index c543ed1..5388f7c 100644
--- a/lpci/commands/run.py
+++ b/lpci/commands/run.py
@@ -22,6 +22,7 @@ from craft_providers.actions.snap_installer import install_from_store
 from dotenv import dotenv_values
 from jinja2 import BaseLoader, Environment
 from pluggy import PluginManager
+from lpci.git import get_current_branch, get_current_remote_url
 
 from lpci import env
 from lpci.config import (
@@ -438,6 +439,9 @@ def _run_instance_command(
     full_run_cmd = ["bash", "--noprofile", "--norc", "-ec", command]
     if not root:
         full_run_cmd[:0] = ["runuser", "-u", env.get_non_root_user(), "--"]
+    
+    emit.progress(f"Running lpci for branch: {get_current_branch()}")
+    emit.progress(f"Remote url: {get_current_remote_url()}")
 
     emit.progress("Running command for the job...")
     original_mode = emit.get_mode()

Follow ups