Skip to content

Commit c5bd8a7

Browse files
authored
Rebuild Postgres caches weekly instead of daily (#9892)
The daily rebuilds are apparently creating too much of the cache load, we're going over the GitHub limit of 10GB, and useful caches like the libfuzzer examples start to get evicted. I think weekly rebuilds also give a reasonable time frame to detect the Postgres builds breaking due to environmen changes.
1 parent 68ec345 commit c5bd8a7

7 files changed

Lines changed: 14 additions & 14 deletions

.github/workflows/libfuzzer.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ jobs:
3737
id: config
3838
run: python -B .github/gh_config_reader.py
3939

40-
# We are going to rebuild Postgres daily, so that it doesn't suddenly break
40+
# We are going to rebuild Postgres weekly, so that it doesn't suddenly break
4141
# ages after the original problem.
4242
- name: Get date for build caching
4343
id: get-date
4444
run: |
45-
echo "date=$(date +"%d")" >> $GITHUB_OUTPUT
45+
echo "date=$(date +"%V")" >> $GITHUB_OUTPUT
4646
4747
# we cache the build directory instead of the install directory here
4848
# because extension installation will write files to install directory

.github/workflows/linux-32bit-build-and-test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,12 @@ jobs:
120120
- name: Checkout TimescaleDB
121121
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
122122

123-
# We are going to rebuild Postgres daily, so that it doesn't suddenly break
123+
# We are going to rebuild Postgres weekly, so that it doesn't suddenly break
124124
# ages after the original problem.
125125
- name: Get date for build caching
126126
id: get-date
127127
run: |
128-
echo "date=$(date +"%d")" >> $GITHUB_OUTPUT
128+
echo "date=$(date +"%V")" >> $GITHUB_OUTPUT
129129
130130
# we cache the build directory instead of the install directory here
131131
# because extension installation will write files to install directory

.github/workflows/linux-build-and-test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@ jobs:
110110
- name: Checkout TimescaleDB
111111
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
112112

113-
# We are going to rebuild Postgres daily, so that it doesn't suddenly break
113+
# We are going to rebuild Postgres weekly, so that it doesn't suddenly break
114114
# ages after the original problem.
115115
- name: Get date for build caching
116116
id: get-date
117117
run: |
118-
echo "date=$(date +"%d")" >> $GITHUB_OUTPUT
118+
echo "date=$(date +"%V")" >> $GITHUB_OUTPUT
119119
120120
# on macOS the path used is depending on the runner version leading to cache failure
121121
# when the runner version changes so we extract runner version from path and add it

.github/workflows/llm-fuzzer.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ jobs:
8888
if: github.event_name == 'pull_request'
8989
run: git fetch origin ${{ github.event.pull_request.base.ref }} --depth=50
9090

91-
# We are going to rebuild Postgres daily, so that it doesn't suddenly break
91+
# We are going to rebuild Postgres weekly, so that it doesn't suddenly break
9292
# ages after the original problem.
9393
- name: Get date for build caching
9494
id: get-date
9595
run: |
96-
echo "date=$(date +"%d")" >> $GITHUB_OUTPUT
96+
echo "date=$(date +"%V")" >> $GITHUB_OUTPUT
9797
9898
# Create a directory for sanitizer logs. This directory is referenced by
9999
# ASAN_OPTIONS, LSAN_OPTIONS, and UBSAN_OPTIONS

.github/workflows/sanitizer-build-and-test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ jobs:
9191
- name: Checkout TimescaleDB
9292
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
9393

94-
# We are going to rebuild Postgres daily, so that it doesn't suddenly break
94+
# We are going to rebuild Postgres weekly, so that it doesn't suddenly break
9595
# ages after the original problem.
9696
- name: Get date for build caching
9797
id: get-date
9898
run: |
99-
echo "date=$(date +"%d")" >> $GITHUB_OUTPUT
99+
echo "date=$(date +"%V")" >> $GITHUB_OUTPUT
100100
101101
# Create a directory for sanitizer logs. This directory is referenced by
102102
# ASAN_OPTIONS, LSAN_OPTIONS, and UBSAN_OPTIONS

.github/workflows/tests-fail-on-old-code.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@ jobs:
8585
sudo apt-get update
8686
sudo apt-get install flex bison cmake
8787
88-
# We are going to rebuild Postgres daily, so that it doesn't suddenly break
88+
# We are going to rebuild Postgres weekly, so that it doesn't suddenly break
8989
# ages after the original problem.
9090
- name: Get date for build caching
9191
if: steps.check.outputs.should_run == 'true'
9292
id: get-date
9393
run: |
94-
echo "date=$(date +"%d")" >> $GITHUB_OUTPUT
94+
echo "date=$(date +"%V")" >> $GITHUB_OUTPUT
9595
9696
# we cache the build directory instead of the install directory here
9797
# because extension installation will write files to install directory

.github/workflows/windows-build-and-test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,13 @@ jobs:
168168
- name: Checkout TimescaleDB source
169169
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
170170

171-
# We are going to rebuild Postgres daily, so that it doesn't suddenly break
171+
# We are going to rebuild Postgres weekly, so that it doesn't suddenly break
172172
# ages after the original problem.
173173
- name: Get date for build caching
174174
id: get-date
175175
shell: powershell
176176
run: |
177-
echo "date=$(Get-Date -Format 'dd')" >> $env:GITHUB_OUTPUT
177+
echo "date=$(Get-Date -UFormat '%V')" >> $env:GITHUB_OUTPUT
178178
179179
# Use a cache for the PostgreSQL installation to speed things up
180180
# and avoid unnecessary package downloads. Since we only save

0 commit comments

Comments
 (0)