Text of discuss.python.org › t › adding-new-workflows-in-github-actions › 108151 as Styx crawled it on Nov 19, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

Adding new workflows in Github Actions - Core Development - Discussions on Python.org

Adding new workflows in Github Actions Core Development YvesDup (Duprat) July 14, 2026, 3:19pm 1 Hi everybody I frequently need to run only a Sanitizer workflow (from the Tests workflow) via the github Actions. Currently, is it possible ? Does the reusable Sanitizer workflow proceed for that ? Or what is this workflow used for ? If I have to ask for a new workflow, should I open a new issue ? Thank for answering Yves brettcannon (Brett Cannon) July 14, 2026, 10:32pm 2 Are you doing this while working on a PR for CPython and you aren’t ready to run all the other checks?

YvesDup (Duprat) July 15, 2026, 10:21am 3 I was working on a PR for CPython ( Queue Shutdown ). All CI was green except `Sanitizer` workflows. So I was forced to duplicate the branch, ran all the `Tests` workflow even though I only needed `Sanitizer` part. ngoldbaum (Nathan Goldbaum) July 15, 2026, 10:25am 4 When I’ve done things like this in the past I’ve enabled CI in my fork and edited the CI configuration to add e.g. a workflow_dispatch or edit CI config so only the one job I care about runs.

That said, I’d try to do local builds first and only fall back to debugging with CI if that’s impossible for some reason. Have you tried doing sanitizer builds and reproducing the issue you’re running into on your local dev setup? YvesDup (Duprat) July 15, 2026, 1:12pm 5 Hi Nathan, thank for reply. I am working on macOS, and unfortunately `Santizers` workflows run on Ubuntu. I have installed Mutipass on my macOS, but most of time, `Sanitizers` workflow results are not identical.

That why I was thnking about a new local `Sanitizer` workflow . And except if I miss something, this is not so simple: the workflow must be present in the `main` branch of my fork (to build the list of available workflow from Github Action) and the working branch to run the workflow. So I will investigate about your recommandation regarding the edit of the CI config, even I already created a `Santizers` workflow that works fine. hugovk (Hugo van Kemenade) July 15, 2026, 2:33pm 6 GitHub Actions will run for branches matching main or 3.* .

I usually name my branches like 3.16-myfeature . 2 Likes YvesDup (Duprat) July 16, 2026, 8:28am 7 Your proposal works fine on a working branch but not on PR. that’s a good tip, Thank you YvesDup (Duprat) July 20, 2026, 8:14pm 8 I may be wrong, but am I the only contributor encountering issues with the Sanitizers/TSAN workflows, particularly false negatives? That’s why I’m wondering if it might be a good idea to add a new TSAN workflow that could be triggered on demand from GitHub Action . brettcannon (Brett Cannon) July 20, 2026, 9:17pm 9 Possibly; I rarely have them fail, and if they do it’s just a one-off failure. ngoldbaum (Nathan Goldbaum) July 20, 2026, 9:58pm 10 I may be misunderstanding exactly what you mean by false negatives, what exactly are you seeing?

Failed tests that are unrelated to your work? Or is it that you’d expect to see failures given what you’re working on and aren’t? Either way: by their nature, races are flaky and don’t happen on every run. That’s one reason they’re hard to eliminate in the CI. An incorrect PR can be merged with green TSan CI and only fail later on an unrelated PR. If you are seeing TSan failures and there isn’t already an open issue for the failure you’re seeing, please open one.

1 Like YvesDup (Duprat) July 21, 2026, 3:48pm 11 Thank again Nathan for your feedback. When an error occurs related to my work, a PR, it is (often) easy to fix with a new commit. When the tests that fail aren’t related to my work (races for example), I’d like to find a way to easily rerun the tests. But in a PR, it is not possible without a new commit (unless I missed something). And in that case the only solution is to wait for new commits from the main branch to be merged.

In my case - errors on `Santizer` workflow - I would find it very useful to be able to run only the workflow that failed. For now, I don’t know if this is possible or if it’s planned. I may be in a borderline case. Next time, I get Sanitizers failures, I’ll open an issue. brettcannon (Brett Cannon) July 21, 2026, 10:05pm 12 You can close and reopen a PR to trigger CI again. And any core dev can re-run failing tests manually.

1 Like