FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-111758: Run UBSan in GitHub Actions by encukou · Pull Request #135578 · python/cpython · GitHub

Repository navigation

gh-111758: Run UBSan in GitHub Actions - #135578

Merged
encukou merged 7 commits into
python:mainfrom
encukou:gha-ubsan
Jun 19, 2025
Merged

encukou merged 7 commits into
python:mainfrom
encukou:gha-ubsan

Conversation

encukou commented Jun 16, 2025 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

This adds a --with-undefined-behavior-sanitizer CI run, modeled after the TSan one.

The runtime should be less than 13 minutes, well below Windows runs.

Comment thread .github/workflows/reusable-ubsan.yml Outdated
Comment thread .github/workflows/reusable-ubsan.yml Outdated

hugovk 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

There's a lot of duplicate boilerplate in reusable-tsan.yml and reusable-ubsan.yml, we can combine them into a single reusable workflow, and reduce future maintenance.

Something like this: hugovk@39f6c91

Note this is from this morning, and doesn't include your three recent commits.

I'm also happy to do this in a followup if you prefer.

Comment thread .github/workflows/reusable-ubsan.yml Outdated
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>

encukou commented Jun 17, 2025

Copy link
Copy Markdown
Member Author

I'm also happy to do this in a followup if you prefer.

Yes, I think it's better as a follow-up. Maybe in a week or so, to let the job settle down? It's easier to edit an independent copy :)
Thank you for starting on it though!

uses: actions/cache@v4
with:
path: config.cache
key: ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ inputs.config_hash }}

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I think the configure failure:

https://github.com/python/cpython/actions/runs/15706865183/job/44254688889?pr=135578

is because this key is identical to the one in reusable-tsan.yml, so let's add ubsan or something in here:

Suggested change
key: ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ inputs.config_hash }}
key: ${{ github.job }}-ubsan-${{ env.IMAGE_OS_VERSION }}-${{ inputs.config_hash }}

encukou Jun 17, 2025 •
edited
Loading

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

ubsan is part of github.job. It's using a cache from before I added the latest commits.
I removed that cache and will restart the job. (GitHub will allow that after all the other ones finish).

encukou merged commit 7a20c72 into python:main Jun 19, 2025
lkollar pushed a commit to lkollar/cpython that referenced this pull request Jun 19, 2025
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request Jul 12, 2025
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Agent-Hellboy pushed a commit to Agent-Hellboy/cpython that referenced this pull request Aug 19, 2025
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
encukou deleted the gha-ubsan branch April 9, 2026 08:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to 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.

3 participants


Back | FazBrowse Home | New Git URL