Skip to content

Commit 6da1ea8

Browse files
authored
Merge branch 'main' into fix/artefact_step
2 parents 728265b + 0bbecd2 commit 6da1ea8

254 files changed

Lines changed: 12421 additions & 2204 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/gh_matrix_builder.py

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def build_debug_config(overrides):
103103
"pg_extensions": "postgres_fdw test_decoding",
104104
"installcheck": True,
105105
"pginstallcheck": True,
106-
"tsdb_build_args": "-DWARNINGS_AS_ERRORS=ON -DREQUIRE_ALL_TESTS=ON",
106+
"tsdb_build_args": "-DWARNINGS_AS_ERRORS=ON",
107107
}
108108
)
109109
base_config.update(overrides)
@@ -119,7 +119,7 @@ def build_release_config(overrides):
119119
{
120120
"name": "Release",
121121
"build_type": "RelWithDebInfo",
122-
"tsdb_build_args": "-DWARNINGS_AS_ERRORS=ON -DREQUIRE_ALL_TESTS=ON",
122+
"tsdb_build_args": "-DWARNINGS_AS_ERRORS=ON",
123123
"coverage": False,
124124
}
125125
)
@@ -145,7 +145,7 @@ def build_apache_config(overrides):
145145
{
146146
"name": "ApacheOnly",
147147
"build_type": "RelWithDebInfo",
148-
"tsdb_build_args": "-DWARNINGS_AS_ERRORS=ON -DREQUIRE_ALL_TESTS=ON -DAPACHE_ONLY=1",
148+
"tsdb_build_args": "-DWARNINGS_AS_ERRORS=ON -DAPACHE_ONLY=1",
149149
"coverage": False,
150150
}
151151
)
@@ -179,9 +179,7 @@ def macos_config(overrides):
179179
"pg_extensions": "postgres_fdw test_decoding",
180180
"pginstallcheck": True,
181181
"tsdb_build_args": (
182-
" -DASSERTIONS=ON"
183-
" -DREQUIRE_ALL_TESTS=ON"
184-
f" -DOPENSSL_ROOT_DIR={openssl_path}"
182+
" -DASSERTIONS=ON" f" -DOPENSSL_ROOT_DIR={openssl_path}"
185183
),
186184
}
187185
)
@@ -415,19 +413,23 @@ def macos_config(overrides):
415413

