-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve connection pool and Rust CI tasks (#7536)
This improves two parts of the CI in preparation for landing the Rust connection pool in #7478: - The pool tests use the template system to allow for the Rust code to build during the QoS benchmarks (not needed here, but will be in a later PR) - The Rust hash is generated by reading Cargo.toml rather than hard-coding projects
- Loading branch information
Showing
11 changed files
with
419 additions
and
59 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
data: |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<% from "tests.inc.yml" import build, calc_cache_key -%> | ||
|
||
name: Pool Simulation Test | ||
|
||
on: | ||
|
@@ -7,26 +9,28 @@ on: | |
- pool-test | ||
paths: | ||
- 'edb/server/connpool/**' | ||
- 'edb/server/conn_pool/**' | ||
- 'tests/test_server_pool.py' | ||
- '.github/workflows/test-pool.yml' | ||
- '.github/workflows/tests-pool.yml' | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- 'edb/server/connpool/**' | ||
- 'edb/server/conn_pool/**' | ||
- 'tests/test_server_pool.py' | ||
- '.github/workflows/test-pool.yml' | ||
- '.github/workflows/tests-pool.yml' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
concurrency: pool-test | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
submodules: false | ||
<%- call build() -%> | ||
- name: Compute cache keys | ||
run: | | ||
<< calc_cache_key()|indent >> | ||
<%- endcall %> | ||
|
||
- uses: actions/checkout@v4 | ||
if: startsWith(github.ref, 'refs/heads') | ||
|
@@ -35,31 +39,13 @@ jobs: | |
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: | | ||
mkdir -p pool-simulation/reports | ||
python tests/test_server_pool.py | ||
- uses: EndBug/[email protected] | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.