Skip to content
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

Testing community changes #54

Draft
wants to merge 170 commits into
base: BABEL_3_4_STABLE
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
170 commits
Select commit Hold shift + click to select a range
ed77d64
Empty commit
ahmed-shameem Nov 24, 2023
32ab138
Fix ATTIMEZONE test output
Nov 20, 2023
7c7c37b
Revert "Implement Supported Geospatial CASTs (#1945)"
Nov 21, 2023
ba87d48
Revert "Implemented TDS Receiver Support for Spatial Datatypes and Te…
Nov 21, 2023
4ea8031
Revert "Support GEOGRAPHY and GEOMETRY datatypes along with TDS Sende…
Nov 21, 2023
b001836
Disable postgis build in parallel query tests
Nov 21, 2023
379dd2c
Temporarily disable failing tests
Nov 21, 2023
4f87fdb
Temporarily disable failing parallel query tests
Nov 21, 2023
f892552
Temporarily disable failing parallel query tests (for real)
Nov 22, 2023
c6f5dfe
Disable BABEL-4281 from jdbc and table-variable from upgrade tests
ahmed-shameem Nov 24, 2023
18cba75
Rerun tests
ahmed-shameem Nov 24, 2023
0755989
Rerun tests
ahmed-shameem Nov 28, 2023
3ba85f0
Rerun tests
ahmed-shameem Nov 28, 2023
9495688
Rerun tests
ahmed-shameem Nov 28, 2023
f70cebd
Rerun tests.
Nov 28, 2023
f2f0371
Change internal RelFileNode references to RelFileNumber or RelFileLoc…
Nov 28, 2023
0734965
Rerun tests.
Nov 28, 2023
cdcb08d
Fix PIVOT to work with new node implementation.
Nov 28, 2023
96281b5
Rerun tests.
Nov 29, 2023
fbb7b6b
Update test and output related to PIVOT
ahmed-shameem Nov 29, 2023
0e74717
Rerun tests.
Nov 29, 2023
606571d
Rerun tests.
Nov 29, 2023
d446013
Rerun tests.
Nov 29, 2023
24c0109
Rerun tests for https://github.com/amazon-aurora/postgresql_modified_…
Nov 29, 2023
26fd430
Temporarily disable 'push' github workflows to prevent double work fo…
Nov 29, 2023
9e6d1fc
Remove obsoleted pltsql declarations
Nov 29, 2023
fdd2442
Disable pull request workflow for Babelfish Smoke Tests as well
Nov 29, 2023
52d7f70
Rerun tests for https://github.com/amazon-aurora/postgresql_modified_…
Nov 30, 2023
14ac39b
Rerun tests
ahmed-shameem Nov 30, 2023
181fcf6
Rerun tests
ahmed-shameem Nov 30, 2023
5547849
Update hooks initialisation in extension
ahmed-shameem Nov 30, 2023
43a9e6e
Rerun tests for https://github.com/amazon-aurora/postgresql_modified_…
Nov 30, 2023
960b05b
Rerun tests for https://github.com/amazon-aurora/postgresql_modified_…
Nov 30, 2023
f9a7624
Rerun tests for https://github.com/amazon-aurora/postgresql_modified_…
Nov 30, 2023
c011cc4
Rerun tests for https://github.com/amazon-aurora/postgresql_modified_…
Nov 30, 2023
a2156a0
Change use of opt_index_name to op_single_name in gram-tsql-rule.y.
Nov 30, 2023
9ca4f71
Temporarily disable BABEL-3293 due to plan change
Nov 30, 2023
3b2a130
Rerun tests for https://github.com/amazon-aurora/postgresql_modified_…
Nov 30, 2023
6ef000e
Remove HAVE_UNIX_SOCKETS declaration as done in https://github.com/po…
ahmed-shameem Dec 1, 2023
6d98e0d
Update test files and outputs which were affected by https://github.c…
ahmed-shameem Dec 1, 2023
5712ff9
Rerun tests
ahmed-shameem Dec 1, 2023
02f8383
Update ownership_restrictions_from_pg expected output because of http…
ahmed-shameem Dec 1, 2023
c541ead
Check pg_dump tests
ahmed-shameem Dec 1, 2023
d2fd0a4
Rerun tests
ahmed-shameem Dec 1, 2023
11813b3
Rerun tests for https://github.com/amazon-aurora/postgresql_modified_…
Dec 1, 2023
2d4e2e0
Rerun tests for https://github.com/amazon-aurora/postgresql_modified_…
Dec 1, 2023
94ec3e5
Remove our artificial PG_SOMAXCONN limit on listen queue length.
Dec 1, 2023
61a848f
Rerun tests for https://github.com/amazon-aurora/postgresql_modified_…
Dec 1, 2023
b2676d0
Rerun tests for https://github.com/amazon-aurora/postgresql_modified_…
Dec 1, 2023
06022a6
Update opt field of GrantRoleStmt to NIL, previously it was admin_opt…
ahmed-shameem Dec 3, 2023
3a8c41a
Rerun tests for https://github.com/amazon-aurora/postgresql_modified_…
ahmed-shameem Dec 3, 2023
1015c76
Rerun tests for https://github.com/amazon-aurora/postgresql_modified_…
ahmed-shameem Dec 4, 2023
cf74bde
Rerun tests for https://github.com/amazon-aurora/postgresql_modified_…
ahmed-shameem Dec 4, 2023
19a7e16
Rerun tests
ahmed-shameem Dec 4, 2023
ade7b7f
Run tests for https://github.com/amazon-aurora/postgresql_modified_fo…
ahmed-shameem Dec 4, 2023
77589f3
[Need to revert] Remove Werror to ignore warnings as error (revert af…
ahmed-shameem Dec 4, 2023
fdd3697
Rerun tests for https://github.com/amazon-aurora/postgresql_modified_…
Dec 4, 2023
fc8e729
Revert "[Need to revert] Remove Werror to ignore warnings as error (r…
Dec 4, 2023
937743f
Update calls to pg_clean_ascii() to conform to new definition.
Dec 4, 2023
d1fdac2
Change import from guc.h to guc_hooks.h due to community commit 0a20ff5
Dec 4, 2023
7dae82e
Fix more includes
Dec 4, 2023
d2e113b
Fix build errors due to shadowed local variables, inline functions, a…
Dec 5, 2023
868e0ae
Various GUC fixes for (a73952b795632b2cf5acada8476e7cf75857e9be Add
Dec 5, 2023
e63f111
Update aclcheck and ownercheck function calls
ahmed-shameem Dec 6, 2023
22c998e
Update Trigger object address lookup when it doesn't exist.
Dec 6, 2023
8869be9
Fix aclchecks in OBJECTPROPERTY()
Dec 6, 2023
9d2331c
Temporarily disable pgr_select test
Dec 6, 2023
267872f
Update test configurations to use major version upgrade for 15->lates…
Dec 6, 2023
a3d22cb
Temporarily disable 545_1 as it is hanging during parallel query mode…
Dec 7, 2023
9806559
Try fixing parallel query mode tests
Dec 7, 2023
123efc4
Temporarily disable 545_1 test (again) as it is hanging during parall…
Dec 7, 2023
98952c1
Temporarily disable BABEL-3092 in parallel query tests as well as it …
Dec 7, 2023
73bdc86
Temporarily disable BABEL-SEQUENCE test from parallel query mode test…
Dec 7, 2023
7e30c22
Temporarily disable BABEL-235 test due to changes to implicit_transac…
Dec 7, 2023
043809b
Temporarily disable TestSPPrepare test from parallel query mode tests…
Dec 7, 2023
fb2e12c
Temporarily disable sp_who tests from parallel query mode tests as it…
Dec 7, 2023
fa4d40d
Fix uses of GetSQLLocalTimestamp() and GetSQLCurrentTimestamp().
Dec 7, 2023
31bc572
Temporarily disable 'Minor Version Upgrade Tests for empty database' …
Dec 7, 2023
d0b5fc4
Rerun tests for https://github.com/amazon-aurora/postgresql_modified_…
Dec 7, 2023
66f24a8
Fix use of requiredPerms in Babelfish
Dec 7, 2023
8252fc7
Rerun tests for https://github.com/amazon-aurora/postgresql_modified_…
Dec 7, 2023
cc143db
Rerun tests for https://github.com/amazon-aurora/postgresql_modified_…
Dec 7, 2023
651a95f
Further fix for RTE perms
Dec 7, 2023
66c5d62
Rerun tests for https://github.com/amazon-aurora/postgresql_modified_…
Dec 7, 2023
1b55e9e
Rerun tests for https://github.com/amazon-aurora/postgresql_modified_…
Dec 7, 2023
8223be6
Temporarily disable TestDatatypeAggSort due to plan cost change
Dec 7, 2023
c50b8ac
Disable TestDatatypeAggSort in the right place
Dec 7, 2023
df3203a
Rerun tests for https://github.com/amazon-aurora/postgresql_modified_…
Dec 7, 2023
f92c003
Ignore TestDatatypeAggSort in the right place (again).
Dec 7, 2023
391ae2a
Temporarily disable BABEL_COL_NAME test from upgrade and JDBC tests
Dec 7, 2023
3bdd019
Fix datetime funcs to use new DateTimeErrorExtra field
Dec 7, 2023
7eadac5
Fix varchar and json funcs to conform to new 'soft' error reporting f…
Dec 7, 2023
db25fee
Update lexer to use new decdigit symbol
Dec 7, 2023
71afb66
Reenable BABEL_COL_NAME test but temporarily disable the bad output.
Dec 8, 2023
41f7bb9
Update the following struct/functions to build extensions
ahmed-shameem Dec 8, 2023
1903c7a
Fix build failure
ahmed-shameem Dec 8, 2023
b4a7549
Include varatt.h in files where necessary
ahmed-shameem Dec 8, 2023
892ba59
Automatically revoke new logins from sysadmin upon creation.
Dec 8, 2023
0861af8
Test some role changes
Dec 9, 2023
8780dc0
More testing to fix roles
Dec 10, 2023
2f8d71c
test with existing user model
ritanwar Dec 11, 2023
0b7b270
Allow dbo to be member of roles
ritanwar Dec 11, 2023
dd5f4fe
Use db_owner during create/drop/alter of a user/role
ritanwar Dec 11, 2023
00a84e4
provid createrole to db_owner
ritanwar Dec 11, 2023
682e4ab
more fixes
ritanwar Dec 11, 2023
4347be0
Fix is_empty_role
ritanwar Dec 11, 2023
a4f38c1
Temporarily ignore failing tests
Dec 11, 2023
d73a45a
Add upgrade script for 4.0.0
Dec 11, 2023
6e4205d
test warning for upgrade logs
Dec 11, 2023
eba41ba
test
Dec 11, 2023
fdd4c22
Test
Dec 11, 2023
a193e99
Set current user to db_owner during DROP ROLE
Dec 11, 2023
4764978
Fix build error
Dec 11, 2023
28d54d9
Use DB name to find owner role name as db_owner in the catalog is not…
Dec 11, 2023
3f3c0f1
Typo
Dec 11, 2023
b7ac4d8
Add exception checking
Dec 11, 2023
8848246
Try fixing upgrade tests again
Dec 11, 2023
50a97da
Test
Dec 11, 2023
16bfa69
Use db_owner for CREATE LOGIN as well
Dec 12, 2023
e48564f
Revert "Use db_owner for CREATE LOGIN as well"
Dec 12, 2023
a244523
Also disable tests in the upgrade tests
Dec 12, 2023
ea776a7
Disable BABEL-4384 in upgrade tests
Dec 12, 2023
41234df
Fix 'errstart not called' error
ritanwar Dec 12, 2023
e194fa0
Use bootstrap superuser when creating/altering/dropping logins
Dec 12, 2023
40ff417
Actually give CREATEROLE to db owners
Dec 12, 2023
557de18
Use superuser in more cases for Babelfish role administration
Dec 12, 2023
43ae264
Use superuser during drop database to prevent errors after pg_dump/re…
Dec 12, 2023
5452d56
Use superuser when running createdb commands
Dec 12, 2023
e80ba26
Use superuser when dropping roles during drop db
Dec 13, 2023
9e883f3
Ignore BABEL-4279 in upgrade tests and use superuser to drop roles an…
Dec 13, 2023
821616f
Use superuser to CREATE/ALTER user/role
ritanwar Dec 13, 2023
97f503f
Fix upgrade github action
ritanwar Dec 13, 2023
252d91d
Fix tds_fdw init
ritanwar Dec 13, 2023
2622895
Fix build
Dec 13, 2023
fca2c98
Revert "Fix uses of GetSQLLocalTimestamp() and GetSQLCurrentTimestamp…
Dec 13, 2023
e6a2559
Fix build for p16 branch point
Dec 13, 2023
cc47c89
Rerun tests
Dec 13, 2023
1baaf0b
Test
Dec 13, 2023
526501d
Rerun tests
Dec 13, 2023
44098fb
Properly check for collation case-insensitivity
Dec 14, 2023
17b72d4
Replace references to 'force_parallel_mode' to 'debug_parallel_query'
Dec 14, 2023
ae999d1
Fix expected output for ATTIMEZONE test
Dec 14, 2023
7313f21
Try fixing TAP tests
Dec 14, 2023
cc3fc1b
Use Babelfish SA instead of superuser
Dec 15, 2023
3c361fb
Typo
Dec 15, 2023
7eda9c3
More typos
Dec 15, 2023
2f91f70
Remove debug warning and check for babelfish SA during drop role as well
Dec 15, 2023
e61b78d
Disable BABEL-4168 test from 15.2 schedule
ritanwar Dec 18, 2023
09b3551
Create a new role bbf_role_admin to administrate Babelfish roles.
Dec 18, 2023
b641bfc
Set createrole_grant_inherit to 'inherit' prior to creating new roles.
Dec 18, 2023
1cd3760
use pstrdup() for storing the old createrole_self_grant value
Dec 18, 2023
c1144b7
Grant bbf_role_admin membership with inherit true during upgrade
Dec 18, 2023
4693567
Add bbf_role_admin to sysadmin
Dec 18, 2023
e6ecf86
Fix upgrade
Dec 18, 2023
50d77f1
Check for bbf_role_admin instead of sa when dropping roles
Dec 18, 2023
462e214
Fix upgrade script
Dec 18, 2023
50a1496
debug logging for upgrade
Dec 18, 2023
f15c492
Rerun tests
Dec 19, 2023
67d5dca
Rerun tests
Dec 19, 2023
14eeeb5
Add bbf_role_admin to grantees as well during upgrade
Dec 19, 2023
3346f05
quick fix
Dec 19, 2023
2b25c48
Add bbf_role_admin to bbf catalog
ritanwar Dec 19, 2023
9a4ad3f
Skip bbf_role_admin role
ritanwar Dec 19, 2023
784d862
Fix test output
ritanwar Dec 19, 2023
364a90d
quick fix
ritanwar Dec 19, 2023
bdf1df0
Remove DISTINCT for debugging
Dec 19, 2023
43c065f
Use DISTINCT for sp_helpuser
Dec 19, 2023
4b5cc3c
Revert "Use DISTINCT for sp_helpuser"
ritanwar Dec 20, 2023
9d9ba51
Revert "Remove DISTINCT for debugging"
ritanwar Dec 20, 2023
428d822
Revert test changes
ritanwar Dec 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/composite-actions/build-extensions/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@ runs:
cd contrib/babelfishpg_money
make -j 4 && make install
cd ../babelfishpg_common
PG_CPPFLAGS='-DENABLE_SPATIAL_TYPES' make -j 4
PG_CPPFLAGS='-DENABLE_SPATIAL_TYPES' make install
make -j 4 && make install
cd ../babelfishpg_tds
make -j 4 && make install
cd ../babelfishpg_tsql
PG_CPPFLAGS='-I/usr/include -DENABLE_TDS_LIB -DENABLE_SPATIAL_TYPES' SHLIB_LINK='-lsybdb -L/usr/lib64' make
PG_CPPFLAGS='-I/usr/include -DENABLE_TDS_LIB -DENABLE_SPATIAL_TYPES' SHLIB_LINK='-lsybdb -L/usr/lib64' make install
PG_CPPFLAGS='-I/usr/include -DENABLE_TDS_LIB' SHLIB_LINK='-lsybdb -L/usr/lib64' make
PG_CPPFLAGS='-I/usr/include -DENABLE_TDS_LIB' SHLIB_LINK='-lsybdb -L/usr/lib64' make install
shell: bash
35 changes: 0 additions & 35 deletions .github/composite-actions/build-postgis-extension/action.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/composite-actions/install-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ runs:
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list
sudo apt-get update --fix-missing -y
sudo apt-get install uuid-dev openjdk-8-jre libicu-dev libxml2-dev openssl libssl-dev python3-dev libossp-uuid-dev libpq-dev cmake pkg-config g++ build-essential bison mssql-tools unixodbc-dev libsybdb5 freetds-dev freetds-common gdal-bin libgdal-dev libgeos-dev
sudo apt-get install uuid-dev openjdk-8-jre libicu-dev libxml2-dev openssl libssl-dev python3-dev libossp-uuid-dev libpq-dev cmake pkg-config g++ build-essential bison mssql-tools unixodbc-dev libsybdb5 freetds-dev freetds-common
sudo apt install -y ccache
sudo /usr/sbin/update-ccache-symlinks
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
Expand Down
25 changes: 0 additions & 25 deletions .github/composite-actions/setup-base-version/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,31 +59,6 @@ runs:
sudo make USE_PGXS=1 PG_CONFIG=~/${{ inputs.install_dir }}/bin/pg_config install
shell: bash

- name: Build PostGIS Extension
run: |
cd ..
export CC='ccache gcc'
export CMAKE_C_COMPILER_LAUNCHER=ccache
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
sudo apt-get install wget
wget http://postgis.net/stuff/postgis-3.4.0.tar.gz
tar -xvzf postgis-3.4.0.tar.gz
wget https://download.osgeo.org/proj/proj-9.2.1.tar.gz
tar -xvzf proj-9.2.1.tar.gz
cd proj-9.2.1
if [ ! -d "build" ]; then
mkdir build
fi
cd build
cmake -DCMAKE_INSTALL_LIBDIR="lib/x86_64-linux-gnu" -DCMAKE_INSTALL_PREFIX="/usr" ..
cmake --build .
sudo cmake --build . --target install
cd ../../postgis-3.4.0
./configure --without-protobuf --without-raster --with-pgconfig=$HOME/${{ inputs.install_dir }}/bin/pg_config
make USE_PGXS=1 PG_CONFIG=~/${{ inputs.install_dir }}/bin/pg_config
sudo make USE_PGXS=1 PG_CONFIG=~/${{ inputs.install_dir }}/bin/pg_config install
shell: bash

# Not used composite action install-extension here since, in the previous step it has
# checked out a branch/tag which may not have the updated install-extension composite action
- name: Install extensions
Expand Down
9 changes: 1 addition & 8 deletions .github/composite-actions/setup-new-version/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,9 @@ runs:
with:
install_dir: ${{ inputs.pg_new_dir }}

- name: Build PostGIS Extension
id: build-postgis-extension
if: always() && steps.build-tds_fdw-extension.outcome == 'success'
uses: ./.github/composite-actions/build-postgis-extension
with:
install_dir: ${{ inputs.pg_new_dir }}

- name: Setup new data directory
id: setup-new-datadir
if: always() && steps.build-postgis-extension.outcome == 'success'
if: always() && steps.build-tds_fdw-extension.outcome == 'success'
run: |
cd ~
~/${{ inputs.pg_new_dir }}/bin/initdb -D ~/${{ inputs.pg_new_dir }}/data
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,6 @@ jobs:
if: ${{ startsWith(matrix.branch, 'BABEL_3_') && (steps.build-extensions.outcome == 'success') }}
uses: ./.github/composite-actions/build-tds_fdw-extension

- name: Build PostGIS Extension
id: build-postgis-extension
if: ${{ startsWith(matrix.branch, 'BABEL_3_') && (steps.build-tds_fdw-extension.outcome == 'success') }}
uses: ./.github/composite-actions/build-postgis-extension

- name: Install Extensions
id: install-extensions
if: always() && steps.build-extensions.outcome == 'success'
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/dotnet-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,10 @@ jobs:
id: build-extensions
if: always() && steps.compile-antlr.outcome == 'success'
uses: ./.github/composite-actions/build-extensions

- name: Build PostGIS Extension
id: build-postgis-extension
if: always() && steps.build-extensions.outcome == 'success'
uses: ./.github/composite-actions/build-postgis-extension

- name: Install Extensions
id: install-extensions
if: always() && steps.build-postgis-extension.outcome == 'success'
if: always() && steps.build-extensions.outcome == 'success'
uses: ./.github/composite-actions/install-extensions

- name: Install MSSQL Tools
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/isolation-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,10 @@ jobs:
id: build-extensions
if: always() && steps.compile-antlr.outcome == 'success'
uses: ./.github/composite-actions/build-extensions

- name: Build PostGIS Extension
id: build-postgis-extension
if: always() && steps.build-extensions.outcome == 'success'
uses: ./.github/composite-actions/build-postgis-extension

- name: Install Extensions
id: install-extensions
if: always() && steps.build-postgis-extension.outcome == 'success'
if: always() && steps.build-extensions.outcome == 'success'
uses: ./.github/composite-actions/install-extensions

- name: Install Python
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/jdbc-tests-with-parallel-query.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,9 @@ jobs:
if: always() && steps.build-extensions.outcome == 'success'
uses: ./.github/composite-actions/build-tds_fdw-extension

- name: Build PostGIS Extension
id: build-postgis-extension
if: always() && steps.build-tds_fdw-extension.outcome == 'success'
uses: ./.github/composite-actions/build-postgis-extension

- name: Install Extensions
id: install-extensions
if: always() && steps.build-postgis-extension.outcome == 'success'
if: always() && steps.build-tds_fdw-extension.outcome == 'success'
uses: ./.github/composite-actions/install-extensions
with:
parallel_query_mode: true
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/jdbc-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,9 @@ jobs:
if: always() && steps.build-extensions.outcome == 'success'
uses: ./.github/composite-actions/build-tds_fdw-extension

- name: Build PostGIS Extension
id: build-postgis-extension
if: always() && steps.build-tds_fdw-extension.outcome == 'success'
uses: ./.github/composite-actions/build-postgis-extension

- name: Install Extensions
id: install-extensions
if: always() && steps.build-postgis-extension.outcome == 'success'
if: always() && steps.build-extensions.outcome == 'success'
uses: ./.github/composite-actions/install-extensions

- name: Run JDBC Tests
Expand Down
38 changes: 2 additions & 36 deletions .github/workflows/major-version-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,37 +44,10 @@ jobs:
with:
repository: babelfish-for-postgresql/babelfish_extensions
ref: ${{env.EXTENSION_BRANCH_FROM}}

- name: Build PostGIS Extension using ${{env.EXTENSION_BRANCH_FROM}}
id: build-postgis-extension-old
if: always() && steps.compile-antlr.outcome == 'success'
run: |
cd ..
export CC='ccache gcc'
export CMAKE_C_COMPILER_LAUNCHER=ccache
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
sudo apt-get install wget
wget http://postgis.net/stuff/postgis-3.4.0.tar.gz
tar -xvzf postgis-3.4.0.tar.gz
wget https://download.osgeo.org/proj/proj-9.2.1.tar.gz
tar -xvzf proj-9.2.1.tar.gz
cd proj-9.2.1
if [ ! -d "build" ]; then
mkdir build
fi
cd build
cmake -DCMAKE_INSTALL_LIBDIR="lib/x86_64-linux-gnu" -DCMAKE_INSTALL_PREFIX="/usr" ..
cmake --build .
sudo cmake --build . --target install
cd ../../postgis-3.4.0
./configure --without-protobuf --without-raster --with-pgconfig=$HOME/psql_source/bin/pg_config
make USE_PGXS=1 PG_CONFIG=~/psql_source/bin/pg_config
sudo make USE_PGXS=1 PG_CONFIG=~/psql_source/bin/pg_config install
shell: bash

- name: Build Extensions using ${{env.EXTENSION_BRANCH_FROM}}
id: build-extensions-old
if: always() && steps.build-postgis-extension-old.outcome == 'success'
if: always() && steps.compile-antlr.outcome == 'success'
run: |
export PG_CONFIG=~/${{env.OLD_INSTALL_DIR}}/bin/pg_config
export PG_SRC=~/work/babelfish_extensions/postgresql_modified_for_babelfish
Expand Down Expand Up @@ -141,16 +114,9 @@ jobs:
with:
install_dir: ${{env.NEW_INSTALL_DIR}}

- name: Build PostGIS Extension
id: build-postgis-extension
if: always() && steps.build-tds_fdw-extension.outcome == 'success'
uses: ./.github/composite-actions/build-postgis-extension
with:
install_dir: ${{env.NEW_INSTALL_DIR}}

- name: Setup new data directory
id: setup-new-datadir
if: always() && steps.build-postgis-extension.outcome == 'success'
if: always() && steps.build-tds_fdw-extension.outcome == 'success'
run: |
cd ~
~/${{env.NEW_INSTALL_DIR}}/bin/initdb -D ~/${{env.NEW_INSTALL_DIR}}/data
Expand Down
36 changes: 2 additions & 34 deletions .github/workflows/minor-version-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,36 +35,9 @@ jobs:
repository: babelfish-for-postgresql/babelfish_extensions
ref: ${{env.EXTENSION_VER_FROM}}

- name: Build PostGIS Extension using ${{env.EXTENSION_VER_FROM}}
id: build-postgis-extension-old
if: always() && steps.compile-antlr.outcome == 'success'
run: |
cd ..
export CC='ccache gcc'
export CMAKE_C_COMPILER_LAUNCHER=ccache
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
sudo apt-get install wget
wget http://postgis.net/stuff/postgis-3.4.0.tar.gz
tar -xvzf postgis-3.4.0.tar.gz
wget https://download.osgeo.org/proj/proj-9.2.1.tar.gz
tar -xvzf proj-9.2.1.tar.gz
cd proj-9.2.1
if [ ! -d "build" ]; then
mkdir build
fi
cd build
cmake -DCMAKE_INSTALL_LIBDIR="lib/x86_64-linux-gnu" -DCMAKE_INSTALL_PREFIX="/usr" ..
cmake --build .
sudo cmake --build . --target install
cd ../../postgis-3.4.0
./configure --without-protobuf --without-raster --with-pgconfig=$HOME/psql/bin/pg_config
make USE_PGXS=1 PG_CONFIG=~/psql/bin/pg_config
sudo make USE_PGXS=1 PG_CONFIG=~/psql/bin/pg_config install
shell: bash

- name: Set env variables and build extensions using ${{env.EXTENSION_VER_FROM}}
id: build-extensions-older
if: always() && steps.build-postgis-extension-old.outcome == 'success'
if: always() && steps.compile-antlr.outcome == 'success'
uses: ./.github/composite-actions/build-extensions

- name: Build tds_fdw Extension
Expand Down Expand Up @@ -97,13 +70,8 @@ jobs:
id: build-extensions-newer
uses: ./.github/composite-actions/build-extensions

- name: Build PostGIS Extension
id: build-postgis-extension
if: always() && steps.build-extensions-newer.outcome == 'success'
uses: ./.github/composite-actions/build-postgis-extension

- name: Update extensions
if: always() && steps.build-postgis-extension.outcome == 'success'
if: always() && steps.build-extensions-newer.outcome == 'success'
run: |
cd ~
~/psql/bin/pg_ctl -D ~/psql/data/ -l logfile restart
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/odbc-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,10 @@ jobs:
id: build-extensions
if: always() && steps.compile-antlr.outcome == 'success'
uses: ./.github/composite-actions/build-extensions

- name: Build PostGIS Extension
id: build-postgis-extension
if: always() && steps.build-extensions.outcome == 'success'
uses: ./.github/composite-actions/build-postgis-extension

- name: Install Extensions
id: install-extensions
if: always() && steps.build-postgis-extension.outcome == 'success'
if: always() && steps.build-extensions.outcome == 'success'
uses: ./.github/composite-actions/install-extensions

- name: Install SQL Server ODBC Driver
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,10 @@ jobs:
id: build-extensions
if: always() && steps.compile-antlr.outcome == 'success'
uses: ./.github/composite-actions/build-extensions

- name: Build PostGIS Extension
id: build-postgis-extension
if: always() && steps.build-extensions.outcome == 'success'
uses: ./.github/composite-actions/build-postgis-extension

- name: Install Extensions
id: install-extensions
if: always() && steps.build-postgis-extension.outcome == 'success'
if: always() && steps.build-extensions.outcome == 'success'
uses: ./.github/composite-actions/install-extensions

- name: Install Python
Expand Down
38 changes: 2 additions & 36 deletions .github/workflows/tap-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,36 +51,9 @@ jobs:
with:
install_dir: ${{env.OLD_INSTALL_DIR}}

- name: Build PostGIS Extension using ${{env.EXTENSION_BRANCH_OLD}}
id: build-postgis-extension-old
if: always() && steps.compile-antlr.outcome == 'success'
run: |
cd ..
export CC='ccache gcc'
export CMAKE_C_COMPILER_LAUNCHER=ccache
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
sudo apt-get install wget
wget http://postgis.net/stuff/postgis-3.4.0.tar.gz
tar -xvzf postgis-3.4.0.tar.gz
wget https://download.osgeo.org/proj/proj-9.2.1.tar.gz
tar -xvzf proj-9.2.1.tar.gz
cd proj-9.2.1
if [ ! -d "build" ]; then
mkdir build
fi
cd build
cmake -DCMAKE_INSTALL_LIBDIR="lib/x86_64-linux-gnu" -DCMAKE_INSTALL_PREFIX="/usr" ..
cmake --build .
sudo cmake --build . --target install
cd ../../postgis-3.4.0
./configure --without-protobuf --without-raster --with-pgconfig=$HOME/psql_source/bin/pg_config
make USE_PGXS=1 PG_CONFIG=~/psql_source/bin/pg_config
sudo make USE_PGXS=1 PG_CONFIG=~/psql_source/bin/pg_config install
shell: bash

- name: Build Extensions using ${{env.EXTENSION_BRANCH_OLD}}
id: build-extensions-old
if: always() && steps.build-postgis-extension-old.outcome == 'success'
if: always() && steps.compile-antlr.outcome == 'success'
uses: ./.github/composite-actions/build-extensions
with:
install_dir: ${{env.OLD_INSTALL_DIR}}
Expand All @@ -106,16 +79,9 @@ jobs:
with:
install_dir: ${{env.NEW_INSTALL_DIR}}

- name: Build PostGIS Extension
id: build-postgis-extension
if: always() && steps.build-extensions-new.outcome == 'success'
uses: ./.github/composite-actions/build-postgis-extension
with:
install_dir: ${{env.NEW_INSTALL_DIR}}

- name: Run TAP Tests
id: tap
if: always() && steps.build-postgis-extension.outcome == 'success'
if: always() && steps.build-extensions-new.outcome == 'success'
timeout-minutes: 5
run: |
export PG_CONFIG=~/${{env.NEW_INSTALL_DIR}}/bin/pg_config
Expand Down
Loading
Loading