Skip to content

feat(telegram): normalize OTC symbols and add live bridge smoke #489

feat(telegram): normalize OTC symbols and add live bridge smoke

feat(telegram): normalize OTC symbols and add live bridge smoke #489

Workflow file for this run

name: Ubuntu Smoke
on:
pull_request:
push:
branches:
- main
jobs:
trade-record-db:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python for tg-client-stdio
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install tg-client-stdio worker
run: python -m pip install -e "external/tg-client-stdio[telegram]"
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libssl-dev libcurl4-openssl-dev
- name: Configure
run: cmake -S . -B build-linux -DOPTIONX_BUILD_DEPS=ON -DOPTIONX_BUILD_TESTS=ON -DOPTIONX_BUILD_EXAMPLES=ON
- name: Build trade_record_db_test
run: cmake --build build-linux --target trade_record_db_test -j
- name: Run trade_record_db_test
run: ./build-linux/trade_record_db_test --gtest_brief=1
- name: Build legacy_trading_bridge_test
run: cmake --build build-linux --target legacy_trading_bridge_test -j
- name: Run legacy_trading_bridge_test
run: ./build-linux/legacy_trading_bridge_test --gtest_brief=1
- name: Build bridge_umbrella_include_test
run: cmake --build build-linux --target bridge_umbrella_include_test -j
- name: Run bridge_umbrella_include_test
run: ./build-linux/bridge_umbrella_include_test --gtest_brief=1
- name: Build bridge_host_test
run: cmake --build build-linux --target bridge_host_test -j
- name: Run bridge_host_test
run: ./build-linux/bridge_host_test --gtest_brief=1
- name: Build bot_binary_protocol_test
run: cmake --build build-linux --target bot_binary_protocol_test -j
- name: Run bot_binary_protocol_test
run: ./build-linux/bot_binary_protocol_test --gtest_brief=1
- name: Build bot_binary_bridge_test
run: cmake --build build-linux --target bot_binary_bridge_test -j
- name: Run bot_binary_bridge_test
run: ./build-linux/bot_binary_bridge_test --gtest_brief=1
- name: Build protocol_v1_bridge_test
run: cmake --build build-linux --target protocol_v1_bridge_test -j
- name: Run protocol_v1_bridge_test
run: ./build-linux/protocol_v1_bridge_test --gtest_brief=1
- name: Build metatrader_file_config_include_test
run: cmake --build build-linux --target metatrader_file_config_include_test -j
- name: Run metatrader_file_config_include_test
run: ./build-linux/metatrader_file_config_include_test --gtest_brief=1
- name: Build metatrader_file_bridge_test
run: cmake --build build-linux --target metatrader_file_bridge_test -j
- name: Run metatrader_file_bridge_test
run: ./build-linux/metatrader_file_bridge_test --gtest_brief=1
- name: Build metatrader_file_command_writer_test
run: cmake --build build-linux --target metatrader_file_command_writer_test -j
- name: Run metatrader_file_command_writer_test
run: ./build-linux/metatrader_file_command_writer_test --gtest_brief=1
- name: Build metatrader_file_bridge_smoke
run: cmake --build build-linux --target metatrader_file_bridge_smoke -j
- name: Run metatrader_file_bridge_smoke
run: ./build-linux/metatrader_file_bridge_smoke --self-test
- name: Build metatrader_file_command_writer_smoke
run: cmake --build build-linux --target metatrader_file_command_writer_smoke -j
- name: Run metatrader_file_command_writer_smoke
run: ./build-linux/metatrader_file_command_writer_smoke --self-test
- name: Build metatrader_file_end_to_end_smoke
run: cmake --build build-linux --target metatrader_file_end_to_end_smoke -j
- name: Run metatrader_file_end_to_end_smoke
run: ./build-linux/metatrader_file_end_to_end_smoke --self-test
- name: Build bot_binary_command_builder_smoke
run: cmake --build build-linux --target bot_binary_command_builder_smoke -j
- name: Run bot_binary_command_builder_smoke
run: ./build-linux/bot_binary_command_builder_smoke --self-test
- name: Build bot_binary_bridge_smoke
run: cmake --build build-linux --target bot_binary_bridge_smoke -j
- name: Run bot_binary_bridge_smoke
run: ./build-linux/bot_binary_bridge_smoke --self-test
- name: Build named_pipe_bridge_smoke
run: cmake --build build-linux --target named_pipe_bridge_smoke -j
- name: Run named_pipe_bridge_smoke
run: ./build-linux/named_pipe_bridge_smoke --self-test
- name: Build protocol_v1_bridge_smoke
run: cmake --build build-linux --target protocol_v1_bridge_smoke -j
- name: Run protocol_v1_bridge_smoke
run: ./build-linux/protocol_v1_bridge_smoke --self-test
- name: Build protocol_v1_named_pipe_bridge_smoke
run: cmake --build build-linux --target protocol_v1_named_pipe_bridge_smoke -j
- name: Run protocol_v1_named_pipe_bridge_smoke
run: ./build-linux/protocol_v1_named_pipe_bridge_smoke --self-test
- name: Build telegram_archive_parser_smoke
run: cmake --build build-linux --target telegram_archive_parser_smoke -j
- name: Run telegram_archive_parser_smoke
run: ./build-linux/telegram_archive_parser_smoke
- name: Build market_data_subscription_contract_test
run: cmake --build build-linux --target market_data_subscription_contract_test -j
- name: Run market_data_subscription_contract_test
run: ./build-linux/market_data_subscription_contract_test --gtest_brief=1
- name: Build market_data_hub_test
run: cmake --build build-linux --target market_data_hub_test -j
- name: Run market_data_hub_test
run: ./build-linux/market_data_hub_test --gtest_brief=1
- name: Build account_info_hub_test
run: cmake --build build-linux --target account_info_hub_test -j
- name: Run account_info_hub_test
run: ./build-linux/account_info_hub_test --gtest_brief=1
- name: Build trading_condition_hub_test
run: cmake --build build-linux --target trading_condition_hub_test -j
- name: Run trading_condition_hub_test
run: ./build-linux/trading_condition_hub_test --gtest_brief=1
- name: Build trade_manager_test
run: cmake --build build-linux --target trade_manager_test -j
- name: Run trade_manager_test
run: ./build-linux/trade_manager_test --gtest_brief=1
- name: Build intrade_bar_api_response_test
run: cmake --build build-linux --target intrade_bar_api_response_test -j
- name: Run intrade_bar_api_response_test
run: ./build-linux/intrade_bar_api_response_test --gtest_brief=1
- name: Configure submodule consumer
run: cmake -S tests/cmake/submodule_consumer -B build-submodule-consumer
- name: Build submodule consumer
run: cmake --build build-submodule-consumer --target optionx_submodule_consumer -j
- name: Run submodule consumer
run: ./build-submodule-consumer/optionx_submodule_consumer
- name: Run tg-client-stdio Python tests
run: python -m unittest discover -s external/tg-client-stdio/tests/python
- name: Run tg-client-stdio OptionX consumer smoke
run: python tests/tg_client_stdio_consumer_smoke.py
- name: Configure tg-client-stdio C++ tests
run: cmake -S external/tg-client-stdio -B build-tg-client-stdio -DTG_CLIENT_STDIO_BUILD_TESTS=ON
- name: Build tg-client-stdio C++ tests
run: cmake --build build-tg-client-stdio -j
- name: Run tg-client-stdio C++ tests
run: ctest --test-dir build-tg-client-stdio --output-on-failure