Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add GitHub Actions workflow for verify guides #1442

Merged
merged 6 commits into from
Sep 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/verify-guides-billion-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Verify Giudes (billion scale image search)

on:
workflow_dispatch: # Allow manual triggering of this workflow.

push:
branches: ["master"]
paths:
- ".github/workflows/verify-guides-billion-image.yml" # Test changes to this file
- "billion-scale-image-search/"

pull_request:
branches: ["master"]
paths:
- ".github/workflows/verify-guides-billion-image.yml" # Test changes to this file
- "billion-scale-image-search/"

jobs:
test:
uses: vespa-engine/gh-actions/.github/workflows/verify-markdown-guides.yml@main
with:
test-file: "billion-scale-image-search/README.md"
22 changes: 22 additions & 0 deletions .github/workflows/verify-guides-billion-vector.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Verify Giudes (billion scale vector search)

on:
workflow_dispatch: # Allow manual triggering of this workflow.

push:
branches: ["master"]
paths:
- ".github/workflows/verify-guides-billion-vector.yml" # Test changes to this file
- "billion-scale-vector-search/"

pull_request:
branches: ["master"]
paths:
- ".github/workflows/verify-guides-billion-vector.yml" # Test changes to this file
- "billion-scale-vector-search/"

jobs:
test:
uses: vespa-engine/gh-actions/.github/workflows/verify-markdown-guides.yml@main
with:
test-file: "billion-scale-vector-search/README.md"
28 changes: 28 additions & 0 deletions .github/workflows/verify-guides-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Verify Giudes (Main)

on:
workflow_dispatch: # Allow manual triggering of this workflow.

push:
branches: ["master"]
paths-ignore:
- "billion-scale-vector-search/"
- "billion-scale-image-search/"
- "examples/model-deployment/"
- ".github/**"
- "!.github/workflows/verify-guides-main.yml"

pull_request:
branches: ["master"]
paths-ignore:
- "billion-scale-vector-search/"
- "billion-scale-image-search/"
- "examples/model-deployment/"
- ".github/**"
- "!.github/workflows/verify-guides-main.yml"

jobs:
main:
uses: vespa-engine/gh-actions/.github/workflows/verify-markdown-guides.yml@main
with:
test-config-path: "test/_test_config.yml"
36 changes: 0 additions & 36 deletions screwdriver.yaml
Original file line number Diff line number Diff line change
@@ -20,42 +20,6 @@ shared:
ln -sf /opt/vespa-cli_${VESPA_CLI_VERSION}_linux_amd64/bin/vespa /usr/local/bin/

jobs:
verify-billion-scale-vector-search:
requires: [~pr, ~commit]
sourcePaths: ["billion-scale-vector-search/"]
image: vespaengine/vespa-build-almalinux-8:latest
annotations:
screwdriver.cd/cpu: TURBO
screwdriver.cd/ram: TURBO
screwdriver.cd/dockerEnabled: true
screwdriver.cd/dockerCpu: TURBO
screwdriver.cd/dockerRam: TURBO
screwdriver.cd/timeout: 180
screwdriver.cd/buildPeriodically: H H(0-5) * * 1-5 # some time between 12:00 AM UTC (midnight) to 5:59 AM UTC Mon-Fri
steps:
- *install-deps
- run-tests: |
cd $SD_DIND_SHARE_PATH
$SD_SOURCE_DIR/test/test.py -w $SD_SOURCE_DIR $SD_SOURCE_DIR/billion-scale-vector-search/README.md

verify-billion-scale-image-search:
requires: [~pr, ~commit]
sourcePaths: ["billion-scale-image-search/"]
image: vespaengine/vespa-build-almalinux-8:latest
annotations:
screwdriver.cd/cpu: TURBO
screwdriver.cd/ram: TURBO
screwdriver.cd/dockerEnabled: true
screwdriver.cd/dockerCpu: TURBO
screwdriver.cd/dockerRam: TURBO
screwdriver.cd/timeout: 300
screwdriver.cd/buildPeriodically: H H(0-5) * * 1-5 # some time between 12:00 AM UTC (midnight) to 5:59 AM UTC Mon-Fri
steps:
- *install-deps
- run-tests: |
cd $SD_DIND_SHARE_PATH
$SD_SOURCE_DIR/test/test.py -w $SD_SOURCE_DIR $SD_SOURCE_DIR/billion-scale-image-search/README.md

verify-notebooks:
requires: [~commit, ~pr]
sourcePaths: ["examples/model-deployment/", "text-image-search/"]