Skip to content

gh-119292: Add job to jit.yml to build and test with --disable-gil - #119293

Merged
brandtbucher merged 10 commits into
python:mainfrom
savannahostrowski:jit-no-gil-ci
May 21, 2024
Merged

gh-119292: Add job to jit.yml to build and test with --disable-gil#119293
brandtbucher merged 10 commits into
python:mainfrom
savannahostrowski:jit-no-gil-ci

Conversation

@savannahostrowski

@savannahostrowskisavannahostrowski commented May 21, 2024

Copy link
Copy Markdown
Member

Alrighty, so I added a very basic job to test that we don't regress things as the JIT and free threading work evolves. I split the build and test into separate steps, so we have a little finer granularity on failures (it's just slightly prettier!). I also opted not to use strategy/matrix to pass in the LLVM version since we only support 18 today. I can add that in if folks feel strongly if we want to keep things very consistent with the other job, but I was going for simple 😄

@savannahostrowski

savannahostrowski commented May 21, 2024

Copy link
Copy Markdown
MemberAuthor

I also think I messed up the issue tagging bot by adding my PR comment after opening the PR...not sure how to fix that? Copy paste saves the day?

Comment thread.github/workflows/jit.yml Outdated
Comment thread.github/workflows/jit.yml Outdated
savannahostrowskiand others added 2 commits May 20, 2024 21:36
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
@savannahostrowski

Copy link
Copy Markdown
MemberAuthor

I suppose this could also be implemented as a matrix entry using include. For now, I feel like a new job is probably simpler because we're only testing a single platform, but if we ever want to expand the tested platforms, we could consider moving in that direction to avoid a ton of duplication.

- name: Build with JIT enabled and GIL disabled
run: |
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh 18
export PATH="$(llvm-config-18 --bindir):$PATH"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Opinions: should we add --with-pydebug? Maybe test both modes?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think it's fine to leave this as-is (just one --with-pydebug build).

@brandtbucherbrandtbucher left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Great idea.

One suggestion:

Comment thread.github/workflows/jit.yml
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
@brandtbucher
brandtbucher merged commit c4722cd into python:mainMay 21, 2024
@brandtbucherbrandtbucher self-assigned this May 21, 2024
@brandtbucherbrandtbucher added tests Tests in the Lib/test dir awaiting merge needs backport to 3.13 bugs and security fixes labels May 21, 2024
@miss-islington-app

Copy link
Copy Markdown

Thanks @savannahostrowski 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 21, 2024
…il (pythonGH-119293)
(cherry picked from commit c4722cd)
Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
@bedevere-app

Copy link
Copy Markdown

GH-119314 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 21, 2024
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
…il (pythonGH-119293)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
@savannahostrowski
savannahostrowski deleted the jit-no-gil-ci branch September 27, 2024 16:55
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting mergeskip newstestsTests in the Lib/test dirtopic-JIT

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@savannahostrowski@hugovk@sobolevn@brandtbucher@Eclips4