Skip to content

Commit

Permalink
chore: switch to new Aspect Workflows OSS staging deployment (#1522)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan authored Mar 15, 2024
1 parent d911edc commit d481756
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 353 deletions.
14 changes: 6 additions & 8 deletions .aspect/workflows/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
# Aspect Workflows demonstration deployment

This deployment of [Aspect Workflows](https://www.aspect.build/workflows) is configured to run on GCP + Buildkite.
This deployment of [Aspect Workflows](https://www.aspect.build/workflows) is configured to run on Buildkite.

You can see this Aspect Workflows demonstration deployment live at
https://buildkite.com/aspect/rules-js.

The three components of the configuration are,
The two components of the configuration for this repository are,

1. Aspect Workflows terraform module
1. Aspect Workflows configuration yaml
1. Buildkite pipeline configuration (in the Buildkite UI)

## Aspect Workflows terraform module

This is found under the [.aspect/workflows/terraform](./terraform) directory.

## Aspect Workflows configuration yaml

This is the [config.yaml](./config.yaml) file in this directory.
Expand All @@ -37,9 +32,12 @@ steps:
commands:
- "rosetta steps | buildkite-agent pipeline upload"
agents:
queue: aspect-default
queue: aspect-small
```

> [!IMPORTANT]
> The Setup Aspect Workflows step above is configured to run on the `aspect-small` queue that is serviced by a runner group made up of lightweight and inexpensive `e2.small` GCP VM instances.
### Scheduled warming pipeline configuration

The scheduled warming pipeline found at https://buildkite.com/aspect/rules-js-warming is
Expand Down
41 changes: 35 additions & 6 deletions .aspect/workflows/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ workspaces:
label: rules_js
tasks:
- test:
queue: aspect-default
e2e/bzlmod:
icon: bazel
tasks:
- test:
queue: aspect-default
- format:
without: true
- buildifier:
Expand All @@ -23,6 +24,8 @@ workspaces:
e2e/js_image_oci:
icon: linux
tasks:
- test:
queue: aspect-default
- format:
without: true
- buildifier:
Expand All @@ -36,6 +39,8 @@ workspaces:
e2e/npm_link_package:
icon: npm
tasks:
- test:
queue: aspect-medium
- format:
without: true
- buildifier:
Expand All @@ -47,6 +52,8 @@ workspaces:
e2e/npm_link_package-esm:
icon: npm
tasks:
- test:
queue: aspect-medium
- format:
without: true
- buildifier:
Expand All @@ -58,6 +65,8 @@ workspaces:
e2e/npm_translate_lock:
icon: npm
tasks:
- test:
queue: aspect-medium
- format:
without: true
- buildifier:
Expand All @@ -69,6 +78,8 @@ workspaces:
e2e/npm_translate_lock_empty:
icon: npm
tasks:
- test:
queue: aspect-medium
- format:
without: true
- buildifier:
Expand All @@ -80,6 +91,8 @@ workspaces:
e2e/npm_translate_lock_multi:
icon: npm
tasks:
- test:
queue: aspect-medium
- format:
without: true
- buildifier:
Expand All @@ -91,6 +104,8 @@ workspaces:
e2e/npm_translate_lock_partial_clone:
icon: npm
tasks:
- test:
queue: aspect-medium
- format:
without: true
- buildifier:
Expand All @@ -102,6 +117,8 @@ workspaces:
e2e/npm_translate_lock_subdir_patch:
icon: npm
tasks:
- test:
queue: aspect-medium
- format:
without: true
- buildifier:
Expand All @@ -117,6 +134,8 @@ workspaces:
e2e/npm_translate_package_lock:
icon: npm
tasks:
- test:
queue: aspect-medium
- format:
without: true
- buildifier:
Expand All @@ -128,6 +147,8 @@ workspaces:
e2e/npm_translate_yarn_lock:
icon: yarn
tasks:
- test:
queue: aspect-medium
- format:
without: true
- buildifier:
Expand All @@ -139,6 +160,8 @@ workspaces:
e2e/package_json_module:
icon: npm
tasks:
- test:
queue: aspect-medium
- format:
without: true
- buildifier:
Expand All @@ -150,6 +173,8 @@ workspaces:
e2e/pnpm_workspace:
icon: pnpm
tasks:
- test:
queue: aspect-medium
- format:
without: true
- buildifier:
Expand All @@ -161,6 +186,8 @@ workspaces:
e2e/pnpm_workspace_rerooted:
icon: pnpm
tasks:
- test:
queue: aspect-medium
- format:
without: true
- buildifier:
Expand All @@ -172,6 +199,8 @@ workspaces:
e2e/rules_foo:
icon: js
tasks:
- test:
queue: aspect-medium
- format:
without: true
- buildifier:
Expand All @@ -183,6 +212,8 @@ workspaces:
e2e/vendored_node:
icon: js
tasks:
- test:
queue: aspect-medium
- format:
without: true
- buildifier:
Expand All @@ -198,16 +229,14 @@ tasks:
- branch_freshness:
update_strategy: none
- test:
queue: aspect-small
- format:
queue: aspect-small
queue: aspect-medium
- buildifier:
queue: aspect-small
queue: aspect-medium
- configure:
queue: aspect-small
queue: aspect-medium
- delivery:
auto_deliver: true
queue: aspect-default
rules:
- deliverable: 'attr("tags", "\bdeliverable\b", //...)'
condition:
Expand Down
133 changes: 0 additions & 133 deletions .aspect/workflows/terraform/.terraform.lock.hcl

This file was deleted.

7 changes: 0 additions & 7 deletions .aspect/workflows/terraform/README.md

This file was deleted.

15 changes: 0 additions & 15 deletions .aspect/workflows/terraform/main.tf

This file was deleted.

Loading

0 comments on commit d481756

Please sign in to comment.