Skip to content
This repository was archived by the owner on Jan 14, 2026. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
d4ecc28
Fix compiler warnings. (#339)
higuoxing May 25, 2023
1111f71
Fix bug: diskquota.status() (#344)
zhrt123 Jun 26, 2023
58bb9e2
fix pipeline (#345)
zhrt123 Jun 26, 2023
c2686c9
Reduce the number of the log in bgworker. (#346)
zhrt123 Jun 27, 2023
0a837c8
Fix bug: lose monitored_dbid_cache after switching mirror (#342)
zhrt123 Jun 27, 2023
05da9d4
Enable continuous upgrade. (#340)
zhrt123 Jun 27, 2023
c81e696
Fix pipeline. (#349)
zhrt123 Jun 28, 2023
e3622e1
Fix upgrade version check (#347)
beeender Jun 28, 2023
974876d
Remove gp7 from pipeline (#350)
zhrt123 Jun 28, 2023
6001a05
Add alter extension upgrade test (#348)
beeender Jun 28, 2023
2aefa80
Add a sleep in alter_test.sh (#351)
zhrt123 Jun 29, 2023
86ff586
Update to 2.2.2 (#352)
zhrt123 Jun 29, 2023
f1ca0c5
Reduce the remain logs in bgworker. (#354)
zhrt123 Jul 3, 2023
2c086fc
Fix bug: bgworkers only print log once. (#356)
zhrt123 Jul 4, 2023
22c35b6
Update resources by using gp-extensions-ci subtree
liuxueyang Jul 4, 2023
dbd044f
Squashed 'concourse/lib/' content from commit d51adf5
liuxueyang Jul 5, 2023
6327f5e
Merge commit 'dbd044f46d7672331e19cbd6b95a6f8df67511af' as 'concourse…
liuxueyang Jul 5, 2023
bb840f5
Update resources by using gp-extensions-ci subtree (#357)
liuxueyang Jul 5, 2023
d6cae3c
Revert "ADBDEV-3685 Error handling for disqkuota worker startup stage…
Stolb27 Jul 25, 2023
624e3e7
Merge branch '2.2.2-conflicts' into 2.2.2-sync
Stolb27 Jul 25, 2023
f280a88
ADBDEV-3685 Error handling for disqkuota worker startup stage (#20)
bimboterminator1 Jun 29, 2023
16fecbb
mute alter extension tests
Stolb27 Jul 26, 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
15 changes: 14 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,21 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Distro.cmake)
if(DEFINED DISKQUOTA_LAST_RELEASE_PATH)
message(STATUS "Copy pervious installer from ${DISKQUOTA_LAST_RELEASE_PATH}")
file(ARCHIVE_EXTRACT INPUT ${DISKQUOTA_LAST_RELEASE_PATH} PATTERNS "*.so")
file(GLOB DISKQUOTA_PREVIOUS_LIBRARY
file(GLOB so_files_list
"${CMAKE_BINARY_DIR}/lib/postgresql/*.so")

foreach(so_path IN LISTS so_files_list)
get_filename_component(so_name ${so_path} NAME_WLE)
# Replace 'diskquota-x.y' with 'x.y'. 'diskquota' won't be replaced, which belongs to 1.x release.
string(REPLACE "diskquota-" "" so_ver ${so_name})
# Install the previous so files. Those so files have versions less than current version.
# diskqutoa.so doesn't have version string in the file name. It belongs to 1.x release.
if((${so_ver} STREQUAL "diskquota") OR
${so_ver} VERSION_LESS ${DISKQUOTA_MAJOR_VERSION}.${DISKQUOTA_MINOR_VERSION})
list(APPEND DISKQUOTA_PREVIOUS_LIBRARY ${so_path})
endif()
endforeach()

install(PROGRAMS ${DISKQUOTA_PREVIOUS_LIBRARY} DESTINATION "lib/postgresql/")

get_filename_component(
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.1
2.2.2
1 change: 1 addition & 0 deletions concourse/PROJ_NAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
diskquota
8 changes: 8 additions & 0 deletions concourse/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ To test if the webhook works, use `curl` to send a `POST` request to the hook UR
curl --data-raw "foo" <hook_url>
```

## Update gp-extensions-ci

We place some of the resources of concourse in a separate repository https://github.com/pivotal/gp-extensions-ci/. And we use that repo as a subtree with prefix ./concourse/lib. This is how to pull from the repo gp-extensions-ci:

```sh
git subtree pull --prefix concourse/lib git@github.com:pivotal/gp-extensions-ci.git main --squash
```

# FAQ

## PR pipeline is not triggered.
Expand Down
167 changes: 0 additions & 167 deletions concourse/fly.sh

This file was deleted.

1 change: 1 addition & 0 deletions concourse/fly.sh
1 change: 1 addition & 0 deletions concourse/lib/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Common ytt libs for gp-extensions concourse
23 changes: 21 additions & 2 deletions concourse/pipeline/base.lib.yml → concourse/lib/base.lib.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
#@ load("@ytt:data", "data")
#@ load("@ytt:struct", "struct")

#! resources and resource_types could be declared in different data-value files.
#! We check the key prefix, if they are 'resources' and 'resource_types', just
#! merge them into local dictionaries.
#@ resources = []
#@ resource_types = []
#@ data_values_dict = struct.decode(data.values)
#@ for key in data_values_dict.keys():
#@ if key.startswith('resources'):
#@ resources.extend(data_values_dict[key])
#@ end
#@ end
#@ for key in data_values_dict.keys():
#@ if key.startswith('resource_type'):
#@ resource_types.extend(data_values_dict[key])
#@ end
#@ end

#! add_res_by_xxx is to solve the unused resources error for concourse
#@ def add_res_by_conf(res_map, job_conf):
#@ for key in job_conf:
Expand All @@ -21,7 +40,7 @@
#@ end
#@
#@ def declare_res(res_type_map, res_map):
#@ for val in data.values.resources:
#@ for val in resources:
#@ res_name = val["name"]
#@ res_type = val["type"]
#@ if res_map.get(val["name"]):
Expand All @@ -32,7 +51,7 @@
#@ end
#@
#@ def declare_res_type(res_type_map):
#@ for val in data.values.resource_types:
#@ for val in resource_types:
#@ type_name = val["name"]
#@ if res_type_map.get(type_name):
- #@ val
Expand Down
Loading