Skip to content

Commit

Permalink
Differnet way of passing engineVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
SiddharthBITS committed Jan 21, 2025
1 parent 6e75d22 commit 1d40114
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,16 @@ runs:
if [[ "$tar_dir" == *"latest"* ]]; then
tar_dir="latest"
fi
export engineVersion=$tar_dir
echo "ENGINE_VERSION=$tar_dir" >> $GITHUB_ENV
export engineVersion=${{ matrix.upgrade-path.last_version }}
echo "ENGINE_VERSION=${{ matrix.upgrade-path.last_version }}" >> $GITHUB_ENV
export inputFilesPath=upgrade/$tar_dir/verification_cleanup/$base_dir
mvn -B -ntp test
export inputFilesPath=input
for filename in $(grep -v "^ignore.*\|^#.*\|^cmd.*\|^all.*\|^$" upgrade/$base_dir/schedule); do
sed -i "s/\b$filename[ ]*\b$/$filename-vu-verify\\n$filename-vu-cleanup/g" upgrade/$base_dir/schedule
done
export engineVersion=$base_dir
echo "ENGINE_VERSION=$base_dir" >> $GITHUB_ENV
export engineVersion=${{ matrix.upgrade-path.path[0] }}
echo "ENGINE_VERSION=$${{ matrix.upgrade-path.path[0] }}" >> $GITHUB_ENV
export scheduleFile=upgrade/$base_dir/schedule
mvn -B -ntp test
shell: bash
2 changes: 1 addition & 1 deletion .github/composite-actions/run-jdbc-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ runs:
export PATH=~/${{env.INSTALL_DIR}}/bin:$PATH
export PG_SRC=~/work/babelfish_extensions/postgresql_modified_for_babelfish
export inputFilesPath=${{inputs.input_dir}}
export engineVersion="justTest"
export engineVersion=justTest
cd test/JDBC/
if [[ '${{ inputs.migration_mode }}' == 'single-db' ]];then
export isSingleDbMode=true
Expand Down
10 changes: 5 additions & 5 deletions .github/composite-actions/run-verify-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ runs:
if [[ "$tar_dir" == *"latest"* || ${{ inputs.dump_restore }} == 'true' ]]; then
tar_dir="latest"
fi
export engineVersion=$tar_dir
echo "ENGINE_VERSION=$tar_dir" >> $GITHUB_ENV
export engineVersion=${{ matrix.upgrade-path.last_version }}
echo "ENGINE_VERSION=${{ matrix.upgrade-path.last_version }}" >> $GITHUB_ENV
export inputFilesPath=upgrade/$tar_dir/verification_cleanup/$base_dir
else
base_dir="singledb"
export engineVersion="singledb"
export engineVersion=singledb
echo "ENGINE_VERSION=singledb" >> $GITHUB_ENV
export inputFilesPath=upgrade/singledb/verification_cleanup
fi
Expand All @@ -77,8 +77,8 @@ runs:
for filename in $(grep -v "^ignore.*\|^#.*\|^cmd.*\|^all.*\|^$" upgrade/$base_dir/schedule); do
sed -i "s/\b$filename[ ]*\b$/$filename-vu-verify\\n$filename-vu-cleanup/g" upgrade/$base_dir/schedule
done
export engineVersion=$base_dir
echo "ENGINE_VERSION=$base_dir" >> $GITHUB_ENV
export engineVersion=${{ matrix.upgrade-path.path[0] }}
echo "ENGINE_VERSION=$${{ matrix.upgrade-path.path[0] }}" >> $GITHUB_ENV
export scheduleFile=upgrade/$base_dir/schedule
mvn -B -ntp test
shell: bash
Expand Down
8 changes: 4 additions & 4 deletions .github/composite-actions/setup-base-version/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ runs:
base_dir="singledb"
fi
export engineVersion=$base_dir
echo "ENGINE_VERSION=$base_dir" >> $GITHUB_ENV
export engineVersion=${{ matrix.upgrade-path.path[0] }}
echo "ENGINE_VERSION=$${{ matrix.upgrade-path.path[0] }}" >> $GITHUB_ENV
export inputFilesPath=upgrade/$base_dir/preparation
mvn -B -ntp test
Expand All @@ -217,8 +217,8 @@ runs:
for filename in $(grep -v "^ignore.*\|^#.*\|^cmd.*\|^all.*\|^$" upgrade/$base_dir/schedule); do
sed -i "s/\b$filename[ ]*\b$/$filename-vu-prepare/g" upgrade/$base_dir/schedule
done
export engineVersion=$base_dir
echo "ENGINE_VERSION=$base_dir" >> $GITHUB_ENV
export engineVersion=${{ matrix.upgrade-path.path[0] }}
echo "ENGINE_VERSION=$${{ matrix.upgrade-path.path[0] }}" >> $GITHUB_ENV
export scheduleFile=upgrade/$base_dir/schedule
mvn -B -ntp test
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jdbc-tests-db-collation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
export isdbCollationMode=true
export inputFilesPath=replication
echo "ENGINE_VERSION=replication" >> $GITHUB_ENV
export engineVersion="replication"
export engineVersion=replication
mvn -B -ntp test
unset isdbCollationMode
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jdbc-tests-pgaudit-enable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
export PATH=~/${{env.INSTALL_DIR}}/bin:$PATH
export PG_SRC=~/work/babelfish_extensions/postgresql_modified_for_babelfish
echo "ENGINE_VERSION=latest" >> $GITHUB_ENV
export engineVersion="latest"
export engineVersion=latest
export inputFilesPath=${{inputs.input_dir}}
cd test
# ignoring BABEL-2843 test file BABEL-2843,as in this file we are enabling the babelfish_statistics profile On for DDL, which is not giving any error but just adding the query under Query Text which is being passed from pg_audit and hence getting a diff file
Expand Down
2 changes: 1 addition & 1 deletion test/JDBC/src/test/java/com/sqlsamples/TestQueryFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ static Stream<String> inputFileNames() {
File dbCollationIgnoreFile = new File(dbCollationIgnoreFileName);
File singleDBIgnoreFile = new File(singleDBIgnoreFileName);

System.out.println("VersionCheck : Version : " + engineVersion);
System.out.println("VersionCheck-1 : Version : " + engineVersion);
if(engineVersion == "singledb" || engineVersion == "replication" || engineVersion == "latest" || engineVersion == null)
{
majorVersion = 0;
Expand Down

0 comments on commit 1d40114

Please sign in to comment.