Skip to content

Commit

Permalink
chore: run Aspect Workflows setup step on small instances
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan committed Dec 11, 2023
1 parent 13aefd6 commit 68131ca
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 40 deletions.
51 changes: 13 additions & 38 deletions .aspect/workflows/config.yaml
Original file line number Diff line number Diff line change
@@ -1,44 +1,19 @@
---
queue: bazel-lib
queue: bazel-lib-small
env:
CC: /bin/false
workspaces:
- .
- e2e/smoke:
tasks:
format:
without: true
gazelle:
without: true
buildifier:
without: true
- e2e/coreutils:
tasks:
format:
without: true
gazelle:
without: true
buildifier:
without: true
- e2e/copy_to_directory:
tasks:
format:
without: true
gazelle:
without: true
buildifier:
without: true
- e2e/external_copy_to_directory:
tasks:
format:
without: true
gazelle:
without: true
buildifier:
without: true
- .:
tasks:
format:
soft_fail: false
gazelle:
buildifier:
test:
queue: bazel-lib
- e2e/smoke
- e2e/coreutils
- e2e/copy_to_directory
- e2e/external_copy_to_directory
tasks:
format:
soft_fail: false
gazelle:
buildifier:
test:
18 changes: 17 additions & 1 deletion .aspect/workflows/terraform/workflows.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ module "aspect_workflows" {
image_id = data.google_compute_image.runner_image.id
use_preemptible = true
}
small = {
# Aspect Workflows requires machine types that have local SSD drives. See
# https://cloud.google.com/compute/docs/machine-resource#machine_type_comparison for full list
# of machine types availble on GCP.
machine_type = "n1-standard-1"
image_id = data.google_compute_image.runner_image.id
use_preemptible = true
}
}

# CircleCI runner group definitions
Expand All @@ -66,10 +74,18 @@ module "aspect_workflows" {
max_runners = 10
min_runners = 0
resource_type = "default"
scale_out_factor = 7
scaling_polling_frequency = 3 # check for queued jobs every 20s
warming = true
}
small = {
agent_idle_timeout_min = 1
job_max_run_time_min = 5 * 60
max_runners = 10
min_runners = 0
resource_type = "small"
scaling_polling_frequency = 3 # check for queued jobs every 20s
warming = false # don't warm for faster bootstrap; these runners won't be running large builds
}
# The warming runner group is used for the periodic warming job that creates
# warming archives for use by other runner groups.
warming = {
Expand Down
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ workflows:
jobs:
- legacy
- aspect-workflows/setup:
resource_class: aspect-build/bazel-lib
resource_class: aspect-build/bazel-lib-small
context:
- slack

0 comments on commit 68131ca

Please sign in to comment.