Skip to content

Commit

Permalink
Experiment: build() in tests-pool
Browse files Browse the repository at this point in the history
  • Loading branch information
mmastrac committed Jul 8, 2024
1 parent 6ca4636 commit f6cd16b
Show file tree
Hide file tree
Showing 4 changed files with 347 additions and 31 deletions.
4 changes: 4 additions & 0 deletions .github/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ all: workflows/nightly.yml \
workflows/dryrun.yml \
workflows/ls-nightly.yml \
workflows/tests.yml \
workflows/tests-pool.yml \
workflows/tests-managed-pg.yml \
workflows/tests-ha.yml \
workflows/tests-pg-versions.yml \
Expand All @@ -19,6 +20,9 @@ workflows/%.yml: workflows.src/%.tpl.yml workflows.src/%.targets.yml workflows.s
workflows.src/tests.tpl.yml: workflows.src/tests.inc.yml
touch $(ROOT)/workflows.src/tests.tpl.yml

workflows.src/tests-pool.tpl.yml: workflows.src/tests.inc.yml
touch $(ROOT)/workflows.src/tests-pool.tpl.yml

workflows.src/tests-managed-pg.tpl.yml: workflows.src/tests.inc.yml
touch $(ROOT)/workflows.src/tests-managed-pg.tpl.yml

Expand Down
1 change: 1 addition & 0 deletions .github/workflows.src/tests-pool.targets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data:
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<% from "tests.inc.yml" import build -%>

name: Pool Simulation Test

on:
Expand All @@ -21,38 +23,8 @@ 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
<%- call build() -%>

- name: Run the pool simulation test
env:
Expand All @@ -70,3 +42,4 @@ jobs:
cwd: pool-simulation
author_name: github-actions
author_email: 41898282+github-actions[bot]@users.noreply.github.com
<%- endcall %>
Loading

0 comments on commit f6cd16b

Please sign in to comment.