-
Notifications
You must be signed in to change notification settings - Fork 487
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c658df
commit 885c166
Showing
6 changed files
with
153 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: "[Bug]" | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. xxx | ||
2. xxx | ||
3. xxx | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Environment (please complete the following information):** | ||
- OS: [e.g. CentOS 7] | ||
- Version [e.g. 22] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
name: Question | ||
about: Ask question about anything here. | ||
title: "[Question]" | ||
labels: question | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the problem** | ||
|
||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: precheck | ||
|
||
on: | ||
push: | ||
branches: [ POLARDB_15_STABLE ] | ||
paths: | ||
- '.github/workflows/precheck.yml' | ||
- 'config/**' | ||
- 'contrib/**' | ||
- 'external/**' | ||
- 'src/**' | ||
- 'configure*' | ||
- 'build.sh' | ||
pull_request: | ||
branches: [ POLARDB_15_STABLE ] | ||
paths: | ||
- '.github/workflows/precheck.yml' | ||
- 'config/**' | ||
- 'contrib/**' | ||
- 'external/**' | ||
- 'src/**' | ||
- 'configure*' | ||
- 'build.sh' | ||
# trigger testing manually | ||
workflow_dispatch: | ||
|
||
jobs: | ||
precheck: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
container_image: [ ubuntu20.04, ubuntu22.04, anolis8, rocky8 ] | ||
debug_mode: [ on, off ] | ||
steps: | ||
- name: fetch source code | ||
uses: actions/checkout@v4 | ||
|
||
- name: create and start the container | ||
run: | | ||
docker create \ | ||
-t \ | ||
--name polardb_${{ matrix.container_image }} \ | ||
-v `pwd`:/home/postgres/PolarDB-for-PostgreSQL \ | ||
polardb/polardb_pg_devel:${{ matrix.container_image }} \ | ||
bash && \ | ||
docker start polardb_${{ matrix.container_image }} | ||
- name: change ownership of the source code | ||
run: | | ||
docker exec \ | ||
polardb_${{ matrix.container_image }} \ | ||
bash -c "cd /home/postgres/PolarDB-for-PostgreSQL && \ | ||
sudo chown -R postgres:postgres ./" | ||
- name: build and run precheck | ||
run: | | ||
docker exec \ | ||
polardb_${{ matrix.container_image }} \ | ||
bash -c "cd /home/postgres/PolarDB-for-PostgreSQL && \ | ||
if [ -f /etc/bashrc ]; then source /etc/bashrc; fi && \ | ||
cpu_count=$(nproc) && \ | ||
./build.sh --ws=1 --wr=2 --debug=${{ matrix.debug_mode }} --jobs=$cpu_count --ec='--enable-tap-tests' && \ | ||
make precheck" | ||
- name: change ownership of the source code back | ||
run: | | ||
sudo chown -R runner:runner `pwd` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: sync with postgres upstream | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
repo-sync: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- name: repo-sync-master | ||
uses: repo-sync/github-sync@v2 | ||
with: | ||
source_repo: https://github.com/postgres/postgres.git | ||
source_branch: master | ||
destination_branch: master | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: repo-sync-17 | ||
uses: repo-sync/github-sync@v2 | ||
with: | ||
source_repo: https://github.com/postgres/postgres.git | ||
source_branch: REL_17_STABLE | ||
destination_branch: REL_17_STABLE | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: repo-sync-16 | ||
uses: repo-sync/github-sync@v2 | ||
with: | ||
source_repo: https://github.com/postgres/postgres.git | ||
source_branch: REL_16_STABLE | ||
destination_branch: REL_16_STABLE | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: repo-sync-15 | ||
uses: repo-sync/github-sync@v2 | ||
with: | ||
source_repo: https://github.com/postgres/postgres.git | ||
source_branch: REL_15_STABLE | ||
destination_branch: REL_15_STABLE | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters