Skip to content

Commit

Permalink
add scale
Browse files Browse the repository at this point in the history
  • Loading branch information
fjetter committed Dec 11, 2024
1 parent a1fb800 commit f0abc36
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/ab_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,19 @@ jobs:
- name: Convert dask config into environment variables
run: python ci/scripts/dask_config_to_env.py AB_environments/${{ matrix.runtime-version }}.dask.yaml >> $GITHUB_ENV

- name: Google auth
uses: "google-github-actions/auth@v2"
with:
credentials_json: "${{ secrets.GCP_CREDENTIALS }}"

- name: Run Coiled Runtime Tests
env:
DASK_COILED__TOKEN: ${{ secrets.COILED_BENCHMARK_BOT_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.RUNTIME_CI_BOT_AWS_ACCESS_KEY_ID }}
AWS_DEFAULT_REGION: us-east-2 # this is needed for boto for some reason
AWS_SECRET_ACCESS_KEY: ${{ secrets.RUNTIME_CI_BOT_AWS_SECRET_ACCESS_KEY }}
AZURE_STORAGE_ACCOUNT_NAME: ${{ secrets.AZURE_STORAGE_ACCOUNT_NAME}}
AZURE_STORAGE_SAS_TOKEN: ${{ secrets.AZURE_STORAGE_SAS_TOKEN}}
PYTHON_STUB_PAT: ${{ secrets.PYTHON_STUB_PAT }}
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
Expand Down
3 changes: 3 additions & 0 deletions AB_environments/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ markers: geo_execution
# markers: shuffle_p2p or shuffle_tasks
# markers: not shuffle_tasks

geo:
scale: small

# Enable specific H2O datasets
h2o_datasets:
# - 0.5 GB (csv)
Expand Down
4 changes: 3 additions & 1 deletion ci/scripts/discover_ab_environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ def build_json() -> JSONOutput:
pytest_args.append(f"-m '{cfg['markers']}'")
for target in cfg["targets"]:
pytest_args.append(f"'{target}'")

for geo in cfg.get("geo", {}):
if scale := geo.get("scale"):
pytest_args.append(f"--scale {scale}")
return {
"run_AB": True,
"repeat": list(range(1, cfg["repeat"] + 1)),
Expand Down

0 comments on commit f0abc36

Please sign in to comment.