[Lldb-commits] [lldb] [llvm] [DO-NOT-MERGE] Test github action (PR #181349)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 13 06:52:51 PST 2026


https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/181349

>From 84f8fa1e614fa1c614e50425cc42df55e4d22039 Mon Sep 17 00:00:00 2001
From: Michael Buch <michaelbuch12 at gmail.com>
Date: Fri, 13 Feb 2026 11:51:58 +0000
Subject: [PATCH 1/4] Init github action

---
 .../lldb-check-test-name-duplicates.yml       | 53 +++++++++++++++++++
 1 file changed, 53 insertions(+)
 create mode 100644 .github/workflows/lldb-check-test-name-duplicates.yml

diff --git a/.github/workflows/lldb-check-test-name-duplicates.yml b/.github/workflows/lldb-check-test-name-duplicates.yml
new file mode 100644
index 0000000000000..94d41f85c45ee
--- /dev/null
+++ b/.github/workflows/lldb-check-test-name-duplicates.yml
@@ -0,0 +1,53 @@
+name: "LLDB Python Lint"
+
+permissions:
+  contents: read
+
+on:
+  pull_request:
+    branches:
+      - main
+      - 'users/**'
+    paths:
+      - 'lldb/test/API/**'
+
+jobs:
+  code_linter:
+    if: github.repository_owner == 'llvm'
+    runs-on: ubuntu-24.04
+    defaults:
+      run:
+        shell: bash
+    container:
+      image: 'ghcr.io/llvm/ci-ubuntu-24.04-lint'
+    timeout-minutes: 60
+    concurrency:
+      group: ${{ github.workflow }}-${{ github.ref }}
+      cancel-in-progress: true
+    steps:
+      - name: Fetch LLVM sources
+        uses: actions/checkout at 8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
+        with:
+          fetch-depth: 2
+      
+      - name: Get changed files
+        id: changed-files
+        uses: tj-actions/changed-files at e0021407031f5be11a464abee9a0776171c79891 # v47.0.1
+        with:
+          separator: ","
+          skip_initial_fetch: true
+          base_sha: 'HEAD~1'
+          sha: 'HEAD'
+      
+      - name: Listed files
+        env:
+          CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
+        run: |
+          echo "Changed files:"
+          echo "$CHANGED_FILES"
+
+      - name: Run Python test-name linter
+        env:
+          CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
+        run: |
+          pylint --fail-on=E0102 --fail-under=0 "$CHANGED_FILES"

>From 1c05840ec1fca23de45356788ae0f1cda86124e2 Mon Sep 17 00:00:00 2001
From: Michael Buch <michaelbuch12 at gmail.com>
Date: Fri, 13 Feb 2026 11:53:05 +0000
Subject: [PATCH 2/4] TEST COMMIT

---
 lldb/source/Commands/CommandObjectBreakpoint.cpp            | 1 +
 .../data-formatter/compactvectors/TestCompactVectors.py     | 3 +++
 .../generic/vector/TestDataFormatterStdVector.py            | 6 ++++++
 3 files changed, 10 insertions(+)

diff --git a/lldb/source/Commands/CommandObjectBreakpoint.cpp b/lldb/source/Commands/CommandObjectBreakpoint.cpp
index 75dc890cc40ed..a9b17e85c1e9f 100644
--- a/lldb/source/Commands/CommandObjectBreakpoint.cpp
+++ b/lldb/source/Commands/CommandObjectBreakpoint.cpp
@@ -43,6 +43,7 @@ static void AddBreakpointDescription(Stream *s, Breakpoint *bp,
   bp->GetDescription(s, level, true);
   s->IndentLess();
   s->EOL();
+  // Test
 }
 
 static bool GetDefaultFile(Target &target, StackFrame *cur_frame,
diff --git a/lldb/test/API/functionalities/data-formatter/compactvectors/TestCompactVectors.py b/lldb/test/API/functionalities/data-formatter/compactvectors/TestCompactVectors.py
index 6add5072cfb93..ee57a23542314 100644
--- a/lldb/test/API/functionalities/data-formatter/compactvectors/TestCompactVectors.py
+++ b/lldb/test/API/functionalities/data-formatter/compactvectors/TestCompactVectors.py
@@ -16,6 +16,9 @@ def setUp(self):
         # Find the line number to break at.
         self.line = line_number("main.cpp", "// Set break point at this line.")
 
+    def test_with_run_command(self):
+        pass
+
     @skipUnlessDarwin
     def test_with_run_command(self):
         """Test that that file and class static variables display correctly."""
diff --git a/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/vector/TestDataFormatterStdVector.py b/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/vector/TestDataFormatterStdVector.py
index af857d51b3d24..15c78667bc7d6 100644
--- a/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/vector/TestDataFormatterStdVector.py
+++ b/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/vector/TestDataFormatterStdVector.py
@@ -11,6 +11,9 @@
 class StdVectorDataFormatterTestCase(TestBase):
     TEST_WITH_PDB_DEBUG_INFO = True
 
+    def check_numbers(self, var_name, show_ptr=False):
+        pass
+
     def check_numbers(self, var_name, show_ptr=False):
         patterns = []
         substrs = [
@@ -238,3 +241,6 @@ def test_ref_and_ptr_libcxx(self):
     def test_ref_and_ptr_msvcstl(self):
         self.build()
         self.do_test_ref_and_ptr()
+
+    def test_ref_and_ptr_msvcstl(self):
+        pass

>From 4ac8d8f3317ced40bdf5b882e6642b20023aa377 Mon Sep 17 00:00:00 2001
From: Michael Buch <michaelbuch12 at gmail.com>
Date: Fri, 13 Feb 2026 13:11:59 +0000
Subject: [PATCH 3/4] Add requirements

---
 .ci/requirements.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.ci/requirements.txt b/.ci/requirements.txt
index 45eb253548496..0a03c5c1221ec 100644
--- a/.ci/requirements.txt
+++ b/.ci/requirements.txt
@@ -1,3 +1,4 @@
 junitparser==3.2.0
 google-cloud-storage==3.3.0
 PyGithub==2.8.1
+pylint=4.0.4

>From 40771b0a8d2ebe4efd74f74c99b48872322f1b2f Mon Sep 17 00:00:00 2001
From: Michael Buch <michaelbuch12 at gmail.com>
Date: Fri, 13 Feb 2026 14:52:26 +0000
Subject: [PATCH 4/4] fix requirements

---
 .ci/requirements.txt                       | 1 -
 llvm/utils/git/requirements_linting.txt.in | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/.ci/requirements.txt b/.ci/requirements.txt
index 0a03c5c1221ec..45eb253548496 100644
--- a/.ci/requirements.txt
+++ b/.ci/requirements.txt
@@ -1,4 +1,3 @@
 junitparser==3.2.0
 google-cloud-storage==3.3.0
 PyGithub==2.8.1
-pylint=4.0.4
diff --git a/llvm/utils/git/requirements_linting.txt.in b/llvm/utils/git/requirements_linting.txt.in
index 4abcef75ef6fa..03ae082c4e9e2 100644
--- a/llvm/utils/git/requirements_linting.txt.in
+++ b/llvm/utils/git/requirements_linting.txt.in
@@ -1,2 +1,3 @@
 PyGithub==1.59.1
 doc8==2.0.0
+pylint=4.0.4



More information about the lldb-commits mailing list