From ab4006487d46fe2a6210a9538d1d67532745f6f0 Mon Sep 17 00:00:00 2001 From: Savannah Ostrowski Date: Thu, 16 May 2024 11:41:02 -0400 Subject: [PATCH 1/7] add paths-ignore to jit.yml --- .github/workflows/jit.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/jit.yml b/.github/workflows/jit.yml index 7152cde8f4607c..e836e7888ad8f9 100644 --- a/.github/workflows/jit.yml +++ b/.github/workflows/jit.yml @@ -5,11 +5,19 @@ on: - '**jit**' - 'Python/bytecodes.c' - 'Python/optimizer*.c' + paths-ignore: + - 'Tools/jit/README.md' + - 'Tools/jit/mypy.ini' + - 'Python/perf_jit_trampoline.c' push: paths: - '**jit**' - 'Python/bytecodes.c' - 'Python/optimizer*.c' + paths-ignore: + - 'Tools/jit/README.md' + - 'Tools/jit/mypy.ini' + - 'Python/perf_jit_trampoline.c' workflow_dispatch: permissions: From 8a104a7253da847d42de2029fdb12533026be936 Mon Sep 17 00:00:00 2001 From: Savannah Ostrowski Date: Sat, 18 May 2024 10:34:41 -0400 Subject: [PATCH 2/7] update paths/ --- .github/workflows/jit.yml | 14 ++++---------- Tools/jit/README.md | 2 ++ 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/jit.yml b/.github/workflows/jit.yml index e836e7888ad8f9..69358a3ccf7856 100644 --- a/.github/workflows/jit.yml +++ b/.github/workflows/jit.yml @@ -2,22 +2,16 @@ name: JIT on: pull_request: paths: - - '**jit**' + - '**jit**.c' + - '**jit**.py' - 'Python/bytecodes.c' - 'Python/optimizer*.c' - paths-ignore: - - 'Tools/jit/README.md' - - 'Tools/jit/mypy.ini' - - 'Python/perf_jit_trampoline.c' push: paths: - - '**jit**' + - '**jit**.c' + - '**jit**.py' - 'Python/bytecodes.c' - 'Python/optimizer*.c' - paths-ignore: - - 'Tools/jit/README.md' - - 'Tools/jit/mypy.ini' - - 'Python/perf_jit_trampoline.c' workflow_dispatch: permissions: diff --git a/Tools/jit/README.md b/Tools/jit/README.md index 0f5aa9ce656bc9..04162668adcde7 100644 --- a/Tools/jit/README.md +++ b/Tools/jit/README.md @@ -3,6 +3,8 @@ The JIT Compiler This version of CPython can be built with an experimental just-in-time compiler. While most everything you already know about building and using CPython is unchanged, you will probably need to install a compatible version of LLVM first. +TEST + ## Installing LLVM The JIT compiler does not require end users to install any third-party dependencies, but part of it must be *built* using LLVM[^why-llvm]. You are *not* required to build the rest of CPython using LLVM, or even the same version of LLVM (in fact, this is uncommon). From 5882b99051f3a51233f15eee12eb1c4c3d78d00a Mon Sep 17 00:00:00 2001 From: Savannah Ostrowski Date: Sat, 18 May 2024 10:39:56 -0400 Subject: [PATCH 3/7] undo test --- Tools/jit/README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/Tools/jit/README.md b/Tools/jit/README.md index 04162668adcde7..0f5aa9ce656bc9 100644 --- a/Tools/jit/README.md +++ b/Tools/jit/README.md @@ -3,8 +3,6 @@ The JIT Compiler This version of CPython can be built with an experimental just-in-time compiler. While most everything you already know about building and using CPython is unchanged, you will probably need to install a compatible version of LLVM first. -TEST - ## Installing LLVM The JIT compiler does not require end users to install any third-party dependencies, but part of it must be *built* using LLVM[^why-llvm]. You are *not* required to build the rest of CPython using LLVM, or even the same version of LLVM (in fact, this is uncommon). From 1312112686ed09cbafa0af3120b1ffd0f0e44baf Mon Sep 17 00:00:00 2001 From: Savannah Ostrowski Date: Sat, 18 May 2024 11:49:23 -0400 Subject: [PATCH 4/7] use negative pattern match --- .github/workflows/jit.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/jit.yml b/.github/workflows/jit.yml index 69358a3ccf7856..9818f94b9e6d42 100644 --- a/.github/workflows/jit.yml +++ b/.github/workflows/jit.yml @@ -2,16 +2,20 @@ name: JIT on: pull_request: paths: - - '**jit**.c' - - '**jit**.py' + - '**jit**' - 'Python/bytecodes.c' - 'Python/optimizer*.c' + - '!Python/perf_jit_trampoline.c' + - '!Tools/jit/README.md' + - '!Tools/jit/mypy.ini' push: paths: - - '**jit**.c' - - '**jit**.py' + - '**jit**' - 'Python/bytecodes.c' - 'Python/optimizer*.c' + - '!Python/perf_jit_trampoline.c' + - '!Tools/jit/README.md' + - '!Tools/jit/mypy.ini' workflow_dispatch: permissions: From bf52b3c009444204aed9000729e66c7754c4f969 Mon Sep 17 00:00:00 2001 From: Savannah Ostrowski Date: Sat, 18 May 2024 15:29:03 -0400 Subject: [PATCH 5/7] Update jit.yml Co-authored-by: Alex Waygood --- .github/workflows/jit.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/jit.yml b/.github/workflows/jit.yml index 9818f94b9e6d42..4de6bc736008c1 100644 --- a/.github/workflows/jit.yml +++ b/.github/workflows/jit.yml @@ -6,8 +6,8 @@ on: - 'Python/bytecodes.c' - 'Python/optimizer*.c' - '!Python/perf_jit_trampoline.c' - - '!Tools/jit/README.md' - - '!Tools/jit/mypy.ini' + - '!**/*.md' + - '!**/*.ini' push: paths: - '**jit**' From 168bfd044e4b632809e8b993c651071ab557c64a Mon Sep 17 00:00:00 2001 From: Savannah Ostrowski Date: Sat, 18 May 2024 15:29:10 -0400 Subject: [PATCH 6/7] Update jit.yml Co-authored-by: Alex Waygood --- .github/workflows/jit.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/jit.yml b/.github/workflows/jit.yml index 4de6bc736008c1..570460f4c214f9 100644 --- a/.github/workflows/jit.yml +++ b/.github/workflows/jit.yml @@ -14,8 +14,8 @@ on: - 'Python/bytecodes.c' - 'Python/optimizer*.c' - '!Python/perf_jit_trampoline.c' - - '!Tools/jit/README.md' - - '!Tools/jit/mypy.ini' + - '!**/*/README.md' + - '!**/*/mypy.ini' workflow_dispatch: permissions: From ce426934239fd5087b101e3ff3281f73340b47da Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Sun, 19 May 2024 08:31:37 -0400 Subject: [PATCH 7/7] Update .github/workflows/jit.yml Co-authored-by: Brandt Bucher --- .github/workflows/jit.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/jit.yml b/.github/workflows/jit.yml index 570460f4c214f9..2ec04da16946ff 100644 --- a/.github/workflows/jit.yml +++ b/.github/workflows/jit.yml @@ -14,8 +14,8 @@ on: - 'Python/bytecodes.c' - 'Python/optimizer*.c' - '!Python/perf_jit_trampoline.c' - - '!**/*/README.md' - - '!**/*/mypy.ini' + - '!**/*.md' + - '!**/*.ini' workflow_dispatch: permissions: