-
Notifications
You must be signed in to change notification settings - Fork 8
Version new #16
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
Merged
Merged
Version new #16
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
ef17111
Add diagnostic scripts for TimescaleDB: chunk health, compression, co…
gmartinez-dbai 9af1701
Enhance CI and automation scripts: add pg_stat_statements extension, …
gmartinez-dbai 24d2d39
Refactor scripts to remove unused variables and improve readability
gmartinez-dbai a2fca33
Refactor increment operations to improve readability in automation sc…
gmartinez-dbai 0845da1
Refactor SQL scripts to improve readability and consistency in data t…
gmartinez-dbai c526d54
Refactor SQL scripts for improved readability and consistency: update…
gmartinez-dbai 02d81d0
Enhance automation scripts: add detection for pg_stat_statements and …
gmartinez-dbai 4a21142
Refactor resource monitoring scripts: enhance WAL statistics retrieva…
gmartinez-dbai 79654ba
Add check for pg_stat_statements extension before query pattern analy…
gmartinez-dbai 1fa123c
Enhance query pattern analysis: check for pg_stat_statements in share…
gmartinez-dbai ac5167f
Enhance CI workflow: add PostgreSQL readiness check after restart and…
gmartinez-dbai 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,6 +26,7 @@ jobs: | |
| ports: | ||
| - 5432:5432 | ||
| options: >- | ||
| --name pgtools-postgres-ci | ||
| --health-cmd "pg_isready -U postgres" | ||
| --health-interval 10s | ||
| --health-timeout 5s | ||
|
|
@@ -50,15 +51,45 @@ jobs: | |
| echo "PostgreSQL did not become ready in time" >&2 | ||
| exit 1 | ||
|
|
||
| - name: ShellCheck automation scripts | ||
| run: shellcheck automation/*.sh | ||
| - name: Enable pg_stat_statements | ||
| run: | | ||
| psql -c "CREATE EXTENSION IF NOT EXISTS pg_stat_statements;" | ||
| psql -c "SELECT extname FROM pg_extension WHERE extname = 'pg_stat_statements';" | ||
|
|
||
| - name: Configure preload and restart PostgreSQL | ||
| run: | | ||
| psql -c "ALTER SYSTEM SET shared_preload_libraries = 'pg_stat_statements';" | ||
| docker restart pgtools-postgres-ci | ||
|
|
||
| for i in {1..30}; do | ||
| if pg_isready -h "$PGHOST" -p "$PGPORT" -U "$PGUSER"; then | ||
| break | ||
| fi | ||
| sleep 2 | ||
| done | ||
|
|
||
| if ! pg_isready -h "$PGHOST" -p "$PGPORT" -U "$PGUSER"; then | ||
| echo "PostgreSQL did not become ready after restart" >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| psql -tA -c "SHOW shared_preload_libraries;" | grep -q "pg_stat_statements" | ||
| psql -c "SELECT extname FROM pg_extension WHERE extname = 'pg_stat_statements';" | ||
|
|
||
| - name: ShellCheck all shell scripts | ||
| run: | | ||
| shellcheck \ | ||
| automation/*.sh \ | ||
| integration/*.sh \ | ||
| configuration/*.sh \ | ||
| maintenance/*.sh \ | ||
| scripts/*.sh | ||
|
|
||
| # Todo: enable full test suite when stable | ||
| # - name: Fast automation test suite | ||
| # run: ./automation/test_pgtools.sh --fast | ||
| - name: Fast automation test suite | ||
| run: ./automation/test_pgtools.sh --fast | ||
|
|
||
| # - name: HOT checklist JSON validation | ||
| # run: ./automation/run_hot_update_report.sh --format json --database "$PGDATABASE" --stdout | ||
| - name: HOT checklist JSON validation | ||
| run: ./automation/run_hot_update_report.sh --format json --database "$PGDATABASE" --stdout | ||
|
|
||
| # - name: HOT checklist text validation | ||
| # run: ./automation/run_hot_update_report.sh --format text --database "$PGDATABASE" --stdout | ||
| - name: HOT checklist text validation | ||
| run: ./automation/run_hot_update_report.sh --format text --database "$PGDATABASE" --stdout | ||
|
Comment on lines
+91
to
+95
|
||
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.
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.
Uh oh!
There was an error while loading. Please reload this page.