Skip to content

Commit 83df5b2

Browse files
authored
chore: switch back to Workflows orb (#447)
1 parent bc399ee commit 83df5b2

File tree

2 files changed

+17
-81
lines changed

2 files changed

+17
-81
lines changed

.aspect/workflows/config_cci.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# See https://docs.aspect.build/v/workflows/config
2+
---
3+
queue: aspect-cli
4+
tasks:
5+
branch_freshness:
6+
update_strategy: rebase
7+
buildifier:
8+
test:

.circleci/config.yml

Lines changed: 9 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -18,90 +18,18 @@ parameters:
1818
setup: true
1919

2020
orbs:
21+
continuation: circleci/continuation@0.3.1
2122
slack: circleci/slack@4.12.1
22-
23-
jobs:
24-
# Vendored rosetta output for Aspect Workflows
25-
test:
26-
resource_class: aspect-build/aspect-cli
27-
machine: true
28-
working_directory: /mnt/ephemeral/circle/workdir/workflows
29-
environment:
30-
XDG_CACHE_HOME: /mnt/ephemeral/caches
31-
ROSETTA_CONFIGURATION: .aspect/workflows/config.yaml
32-
steps:
33-
- run:
34-
name: Configure Workflows
35-
command: configure_workflows_env
36-
- checkout
37-
- run:
38-
name: Check runner health (before run)
39-
command: agent_health_check
40-
- run:
41-
name: Branch Freshness
42-
command: rosetta run branch_freshness
43-
- run:
44-
name: Prepare archive directories
45-
command: rm -rf /tmp/aspect/artifacts /tmp/aspect/testlogs
46-
- run:
47-
name: Bazel test
48-
command: rosetta run test --workspace .
49-
no_output_timeout: 2.5m
50-
- store_artifacts:
51-
path: /tmp/aspect/artifacts
52-
- store_test_results:
53-
path: /tmp/aspect/testlogs
54-
- run:
55-
name: Finalization
56-
command: rosetta run finalization
57-
--workspace .
58-
when: always
59-
60-
# Prepare archives that speed up boot time of fresh Bazel servers on cold instances
61-
aspect-workflows-warming:
62-
resource_class: aspect-build/aspect-cli_warming
63-
machine: true
64-
working_directory: /mnt/ephemeral/circle/workdir/workflows
65-
environment:
66-
XDG_CACHE_HOME: /mnt/ephemeral/caches
67-
ROSETTA_CONFIGURATION: .aspect/workflows/config.yaml
68-
steps:
69-
- run:
70-
name: Configure Workflows
71-
command: configure_workflows_env
72-
- checkout
73-
- run:
74-
name: Check runner health (before run)
75-
command: agent_health_check
76-
- run:
77-
name: Create warming archive
78-
command: rosetta run warming --workspace .
79-
- run:
80-
name: Archive warming tars
81-
command: warming_archive
23+
# CCI doesn't allow us to use a relative path in the monorepo, so we have to refer to an
24+
# already-published orb in their registry.
25+
# Run `bazel run --stamp //rosetta/cci-orb:publish` to produce a new version.
26+
bazel: aspect-build/workflows@dev:5.4.11-dev.56.g77f1f53
8227

8328
workflows:
84-
version: 2
85-
86-
default_workflows:
29+
bazel-setup:
8730
jobs:
88-
- test:
31+
- bazel/setup:
32+
aspect-config: .aspect/workflows/config_cci.yaml
33+
resource_class: aspect-build/aspect-cli
8934
context:
9035
- slack
91-
92-
bazel-warming:
93-
triggers:
94-
- schedule:
95-
# Every 4 hours on weekdays
96-
# M-F 8:05, 13:05, 16:05 PDT
97-
cron: '5 15,20,23 * * 1-5'
98-
filters:
99-
branches:
100-
only:
101-
- main
102-
jobs:
103-
- aspect-workflows-warming:
104-
filters:
105-
branches:
106-
only:
107-
- main

0 commit comments

Comments
 (0)