Skip to content

Commit

Permalink
run upgrade tests with archive with all versions of diskquota
Browse files Browse the repository at this point in the history
  • Loading branch information
red1452 committed Oct 3, 2023
1 parent c6f3a37 commit fe2c57f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 60 deletions.
18 changes: 4 additions & 14 deletions arenadata/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,14 @@ docker run --rm -it -e DISKQUOTA_OS=rhel7 \
hub.adsw.io/library/gpdb6_regress:latest diskquota_src/concourse/scripts/entry.sh build
```

3. Run tests.
Change <PATH_TO_DISKQUOTA_SRC> and <PATH_TO_CMAKE_INSTALL_SCRIPT> to the appropriate paths on your local machine.

3. Run regression and upgrade tests.
Change <PATH_TO_DISKQUOTA_SRC>, <PATH_TO_ARCHIVE_WITH_OLD_VERSIONS> and <PATH_TO_CMAKE_INSTALL_SCRIPT> to the appropriate paths on your local machine.
<PATH_TO_ARCHIVE_WITH_OLD_VERSIONS> must be a path to tar-archive with all versions of diskquota (without the last).
```
docker run --rm -it --sysctl 'kernel.sem=500 1024000 200 4096' \
-v /tmp/diskquota_artifacts:/home/gpadmin/bin_diskquota \
-v <PATH_TO_DISKQUOTA_SRC>:/home/gpadmin/diskquota_src \
-v <PATH_TO_CMAKE_INSTALL_SCRIPT>:/home/gpadmin/bin_cmake/cmake-3.20.0-linux-x86_64.sh \
-v <PATH_TO_ARCHIVE_WITH_OLD_VERSIONS>://home/gpadmin/diskquota_old_versions.tar \
hub.adsw.io/library/gpdb6_regress:latest diskquota_src/concourse/scripts/entry.sh test
```

4. Run upgrade test.
Change <PATH_TO_DISKQUOTA_SRC> and <PATH_TO_CMAKE_INSTALL_SCRIPT> to the appropriate paths on your local machine.
```
sudo docker run --rm -it -e DISKQUOTA_OS=rhel7 --cap-add=SYS_PTRACE --security-opt seccomp=unconfined \
--sysctl 'kernel.sem=500 1024000 200 4096' \
-v /tmp/diskquota_artifacts:/home/gpadmin/bin_diskquota \
-v <PATH_TO_DISKQUOTA_SRC>:/home/gpadmin/diskquota_src \
-v <PATH_TO_CMAKE_INSTALL_SCRIPT>:/home/gpadmin/bin_cmake/cmake-3.20.0-linux-x86_64.sh \
hub.adsw.io/library/gpdb6_regress:latest diskquota_src/concourse/scripts/upgrade_test_diskquota.sh
```
3 changes: 3 additions & 0 deletions concourse/scripts/test_diskquota.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ function _main() {
activate_standby
time cmake --build . --target installcheck
fi

tar -xf /home/gpadmin/diskquota_old_versions.tar --directory=${GPHOME}/lib/postgresql
time cmake --build . --target upgradecheck
popd
}

Expand Down
46 changes: 0 additions & 46 deletions concourse/scripts/upgrade_test_diskquota.sh

This file was deleted.

0 comments on commit fe2c57f

Please sign in to comment.