poco/.github/workflows/ci.yml

579 lines
27 KiB
YAML
Raw Normal View History

CI improvements (#4236) * feat(ci): run pull request runs only on pull request open #4205 * feat(ci): add retry action for tsan #4205 * feat(ci): use local action for retrying tsan #4205 * fix(ci): use correct version of retry action #4205 * fix: make POSIX event thread safe * feat(ci): add info on retry action to ci.yml header #4205 * feat(ci): add linux mysql test #4205 * feat(ci): remove unused mysql containers from tests#4205 * feat(ci): add linux postgre test #4205 * feat(ci): add linux redis test #4205 * feat(ci): add linux mongodb tests #4205 * feat(ci): add mysql odbc test #4205 * chore(ci): rename tests #4205 * chore(ci): pin postgres and mysql versions #4205 * feat(ci): add odbc postgres tests #4205 * chore(ci): mysql odbc comment #4205 * chore(ci): disable windows 2019 job #4205 * feat(ci): add linux oracle tests #4205 * chore(ci): disable oracle tests #4205 * feat(ci): add sql server tests #4205 * chore(ci): disable postgres tests #4205 * chore(ci): add logging for task test #4205 * feat(ci): add local retry action #4205 * feat(ci): ignore process kill failure in action #4205 * feat(ci): send SIGKILL instead of SIGTERM in action #4205 * chore(ci): add updated action #4205 * chore(ci): reduce tsan timeout #4205 * feat(ci): kill process without children #4205 * feat(ci): send SIGTERM to child in action #4205 * feat(ci): prolong tsan timeout #4205 * chore(ci): add missing newlines #4205 * fix(ci): revert sql server test FreeTDS version #4205 * feat(ci): add retry to all jobs #4205 * feat(ci): setup python for codeQL #4205 * chore(ci): disable throwing on codeql error #4205
2023-11-03 14:34:31 +01:00
# To enable retrying a job on failure or a specific timeout, instead of the run step, use uses: nick-fields/retry@v2.9.0(see the linux-gcc-make-tsan jsob)
# To retry only on timeout set retry_on: timeout
# To retry only on error set retry_on: error
# For more information on the retry action see https://github.com/nick-fields/retry
name: Compile and Testrun
on:
CI improvements (#4236) * feat(ci): run pull request runs only on pull request open #4205 * feat(ci): add retry action for tsan #4205 * feat(ci): use local action for retrying tsan #4205 * fix(ci): use correct version of retry action #4205 * fix: make POSIX event thread safe * feat(ci): add info on retry action to ci.yml header #4205 * feat(ci): add linux mysql test #4205 * feat(ci): remove unused mysql containers from tests#4205 * feat(ci): add linux postgre test #4205 * feat(ci): add linux redis test #4205 * feat(ci): add linux mongodb tests #4205 * feat(ci): add mysql odbc test #4205 * chore(ci): rename tests #4205 * chore(ci): pin postgres and mysql versions #4205 * feat(ci): add odbc postgres tests #4205 * chore(ci): mysql odbc comment #4205 * chore(ci): disable windows 2019 job #4205 * feat(ci): add linux oracle tests #4205 * chore(ci): disable oracle tests #4205 * feat(ci): add sql server tests #4205 * chore(ci): disable postgres tests #4205 * chore(ci): add logging for task test #4205 * feat(ci): add local retry action #4205 * feat(ci): ignore process kill failure in action #4205 * feat(ci): send SIGKILL instead of SIGTERM in action #4205 * chore(ci): add updated action #4205 * chore(ci): reduce tsan timeout #4205 * feat(ci): kill process without children #4205 * feat(ci): send SIGTERM to child in action #4205 * feat(ci): prolong tsan timeout #4205 * chore(ci): add missing newlines #4205 * fix(ci): revert sql server test FreeTDS version #4205 * feat(ci): add retry to all jobs #4205 * feat(ci): setup python for codeQL #4205 * chore(ci): disable throwing on codeql error #4205
2023-11-03 14:34:31 +01:00
pull_request:
types: [opened]
push:
2023-10-03 21:31:27 +02:00
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
2021-06-16 14:41:29 +02:00
jobs:
android-arm64-v8a-ndk-latest-cmake:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: nttld/setup-ndk@v1
with:
ndk-version: r25c
add-to-path: true
- run: cmake -S$GITHUB_WORKSPACE -B$HOME/android-build -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=android-21 -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_LATEST_HOME/build/cmake/android.toolchain.cmake && cmake --build $HOME/android-build --target all
android-arm64-v8a-ndk-cmake:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: nttld/setup-ndk@v1
with:
ndk-version: r25c
add-to-path: true
- run: cmake -S$GITHUB_WORKSPACE -B$HOME/android-build -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=android-21 -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake && cmake --build $HOME/android-build --target all
android-armeabi-v7a-ndk-cmake:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: nttld/setup-ndk@v1
with:
ndk-version: r25c
add-to-path: true
- run: cmake -S$GITHUB_WORKSPACE -B$HOME/android-build -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-21 -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake && cmake --build $HOME/android-build --target all
2023-11-10 12:06:21 +01:00
linux-gcc-make:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: sudo apt -y update && sudo apt -y install libssl-dev unixodbc-dev redis-server libmysqlclient-dev
- run: ./configure --everything --omit=PDF && make all -s -j4 && sudo make install
CI improvements (#4236) * feat(ci): run pull request runs only on pull request open #4205 * feat(ci): add retry action for tsan #4205 * feat(ci): use local action for retrying tsan #4205 * fix(ci): use correct version of retry action #4205 * fix: make POSIX event thread safe * feat(ci): add info on retry action to ci.yml header #4205 * feat(ci): add linux mysql test #4205 * feat(ci): remove unused mysql containers from tests#4205 * feat(ci): add linux postgre test #4205 * feat(ci): add linux redis test #4205 * feat(ci): add linux mongodb tests #4205 * feat(ci): add mysql odbc test #4205 * chore(ci): rename tests #4205 * chore(ci): pin postgres and mysql versions #4205 * feat(ci): add odbc postgres tests #4205 * chore(ci): mysql odbc comment #4205 * chore(ci): disable windows 2019 job #4205 * feat(ci): add linux oracle tests #4205 * chore(ci): disable oracle tests #4205 * feat(ci): add sql server tests #4205 * chore(ci): disable postgres tests #4205 * chore(ci): add logging for task test #4205 * feat(ci): add local retry action #4205 * feat(ci): ignore process kill failure in action #4205 * feat(ci): send SIGKILL instead of SIGTERM in action #4205 * chore(ci): add updated action #4205 * chore(ci): reduce tsan timeout #4205 * feat(ci): kill process without children #4205 * feat(ci): send SIGTERM to child in action #4205 * feat(ci): prolong tsan timeout #4205 * chore(ci): add missing newlines #4205 * fix(ci): revert sql server test FreeTDS version #4205 * feat(ci): add retry to all jobs #4205 * feat(ci): setup python for codeQL #4205 * chore(ci): disable throwing on codeql error #4205
2023-11-03 14:34:31 +01:00
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
sudo -s
EXCLUDE_TESTS="Data/ODBC Data/MySQL Data/PostgreSQL MongoDB"
./ci/runtests.sh
2023-11-10 12:06:21 +01:00
linux-gcc-make-cxx20:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: sudo apt -y update && sudo apt -y install libssl-dev unixodbc-dev redis-server libmysqlclient-dev
- run: ./configure --config=Linux-c++20 --everything --omit=PDF && make all -s -j4 && sudo make install
CI improvements (#4236) * feat(ci): run pull request runs only on pull request open #4205 * feat(ci): add retry action for tsan #4205 * feat(ci): use local action for retrying tsan #4205 * fix(ci): use correct version of retry action #4205 * fix: make POSIX event thread safe * feat(ci): add info on retry action to ci.yml header #4205 * feat(ci): add linux mysql test #4205 * feat(ci): remove unused mysql containers from tests#4205 * feat(ci): add linux postgre test #4205 * feat(ci): add linux redis test #4205 * feat(ci): add linux mongodb tests #4205 * feat(ci): add mysql odbc test #4205 * chore(ci): rename tests #4205 * chore(ci): pin postgres and mysql versions #4205 * feat(ci): add odbc postgres tests #4205 * chore(ci): mysql odbc comment #4205 * chore(ci): disable windows 2019 job #4205 * feat(ci): add linux oracle tests #4205 * chore(ci): disable oracle tests #4205 * feat(ci): add sql server tests #4205 * chore(ci): disable postgres tests #4205 * chore(ci): add logging for task test #4205 * feat(ci): add local retry action #4205 * feat(ci): ignore process kill failure in action #4205 * feat(ci): send SIGKILL instead of SIGTERM in action #4205 * chore(ci): add updated action #4205 * chore(ci): reduce tsan timeout #4205 * feat(ci): kill process without children #4205 * feat(ci): send SIGTERM to child in action #4205 * feat(ci): prolong tsan timeout #4205 * chore(ci): add missing newlines #4205 * fix(ci): revert sql server test FreeTDS version #4205 * feat(ci): add retry to all jobs #4205 * feat(ci): setup python for codeQL #4205 * chore(ci): disable throwing on codeql error #4205
2023-11-03 14:34:31 +01:00
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
sudo -s
EXCLUDE_TESTS="Data/ODBC Data/MySQL Data/PostgreSQL MongoDB"
./ci/runtests.sh
2021-06-16 15:17:49 +02:00
2023-11-10 12:06:21 +01:00
linux-gcc-make-asan:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: sudo apt -y update && sudo apt -y install libssl-dev unixodbc-dev libmysqlclient-dev redis-server
- run: ./configure --everything --no-samples --omit=PDF && make all -s -j4 SANITIZEFLAGS=-fsanitize=address && sudo make install
CI improvements (#4236) * feat(ci): run pull request runs only on pull request open #4205 * feat(ci): add retry action for tsan #4205 * feat(ci): use local action for retrying tsan #4205 * fix(ci): use correct version of retry action #4205 * fix: make POSIX event thread safe * feat(ci): add info on retry action to ci.yml header #4205 * feat(ci): add linux mysql test #4205 * feat(ci): remove unused mysql containers from tests#4205 * feat(ci): add linux postgre test #4205 * feat(ci): add linux redis test #4205 * feat(ci): add linux mongodb tests #4205 * feat(ci): add mysql odbc test #4205 * chore(ci): rename tests #4205 * chore(ci): pin postgres and mysql versions #4205 * feat(ci): add odbc postgres tests #4205 * chore(ci): mysql odbc comment #4205 * chore(ci): disable windows 2019 job #4205 * feat(ci): add linux oracle tests #4205 * chore(ci): disable oracle tests #4205 * feat(ci): add sql server tests #4205 * chore(ci): disable postgres tests #4205 * chore(ci): add logging for task test #4205 * feat(ci): add local retry action #4205 * feat(ci): ignore process kill failure in action #4205 * feat(ci): send SIGKILL instead of SIGTERM in action #4205 * chore(ci): add updated action #4205 * chore(ci): reduce tsan timeout #4205 * feat(ci): kill process without children #4205 * feat(ci): send SIGTERM to child in action #4205 * feat(ci): prolong tsan timeout #4205 * chore(ci): add missing newlines #4205 * fix(ci): revert sql server test FreeTDS version #4205 * feat(ci): add retry to all jobs #4205 * feat(ci): setup python for codeQL #4205 * chore(ci): disable throwing on codeql error #4205
2023-11-03 14:34:31 +01:00
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
sudo -s
EXCLUDE_TESTS="Data/ODBC Data/PostgreSQL Data/MySQL MongoDB"
./ci/runtests.sh
2021-06-16 15:17:49 +02:00
2023-11-10 12:06:21 +01:00
linux-gcc-make-asan-no-soo:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: sudo apt -y update && sudo apt -y install libssl-dev unixodbc-dev libmysqlclient-dev redis-server
- run: ./configure --everything --no-samples --omit=PDF --no-soo && make all -s -j4 SANITIZEFLAGS=-fsanitize=address && sudo make install
CI improvements (#4236) * feat(ci): run pull request runs only on pull request open #4205 * feat(ci): add retry action for tsan #4205 * feat(ci): use local action for retrying tsan #4205 * fix(ci): use correct version of retry action #4205 * fix: make POSIX event thread safe * feat(ci): add info on retry action to ci.yml header #4205 * feat(ci): add linux mysql test #4205 * feat(ci): remove unused mysql containers from tests#4205 * feat(ci): add linux postgre test #4205 * feat(ci): add linux redis test #4205 * feat(ci): add linux mongodb tests #4205 * feat(ci): add mysql odbc test #4205 * chore(ci): rename tests #4205 * chore(ci): pin postgres and mysql versions #4205 * feat(ci): add odbc postgres tests #4205 * chore(ci): mysql odbc comment #4205 * chore(ci): disable windows 2019 job #4205 * feat(ci): add linux oracle tests #4205 * chore(ci): disable oracle tests #4205 * feat(ci): add sql server tests #4205 * chore(ci): disable postgres tests #4205 * chore(ci): add logging for task test #4205 * feat(ci): add local retry action #4205 * feat(ci): ignore process kill failure in action #4205 * feat(ci): send SIGKILL instead of SIGTERM in action #4205 * chore(ci): add updated action #4205 * chore(ci): reduce tsan timeout #4205 * feat(ci): kill process without children #4205 * feat(ci): send SIGTERM to child in action #4205 * feat(ci): prolong tsan timeout #4205 * chore(ci): add missing newlines #4205 * fix(ci): revert sql server test FreeTDS version #4205 * feat(ci): add retry to all jobs #4205 * feat(ci): setup python for codeQL #4205 * chore(ci): disable throwing on codeql error #4205
2023-11-03 14:34:31 +01:00
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
sudo -s
EXCLUDE_TESTS="Data/MySQL Data/ODBC Data/PostgreSQL MongoDB"
./ci/runtests.sh
2023-11-10 12:06:21 +01:00
linux-gcc-make-ubsan:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: sudo apt -y update && sudo apt -y install libssl-dev unixodbc-dev libmysqlclient-dev redis-server
- run: ./configure --everything --no-samples --omit=PDF && make all -s -j4 SANITIZEFLAGS=-fsanitize=undefined && sudo make install
CI improvements (#4236) * feat(ci): run pull request runs only on pull request open #4205 * feat(ci): add retry action for tsan #4205 * feat(ci): use local action for retrying tsan #4205 * fix(ci): use correct version of retry action #4205 * fix: make POSIX event thread safe * feat(ci): add info on retry action to ci.yml header #4205 * feat(ci): add linux mysql test #4205 * feat(ci): remove unused mysql containers from tests#4205 * feat(ci): add linux postgre test #4205 * feat(ci): add linux redis test #4205 * feat(ci): add linux mongodb tests #4205 * feat(ci): add mysql odbc test #4205 * chore(ci): rename tests #4205 * chore(ci): pin postgres and mysql versions #4205 * feat(ci): add odbc postgres tests #4205 * chore(ci): mysql odbc comment #4205 * chore(ci): disable windows 2019 job #4205 * feat(ci): add linux oracle tests #4205 * chore(ci): disable oracle tests #4205 * feat(ci): add sql server tests #4205 * chore(ci): disable postgres tests #4205 * chore(ci): add logging for task test #4205 * feat(ci): add local retry action #4205 * feat(ci): ignore process kill failure in action #4205 * feat(ci): send SIGKILL instead of SIGTERM in action #4205 * chore(ci): add updated action #4205 * chore(ci): reduce tsan timeout #4205 * feat(ci): kill process without children #4205 * feat(ci): send SIGTERM to child in action #4205 * feat(ci): prolong tsan timeout #4205 * chore(ci): add missing newlines #4205 * fix(ci): revert sql server test FreeTDS version #4205 * feat(ci): add retry to all jobs #4205 * feat(ci): setup python for codeQL #4205 * chore(ci): disable throwing on codeql error #4205
2023-11-03 14:34:31 +01:00
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
sudo -s
EXCLUDE_TESTS="Data/MySQL Data/ODBC Data/PostgreSQL MongoDB"
./ci/runtests.sh
2021-06-16 15:17:49 +02:00
2023-11-10 12:06:21 +01:00
linux-gcc-make-tsan:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: sudo apt -y update && sudo apt -y install libssl-dev unixodbc-dev libmysqlclient-dev redis-server
- run: ./configure --everything --no-samples --omit=CppParser,Encodings,Data/MySQL,Data/ODBC,Data/PostgreSQL,MongoDB,PageCompiler,PDF,PocoDoc,ProGen,Redis,SevenZip && make all -s -j4 SANITIZEFLAGS=-fsanitize=thread && sudo make install
CI improvements (#4236) * feat(ci): run pull request runs only on pull request open #4205 * feat(ci): add retry action for tsan #4205 * feat(ci): use local action for retrying tsan #4205 * fix(ci): use correct version of retry action #4205 * fix: make POSIX event thread safe * feat(ci): add info on retry action to ci.yml header #4205 * feat(ci): add linux mysql test #4205 * feat(ci): remove unused mysql containers from tests#4205 * feat(ci): add linux postgre test #4205 * feat(ci): add linux redis test #4205 * feat(ci): add linux mongodb tests #4205 * feat(ci): add mysql odbc test #4205 * chore(ci): rename tests #4205 * chore(ci): pin postgres and mysql versions #4205 * feat(ci): add odbc postgres tests #4205 * chore(ci): mysql odbc comment #4205 * chore(ci): disable windows 2019 job #4205 * feat(ci): add linux oracle tests #4205 * chore(ci): disable oracle tests #4205 * feat(ci): add sql server tests #4205 * chore(ci): disable postgres tests #4205 * chore(ci): add logging for task test #4205 * feat(ci): add local retry action #4205 * feat(ci): ignore process kill failure in action #4205 * feat(ci): send SIGKILL instead of SIGTERM in action #4205 * chore(ci): add updated action #4205 * chore(ci): reduce tsan timeout #4205 * feat(ci): kill process without children #4205 * feat(ci): send SIGTERM to child in action #4205 * feat(ci): prolong tsan timeout #4205 * chore(ci): add missing newlines #4205 * fix(ci): revert sql server test FreeTDS version #4205 * feat(ci): add retry to all jobs #4205 * feat(ci): setup python for codeQL #4205 * chore(ci): disable throwing on codeql error #4205
2023-11-03 14:34:31 +01:00
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
sudo -s
./ci/runtests.sh TSAN
2023-11-10 12:06:21 +01:00
linux-gcc-cmake:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: sudo apt -y update && sudo apt -y install cmake ninja-build libssl-dev unixodbc-dev libmysqlclient-dev redis-server
- run: cmake -S. -Bcmake-build -GNinja -DENABLE_PDF=OFF -DENABLE_TESTS=ON && cmake --build cmake-build --target all
CI improvements (#4236) * feat(ci): run pull request runs only on pull request open #4205 * feat(ci): add retry action for tsan #4205 * feat(ci): use local action for retrying tsan #4205 * fix(ci): use correct version of retry action #4205 * fix: make POSIX event thread safe * feat(ci): add info on retry action to ci.yml header #4205 * feat(ci): add linux mysql test #4205 * feat(ci): remove unused mysql containers from tests#4205 * feat(ci): add linux postgre test #4205 * feat(ci): add linux redis test #4205 * feat(ci): add linux mongodb tests #4205 * feat(ci): add mysql odbc test #4205 * chore(ci): rename tests #4205 * chore(ci): pin postgres and mysql versions #4205 * feat(ci): add odbc postgres tests #4205 * chore(ci): mysql odbc comment #4205 * chore(ci): disable windows 2019 job #4205 * feat(ci): add linux oracle tests #4205 * chore(ci): disable oracle tests #4205 * feat(ci): add sql server tests #4205 * chore(ci): disable postgres tests #4205 * chore(ci): add logging for task test #4205 * feat(ci): add local retry action #4205 * feat(ci): ignore process kill failure in action #4205 * feat(ci): send SIGKILL instead of SIGTERM in action #4205 * chore(ci): add updated action #4205 * chore(ci): reduce tsan timeout #4205 * feat(ci): kill process without children #4205 * feat(ci): send SIGTERM to child in action #4205 * feat(ci): prolong tsan timeout #4205 * chore(ci): add missing newlines #4205 * fix(ci): revert sql server test FreeTDS version #4205 * feat(ci): add retry to all jobs #4205 * feat(ci): setup python for codeQL #4205 * chore(ci): disable throwing on codeql error #4205
2023-11-03 14:34:31 +01:00
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
cd cmake-build &&
sudo -s
PWD=`pwd`
ctest --output-on-failure -E "(DataMySQL)|(DataODBC)|(PostgreSQL)|(MongoDB)"
2021-06-16 15:17:49 +02:00
linux-emscripten-cmake:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: sudo apt -y update && sudo apt -y install cmake ninja-build emscripten
- run: emcmake cmake -H. -B cmake-build -DENABLE_ACTIVERECORD_COMPILER=OFF -DENABLE_PAGECOMPILER=OFF -DENABLE_PAGECOMPILER_FILE2PAGE=off && emmake cmake --build cmake-build --target all -j4
# TODO: How to run unit tests in emscripten?
# - uses: ./.github/actions/retry-action
# with:
# timeout_minutes: 90
# max_attempts: 3
# retry_on: any
# command: >-
# cd cmake-build &&
# sudo -s
# PWD=`pwd`
# ctest --output-on-failure -E "(DataMySQL)|(DataODBC)|(PostgreSQL)|(MongoDB)"
2023-11-10 12:06:21 +01:00
linux-gcc-make-cross-armhf:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: >-
sudo apt-get -y update &&
sudo apt-get -y install crossbuild-essential-armhf
CI improvements (#4236) * feat(ci): run pull request runs only on pull request open #4205 * feat(ci): add retry action for tsan #4205 * feat(ci): use local action for retrying tsan #4205 * fix(ci): use correct version of retry action #4205 * fix: make POSIX event thread safe * feat(ci): add info on retry action to ci.yml header #4205 * feat(ci): add linux mysql test #4205 * feat(ci): remove unused mysql containers from tests#4205 * feat(ci): add linux postgre test #4205 * feat(ci): add linux redis test #4205 * feat(ci): add linux mongodb tests #4205 * feat(ci): add mysql odbc test #4205 * chore(ci): rename tests #4205 * chore(ci): pin postgres and mysql versions #4205 * feat(ci): add odbc postgres tests #4205 * chore(ci): mysql odbc comment #4205 * chore(ci): disable windows 2019 job #4205 * feat(ci): add linux oracle tests #4205 * chore(ci): disable oracle tests #4205 * feat(ci): add sql server tests #4205 * chore(ci): disable postgres tests #4205 * chore(ci): add logging for task test #4205 * feat(ci): add local retry action #4205 * feat(ci): ignore process kill failure in action #4205 * feat(ci): send SIGKILL instead of SIGTERM in action #4205 * chore(ci): add updated action #4205 * chore(ci): reduce tsan timeout #4205 * feat(ci): kill process without children #4205 * feat(ci): send SIGTERM to child in action #4205 * feat(ci): prolong tsan timeout #4205 * chore(ci): add missing newlines #4205 * fix(ci): revert sql server test FreeTDS version #4205 * feat(ci): add retry to all jobs #4205 * feat(ci): setup python for codeQL #4205 * chore(ci): disable throwing on codeql error #4205
2023-11-03 14:34:31 +01:00
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
./configure --config=ARM-Linux --everything --omit=PDF,Crypto,NetSSL_OpenSSL,JWT,Data/MySQL,Data/ODBC,Data/PostgreSQL,PageCompiler,PageCompiler/File2Page &&
make all -s -j4 ARCHFLAGS="-mcpu=cortex-a8 -mfloat-abi=hard -mfpu=neon" TOOL=arm-linux-gnueabihf
2023-11-10 12:06:21 +01:00
macos-clang-make:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- run: brew install openssl@1.1 mysql-client unixodbc libpq
- run: >-
./configure --everything --no-prefix --omit=PDF
--odbc-include=/usr/local/opt/unixodbc/include --odbc-lib=/usr/local/opt/unixodbc/lib
--mysql-include=/usr/local/opt/mysql-client/include --mysql-lib=/usr/local/opt/mysql-client/lib
--include-path="/usr/local/opt/openssl@1.1/include" --library-path="/usr/local/opt/openssl@1.1/lib" &&
2023-11-10 12:06:21 +01:00
make all -s -j4
CI improvements (#4236) * feat(ci): run pull request runs only on pull request open #4205 * feat(ci): add retry action for tsan #4205 * feat(ci): use local action for retrying tsan #4205 * fix(ci): use correct version of retry action #4205 * fix: make POSIX event thread safe * feat(ci): add info on retry action to ci.yml header #4205 * feat(ci): add linux mysql test #4205 * feat(ci): remove unused mysql containers from tests#4205 * feat(ci): add linux postgre test #4205 * feat(ci): add linux redis test #4205 * feat(ci): add linux mongodb tests #4205 * feat(ci): add mysql odbc test #4205 * chore(ci): rename tests #4205 * chore(ci): pin postgres and mysql versions #4205 * feat(ci): add odbc postgres tests #4205 * chore(ci): mysql odbc comment #4205 * chore(ci): disable windows 2019 job #4205 * feat(ci): add linux oracle tests #4205 * chore(ci): disable oracle tests #4205 * feat(ci): add sql server tests #4205 * chore(ci): disable postgres tests #4205 * chore(ci): add logging for task test #4205 * feat(ci): add local retry action #4205 * feat(ci): ignore process kill failure in action #4205 * feat(ci): send SIGKILL instead of SIGTERM in action #4205 * chore(ci): add updated action #4205 * chore(ci): reduce tsan timeout #4205 * feat(ci): kill process without children #4205 * feat(ci): send SIGTERM to child in action #4205 * feat(ci): prolong tsan timeout #4205 * chore(ci): add missing newlines #4205 * fix(ci): revert sql server test FreeTDS version #4205 * feat(ci): add retry to all jobs #4205 * feat(ci): setup python for codeQL #4205 * chore(ci): disable throwing on codeql error #4205
2023-11-03 14:34:31 +01:00
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
sudo -s
CPPUNIT_IGNORE="
CppUnit::TestCaller<ThreadTest>.testTrySleep,
CppUnit::TestCaller<TimestampTest>.testTimestamp,
CppUnit::TestCaller<ExpireLRUCacheTest>.testExpireN,
CppUnit::TestCaller<ExpireLRUCacheTest>.testAccessExpireN,
CppUnit::TestCaller<UniqueExpireLRUCacheTest>.testExpireN,
CppUnit::TestCaller<ExpireLRUCacheTest>.testAccessExpireN,
CppUnit::TestCaller<SyslogTest>.testOldBSD,
CppUnit::TestCaller<PollSetTest>.testPollClosedServer,
CppUnit::TestCaller<CryptoTest>.testEncryptDecryptGCM"
CI improvements (#4236) * feat(ci): run pull request runs only on pull request open #4205 * feat(ci): add retry action for tsan #4205 * feat(ci): use local action for retrying tsan #4205 * fix(ci): use correct version of retry action #4205 * fix: make POSIX event thread safe * feat(ci): add info on retry action to ci.yml header #4205 * feat(ci): add linux mysql test #4205 * feat(ci): remove unused mysql containers from tests#4205 * feat(ci): add linux postgre test #4205 * feat(ci): add linux redis test #4205 * feat(ci): add linux mongodb tests #4205 * feat(ci): add mysql odbc test #4205 * chore(ci): rename tests #4205 * chore(ci): pin postgres and mysql versions #4205 * feat(ci): add odbc postgres tests #4205 * chore(ci): mysql odbc comment #4205 * chore(ci): disable windows 2019 job #4205 * feat(ci): add linux oracle tests #4205 * chore(ci): disable oracle tests #4205 * feat(ci): add sql server tests #4205 * chore(ci): disable postgres tests #4205 * chore(ci): add logging for task test #4205 * feat(ci): add local retry action #4205 * feat(ci): ignore process kill failure in action #4205 * feat(ci): send SIGKILL instead of SIGTERM in action #4205 * chore(ci): add updated action #4205 * chore(ci): reduce tsan timeout #4205 * feat(ci): kill process without children #4205 * feat(ci): send SIGTERM to child in action #4205 * feat(ci): prolong tsan timeout #4205 * chore(ci): add missing newlines #4205 * fix(ci): revert sql server test FreeTDS version #4205 * feat(ci): add retry to all jobs #4205 * feat(ci): setup python for codeQL #4205 * chore(ci): disable throwing on codeql error #4205
2023-11-03 14:34:31 +01:00
EXCLUDE_TESTS="Redis Data/MySQL Data/ODBC Data/PostgreSQL MongoDB PDF"
./ci/runtests.sh
2021-06-16 15:17:49 +02:00
macos-clang-cmake-openssl:
2023-11-10 12:06:21 +01:00
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- run: brew install openssl@1.1 mysql-client unixodbc libpq
- run: cmake -S. -Bcmake-build -DENABLE_PDF=OFF -DENABLE_TESTS=ON -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl@1.1 -DMYSQL_ROOT_DIR=/usr/local/opt/mysql-client && cmake --build cmake-build --target all
CI improvements (#4236) * feat(ci): run pull request runs only on pull request open #4205 * feat(ci): add retry action for tsan #4205 * feat(ci): use local action for retrying tsan #4205 * fix(ci): use correct version of retry action #4205 * fix: make POSIX event thread safe * feat(ci): add info on retry action to ci.yml header #4205 * feat(ci): add linux mysql test #4205 * feat(ci): remove unused mysql containers from tests#4205 * feat(ci): add linux postgre test #4205 * feat(ci): add linux redis test #4205 * feat(ci): add linux mongodb tests #4205 * feat(ci): add mysql odbc test #4205 * chore(ci): rename tests #4205 * chore(ci): pin postgres and mysql versions #4205 * feat(ci): add odbc postgres tests #4205 * chore(ci): mysql odbc comment #4205 * chore(ci): disable windows 2019 job #4205 * feat(ci): add linux oracle tests #4205 * chore(ci): disable oracle tests #4205 * feat(ci): add sql server tests #4205 * chore(ci): disable postgres tests #4205 * chore(ci): add logging for task test #4205 * feat(ci): add local retry action #4205 * feat(ci): ignore process kill failure in action #4205 * feat(ci): send SIGKILL instead of SIGTERM in action #4205 * chore(ci): add updated action #4205 * chore(ci): reduce tsan timeout #4205 * feat(ci): kill process without children #4205 * feat(ci): send SIGTERM to child in action #4205 * feat(ci): prolong tsan timeout #4205 * chore(ci): add missing newlines #4205 * fix(ci): revert sql server test FreeTDS version #4205 * feat(ci): add retry to all jobs #4205 * feat(ci): setup python for codeQL #4205 * chore(ci): disable throwing on codeql error #4205
2023-11-03 14:34:31 +01:00
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
cd cmake-build &&
sudo -s
CPPUNIT_IGNORE="
CppUnit::TestCaller<ThreadTest>.testTrySleep,
CppUnit::TestCaller<TimestampTest>.testTimestamp,
CppUnit::TestCaller<ExpireLRUCacheTest>.testExpireN,
CppUnit::TestCaller<ExpireLRUCacheTest>.testAccessExpireN,
CppUnit::TestCaller<UniqueExpireLRUCacheTest>.testExpireN,
CppUnit::TestCaller<ExpireLRUCacheTest>.testAccessExpireN,
CppUnit::TestCaller<PollSetTest>.testPollClosedServer,
CppUnit::TestCaller<CryptoTest>.testEncryptDecryptGCM"
CI improvements (#4236) * feat(ci): run pull request runs only on pull request open #4205 * feat(ci): add retry action for tsan #4205 * feat(ci): use local action for retrying tsan #4205 * fix(ci): use correct version of retry action #4205 * fix: make POSIX event thread safe * feat(ci): add info on retry action to ci.yml header #4205 * feat(ci): add linux mysql test #4205 * feat(ci): remove unused mysql containers from tests#4205 * feat(ci): add linux postgre test #4205 * feat(ci): add linux redis test #4205 * feat(ci): add linux mongodb tests #4205 * feat(ci): add mysql odbc test #4205 * chore(ci): rename tests #4205 * chore(ci): pin postgres and mysql versions #4205 * feat(ci): add odbc postgres tests #4205 * chore(ci): mysql odbc comment #4205 * chore(ci): disable windows 2019 job #4205 * feat(ci): add linux oracle tests #4205 * chore(ci): disable oracle tests #4205 * feat(ci): add sql server tests #4205 * chore(ci): disable postgres tests #4205 * chore(ci): add logging for task test #4205 * feat(ci): add local retry action #4205 * feat(ci): ignore process kill failure in action #4205 * feat(ci): send SIGKILL instead of SIGTERM in action #4205 * chore(ci): add updated action #4205 * chore(ci): reduce tsan timeout #4205 * feat(ci): kill process without children #4205 * feat(ci): send SIGTERM to child in action #4205 * feat(ci): prolong tsan timeout #4205 * chore(ci): add missing newlines #4205 * fix(ci): revert sql server test FreeTDS version #4205 * feat(ci): add retry to all jobs #4205 * feat(ci): setup python for codeQL #4205 * chore(ci): disable throwing on codeql error #4205
2023-11-03 14:34:31 +01:00
PWD=`pwd`
ctest --output-on-failure -E "(DataMySQL)|(DataODBC)|(PostgreSQL)|(MongoDB)|(Redis)"
2022-04-16 08:11:05 +02:00
2023-11-10 12:06:21 +01:00
macos-clang-cmake-openssl3:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- run: brew install openssl@3 mysql-client unixodbc libpq
- run: cmake -S. -Bcmake-build -DENABLE_PDF=OFF -DENABLE_TESTS=ON -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl@3 -DMYSQL_ROOT_DIR=/usr/local/opt/mysql-client && cmake --build cmake-build --target all
CI improvements (#4236) * feat(ci): run pull request runs only on pull request open #4205 * feat(ci): add retry action for tsan #4205 * feat(ci): use local action for retrying tsan #4205 * fix(ci): use correct version of retry action #4205 * fix: make POSIX event thread safe * feat(ci): add info on retry action to ci.yml header #4205 * feat(ci): add linux mysql test #4205 * feat(ci): remove unused mysql containers from tests#4205 * feat(ci): add linux postgre test #4205 * feat(ci): add linux redis test #4205 * feat(ci): add linux mongodb tests #4205 * feat(ci): add mysql odbc test #4205 * chore(ci): rename tests #4205 * chore(ci): pin postgres and mysql versions #4205 * feat(ci): add odbc postgres tests #4205 * chore(ci): mysql odbc comment #4205 * chore(ci): disable windows 2019 job #4205 * feat(ci): add linux oracle tests #4205 * chore(ci): disable oracle tests #4205 * feat(ci): add sql server tests #4205 * chore(ci): disable postgres tests #4205 * chore(ci): add logging for task test #4205 * feat(ci): add local retry action #4205 * feat(ci): ignore process kill failure in action #4205 * feat(ci): send SIGKILL instead of SIGTERM in action #4205 * chore(ci): add updated action #4205 * chore(ci): reduce tsan timeout #4205 * feat(ci): kill process without children #4205 * feat(ci): send SIGTERM to child in action #4205 * feat(ci): prolong tsan timeout #4205 * chore(ci): add missing newlines #4205 * fix(ci): revert sql server test FreeTDS version #4205 * feat(ci): add retry to all jobs #4205 * feat(ci): setup python for codeQL #4205 * chore(ci): disable throwing on codeql error #4205
2023-11-03 14:34:31 +01:00
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
cd cmake-build &&
sudo -s
CPPUNIT_IGNORE="
CppUnit::TestCaller<ThreadTest>.testTrySleep,
CppUnit::TestCaller<TimestampTest>.testTimestamp,
CppUnit::TestCaller<ExpireLRUCacheTest>.testExpireN,
CppUnit::TestCaller<ExpireLRUCacheTest>.testAccessExpireN,
CppUnit::TestCaller<UniqueExpireLRUCacheTest>.testExpireN,
CppUnit::TestCaller<ExpireLRUCacheTest>.testAccessExpireN,
CppUnit::TestCaller<PollSetTest>.testPollClosedServer,
CppUnit::TestCaller<CryptoTest>.testEncryptDecryptGCM"
CI improvements (#4236) * feat(ci): run pull request runs only on pull request open #4205 * feat(ci): add retry action for tsan #4205 * feat(ci): use local action for retrying tsan #4205 * fix(ci): use correct version of retry action #4205 * fix: make POSIX event thread safe * feat(ci): add info on retry action to ci.yml header #4205 * feat(ci): add linux mysql test #4205 * feat(ci): remove unused mysql containers from tests#4205 * feat(ci): add linux postgre test #4205 * feat(ci): add linux redis test #4205 * feat(ci): add linux mongodb tests #4205 * feat(ci): add mysql odbc test #4205 * chore(ci): rename tests #4205 * chore(ci): pin postgres and mysql versions #4205 * feat(ci): add odbc postgres tests #4205 * chore(ci): mysql odbc comment #4205 * chore(ci): disable windows 2019 job #4205 * feat(ci): add linux oracle tests #4205 * chore(ci): disable oracle tests #4205 * feat(ci): add sql server tests #4205 * chore(ci): disable postgres tests #4205 * chore(ci): add logging for task test #4205 * feat(ci): add local retry action #4205 * feat(ci): ignore process kill failure in action #4205 * feat(ci): send SIGKILL instead of SIGTERM in action #4205 * chore(ci): add updated action #4205 * chore(ci): reduce tsan timeout #4205 * feat(ci): kill process without children #4205 * feat(ci): send SIGTERM to child in action #4205 * feat(ci): prolong tsan timeout #4205 * chore(ci): add missing newlines #4205 * fix(ci): revert sql server test FreeTDS version #4205 * feat(ci): add retry to all jobs #4205 * feat(ci): setup python for codeQL #4205 * chore(ci): disable throwing on codeql error #4205
2023-11-03 14:34:31 +01:00
PWD=`pwd`
ctest --output-on-failure -E "(DataMySQL)|(DataODBC)|(PostgreSQL)|(MongoDB)|(Redis)"
2023-11-10 12:06:21 +01:00
CI improvements (#4236) * feat(ci): run pull request runs only on pull request open #4205 * feat(ci): add retry action for tsan #4205 * feat(ci): use local action for retrying tsan #4205 * fix(ci): use correct version of retry action #4205 * fix: make POSIX event thread safe * feat(ci): add info on retry action to ci.yml header #4205 * feat(ci): add linux mysql test #4205 * feat(ci): remove unused mysql containers from tests#4205 * feat(ci): add linux postgre test #4205 * feat(ci): add linux redis test #4205 * feat(ci): add linux mongodb tests #4205 * feat(ci): add mysql odbc test #4205 * chore(ci): rename tests #4205 * chore(ci): pin postgres and mysql versions #4205 * feat(ci): add odbc postgres tests #4205 * chore(ci): mysql odbc comment #4205 * chore(ci): disable windows 2019 job #4205 * feat(ci): add linux oracle tests #4205 * chore(ci): disable oracle tests #4205 * feat(ci): add sql server tests #4205 * chore(ci): disable postgres tests #4205 * chore(ci): add logging for task test #4205 * feat(ci): add local retry action #4205 * feat(ci): ignore process kill failure in action #4205 * feat(ci): send SIGKILL instead of SIGTERM in action #4205 * chore(ci): add updated action #4205 * chore(ci): reduce tsan timeout #4205 * feat(ci): kill process without children #4205 * feat(ci): send SIGTERM to child in action #4205 * feat(ci): prolong tsan timeout #4205 * chore(ci): add missing newlines #4205 * fix(ci): revert sql server test FreeTDS version #4205 * feat(ci): add retry to all jobs #4205 * feat(ci): setup python for codeQL #4205 * chore(ci): disable throwing on codeql error #4205
2023-11-03 14:34:31 +01:00
# windows-2019-msvc-cmake:
# runs-on: windows-2019
# env:
# CPPUNIT_IGNORE: >-
# class CppUnit::TestCaller<class PathTest>.testFind,
# class CppUnit::TestCaller<class ICMPSocketTest>.testSendToReceiveFrom,
# class CppUnit::TestCaller<class ICMPClientTest>.testPing,
# class CppUnit::TestCaller<class ICMPClientTest>.testBigPing,
# class CppUnit::TestCaller<class ICMPSocketTest>.testMTU,
# class CppUnit::TestCaller<class HTTPSClientSessionTest>.testProxy,
# class CppUnit::TestCaller<class HTTPSStreamFactoryTest>.testProxy,
# class CppUnit::TestCaller<class PollSetTest>.testPollClosedServer
# steps:
# - uses: actions/checkout@v3
# - run: cmake -S. -Bcmake-build -DENABLE_NETSSL_WIN=ON -DENABLE_NETSSL=OFF -DENABLE_CRYPTO=OFF -DENABLE_JWT=OFF -DENABLE_DATA=ON -DENABLE_DATA_ODBC=ON -DENABLE_DATA_MYSQL=OFF -DENABLE_DATA_POSTGRESQL=OFF -DENABLE_TESTS=ON
# - run: cmake --build cmake-build --config Release
# - uses: ./.github/actions/retry-action
# with:
# timeout_minutes: 90
# max_attempts: 3
# retry_on: any
# command: >-
# cd cmake-build;
# ctest --output-on-failure -E "(DataMySQL)|(DataODBC)|(Redis)|(MongoDB)" -C Release
CI improvements (#4236) * feat(ci): run pull request runs only on pull request open #4205 * feat(ci): add retry action for tsan #4205 * feat(ci): use local action for retrying tsan #4205 * fix(ci): use correct version of retry action #4205 * fix: make POSIX event thread safe * feat(ci): add info on retry action to ci.yml header #4205 * feat(ci): add linux mysql test #4205 * feat(ci): remove unused mysql containers from tests#4205 * feat(ci): add linux postgre test #4205 * feat(ci): add linux redis test #4205 * feat(ci): add linux mongodb tests #4205 * feat(ci): add mysql odbc test #4205 * chore(ci): rename tests #4205 * chore(ci): pin postgres and mysql versions #4205 * feat(ci): add odbc postgres tests #4205 * chore(ci): mysql odbc comment #4205 * chore(ci): disable windows 2019 job #4205 * feat(ci): add linux oracle tests #4205 * chore(ci): disable oracle tests #4205 * feat(ci): add sql server tests #4205 * chore(ci): disable postgres tests #4205 * chore(ci): add logging for task test #4205 * feat(ci): add local retry action #4205 * feat(ci): ignore process kill failure in action #4205 * feat(ci): send SIGKILL instead of SIGTERM in action #4205 * chore(ci): add updated action #4205 * chore(ci): reduce tsan timeout #4205 * feat(ci): kill process without children #4205 * feat(ci): send SIGTERM to child in action #4205 * feat(ci): prolong tsan timeout #4205 * chore(ci): add missing newlines #4205 * fix(ci): revert sql server test FreeTDS version #4205 * feat(ci): add retry to all jobs #4205 * feat(ci): setup python for codeQL #4205 * chore(ci): disable throwing on codeql error #4205
2023-11-03 14:34:31 +01:00
# windows-2019-msvc-buildwin-x64:
# runs-on: windows-2019
# env:
# CPPUNIT_IGNORE: >-
# class CppUnit::TestCaller<class PathTest>.testFind,
# class CppUnit::TestCaller<class ICMPSocketTest>.testSendToReceiveFrom,
# class CppUnit::TestCaller<class ICMPClientTest>.testPing,
# class CppUnit::TestCaller<class ICMPClientTest>.testBigPing,
# class CppUnit::TestCaller<class ICMPSocketTest>.testMTU,
# class CppUnit::TestCaller<class HTTPSClientSessionTest>.testProxy,
# class CppUnit::TestCaller<class HTTPSStreamFactoryTest>.testProxy
# steps:
# - uses: actions/checkout@v3
# - uses: ./.github/actions/retry-action
# with:
# timeout_minutes: 90
# max_attempts: 3
# retry_on: any
# command: .\buildwin.ps1 -poco_base . -vs 160 -action build -linkmode all -config release -platform x64 -samples -tests -omit "Crypto,NetSSL_OpenSSL,Data/MySQL,Data/PostgreSQL,JWT"
# windows-2019-msvc-buildwin-win32:
# runs-on: windows-2019
# env:
# CPPUNIT_IGNORE: class CppUnit::TestCaller<class PathTest>.testFind,class CppUnit::TestCaller<class ICMPSocketTest>.testSendToReceiveFrom,class CppUnit::TestCaller<class ICMPClientTest>.testPing,class CppUnit::TestCaller<class ICMPClientTest>.testBigPing,class CppUnit::TestCaller<class ICMPSocketTest>.testMTU,class CppUnit::TestCaller<class HTTPSClientSessionTest>.testProxy,class CppUnit::TestCaller<class HTTPSStreamFactoryTest>.testProxy
# steps:
2023-10-01 18:08:51 +02:00
# - uses: actions/checkout@v3
CI improvements (#4236) * feat(ci): run pull request runs only on pull request open #4205 * feat(ci): add retry action for tsan #4205 * feat(ci): use local action for retrying tsan #4205 * fix(ci): use correct version of retry action #4205 * fix: make POSIX event thread safe * feat(ci): add info on retry action to ci.yml header #4205 * feat(ci): add linux mysql test #4205 * feat(ci): remove unused mysql containers from tests#4205 * feat(ci): add linux postgre test #4205 * feat(ci): add linux redis test #4205 * feat(ci): add linux mongodb tests #4205 * feat(ci): add mysql odbc test #4205 * chore(ci): rename tests #4205 * chore(ci): pin postgres and mysql versions #4205 * feat(ci): add odbc postgres tests #4205 * chore(ci): mysql odbc comment #4205 * chore(ci): disable windows 2019 job #4205 * feat(ci): add linux oracle tests #4205 * chore(ci): disable oracle tests #4205 * feat(ci): add sql server tests #4205 * chore(ci): disable postgres tests #4205 * chore(ci): add logging for task test #4205 * feat(ci): add local retry action #4205 * feat(ci): ignore process kill failure in action #4205 * feat(ci): send SIGKILL instead of SIGTERM in action #4205 * chore(ci): add updated action #4205 * chore(ci): reduce tsan timeout #4205 * feat(ci): kill process without children #4205 * feat(ci): send SIGTERM to child in action #4205 * feat(ci): prolong tsan timeout #4205 * chore(ci): add missing newlines #4205 * fix(ci): revert sql server test FreeTDS version #4205 * feat(ci): add retry to all jobs #4205 * feat(ci): setup python for codeQL #4205 * chore(ci): disable throwing on codeql error #4205
2023-11-03 14:34:31 +01:00
# - uses: ./.github/actions/retry-action
# with:
# timeout_minutes: 90
# max_attempts: 3
# retry_on: any
# command: .\buildwin.ps1 -poco_base . -vs 160 -action build -linkmode all -config release -platform Win32 -samples -tests -omit "Crypto,NetSSL_OpenSSL,Data/MySQL,Data/PostgreSQL,JWT"
windows-2022-msvc-buildwin-x64:
runs-on: windows-2022
env:
2023-10-04 06:30:41 +02:00
CPPUNIT_IGNORE: >-
class CppUnit::TestCaller<class PathTest>.testFind,
class CppUnit::TestCaller<class ICMPSocketTest>.testSendToReceiveFrom,
class CppUnit::TestCaller<class ICMPClientTest>.testPing,
class CppUnit::TestCaller<class ICMPClientTest>.testBigPing,
class CppUnit::TestCaller<class ICMPSocketTest>.testMTU,
class CppUnit::TestCaller<class HTTPSClientSessionTest>.testProxy,
class CppUnit::TestCaller<class HTTPSStreamFactoryTest>.testProxy
steps:
2023-10-01 18:08:51 +02:00
- uses: actions/checkout@v3
CI improvements (#4236) * feat(ci): run pull request runs only on pull request open #4205 * feat(ci): add retry action for tsan #4205 * feat(ci): use local action for retrying tsan #4205 * fix(ci): use correct version of retry action #4205 * fix: make POSIX event thread safe * feat(ci): add info on retry action to ci.yml header #4205 * feat(ci): add linux mysql test #4205 * feat(ci): remove unused mysql containers from tests#4205 * feat(ci): add linux postgre test #4205 * feat(ci): add linux redis test #4205 * feat(ci): add linux mongodb tests #4205 * feat(ci): add mysql odbc test #4205 * chore(ci): rename tests #4205 * chore(ci): pin postgres and mysql versions #4205 * feat(ci): add odbc postgres tests #4205 * chore(ci): mysql odbc comment #4205 * chore(ci): disable windows 2019 job #4205 * feat(ci): add linux oracle tests #4205 * chore(ci): disable oracle tests #4205 * feat(ci): add sql server tests #4205 * chore(ci): disable postgres tests #4205 * chore(ci): add logging for task test #4205 * feat(ci): add local retry action #4205 * feat(ci): ignore process kill failure in action #4205 * feat(ci): send SIGKILL instead of SIGTERM in action #4205 * chore(ci): add updated action #4205 * chore(ci): reduce tsan timeout #4205 * feat(ci): kill process without children #4205 * feat(ci): send SIGTERM to child in action #4205 * feat(ci): prolong tsan timeout #4205 * chore(ci): add missing newlines #4205 * fix(ci): revert sql server test FreeTDS version #4205 * feat(ci): add retry to all jobs #4205 * feat(ci): setup python for codeQL #4205 * chore(ci): disable throwing on codeql error #4205
2023-11-03 14:34:31 +01:00
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: .\buildwin.ps1 -poco_base . -vs 170 -action build -linkmode all -config release -platform x64 -samples -tests -omit "Crypto,NetSSL_OpenSSL,Data/MySQL,Data/PostgreSQL,JWT"
# windows-2022-msvc-buildwin-win32:
# runs-on: windows-2022
# env:
2023-10-04 06:30:41 +02:00
# CPPUNIT_IGNORE: >-
# class CppUnit::TestCaller<class PathTest>.testFind,
# class CppUnit::TestCaller<class ICMPSocketTest>.testSendToReceiveFrom,
# class CppUnit::TestCaller<class ICMPClientTest>.testPing,
# class CppUnit::TestCaller<class ICMPClientTest>.testBigPing,
# class CppUnit::TestCaller<class ICMPSocketTest>.testMTU,
# class CppUnit::TestCaller<class HTTPSClientSessionTest>.testProxy,
# class CppUnit::TestCaller<class HTTPSStreamFactoryTest>.testProxy
# steps:
2023-10-01 18:08:51 +02:00
# - uses: actions/checkout@v3
CI improvements (#4236) * feat(ci): run pull request runs only on pull request open #4205 * feat(ci): add retry action for tsan #4205 * feat(ci): use local action for retrying tsan #4205 * fix(ci): use correct version of retry action #4205 * fix: make POSIX event thread safe * feat(ci): add info on retry action to ci.yml header #4205 * feat(ci): add linux mysql test #4205 * feat(ci): remove unused mysql containers from tests#4205 * feat(ci): add linux postgre test #4205 * feat(ci): add linux redis test #4205 * feat(ci): add linux mongodb tests #4205 * feat(ci): add mysql odbc test #4205 * chore(ci): rename tests #4205 * chore(ci): pin postgres and mysql versions #4205 * feat(ci): add odbc postgres tests #4205 * chore(ci): mysql odbc comment #4205 * chore(ci): disable windows 2019 job #4205 * feat(ci): add linux oracle tests #4205 * chore(ci): disable oracle tests #4205 * feat(ci): add sql server tests #4205 * chore(ci): disable postgres tests #4205 * chore(ci): add logging for task test #4205 * feat(ci): add local retry action #4205 * feat(ci): ignore process kill failure in action #4205 * feat(ci): send SIGKILL instead of SIGTERM in action #4205 * chore(ci): add updated action #4205 * chore(ci): reduce tsan timeout #4205 * feat(ci): kill process without children #4205 * feat(ci): send SIGTERM to child in action #4205 * feat(ci): prolong tsan timeout #4205 * chore(ci): add missing newlines #4205 * fix(ci): revert sql server test FreeTDS version #4205 * feat(ci): add retry to all jobs #4205 * feat(ci): setup python for codeQL #4205 * chore(ci): disable throwing on codeql error #4205
2023-11-03 14:34:31 +01:00
# - uses: ./.github/actions/retry-action
# with:
# timeout_minutes: 90
# max_attempts: 3
# retry_on: any
# command: .\buildwin.ps1 -poco_base . -vs 170 -action build -linkmode all -config release -platform Win32 -samples -tests -omit "Crypto,NetSSL_OpenSSL,Data/MySQL,Data/PostgreSQL,JWT"
2022-02-19 17:23:31 +01:00
2023-11-10 12:06:21 +01:00
windows-2022-msvc-cmake:
runs-on: windows-2022
env:
CPPUNIT_IGNORE: >-
class CppUnit::TestCaller<class PathTest>.testFind,
class CppUnit::TestCaller<class ICMPSocketTest>.testSendToReceiveFrom,
class CppUnit::TestCaller<class ICMPClientTest>.testPing,
class CppUnit::TestCaller<class ICMPClientTest>.testBigPing,
class CppUnit::TestCaller<class ICMPSocketTest>.testMTU,
class CppUnit::TestCaller<class HTTPSClientSessionTest>.testProxy,
class CppUnit::TestCaller<class HTTPSStreamFactoryTest>.testProxy
steps:
- uses: actions/checkout@v3
- run: cmake -S. -Bcmake-build -DENABLE_NETSSL_WIN=ON -DENABLE_NETSSL=OFF -DENABLE_CRYPTO=OFF -DENABLE_JWT=OFF -DENABLE_DATA=ON -DENABLE_DATA_ODBC=ON -DENABLE_DATA_MYSQL=OFF -DENABLE_DATA_POSTGRESQL=OFF -DENABLE_TESTS=ON
2023-11-10 12:06:21 +01:00
- run: cmake --build cmake-build --config Release
CI improvements (#4236) * feat(ci): run pull request runs only on pull request open #4205 * feat(ci): add retry action for tsan #4205 * feat(ci): use local action for retrying tsan #4205 * fix(ci): use correct version of retry action #4205 * fix: make POSIX event thread safe * feat(ci): add info on retry action to ci.yml header #4205 * feat(ci): add linux mysql test #4205 * feat(ci): remove unused mysql containers from tests#4205 * feat(ci): add linux postgre test #4205 * feat(ci): add linux redis test #4205 * feat(ci): add linux mongodb tests #4205 * feat(ci): add mysql odbc test #4205 * chore(ci): rename tests #4205 * chore(ci): pin postgres and mysql versions #4205 * feat(ci): add odbc postgres tests #4205 * chore(ci): mysql odbc comment #4205 * chore(ci): disable windows 2019 job #4205 * feat(ci): add linux oracle tests #4205 * chore(ci): disable oracle tests #4205 * feat(ci): add sql server tests #4205 * chore(ci): disable postgres tests #4205 * chore(ci): add logging for task test #4205 * feat(ci): add local retry action #4205 * feat(ci): ignore process kill failure in action #4205 * feat(ci): send SIGKILL instead of SIGTERM in action #4205 * chore(ci): add updated action #4205 * chore(ci): reduce tsan timeout #4205 * feat(ci): kill process without children #4205 * feat(ci): send SIGTERM to child in action #4205 * feat(ci): prolong tsan timeout #4205 * chore(ci): add missing newlines #4205 * fix(ci): revert sql server test FreeTDS version #4205 * feat(ci): add retry to all jobs #4205 * feat(ci): setup python for codeQL #4205 * chore(ci): disable throwing on codeql error #4205
2023-11-03 14:34:31 +01:00
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
cd cmake-build;
ctest --output-on-failure -E "(DataMySQL)|(DataODBC)|(Redis)|(MongoDB)" -C Release
# missing asan dll path
2023-10-03 21:31:27 +02:00
# windows-2022-msvc-cmake-asan:
# runs-on: windows-2022
# env:
2023-10-04 06:30:41 +02:00
# CPPUNIT_IGNORE: >-
# class CppUnit::TestCaller<class PathTest>.testFind,
# class CppUnit::TestCaller<class ICMPSocketTest>.testSendToReceiveFrom,
# class CppUnit::TestCaller<class ICMPClientTest>.testPing,
# class CppUnit::TestCaller<class ICMPClientTest>.testBigPing,
# class CppUnit::TestCaller<class ICMPSocketTest>.testMTU,
# class CppUnit::TestCaller<class HTTPSClientSessionTest>.testProxy,
# class CppUnit::TestCaller<class HTTPSStreamFactoryTest>.testProxy
# steps:
2023-10-01 18:08:51 +02:00
# - uses: actions/checkout@v3
# - run: cmake -S. -Bcmake-build -DPOCO_SANITIZE_ASAN=ON -DENABLE_NETSSL_WIN=ON -DENABLE_NETSSL=OFF -DENABLE_CRYPTO=OFF -DENABLE_JWT=OFF -DENABLE_DATA=ON -DENABLE_DATA_ODBC=ON -DENABLE_DATA_MYSQL=OFF -DENABLE_DATA_POSTGRESQL=OFF -DENABLE_TESTS=ON
# - run: cmake --build cmake-build --config Debug
CI improvements (#4236) * feat(ci): run pull request runs only on pull request open #4205 * feat(ci): add retry action for tsan #4205 * feat(ci): use local action for retrying tsan #4205 * fix(ci): use correct version of retry action #4205 * fix: make POSIX event thread safe * feat(ci): add info on retry action to ci.yml header #4205 * feat(ci): add linux mysql test #4205 * feat(ci): remove unused mysql containers from tests#4205 * feat(ci): add linux postgre test #4205 * feat(ci): add linux redis test #4205 * feat(ci): add linux mongodb tests #4205 * feat(ci): add mysql odbc test #4205 * chore(ci): rename tests #4205 * chore(ci): pin postgres and mysql versions #4205 * feat(ci): add odbc postgres tests #4205 * chore(ci): mysql odbc comment #4205 * chore(ci): disable windows 2019 job #4205 * feat(ci): add linux oracle tests #4205 * chore(ci): disable oracle tests #4205 * feat(ci): add sql server tests #4205 * chore(ci): disable postgres tests #4205 * chore(ci): add logging for task test #4205 * feat(ci): add local retry action #4205 * feat(ci): ignore process kill failure in action #4205 * feat(ci): send SIGKILL instead of SIGTERM in action #4205 * chore(ci): add updated action #4205 * chore(ci): reduce tsan timeout #4205 * feat(ci): kill process without children #4205 * feat(ci): send SIGTERM to child in action #4205 * feat(ci): prolong tsan timeout #4205 * chore(ci): add missing newlines #4205 * fix(ci): revert sql server test FreeTDS version #4205 * feat(ci): add retry to all jobs #4205 * feat(ci): setup python for codeQL #4205 * chore(ci): disable throwing on codeql error #4205
2023-11-03 14:34:31 +01:00
# - uses: ./.github/actions/retry-action
# with:
# timeout_minutes: 90
# max_attempts: 3
# retry_on: any
# command: >-
# cd cmake-build;
# ctest --output-on-failure -E "(DataMySQL)|(DataODBC)|(Redis)|(MongoDB)" -C Debug
CI improvements (#4236) * feat(ci): run pull request runs only on pull request open #4205 * feat(ci): add retry action for tsan #4205 * feat(ci): use local action for retrying tsan #4205 * fix(ci): use correct version of retry action #4205 * fix: make POSIX event thread safe * feat(ci): add info on retry action to ci.yml header #4205 * feat(ci): add linux mysql test #4205 * feat(ci): remove unused mysql containers from tests#4205 * feat(ci): add linux postgre test #4205 * feat(ci): add linux redis test #4205 * feat(ci): add linux mongodb tests #4205 * feat(ci): add mysql odbc test #4205 * chore(ci): rename tests #4205 * chore(ci): pin postgres and mysql versions #4205 * feat(ci): add odbc postgres tests #4205 * chore(ci): mysql odbc comment #4205 * chore(ci): disable windows 2019 job #4205 * feat(ci): add linux oracle tests #4205 * chore(ci): disable oracle tests #4205 * feat(ci): add sql server tests #4205 * chore(ci): disable postgres tests #4205 * chore(ci): add logging for task test #4205 * feat(ci): add local retry action #4205 * feat(ci): ignore process kill failure in action #4205 * feat(ci): send SIGKILL instead of SIGTERM in action #4205 * chore(ci): add updated action #4205 * chore(ci): reduce tsan timeout #4205 * feat(ci): kill process without children #4205 * feat(ci): send SIGTERM to child in action #4205 * feat(ci): prolong tsan timeout #4205 * chore(ci): add missing newlines #4205 * fix(ci): revert sql server test FreeTDS version #4205 * feat(ci): add retry to all jobs #4205 * feat(ci): setup python for codeQL #4205 * chore(ci): disable throwing on codeql error #4205
2023-11-03 14:34:31 +01:00
feat(Data::AbstractSessionImpl): add autoCommit property and tests #4261 (#4262) * fix(Data::AbstracSessionImpl): protect autocommit feature handlers #4261 * chore(CI): re-enable mysql * MySQL SessionImpl: make sure autocommit mode is on when session is openend or reset. * PostgreSQL SessionImpl: reuse autocommit flag of AbstractSessionImpl. * Github workflow: re-activated linux-gcc-make-postgres * Fixed indentation in ci.yml * Fix for DataTest SQLExecutor: use connector * Data::Session: when parser is not used and autocommit mode is off, assume any SQL statement begins a transaction. * PostgreSQL: don't use SQL parser (it currently cannot handle placeholders). * PostgreSQL: added test sessionTransactionNoAutoCommit * PostgreSQL test suite: removed reference to generic SQLExecutor * PostgreSQL: fixes for sessionTransactionNoAutoCommit. * MySQL: added test sessionPoolAndUnicode (from #2801) * Fixed #define in sql-parser * Data generic testsuite: support numbered placeholders * PostgreSQL test suite: added missing include directory to Makefile. * Attempt to fix PostgreSQL Makefiles * PostgreSQL testsuite: added include path to Makefile * PostgreSQL testsuite: added PocoDataTest library to Makefile * DataTest SQLExecutor::formatSQL: don't use string_view * PostgreSQL test suite: delegated most tests to Poco::Data::Test * Makefile: added dependencies on Data-Tests * Weaken assumptions about async in generic transaction tests * Makefile: added dependency for Prometheus samples * Fix deadlock in DataTest SQLExecutor * PostgreSQL tests SQLExecutor: cleanup * feat(Data::AbstractSessionImpl): add autoCommit property and tests #4261 * Brought MySQL backend in line with _autoCommit flag of AbstractSessionImpl. --------- Co-authored-by: Friedrich Wilckens <frwilckens@gmail.com> Co-authored-by: Friedrich Wilckens <friedrich.wilckens@ingramcontent.com>
2023-12-22 09:27:34 +01:00
linux-gcc-make-mysql:
runs-on: ubuntu-22.04
services:
mysql:
image: mysql:8.1.0
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_USER: pocotest
MYSQL_PASSWORD: pocotest
MYSQL_DATABASE: pocotest
ports:
- 3306:3306
steps:
- uses: actions/checkout@v3
- run: sudo apt -y update && sudo apt -y install libssl-dev unixodbc-dev libmysqlclient-dev mysql-client
- run: ./configure --everything --no-samples --omit=ActiveRecord,ApacheConnector,CppParser,Crypto,Data/PostgreSQL,Data/SQLite,Data/ODBC,Encodings,JSON,JWT,MongoDB,Net,NetSSL_OpenSSL,NetSSL_Win,PDF,PageCompiler,PocoDoc,ProGen,Prometheus,Redis,SevenZip,Util,XML,Zip && make all -s -j4 && sudo make install
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
sudo -s
EXCLUDE_TESTS="ActiveRecord ApacheConnector CppParser CppUnit Crypto Data Data/PostgreSQL Data/ODBC Data/SQLite Encodings Foundation JSON JWT MongoDB Net NetSSL_OpenSSL NetSSL_Win PDF PageCompiler PocoDoc ProGen Prometheus Redis SevenZip Util XML Zip"
./ci/runtests.sh
CI improvements (#4236) * feat(ci): run pull request runs only on pull request open #4205 * feat(ci): add retry action for tsan #4205 * feat(ci): use local action for retrying tsan #4205 * fix(ci): use correct version of retry action #4205 * fix: make POSIX event thread safe * feat(ci): add info on retry action to ci.yml header #4205 * feat(ci): add linux mysql test #4205 * feat(ci): remove unused mysql containers from tests#4205 * feat(ci): add linux postgre test #4205 * feat(ci): add linux redis test #4205 * feat(ci): add linux mongodb tests #4205 * feat(ci): add mysql odbc test #4205 * chore(ci): rename tests #4205 * chore(ci): pin postgres and mysql versions #4205 * feat(ci): add odbc postgres tests #4205 * chore(ci): mysql odbc comment #4205 * chore(ci): disable windows 2019 job #4205 * feat(ci): add linux oracle tests #4205 * chore(ci): disable oracle tests #4205 * feat(ci): add sql server tests #4205 * chore(ci): disable postgres tests #4205 * chore(ci): add logging for task test #4205 * feat(ci): add local retry action #4205 * feat(ci): ignore process kill failure in action #4205 * feat(ci): send SIGKILL instead of SIGTERM in action #4205 * chore(ci): add updated action #4205 * chore(ci): reduce tsan timeout #4205 * feat(ci): kill process without children #4205 * feat(ci): send SIGTERM to child in action #4205 * feat(ci): prolong tsan timeout #4205 * chore(ci): add missing newlines #4205 * fix(ci): revert sql server test FreeTDS version #4205 * feat(ci): add retry to all jobs #4205 * feat(ci): setup python for codeQL #4205 * chore(ci): disable throwing on codeql error #4205
2023-11-03 14:34:31 +01:00
feat(Data::AbstractSessionImpl): add autoCommit property and tests #4261 (#4262) * fix(Data::AbstracSessionImpl): protect autocommit feature handlers #4261 * chore(CI): re-enable mysql * MySQL SessionImpl: make sure autocommit mode is on when session is openend or reset. * PostgreSQL SessionImpl: reuse autocommit flag of AbstractSessionImpl. * Github workflow: re-activated linux-gcc-make-postgres * Fixed indentation in ci.yml * Fix for DataTest SQLExecutor: use connector * Data::Session: when parser is not used and autocommit mode is off, assume any SQL statement begins a transaction. * PostgreSQL: don't use SQL parser (it currently cannot handle placeholders). * PostgreSQL: added test sessionTransactionNoAutoCommit * PostgreSQL test suite: removed reference to generic SQLExecutor * PostgreSQL: fixes for sessionTransactionNoAutoCommit. * MySQL: added test sessionPoolAndUnicode (from #2801) * Fixed #define in sql-parser * Data generic testsuite: support numbered placeholders * PostgreSQL test suite: added missing include directory to Makefile. * Attempt to fix PostgreSQL Makefiles * PostgreSQL testsuite: added include path to Makefile * PostgreSQL testsuite: added PocoDataTest library to Makefile * DataTest SQLExecutor::formatSQL: don't use string_view * PostgreSQL test suite: delegated most tests to Poco::Data::Test * Makefile: added dependencies on Data-Tests * Weaken assumptions about async in generic transaction tests * Makefile: added dependency for Prometheus samples * Fix deadlock in DataTest SQLExecutor * PostgreSQL tests SQLExecutor: cleanup * feat(Data::AbstractSessionImpl): add autoCommit property and tests #4261 * Brought MySQL backend in line with _autoCommit flag of AbstractSessionImpl. --------- Co-authored-by: Friedrich Wilckens <frwilckens@gmail.com> Co-authored-by: Friedrich Wilckens <friedrich.wilckens@ingramcontent.com>
2023-12-22 09:27:34 +01:00
# TODO tests sometimes failing on testTransaction and testReconnect
linux-gcc-make-postgres:
runs-on: ubuntu-22.04
services:
postgres:
image: postgres:16.0
env:
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
steps:
- uses: actions/checkout@v3
- run: sudo apt -y update && sudo apt -y install libssl-dev unixodbc-dev libmysqlclient-dev odbc-postgresql
- run: ./configure --everything --no-samples --omit=ActiveRecord,ApacheConnector,CppParser,Crypto,Data/MySQL,Data/ODBC,Data/SQLite,Encodings,JSON,JWT,MongoDB,Net,NetSSL_OpenSSL,NetSSL_Win,PDF,PageCompiler,PocoDoc,ProGen,Prometheus,Redis,SevenZip,Util,XML,Zip && make all -s -j4 && sudo make install
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
sudo -s
EXCLUDE_TESTS="ActiveRecord ApacheConnector CppParser CppUnit Crypto Data Data/ODBC Data/MySQL Data/SQLite Encodings Foundation JSON JWT MongoDB Net NetSSL_OpenSSL NetSSL_Win PDF PageCompiler PocoDoc ProGen Prometheus Redis SevenZip Util XML Zip"
./ci/runtests.sh
CI improvements (#4236) * feat(ci): run pull request runs only on pull request open #4205 * feat(ci): add retry action for tsan #4205 * feat(ci): use local action for retrying tsan #4205 * fix(ci): use correct version of retry action #4205 * fix: make POSIX event thread safe * feat(ci): add info on retry action to ci.yml header #4205 * feat(ci): add linux mysql test #4205 * feat(ci): remove unused mysql containers from tests#4205 * feat(ci): add linux postgre test #4205 * feat(ci): add linux redis test #4205 * feat(ci): add linux mongodb tests #4205 * feat(ci): add mysql odbc test #4205 * chore(ci): rename tests #4205 * chore(ci): pin postgres and mysql versions #4205 * feat(ci): add odbc postgres tests #4205 * chore(ci): mysql odbc comment #4205 * chore(ci): disable windows 2019 job #4205 * feat(ci): add linux oracle tests #4205 * chore(ci): disable oracle tests #4205 * feat(ci): add sql server tests #4205 * chore(ci): disable postgres tests #4205 * chore(ci): add logging for task test #4205 * feat(ci): add local retry action #4205 * feat(ci): ignore process kill failure in action #4205 * feat(ci): send SIGKILL instead of SIGTERM in action #4205 * chore(ci): add updated action #4205 * chore(ci): reduce tsan timeout #4205 * feat(ci): kill process without children #4205 * feat(ci): send SIGTERM to child in action #4205 * feat(ci): prolong tsan timeout #4205 * chore(ci): add missing newlines #4205 * fix(ci): revert sql server test FreeTDS version #4205 * feat(ci): add retry to all jobs #4205 * feat(ci): setup python for codeQL #4205 * chore(ci): disable throwing on codeql error #4205
2023-11-03 14:34:31 +01:00
linux-gcc-make-redis:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: sudo apt -y update && sudo apt -y install libssl-dev unixodbc-dev libmysqlclient-dev
- run: |
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list
sudo apt-get -y update
sudo apt-get -y install redis
- run: ./configure --everything --no-samples --omit=ActiveRecord,ApacheConnector,CppParser,Crypto,Data/ODBC,Data/MySQL,Data/SQLite,Data/PostgreSQL,Encodings,JSON,JWT,MongoDB,Net,NetSSL_OpenSSL,NetSSL_Win,PDF,PageCompiler,PocoDoc,ProGen,Prometheus,SevenZip,Util,XML,Zip && make all -s -j4 && sudo make install
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
sudo -s
EXCLUDE_TESTS="ActiveRecord ApacheConnector CppParser CppUnit Crypto Data Data/ODBC Data/MySQL Data/SQLite Data/PostgreSQL Encodings Foundation JSON JWT MongoDB Net NetSSL_OpenSSL NetSSL_Win PDF PageCompiler PocoDoc ProGen Prometheus SevenZip Util XML Zip"
./ci/runtests.sh
linux-gcc-make-mongodb:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: supercharge/mongodb-github-action@1.10.0
- run: sudo apt -y update && sudo apt -y install libssl-dev unixodbc-dev libmysqlclient-dev
- run: ./configure --everything --no-samples --omit=ActiveRecord,ApacheConnector,CppParser,Crypto,Data/ODBC,Data/MySQL,Data/SQLite,Data/PostgreSQL,Encodings,JSON,JWT,Net,NetSSL_OpenSSL,NetSSL_Win,PDF,PageCompiler,PocoDoc,ProGen,Prometheus,Redis,SevenZip,Util,XML,Zip && make all -s -j4 && sudo make install
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
sudo -s
EXCLUDE_TESTS="ActiveRecord ApacheConnector CppParser CppUnit Crypto Data Data/ODBC Data/MySQL Data/SQLite Data/PostgreSQL Encodings Foundation JSON JWT Net NetSSL_OpenSSL NetSSL_Win PDF PageCompiler PocoDoc ProGen Prometheus Redis SevenZip Util XML Zip"
./ci/runtests.sh
linux-gcc-make-odbc:
runs-on: ubuntu-22.04
services:
mysql:
image: mysql:8.1.0
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_USER: pocotest
MYSQL_PASSWORD: pocotest
MYSQL_DATABASE: pocotest
ports:
- 3306:3306
postgres:
image: postgres:16.0
env:
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
oracle:
image: container-registry.oracle.com/database/express:21.3.0-xe
env:
ORACLE_PWD: poco
ports:
- 1521:1521
sqlserver:
image: mcr.microsoft.com/mssql/server:2022-latest
env:
MSSQL_PID: Express
ACCEPT_EULA: Y
MSSQL_SA_PASSWORD: Pocopoco1
ports:
- 1433:1433
steps:
- uses: actions/checkout@v3
- run: sudo apt -y update && sudo apt -y install libssl-dev unixodbc-dev libmysqlclient-dev mysql-client alien libaio1 gnupg2 curl #odbc-postgresql
- run: ./configure --everything --no-samples --omit=ActiveRecord,ApacheConnector,CppParser,Crypto,Data/MySQL,Data/PostgreSQL,Data/SQLite,Encodings,JSON,JWT,MongoDB,Net,NetSSL_OpenSSL,NetSSL_Win,PDF,PageCompiler,PocoDoc,ProGen,Prometheus,Redis,SevenZip,Util,XML,Zip && make all -s -j4 && sudo make install
# - name: Setup MySQL ODBC connector
# run: |
# wget https://dev.mysql.com/get/Downloads/Connector-ODBC/8.2/mysql-connector-odbc_8.2.0-1ubuntu22.04_amd64.deb
# wget https://dev.mysql.com/get/Downloads/MySQL-8.2/mysql-community-client-plugins_8.2.0-1ubuntu22.04_amd64.deb
# sudo dpkg -i mysql-community-client-plugins_8.2.0-1ubuntu22.04_amd64.deb mysql-connector-odbc_8.2.0-1ubuntu22.04_amd64.deb
# - name: Setup Oracle ODBC connector
# run: |
# wget https://download.oracle.com/otn_software/linux/instantclient/2112000/oracle-instantclient-basic-21.12.0.0.0-1.x86_64.rpm
# wget https://download.oracle.com/otn_software/linux/instantclient/2112000/oracle-instantclient-sqlplus-21.12.0.0.0-1.x86_64.rpm
# wget https://download.oracle.com/otn_software/linux/instantclient/2112000/oracle-instantclient-odbc-21.12.0.0.0-1.x86_64.rpm
# sudo alien --scripts ./oracle-instantclient-basic-21.12.0.0.0-1.x86_64.rpm
# sudo alien --scripts ./oracle-instantclient-sqlplus-21.12.0.0.0-1.x86_64.rpm
# sudo alien --scripts ./oracle-instantclient-odbc-21.12.0.0.0-1.x86_64.rpm
# sudo apt install ./oracle-instantclient-basic_21.12.0.0.0-2_amd64.deb
# sudo apt install ./oracle-instantclient-sqlplus_21.12.0.0.0-2_amd64.deb
# sudo apt install ./oracle-instantclient-odbc_21.12.0.0.0-2_amd64.deb
# sudo /usr/lib/oracle/21/client64/bin/odbc_update_ini.sh / "/usr/lib/oracle/21/client64/lib" "" "" "/etc/odbc.ini"
- name: Setup SQL Server ODBC connector
run: |
curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc
curl https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list
sudo apt-get update
sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18
- uses: ./.github/actions/retry-action
with:
timeout_minutes: 90
max_attempts: 3
retry_on: any
command: >-
sudo -s
EXCLUDE_TESTS="ActiveRecord ApacheConnector CppParser CppUnit Crypto Data Data/MySQL Data/PostgreSQL Data/SQLite Encodings Foundation JSON JWT MongoDB Net NetSSL_OpenSSL NetSSL_Win PDF PageCompiler PocoDoc ProGen Prometheus Redis SevenZip Util XML Zip"
./ci/runtests.sh