-
Notifications
You must be signed in to change notification settings - Fork 907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run the nightly CI tests on the release branch #7628
Changes from all commits
09a5ae8
2f2d3b0
bf6710d
c73d83d
d814d44
ff94b4e
491167e
91fd469
4be6129
869f632
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -13,9 +13,15 @@ name: APT packages | |||||
- release_test | ||||||
- trigger/package_test | ||||||
workflow_dispatch: | ||||||
workflow_call: | ||||||
inputs: | ||||||
branch: | ||||||
description: 'Branch to checkout' | ||||||
type: string | ||||||
default: 'main' | ||||||
jobs: | ||||||
apt_tests: | ||||||
name: APT ${{ matrix.image }} PG${{ matrix.pg }} ${{ matrix.license }} | ||||||
name: APT ${{ matrix.image }} PG${{ matrix.pg }} timescaledb${{ github.event.inputs.branch }} ${{ matrix.license }} | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
runs-on: ubuntu-latest | ||||||
container: | ||||||
image: ${{ matrix.image }} | ||||||
|
@@ -59,6 +65,8 @@ jobs: | |||||
dpkg -L timescaledb-2${{ matrix.pkg_suffix }}-postgresql-${{ matrix.pg }} | ||||||
|
||||||
- uses: actions/checkout@v4 | ||||||
with: | ||||||
ref: ${{ github.event.inputs.branch }} | ||||||
|
||||||
- name: Read versions | ||||||
id: versions | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -7,18 +7,26 @@ name: Coverity | |||||
branches: | ||||||
- coverity_scan | ||||||
workflow_dispatch: | ||||||
workflow_call: | ||||||
inputs: | ||||||
branch: | ||||||
description: 'Branch to checkout' | ||||||
type: string | ||||||
default: 'main' | ||||||
|
||||||
jobs: | ||||||
|
||||||
coverity: | ||||||
name: Coverity ${{ matrix.pg }} | ||||||
name: Coverity ${{ matrix.pg }} timescaledb${{ github.event.inputs.branch }} | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
runs-on: ${{ matrix.os }} | ||||||
strategy: | ||||||
fail-fast: false | ||||||
matrix: | ||||||
# run only on the 3 latest PG versions as we have rate limit on coverity | ||||||
pg: [15, 16, 17] | ||||||
os: [ubuntu-20.04] | ||||||
steps: | ||||||
|
||||||
steps: | ||||||
- name: Install Dependencies | ||||||
run: | | ||||||
sudo apt-get update | ||||||
|
@@ -29,6 +37,8 @@ jobs: | |||||
|
||||||
- name: Checkout TimescaleDB | ||||||
uses: actions/checkout@v4 | ||||||
with: | ||||||
ref: ${{ github.event.inputs.branch }} | ||||||
|
||||||
- name: Coverity tools | ||||||
run: | | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -16,9 +16,15 @@ name: Test Docker images | |||||
- release_test | ||||||
- trigger/package_test | ||||||
workflow_dispatch: | ||||||
workflow_call: | ||||||
inputs: | ||||||
branch: | ||||||
description: 'Branch to checkout' | ||||||
type: string | ||||||
default: 'main' | ||||||
jobs: | ||||||
docker_tests: | ||||||
name: ${{ matrix.image }} | ||||||
name: ${{ matrix.image }} timescaledb${{ github.event.inputs.branch }} | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
runs-on: ubuntu-latest | ||||||
services: | ||||||
ts: | ||||||
|
@@ -50,6 +56,8 @@ jobs: | |||||
|
||||||
steps: | ||||||
- uses: actions/checkout@v4 | ||||||
with: | ||||||
ref: ${{ github.event.inputs.branch }} | ||||||
|
||||||
- name: Read versions | ||||||
id: versions | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -12,7 +12,12 @@ name: Homebrew | |||||
- trigger/package_test | ||||||
- trigger/homebrew_test | ||||||
workflow_dispatch: | ||||||
|
||||||
workflow_call: | ||||||
inputs: | ||||||
branch: | ||||||
description: 'Branch to checkout' | ||||||
type: string | ||||||
default: 'main' | ||||||
jobs: | ||||||
homebrew: | ||||||
name: Homebrew | ||||||
|
@@ -43,8 +48,10 @@ jobs: | |||||
|
||||||
# checkout code to get version information | ||||||
- uses: actions/checkout@v4 | ||||||
with: | ||||||
ref: ${{ github.event.inputs.branch }} | ||||||
|
||||||
- name: Test Installation | ||||||
- name: Test Installation for timescaledb${{ github.event.inputs.branch }} | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
run: | | ||||||
psql -X -c "CREATE EXTENSION timescaledb;" postgres | ||||||
psql -X -c "SELECT extname,extversion,version() FROM pg_extension WHERE extname='timescaledb';" postgres | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -20,6 +20,12 @@ name: Regression Linux i386 | |||||
- '**.md' | ||||||
- 'LICENSE*' | ||||||
- NOTICE | ||||||
workflow_call: | ||||||
inputs: | ||||||
branch: | ||||||
description: 'Branch to checkout' | ||||||
type: string | ||||||
default: 'main' | ||||||
jobs: | ||||||
config: | ||||||
runs-on: ubuntu-latest | ||||||
|
@@ -28,12 +34,15 @@ jobs: | |||||
steps: | ||||||
- name: Checkout source code | ||||||
uses: actions/checkout@v4 | ||||||
with: | ||||||
ref: ${{ github.event.inputs.branch }} | ||||||
|
||||||
- name: Read configuration | ||||||
id: setter | ||||||
run: python .github/gh_config_reader.py | ||||||
|
||||||
regress_linux_32bit: | ||||||
name: PG${{ matrix.pg }} ${{ matrix.build_type }} linux-i386 | ||||||
name: PG${{ matrix.pg }} ${{ matrix.build_type }} linux-i386 timescaledb${{ github.event.inputs.branch }} | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
runs-on: ubuntu-latest | ||||||
needs: config | ||||||
container: | ||||||
|
@@ -76,6 +85,8 @@ jobs: | |||||
|
||||||
- name: Checkout TimescaleDB | ||||||
uses: actions/checkout@v4 | ||||||
with: | ||||||
ref: ${{ github.event.inputs.branch }} | ||||||
|
||||||
# We are going to rebuild Postgres daily, so that it doesn't suddenly break | ||||||
# ages after the original problem. | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -13,10 +13,15 @@ name: RPM packages | |||||
- release_test | ||||||
- trigger/package_test | ||||||
workflow_dispatch: | ||||||
|
||||||
workflow_call: | ||||||
inputs: | ||||||
branch: | ||||||
description: 'Branch to checkout' | ||||||
type: string | ||||||
default: 'main' | ||||||
jobs: | ||||||
rpm_tests: | ||||||
name: RPM ${{ matrix.image }} PG${{ matrix.pg }} ${{ matrix.license }} | ||||||
name: RPM ${{ matrix.image }} PG${{ matrix.pg }} ${{ matrix.license }} timescaledb${{ github.event.inputs.branch }} | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
runs-on: ubuntu-latest | ||||||
container: | ||||||
image: ${{ matrix.image }} | ||||||
|
@@ -66,6 +71,8 @@ jobs: | |||||
rpm -ql timescaledb-2${{ matrix.pkg_suffix }}-postgresql-${{ matrix.pg }} | ||||||
|
||||||
- uses: actions/checkout@v3 | ||||||
with: | ||||||
ref: ${{ github.event.inputs.branch }} | ||||||
|
||||||
- name: Read versions | ||||||
id: versions | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: "Run nightly tests on minor version branch" | ||
|
||
"on": | ||
schedule: | ||
# run daily at 00:00 on the old minor version branch | ||
- cron: '0 0 * * *' | ||
- cron: '0 22 * * SAT' | ||
|
||
jobs: | ||
run-tests: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Checkout TimescaleDB | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set env var OLD_MINOR_VERSION_BRANCH | ||
shell: bash | ||
run: | | ||
CURRENT_MAIN_VERSION=$(head -1 version.config | cut -d ' ' -f 3 | cut -d '-' -f 1) | ||
CURRENT_MINOR_VERSION=$(echo $CURRENT_MAIN_VERSION | cut -d '.' -f 2) | ||
OLD_MINOR_VERSION=$(echo $CURRENT_MAIN_VERSION | sed -e "s/$CURRENT_MINOR_VERSION/$(($CURRENT_MINOR_VERSION - 1))/g") | ||
echo "OLD_MINOR_VERSION_BRANCH="${OLD_MINOR_VERSION/%.0/.x}"" >> $GITHUB_ENV | ||
|
||
- name: Run nightly tests | ||
if: github.event.schedule != '0 22 * * SAT' | ||
env: | ||
GH_TOKEN: ${{ secrets.ORG_AUTOMATION_TOKEN }} | ||
run: | | ||
gh workflow run linux-32bit-build-and-test.yaml -R timescale/timescaledb -f branch="$OLD_MINOR_VERSION_BRANCH" | ||
gh workflow run linux-build-and-test.yaml -R timescale/timescaledb -f branch="$OLD_MINOR_VERSION_BRANCH" | ||
gh workflow run rpm-packages.yaml -R timescale/timescaledb -f branch="$OLD_MINOR_VERSION_BRANCH" | ||
gh workflow run sanitizer-build-and-test.yaml -R timescale/timescaledb -f branch="$OLD_MINOR_VERSION_BRANCH" | ||
gh workflow run windows-build-and-test.yaml -R timescale/timescaledb -f branch="$OLD_MINOR_VERSION_BRANCH" | ||
gh workflow run snapshot-abi.yaml -R timescale/timescaledb -f branch="$OLD_MINOR_VERSION_BRANCH" | ||
gh workflow run abi.yaml -R timescale/timescaledb -f branch="$OLD_MINOR_VERSION_BRANCH" | ||
gh workflow run apt-arm-packages.yaml -R timescale/timescaledb -f branch="$OLD_MINOR_VERSION_BRANCH" | ||
gh workflow run apt-packages.yaml -R timescale/timescaledb -f branch="$OLD_MINOR_VERSION_BRANCH" | ||
gh workflow run docker-images.yaml -R timescale/timescaledb -f branch="$OLD_MINOR_VERSION_BRANCH" | ||
gh workflow run windows-packages.yaml -R timescale/timescaledb -f branch="$OLD_MINOR_VERSION_BRANCH" | ||
gh workflow run homebrew.yaml -R timescale/timescaledb -f branch="$OLD_MINOR_VERSION_BRANCH" | ||
gh workflow run libfuzzer.yaml -R timescale/timescaledb -f branch="$OLD_MINOR_VERSION_BRANCH" | ||
gh workflow run sqlsmith.yaml -R timescale/timescaledb -f branch="$OLD_MINOR_VERSION_BRANCH" | ||
|
||
- name: Run weekly coverity tests | ||
if: github.event.schedule != '0 0 * * *' | ||
env: | ||
GH_TOKEN: ${{ secrets.ORG_AUTOMATION_TOKEN }} | ||
run: | | ||
gh workflow run coverity.yaml -R timescale/timescaledb -f branch="$OLD_MINOR_VERSION_BRANCH" |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -12,6 +12,12 @@ name: Sanitizer test | |||||
pull_request: | ||||||
paths: .github/workflows/sanitizer-build-and-test.yaml | ||||||
workflow_dispatch: | ||||||
workflow_call: | ||||||
inputs: | ||||||
branch: | ||||||
description: 'Branch to checkout' | ||||||
type: string | ||||||
default: 'main' | ||||||
|
||||||
env: | ||||||
name: "Sanitizer" | ||||||
|
@@ -59,14 +65,17 @@ jobs: | |||||
steps: | ||||||
- name: Checkout source code | ||||||
uses: actions/checkout@v4 | ||||||
with: | ||||||
ref: ${{ github.event.inputs.branch }} | ||||||
|
||||||
- name: Read configuration | ||||||
id: setter | ||||||
run: python .github/gh_config_reader.py | ||||||
|
||||||
sanitizer: | ||||||
# Change the JOB_NAME variable below when changing the name. | ||||||
# Don't use the env variable here because the env context is not accessible. | ||||||
name: PG${{ matrix.pg }} Sanitizer ${{ matrix.os }} | ||||||
name: PG${{ matrix.pg }} Sanitizer ${{ matrix.os }} timescaledb${{ github.event.inputs.branch }} | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
runs-on: ${{ matrix.os }} | ||||||
needs: config | ||||||
strategy: | ||||||
|
@@ -84,6 +93,8 @@ jobs: | |||||
|
||||||
- name: Checkout TimescaleDB | ||||||
uses: actions/checkout@v4 | ||||||
with: | ||||||
ref: ${{ github.event.inputs.branch }} | ||||||
|
||||||
# We are going to rebuild Postgres daily, so that it doesn't suddenly break | ||||||
# ages after the original problem. | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.