Skip to content

Conversation

@hroncok
Copy link
Contributor

@hroncok
Copy link
ContributorAuthor

As a side note, I've also inquired about having LLVM 18 available in Fedora Linux 39.

@Eclips4
Copy link
Member

Eclips4 commented May 13, 2024

Miro, is this really should target 3.13 branch? I guess you have chose this one accidentally.
For me, it looks like it should target the current main branch (3.14), and it would be nice to backport it to 3.13, since JIT is available in 3.13.

@Eclips4Eclips4 added the needs backport to 3.13 bugs and security fixes label May 13, 2024
@Eclips4
Copy link
Member

Eclips4 commented May 13, 2024

Miro, is this really should target 3.13 branch? I guess you have chose this one accidentally. For me, it looks like it should target the current main branch (3.14), and it would be nice to backport it to 3.13, since JIT is available in 3.13.

Nah, I was doing this on my phone from GitHub web edit and I managed to click the edit button on the 3.13 branch, sorry about that.

Now I belive I fixed this, but at the same time, GitHub decided to spam everybody. I am so sorry 😢

No worries! Bad things happens sometimes with Github UI/UX :). I've dismissed requests for review from everyone except Brandt.

@Eclips4
Copy link
Member

Eclips4 commented May 13, 2024

However, I'm wondering why changing README.md triggers our CI/CD actions (I mean actions that build the interpreter and run the test suite). This obviously should not happen for this kind of changes.

This could be easily fixed by changing the .github/workflows/jit.yml:

diff --git a/.github/workflows/jit.yml b/.github/workflows/jit.yml index 7152cde8f4..1ac2829f0a 100644 --- a/.github/workflows/jit.yml+++ b/.github/workflows/jit.yml@@ -1,6 +1,8 @@ name: JIT on: pull_request: + paths-ignore:+ - 'Tools/jit/README.md' paths: - '**jit**' - 'Python/bytecodes.c'

Perhaps it's not worth the effort because README is rarely changed.

Copy link
Member

@savannahostrowskisavannahostrowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks for adding this!

Copy link
Member

@ericsnowcurrentlyericsnowcurrently left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ericsnowcurrently
Copy link
Member

However, I'm wondering why changing README.md triggers our CI/CD actions (I mean actions that build the interpreter and run the test suite). This obviously should not happen for this kind of changes.

This could be easily fixed by changing the .github/workflows/jit.yml:

That makes sense to me. @brandtbucher, what do you think?

@hugovk
Copy link
Member

This could be easily fixed by changing the .github/workflows/jit.yml:

Could also ignore Tools/jit/mypy.ini

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Install LLVM 18 on Fedora Linux 40 or newer:

```sh
sudo dnf install 'clang(major) = 18''llvm(major) = 18'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! Just double-checking, is the separate Clang install necessary (it's not bundled with the LLVM install)?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct. Installing just LLVM does not install clang. Neither the other way around.

@brandtbucher
Copy link
Member

Also, if somebody wants to open a PR to ignore JIT CI on the following files, go ahead:

  • Tools/jit/README.md
  • Tools/jit/mypy.ini
  • Python/perf_jit_trampoline.c

@savannahostrowski
Copy link
Member

Happy to do that! @brandtbucher

@brandtbucherbrandtbucher merged commit ab73bcd into python:mainMay 16, 2024
@miss-islington-app
Copy link

Thanks @hroncok for the PR, and @brandtbucher for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 16, 2024
(cherry picked from commit ab73bcd) Co-authored-by: Miro Hrončok <miro@hroncok.cz> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
@bedevere-app
Copy link

GH-119100 is a backport of this pull request to the 3.13 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.13 bugs and security fixes label May 16, 2024
@hroncokhroncok deleted the patch-2 branch May 16, 2024 18:09
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@hroncok@Eclips4@ericsnowcurrently@hugovk@brandtbucher@savannahostrowski@erlend-aasland