PCSM-236: Better error message for unsupported operations #313
Workflow file for this run
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
| # .github/workflows/e2e-tests.yml | |
| name: E2E Tests | |
| on: [pull_request] | |
| permissions: | |
| contents: read | |
| jobs: | |
| replset: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.13" | |
| - name: Install Poetry | |
| run: | | |
| curl -sSL https://install.python-poetry.org | python3 - | |
| echo "$HOME/.local/bin" >> $GITHUB_PATH | |
| - name: Configure Poetry | |
| run: | | |
| poetry config virtualenvs.create false | |
| - name: Install Python dependencies | |
| run: | | |
| poetry install --no-interaction --no-root | |
| - name: Update hosts file | |
| run: | | |
| echo "127.0.0.1 rs00 rs01 rs02 rs10 rs11 rs12" | sudo tee -a /etc/hosts | |
| - name: Start source and target ReplicaSet clusters | |
| run: | | |
| .github/workflows/rs/run | |
| - name: Build the project | |
| run: | | |
| make test-build | |
| - name: Run tests (pytest) | |
| run: | | |
| export TEST_SOURCE_URI=mongodb://rs00:30000 | |
| export TEST_TARGET_URI=mongodb://rs10:30100 | |
| export TEST_PCSM_URL=http://127.0.0.1:2242 | |
| export TEST_PCSM_BIN=./bin/pcsm_test | |
| poetry run pytest tests/test_collections.py tests/test_documents.py tests/test_indexes.py tests/test_selective.py tests/test_transactions.py | |
| - name: Teardown Docker Compose | |
| if: always() | |
| run: docker compose -f .github/workflows/sh/compose.yml down | |
| sharded: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.13" | |
| - name: Install Poetry | |
| run: | | |
| curl -sSL https://install.python-poetry.org | python3 - | |
| echo "$HOME/.local/bin" >> $GITHUB_PATH | |
| - name: Configure Poetry | |
| run: | | |
| poetry config virtualenvs.create false | |
| - name: Install Python dependencies | |
| run: | | |
| poetry install --no-interaction --no-root | |
| - name: Update hosts file | |
| run: | | |
| echo "127.0.0.1 src-mongos src-cfg0 src-rs00 src-rs01 tgt-mongos tgt-cfg0 tgt-rs00 tgt-rs01" | sudo tee -a /etc/hosts | |
| - name: Start source and target clusters | |
| run: | | |
| .github/workflows/sh/run | |
| - name: Build the project | |
| run: | | |
| make test-build | |
| - name: Run tests (pytest) | |
| run: | | |
| export TEST_SOURCE_URI=mongodb://src-mongos:27017 | |
| export TEST_TARGET_URI=mongodb://tgt-mongos:29017 | |
| export TEST_PCSM_URL=http://127.0.0.1:2242 | |
| export TEST_PCSM_BIN=./bin/pcsm_test | |
| poetry run pytest | |
| - name: Teardown Docker Compose | |
| if: always() | |
| run: docker compose -f .github/workflows/sh/compose.yml down |