Skip to content

Commit 8f2a1c0

Browse files
authored
Merge pull request #411 from chdb-io/workflow_ccache_fix
2 parents 4e5f41a + 2e646f9 commit 8f2a1c0

File tree

7 files changed

+124
-5
lines changed

7 files changed

+124
-5
lines changed

.bumpversion.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.bumpversion]
22
current_version = "3.7.0"
3-
commit = true
3+
commit = false
44
tag = false
55
tag_name = "v{new_version}"
66
allow_dirty = true

.github/workflows/build_linux_arm64_wheels-gh.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
else
6363
echo "✅ No SQLite vulnerabilities found"
6464
fi
65-
continue-on-error: false
65+
continue-on-error: true
6666
- name: Setup pyenv
6767
run: |
6868
curl https://pyenv.run | bash
@@ -96,6 +96,19 @@ jobs:
9696
echo "✓ Python $version is installed"
9797
done
9898
echo "All Python versions verified successfully!"
99+
- name: Update version for release
100+
if: startsWith(github.ref, 'refs/tags/v')
101+
run: |
102+
export PATH="$HOME/.pyenv/bin:$PATH"
103+
eval "$(pyenv init -)"
104+
pyenv shell 3.9
105+
106+
# Install bump-my-version
107+
python -m pip install bump-my-version
108+
TAG_NAME=${GITHUB_REF#refs/tags/v}
109+
bump-my-version replace $TAG_NAME
110+
echo "Version files updated to $TAG_NAME"
111+
pyenv shell --unset
99112
- name: Install dependencies for all Python versions
100113
run: |
101114
export PATH="$HOME/.pyenv/bin:$PATH"
@@ -281,6 +294,14 @@ jobs:
281294
echo "No core files found in tmp/core"
282295
fi
283296
continue-on-error: true
297+
- name: Keep killall ccache and wait for ccache to finish
298+
if: always()
299+
run: |
300+
sleep 60
301+
while ps -ef | grep ccache | grep -v grep; do \
302+
killall ccache; \
303+
sleep 10; \
304+
done
284305
- name: Upload core files if present
285306
if: always() && env.CORE_FILES_FOUND == 'true'
286307
uses: actions/upload-artifact@v4

.github/workflows/build_linux_x86_wheels.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
else
6363
echo "✅ No SQLite vulnerabilities found"
6464
fi
65-
continue-on-error: false
65+
continue-on-error: true
6666
- name: Setup pyenv
6767
run: |
6868
curl https://pyenv.run | bash
@@ -96,6 +96,19 @@ jobs:
9696
echo "✓ Python $version is installed"
9797
done
9898
echo "All Python versions verified successfully!"
99+
- name: Update version for release
100+
if: startsWith(github.ref, 'refs/tags/v')
101+
run: |
102+
export PATH="$HOME/.pyenv/bin:$PATH"
103+
eval "$(pyenv init -)"
104+
pyenv shell 3.9
105+
106+
# Install bump-my-version
107+
python -m pip install bump-my-version
108+
TAG_NAME=${GITHUB_REF#refs/tags/v}
109+
bump-my-version replace $TAG_NAME
110+
echo "Version files updated to $TAG_NAME"
111+
pyenv shell --unset
99112
- name: Install dependencies for all Python versions
100113
run: |
101114
export PATH="$HOME/.pyenv/bin:$PATH"
@@ -280,6 +293,14 @@ jobs:
280293
echo "No core files found in tmp/core"
281294
fi
282295
continue-on-error: true
296+
- name: Keep killall ccache and wait for ccache to finish
297+
if: always()
298+
run: |
299+
sleep 60
300+
while ps -ef | grep ccache | grep -v grep; do \
301+
killall ccache; \
302+
sleep 10; \
303+
done
283304
- name: Upload core files artifact
284305
if: always() && env.CORE_FILES_FOUND == 'true'
285306
uses: actions/upload-artifact@v4

.github/workflows/build_macos_arm64_wheels.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,19 @@ jobs:
8181
echo "✓ Python $version is installed"
8282
done
8383
echo "All Python versions verified successfully!"
84+
- name: Update version for release
85+
if: startsWith(github.ref, 'refs/tags/v')
86+
run: |
87+
export PATH="$HOME/.pyenv/bin:$PATH"
88+
eval "$(pyenv init -)"
89+
pyenv shell 3.9
90+
91+
# Install bump-my-version
92+
python -m pip install bump-my-version
93+
TAG_NAME=${GITHUB_REF#refs/tags/v}
94+
bump-my-version replace $TAG_NAME
95+
echo "Version files updated to $TAG_NAME"
96+
pyenv shell --unset
8497
- name: Install dependencies for all Python versions
8598
run: |
8699
export PATH="$HOME/.pyenv/bin:$PATH"
@@ -239,8 +252,9 @@ jobs:
239252
- name: Setup core dump
240253
run: |
241254
mkdir -p tmp/core
242-
sudo sysctl kern.corefile=$PWD/tmp/core/core.%P
255+
sudo sysctl kern.corefile=$PWD/tmp/core/core.%P.%N
243256
sudo sysctl kern.coredump=1
257+
sudo sysctl kern.sugid_coredump=1
244258
ulimit -c unlimited
245259
- name: Free up disk space
246260
run: |
@@ -275,6 +289,14 @@ jobs:
275289
echo "No core files found in tmp/core"
276290
fi
277291
continue-on-error: true
292+
- name: Keep killall ccache and wait for ccache to finish
293+
if: always()
294+
run: |
295+
sleep 60
296+
while ps -ef | grep ccache | grep -v grep; do \
297+
killall ccache; \
298+
sleep 10; \
299+
done
278300
- name: Upload core files artifact
279301
if: always() && env.CORE_FILES_FOUND == 'true'
280302
uses: actions/upload-artifact@v4

.github/workflows/build_macos_x86_wheels.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,19 @@ jobs:
7070
echo "✓ Python $version is installed"
7171
done
7272
echo "All Python versions verified successfully!"
73+
- name: Update version for release
74+
if: startsWith(github.ref, 'refs/tags/v')
75+
run: |
76+
export PATH="$HOME/.pyenv/bin:$PATH"
77+
eval "$(pyenv init -)"
78+
pyenv shell 3.9
79+
80+
# Install bump-my-version
81+
python -m pip install bump-my-version
82+
TAG_NAME=${GITHUB_REF#refs/tags/v}
83+
bump-my-version replace $TAG_NAME
84+
echo "Version files updated to $TAG_NAME"
85+
pyenv shell --unset
7386
- name: Install dependencies for all Python versions
7487
run: |
7588
export PATH="$HOME/.pyenv/bin:$PATH"
@@ -133,6 +146,7 @@ jobs:
133146
- uses: actions/checkout@v3
134147
with:
135148
fetch-depth: 0
149+
token: ${{ secrets.GH_TOKEN }}
136150
- name: Update submodules
137151
run: |
138152
git submodule update --init --recursive --jobs 4
@@ -276,6 +290,14 @@ jobs:
276290
echo "No core files found in tmp/core"
277291
fi
278292
continue-on-error: true
293+
- name: Keep killall ccache and wait for ccache to finish
294+
if: always()
295+
run: |
296+
sleep 60
297+
while ps -ef | grep ccache | grep -v grep; do \
298+
killall ccache; \
299+
sleep 10; \
300+
done
279301
- name: Upload core files artifact
280302
if: always() && env.CORE_FILES_FOUND == 'true'
281303
uses: actions/upload-artifact@v4
@@ -330,4 +352,4 @@ jobs:
330352
python -m twine upload dist/*.whl
331353
env:
332354
TWINE_USERNAME: __token__
333-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
355+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

.github/workflows/build_musllinux_arm64_wheels.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,18 @@ jobs:
140140
pyenv shell --unset
141141
done
142142
143+
# Update version for release (if triggered by tag)
144+
if [ "${GITHUB_REF#refs/tags/v}" != "$GITHUB_REF" ]; then
145+
pyenv shell 3.9
146+
147+
# Install bump-my-version
148+
python -m pip install bump-my-version
149+
TAG_NAME=${GITHUB_REF#refs/tags/v}
150+
bump-my-version replace $TAG_NAME
151+
echo "Version files updated to $TAG_NAME"
152+
pyenv shell --unset
153+
fi
154+
143155
# 5. Build chdb
144156
echo "=== Building chdb ==="
145157
echo "Timestamp: $(date)"

.github/workflows/build_musllinux_x86_wheels.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,19 @@ jobs:
109109
echo "Python $version is installed"
110110
done
111111
echo "All Python versions verified successfully!"
112+
- name: Update version for release
113+
if: startsWith(github.ref, 'refs/tags/v')
114+
run: |
115+
export PATH="$HOME/.pyenv/bin:$PATH"
116+
eval "$(pyenv init -)"
117+
pyenv shell 3.9
118+
119+
# Install bump-my-version
120+
python -m pip install bump-my-version
121+
TAG_NAME=${GITHUB_REF#refs/tags/v}
122+
bump-my-version replace $TAG_NAME
123+
echo "Version files updated to $TAG_NAME"
124+
pyenv shell --unset
112125
- name: Install dependencies for all Python versions
113126
run: |
114127
export PATH="$HOME/.pyenv/bin:$PATH"
@@ -281,3 +294,11 @@ jobs:
281294
env:
282295
TWINE_USERNAME: __token__
283296
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
297+
- name: Keep killall ccache and wait for ccache to finish
298+
if: always()
299+
run: |
300+
sleep 60
301+
while ps -ef | grep ccache | grep -v grep; do \
302+
killall ccache; \
303+
sleep 10; \
304+
done

0 commit comments

Comments
 (0)