-
Notifications
You must be signed in to change notification settings - Fork 16
gpcontrib_tests #321
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
Draft
andr-sokolov
wants to merge
1
commit into
OPENGPDB_STABLE
Choose a base branch
from
gpcontrib_tests
base: OPENGPDB_STABLE
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
gpcontrib_tests #321
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,146 +1,88 @@ | ||
| # protect the default target for this file from the targets in Makefile.global | ||
| default: all | ||
| # gpcontrib/Makefile | ||
|
|
||
| subdir = gpcontrib | ||
| top_builddir = .. | ||
| include $(top_builddir)/src/Makefile.global | ||
|
|
||
| .PHONY: all install clean distclean gpcloud mapreduce pgaudit sr_plan | ||
|
|
||
| # | ||
| # targets built via top_builddir/GNUmakefile | ||
| # | ||
| recurse_targets = "" | ||
|
|
||
| ifeq "$(enable_debug_extensions)" "yes" | ||
| recurse_targets = gp_sparse_vector \ | ||
| gp_distribution_policy \ | ||
| gp_parallel_retrieve_cursor \ | ||
| gp_internal_tools \ | ||
| gp_pitr \ | ||
| gp_debug_numsegments \ | ||
| gp_inject_fault \ | ||
| gp_replica_check \ | ||
| gp_legacy_string_agg \ | ||
| gp_array_agg \ | ||
| gp_percentile_agg \ | ||
| gp_error_handling \ | ||
| gp_subtransaction_overflow \ | ||
| gp_check_functions \ | ||
| gp_aux_catalog \ | ||
| gp_interconnect_stats \ | ||
| temp_tables_stat | ||
| SUBDIRS = \ | ||
| gp_array_agg \ | ||
| gp_aux_catalog \ | ||
| gp_check_functions \ | ||
| gp_distribution_policy \ | ||
| gp_error_handling \ | ||
| gp_interconnect_stats \ | ||
| gp_internal_tools \ | ||
| gp_legacy_string_agg \ | ||
| gp_parallel_retrieve_cursor \ | ||
| gp_parser \ | ||
| gp_percentile_agg \ | ||
| gp_pitr \ | ||
| gp_sparse_vector \ | ||
| gp_subtransaction_overflow \ | ||
| jsonlog-gpdb \ | ||
| temp_tables_stat | ||
|
|
||
| ifeq ($(enable_debug_extensions),yes) | ||
| SUBDIRS += gp_debug_numsegments gp_inject_fault gp_replica_check | ||
| else | ||
| recurse_targets = gp_sparse_vector \ | ||
| gp_distribution_policy \ | ||
| gp_parallel_retrieve_cursor \ | ||
| gp_internal_tools \ | ||
| gp_pitr \ | ||
| gp_parser \ | ||
| jsonlog-gpdb \ | ||
| gp_legacy_string_agg \ | ||
| gp_array_agg \ | ||
| gp_percentile_agg \ | ||
| gp_error_handling \ | ||
| gp_subtransaction_overflow \ | ||
| gp_check_functions \ | ||
| gp_aux_catalog \ | ||
| gp_interconnect_stats \ | ||
| temp_tables_stat | ||
| ALWAYS_SUBDIRS += gp_debug_numsegments gp_inject_fault gp_replica_check | ||
| endif | ||
|
|
||
| ifeq "$(with_yagp_hooks_collector)" "yes" | ||
| recurse_targets += yagp_hooks_collector | ||
| SUBDIRS += yagp_hooks_collector | ||
| else | ||
| ALWAYS_SUBDIRS += yagp_hooks_collector | ||
| endif | ||
|
|
||
| ifeq "$(with_zstd)" "yes" | ||
| recurse_targets += zstd | ||
| SUBDIRS += zstd | ||
| else | ||
| ALWAYS_SUBDIRS += zstd | ||
| endif | ||
|
|
||
| ifeq "$(with_quicklz)" "yes" | ||
| recurse_targets += quicklz | ||
| SUBDIRS += quicklz | ||
| else | ||
| ALWAYS_SUBDIRS += quicklz | ||
| endif | ||
| $(call recurse,all install clean distclean, $(recurse_targets)) | ||
|
|
||
| all: gpcloud mapreduce orafce yezzey sr_plan pgaudit | ||
|
|
||
| yezzey: | ||
| @if [ "$(enable_yezzey)" = "yes" ]; then \ | ||
| $(MAKE) -C yezzey | ||
| fi | ||
|
|
||
| gpcloud: | ||
| @if [ "$(enable_gpcloud)" = "yes" ]; then \ | ||
| $(MAKE) -C gpcloud && \ | ||
| $(MAKE) -C gpcloud/bin/gpcheckcloud; \ | ||
| fi | ||
|
|
||
| mapreduce: | ||
| @if [ "$(enable_mapreduce)" = "yes" ]; then \ | ||
| $(MAKE) -C gpmapreduce; \ | ||
| fi | ||
|
|
||
| orafce: | ||
| @if [ "$(enable_orafce)" = "yes" ]; then \ | ||
| $(MAKE) -C orafce NO_PGXS=true; \ | ||
| fi | ||
|
|
||
| sr_plan: | ||
| @if [ "$(enable_sr_plan)" = "yes" ]; then \ | ||
| $(MAKE) -C sr_plan NO_PGXS=true; \ | ||
| fi | ||
| ifeq "$(enable_yezzey)" "yes" | ||
| SUBDIRS += yezzey | ||
| else | ||
| ALWAYS_SUBDIRS += yezzey | ||
| endif | ||
|
|
||
| pgaudit: | ||
| @if [ "$(enable_pgaudit)" = "yes" ]; then \ | ||
| $(MAKE) -C pgaudit NO_PGXS=true; \ | ||
| fi | ||
| ifeq "$(enable_mapreduce)" "yes" | ||
| SUBDIRS += gpmapreduce | ||
| else | ||
| ALWAYS_SUBDIRS += gpmapreduce | ||
| endif | ||
|
|
||
| ifeq "$(enable_orafce)" "yes" | ||
| SUBDIRS += orafce | ||
| else | ||
| ALWAYS_SUBDIRS += orafce | ||
| endif | ||
|
|
||
| install: | ||
| @if [ "$(enable_gpcloud)" = "yes" ]; then \ | ||
| $(MAKE) -C gpcloud install && \ | ||
| $(MAKE) -C gpcloud/bin/gpcheckcloud install; \ | ||
| fi | ||
| @if [ "$(enable_yezzey)" = "yes" ]; then \ | ||
| $(MAKE) -C yezzey install; \ | ||
| fi | ||
| @if [ "$(enable_mapreduce)" = "yes" ]; then \ | ||
| $(MAKE) -C gpmapreduce install; \ | ||
| fi | ||
| @if [ "$(enable_orafce)" = "yes" ]; then \ | ||
| $(MAKE) -C orafce NO_PGXS=true install; \ | ||
| fi | ||
| @if [ "$(enable_pgaudit)" = "yes" ]; then \ | ||
| $(MAKE) -C pgaudit NO_PGXS=true install; \ | ||
| fi | ||
| @if [ "$(enable_sr_plan)" = "yes" ]; then \ | ||
| $(MAKE) -C sr_plan NO_PGXS=true install; \ | ||
| fi | ||
| ifeq "$(enable_sr_plan)" "yes" | ||
| SUBDIRS += sr_plan | ||
| else | ||
| ALWAYS_SUBDIRS += sr_plan | ||
| endif | ||
|
|
||
| clean: | ||
| if [ "$(enable_mapreduce)" = "yes" ]; then $(MAKE) -C gpmapreduce clean; fi | ||
| if [ "$(enable_gpcloud)" = "yes" ]; then $(MAKE) -C gpcloud cleanall; fi | ||
| if [ "$(enable_yezzey)" = "yes" ]; then $(MAKE) -C yezzey cleanall; fi | ||
| if [ "${enable_orafce}" = "yes" ]; then $(MAKE) -C orafce NO_PGXS=true clean; fi | ||
| if [ "${enable_sr_plan}" = "yes" ]; then $(MAKE) -C sr_plan clean; fi | ||
| if [ "${enable_pgaudit}" = "yes" ]; then $(MAKE) -C pgaudit clean; fi | ||
| ifeq "$(enable_pgaudit)" "yes" | ||
| SUBDIRS += pgaudit | ||
| else | ||
| ALWAYS_SUBDIRS += pgaudit | ||
| endif | ||
|
|
||
| ifeq "$(enable_gpcloud)" "yes" | ||
| SUBDIRS += gpcloud gpcloud/bin/gpcheckcloud | ||
| else | ||
| ALWAYS_SUBDIRS += gpcloud gpcloud/bin/gpcheckcloud | ||
| endif | ||
|
|
||
| distclean: | ||
| if [ "$(enable_mapreduce)" = "yes" ]; then $(MAKE) -C gpmapreduce distclean; fi | ||
| if [ "$(enable_gpcloud)" = "yes" ]; then $(MAKE) -C gpcloud distclean; fi | ||
| if [ "$(enable_yezzey)" = "yes" ]; then $(MAKE) -C yezzey distclean; fi | ||
| if [ "${enable_orafce}" = "yes" ]; then $(MAKE) -C orafce NO_PGXS=true distclean; fi | ||
|
|
||
| installcheck: | ||
| $(MAKE) -C gp_internal_tools installcheck | ||
| $(MAKE) -C gp_array_agg installcheck | ||
| $(MAKE) -C gp_aux_catalog installcheck | ||
| if [ "$(enable_mapreduce)" = "yes" ]; then \ | ||
| $(MAKE) -C gpmapreduce installcheck; \ | ||
| fi | ||
| if [ "$(enable_orafce)" = "yes" ]; then $(MAKE) -C orafce installcheck; fi | ||
| if [ "$(with_zstd)" = "yes" ]; then $(MAKE) -C zstd installcheck; fi | ||
| if [ "$(with_quicklz)" = "yes" ]; then $(MAKE) -C quicklz installcheck; fi | ||
| $(MAKE) -C gp_sparse_vector installcheck | ||
| $(MAKE) -C gp_percentile_agg installcheck | ||
| $(MAKE) -C gp_subtransaction_overflow installcheck | ||
| $(MAKE) -C gp_check_functions installcheck | ||
| if [ "${enable_pgaudit}" = "yes" ]; then $(MAKE) -C pgaudit installcheck; fi | ||
| $(call recurse,all install clean distclean) | ||
| $(call recurse,installcheck,$(filter-out yezzey, $(SUBDIRS))) | ||
| $(recurse_always) |
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,3 +1,8 @@ | ||
| -- start_ignore | ||
| \! gpconfig -c shared_preload_libraries -v 'yagp_hooks_collector' | ||
|
Contributor
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. alter system |
||
| \! gpstop -raiq | ||
| \c | ||
| -- end_ignore | ||
| CREATE EXTENSION yagp_hooks_collector; | ||
|
|
||
| CREATE FUNCTION yagp_status_order(status text) | ||
|
|
@@ -83,3 +88,7 @@ RESET yagpcc.enable; | |
| RESET yagpcc.report_nested_queries; | ||
| RESET yagpcc.enable_utility; | ||
| RESET yagpcc.ignored_users_list; | ||
| -- start_ignore | ||
| \! gpconfig -r shared_preload_libraries | ||
| \! gpstop -raiq | ||
| -- end_ignore | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
please do not refactor this, there is no value in making this unalike to
https://github.com/apache/cloudberry/blob/main/gpcontrib/Makefile