-
Notifications
You must be signed in to change notification settings - Fork 13
SPOC-469: fix: harden CI pipeline, add PG18 support, and fix security issues #36
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
Open
danolivo
wants to merge
9
commits into
main
Choose a base branch
from
spoc-469
base: main
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.
+75
−24
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
f6966c3
Fix shell injection vulnerability in test runner subprocess call
danolivo bbe20d1
Fix Dockerfile ARG to work with newer BuildKit versions
danolivo 355efcc
Fix Docker build for PG18: skip LLVM bitcode compilation
danolivo 3e3f062
Add PG18 test configuration file
danolivo 0c78a01
Remove shell=True from subprocess calls in util_test.py
danolivo eca5c35
Pin GitHub Actions to full commit SHAs for supply chain security
danolivo f5e5a8a
Fix SQL injection warning and missing parameter in execute_sqlite_query
danolivo 719dfb7
Suppress Bandit B603 warnings for internal test helper subprocess calls
danolivo cb0abf2
Use shlex.split() for correct argument tokenization in test helpers
danolivo 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| # Use this file to set a group of values to environment variables; you can source this file to set all the values at once. | ||
| export EDGE_INSTALL_SCRIPT=install.py | ||
| export REPO=https://pgedge-devel.s3.amazonaws.com/REPO | ||
| export EDGE_REPO=$REPO/$EDGE_INSTALL_SCRIPT | ||
| export EDGE_HOST=127.0.0.1 | ||
|
|
||
| # Use this environment variable to set the number of seconds that a timing-sensitive test | ||
| # sleeps before confirming a result has been replicated. | ||
| export EDGE_SLEEP=5 | ||
|
|
||
| # Your setup scripts should start at the following port, and iterate through the setup for the number of nodes in | ||
| # EDGE_NODES. | ||
|
|
||
| export EDGE_START_PORT=5432 | ||
| export EDGE_NODES=2 | ||
|
|
||
| # This is where the installation should happen: | ||
| export NC_DIR="nc" | ||
| export EDGE_HOME_DIR="$NC_DIR/pgedge" | ||
| export EDGE_CLUSTER="demo" | ||
| export EDGE_CLUSTER_DIR="$EDGE_HOME_DIR/cluster/$EDGE_CLUSTER" | ||
|
|
||
| # These are the arguments associated with the cli setup: | ||
| export EDGE_USERNAME="lcusr" | ||
| export EDGE_PASSWORD="password" | ||
| export EDGE_DB="lcdb" | ||
| export EDGE_REPUSER=`whoami` | ||
|
|
||
| # postgres version details | ||
| export EDGE_INST_VERSION=18 | ||
| export EDGE_COMPONENT="pg$EDGE_INST_VERSION" | ||
|
|
||
| # Leave spock_ver empty if you want to use spocks default version | ||
| # As of 1st August 2024, spock40 is the default pinned version | ||
|
|
||
| # As of 10/23/24: Note that if the spock version is empty, cluster add-node will FAIL: | ||
| # It will return an error: ERROR: function spock.set_cluster_readonly() does not exist | ||
| export EDGE_SPOCK_VER="4.0.9" | ||
|
|
||
| export EDGE_CLI="pgedge" | ||
|
|
||
| # Path to store autoddl related actual outputs | ||
| export EDGE_ACTUAL_OUT_DIR="/tmp/auto_ddl/" | ||
|
|
||
| # To ensure locale related outputs (such as monetary values) stay consistent | ||
| export LC_ALL="C.UTF-8" |
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.
Uh oh!
There was an error while loading. Please reload this page.