416414
if tests:
417415
to_run = [t for t in list(tests) if t not in flaky_exclude_tests] * 20
418-
random.shuffle(to_run)
419-
installcheck_args = f'TESTS="{" ".join(to_run)}"'
420-
m["include"].append(
421-
build_debug_config(
422-
{
423-
"coverage": False,
424-
"installcheck_args": installcheck_args,
425-
"name": "Flaky Check Debug",
426-
"pg": PG18_LATEST,
427-
"pginstallcheck": False,
428-
}
416+
# Skip the Flaky job when every changed test is excluded. Otherwise
417+
# TESTS="" makes `make installcheck` run the full suite, which exposes
418+
# pre-existing XX000s the per-test loop would never have touched.
419+
if to_run:
420+
random.shuffle(to_run)
421+
installcheck_args = f'TESTS="{" ".join(to_run)}"'
422+
m["include"].append(
423+
build_debug_config(
424+
{
425+
"coverage": False,
426+
"installcheck_args": installcheck_args,
427+
"name": "Flaky Check Debug",
428+
"pg": PG18_LATEST,
429+
"pginstallcheck": False,
430+
}
431+
)
429432
)
430-
)
431433

432434
# generate command to set github action variable
433435
with open(os.environ["GITHUB_OUTPUT"], "a", encoding="utf-8") as output:

.github/workflows/apt-installcheck.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444

4545
steps:
4646
- name: Add repositories
47+
timeout-minutes: 15
4748
run: |
4849
apt-get update
4950
apt-get install -y wget lsb-release gnupg sudo postgresql-common git cmake jq
@@ -54,6 +55,7 @@ jobs:
5455
wget --quiet -O - https://packagecloud.io/timescale/timescaledb/gpgkey | gpg --dearmor -o /etc/apt/trusted.gpg.d/timescale_timescaledb.gpg
5556
5657
- name: Install timescaledb
58+
timeout-minutes: 15
5759
run: |
5860
apt-get update
5961
apt-get install -y --no-install-recommends \

.github/workflows/apt-packages.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242

4343
steps:
4444
- name: Add repositories
45+
timeout-minutes: 15
4546
run: |
4647
apt-get update
4748
apt-get install -y wget lsb-release gnupg apt-transport-https sudo postgresql-common jq
@@ -57,6 +58,7 @@ jobs:
5758
5859
5960
- name: Install timescaledb
61+
timeout-minutes: 15
6062
run: |
6163
apt-get update
6264
apt-get install -y --no-install-recommends \
@@ -108,6 +110,7 @@ jobs:
108110
fi
109111
110112
- name: Install toolkit
113+
timeout-minutes: 15
111114
run: |
112115
apt-get install -y --no-install-recommends \
113116
timescaledb-toolkit-postgresql-${{ matrix.pg }}

.github/workflows/coccinelle.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ jobs:
1414
runs-on: ubuntu-22.04
1515

1616
steps:
17-
- name: Install Dependencies
17+
- name: Install Linux Dependencies
18+
timeout-minutes: 15
1819
run: |
1920
sudo apt-get update
2021
sudo apt-get -y install coccinelle

.github/workflows/code_style.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,17 @@ jobs:
7777
env:
7878
LLVM_VER: 17
7979
steps:
80-
- name: Install dependencies
80+
- name: Install Linux Dependencies
81+
timeout-minutes: 15
8182
run: |
82-
gpg --batch --keyserver hkp://keyserver.ubuntu.com --recv-keys 15CF4D18AF4F7421
83-
gpg --batch --export --export-options export-minimal --armor 15CF4D18AF4F7421 | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc > /dev/null
83+
gpg --batch --keyserver hkp://keyserver.ubuntu.com --recv-keys 15CF4D18AF4F7421
84+
gpg --batch --export --export-options export-minimal --armor 15CF4D18AF4F7421 | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc > /dev/null
8485
85-
. /etc/os-release
86-
echo "deb https://apt.llvm.org/${VERSION_CODENAME}/ llvm-toolchain-${VERSION_CODENAME}-${LLVM_VER} main" | sudo tee /etc/apt/sources.list.d/llvm.list >/dev/null
87-
sudo apt-get update
86+
. /etc/os-release
87+
echo "deb https://apt.llvm.org/${VERSION_CODENAME}/ llvm-toolchain-${VERSION_CODENAME}-${LLVM_VER} main" | sudo tee /etc/apt/sources.list.d/llvm.list >/dev/null
88+
sudo apt-get update
8889
89-
sudo apt-get install clang-format-${LLVM_VER}
90+
sudo apt-get install clang-format-${LLVM_VER}
9091
- name: Checkout source
9192
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
9293
- name: Check trailing whitespace

.github/workflows/coverity.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ jobs:
2222
pg: [16, 17, 18]
2323
os: [ubuntu-22.04]
2424
steps:
25-
- name: Install Dependencies
25+
- name: Install Linux Dependencies
26+
timeout-minutes: 15
2627
run: |
2728
sudo apt-get update
2829
sudo apt-get install gnupg systemd-coredump gdb postgresql-common

.github/workflows/issue-handling.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ jobs:
100100
runs-on: timescaledb-runner-arm64
101101
if: github.event_name == 'issue_comment' && !github.event.issue.pull_request
102102
steps:
103-
- name: Install dependencies
103+
- name: Install Linux Dependencies
104+
timeout-minutes: 15
104105
run: |
105106
sudo apt-get update
106107
sudo apt-get install jq

.github/workflows/libfuzzer.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222

2323
steps:
2424
- name: Install Linux Dependencies
25+
timeout-minutes: 15
2526
run: |
2627
# Don't add ddebs here because the ddebs mirror is always 503 Service Unavailable.
2728
# If needed, install them before opening the core dump.
@@ -144,9 +145,10 @@ jobs:
144145

145146
steps:
146147
- name: Install Linux dependencies
148+
timeout-minutes: 15
147149
run: |
148-
sudo apt update
149-
sudo apt install 7zip systemd-coredump gdb
150+
sudo apt-get update
151+
sudo apt-get install 7zip systemd-coredump gdb
150152
151153
- name: Checkout TimescaleDB
152154
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,13 @@ jobs:
101101

102102
# /__e/node16/bin/node (used by actions/checkout@v4) needs 64-bit libraries
103103
- name: Install 64-bit libraries for GitHub actions
104+
timeout-minutes: 15
104105
run: |
105106
apt-get update
106107
apt-get install -y lib64atomic1 lib64gcc-s1 lib64stdc++6 libc6-amd64 jq
107108
108109
- name: Install build dependencies
110+
timeout-minutes: 15
109111
run: |
110112
PG_MAJOR=$(echo "${{ matrix.pg }}" | sed -e 's![.].*!!')
111113
echo '/tmp/core.%h.%e.%t' > /proc/sys/kernel/core_pattern

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,20 +78,27 @@ jobs:
7878
steps:
7979
- name: Install Linux Dependencies
8080
if: runner.os == 'Linux'
81+
timeout-minutes: 15
8182
run: |
8283
# Don't add ddebs here because the ddebs mirror is always 503 Service Unavailable.
8384
# If needed, install them before opening the core dump.
8485
sudo apt-get update
8586
sudo apt-get install flex bison lcov systemd-coredump gdb libipc-run-perl \
8687
libtest-most-perl pkgconf icu-devtools faketime jq ${{ matrix.extra_packages }}
8788
88-
- name: Install macOS Dependencies
89+
- name: Check macOS Build Dependencies
8990
if: runner.os == 'macOS'
91+
run: |
92+
# OpenSSL is supposed to be preinstalled, so just check its path here
93+
brew --prefix openssl@3
94+
95+
- name: Install macOS Test Dependencies
96+
if: runner.os == 'macOS' && matrix.installcheck
97+
timeout-minutes: 15
9098
run: |
9199
# Disable the automatic dependency upgrade executed by `brew install`
92100
# https://docs.brew.sh/Manpage#install-options-formulacask-
93101
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install gawk
94-
brew --prefix openssl@3
95102
# Install perl modules after last Homebew call, since Homebrew can change the perl version
96103
sudo perl -MCPAN -e "CPAN::Shell->notest('install', 'IPC::Run')"
97104
sudo perl -MCPAN -e "CPAN::Shell->notest('install', 'Test::Most')"
@@ -183,6 +190,7 @@ jobs:
183190
./bootstrap -DCMAKE_BUILD_TYPE="${{ matrix.build_type }}" \
184191
-DPG_SOURCE_DIR=$HOME/$PG_SRC_DIR -DPG_PATH=$HOME/$PG_INSTALL_DIR \
185192
${{ matrix.tsdb_build_args }} -DCODECOVERAGE=${{ matrix.coverage }} \
193+
-DREQUIRE_ALL_TESTS=${{ matrix.installcheck && 'ON' || 'OFF' }} \
186194
-DTEST_PG_LOG_DIRECTORY="$(readlink -f .)"
187195
make -j $(getconf _NPROCESSORS_ONLN) -C build
188196
make -C build install

0 commit comments

Comments
 (0)