Rust connection pool implementation #246
Workflow file for this run
This file contains 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
name: Pool Simulation Test | |
on: | |
push: | |
branches: | |
- master | |
- pool-test | |
paths: | |
- 'edb/server/connpool/**' | |
- 'tests/test_server_pool.py' | |
- '.github/workflows/test-pool.yml' | |
pull_request: | |
branches: | |
- master | |
paths: | |
- 'edb/server/connpool/**' | |
- 'tests/test_server_pool.py' | |
- '.github/workflows/test-pool.yml' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
concurrency: pool-test | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: false | |
- uses: actions/checkout@v4 | |
if: startsWith(github.ref, 'refs/heads') | |
with: | |
repository: edgedb/edgedb-pool-simulation | |
path: pool-simulation | |
token: ${{ secrets.GITHUB_CI_BOT_TOKEN }} | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12.2' | |
- name: Generate requirements.txt | |
run: | | |
echo 'uvloop==0.19.0' > requirements.txt | |
mkdir -p pool-simulation/reports | |
- name: Handle virtualenv | |
uses: syphar/[email protected] | |
id: venv-cache | |
- name: Install Python dependencies | |
if: steps.venv-cache.outputs.cache-hit != 'true' | |
run: | | |
pip install -r requirements.txt | |
- name: Run the pool simulation test | |
env: | |
PYTHONPATH: . | |
SIMULATION_CI: yes | |
TIME_SCALE: 10 | |
run: | | |
python tests/test_server_pool.py | |
- uses: EndBug/[email protected] | |
if: ${{ always() }} | |
continue-on-error: true | |
with: | |
branch: main | |
cwd: pool-simulation | |
author_name: github-actions | |
author_email: 41898282+github-actions[bot]@users.noreply.github.com |