Skip to content

Commit c3a3800

Browse files
committed
Ignore test_unpickle_module_race during BOLT profiling
1 parent 684ece4 commit c3a3800

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/reusable-ubuntu.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: echo "::add-matcher::.github/problem-matchers/gcc.json"
4040
- name: Install dependencies
4141
run: sudo ./.github/workflows/posix-deps-apt.sh
42-
- name: Install Clang
42+
- name: Install Clang and BOLT
4343
if: ${{ fromJSON(inputs.bolt-optimizations) }}
4444
run: |
4545
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh 19
@@ -82,6 +82,11 @@ jobs:
8282
with:
8383
path: ${{ env.CPYTHON_BUILDDIR }}/config.cache
8484
key: ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ inputs.config_hash }}
85+
- name: Configure optimization profiling task
86+
if: ${{ fromJSON(inputs.bolt-optimizations) }}
87+
# `test_unpickle_module_race` writes to the source directory, which is
88+
# read-only during builds — so we exclude it for now.
89+
run: echo "PROFILE_TASK='-m test --pgo --ignore test_unpickle_module_race --timeout=$(TESTTIMEOUT)' >> $GITHUB_ENV"
8590
- name: Configure CPython out-of-tree
8691
working-directory: ${{ env.CPYTHON_BUILDDIR }}
8792
run: >-

0 commit comments

Comments
 (0)