chore: update workflows config
diff --git a/.aspect/workflows/config.yaml b/.aspect/workflows/config.yaml
index 7c5b430..0634bf4 100644
--- a/.aspect/workflows/config.yaml
+++ b/.aspect/workflows/config.yaml
@@ -4,69 +4,31 @@
CC: /bin/false
workspaces:
.:
- tasks:
- - test:
+ icon: bazel
+ label: bazel-lib
e2e/smoke:
icon: bazel
tasks:
- test:
queue: bazel-lib-small
- - format:
- without: true
- - gazelle:
- without: true
- - configure:
- without: true
- - buildifier:
- without: true
- - delivery:
- without: true
e2e/coreutils:
icon: bazel
tasks:
- test:
queue: bazel-lib-small
- - format:
- without: true
- - gazelle:
- without: true
- - configure:
- without: true
- - buildifier:
- without: true
- - delivery:
- without: true
e2e/copy_to_directory:
icon: bazel
tasks:
- test:
queue: bazel-lib-small
- - format:
- without: true
- - gazelle:
- without: true
- - configure:
- without: true
- - buildifier:
- without: true
- - delivery:
- without: true
e2e/external_copy_to_directory:
icon: bazel
tasks:
- test:
queue: bazel-lib-small
- - format:
- without: true
- - gazelle:
- without: true
- - configure:
- without: true
- - buildifier:
- without: true
- - delivery:
- without: true
tasks:
+ - checkout:
+ update_strategy: rebase
- test:
hooks:
- type: before_task
@@ -84,7 +46,6 @@
- buildifier:
queue: bazel-lib-small
- delivery:
- queue: bazel-lib-default
auto_deliver: true
rules:
- deliverable: 'attr("tags", "\bdeliverable\b", //...)'
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 8084b34..25e6799 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -11,7 +11,7 @@
only:
- /^main$/
requires:
- - aw-root_workspace_test
+ - aw-test
- aw-buildifier:
context: []
workspace: .
@@ -24,7 +24,7 @@
- aw-gazelle:
context: []
workspace: .
- - aw-root_workspace_test:
+ - aw-test:
context: []
workspace: .
when:
@@ -38,54 +38,42 @@
jobs:
- aw-test:
context: []
- delivery_manifest: false
workspace: e2e/copy_to_directory
when:
- and:
- - not: << pipeline.parameters.perform_delivery >>
- - not:
- equal:
- - scheduled_pipeline
- - << pipeline.trigger_source >>
+ not:
+ equal:
+ - scheduled_pipeline
+ - << pipeline.trigger_source >>
aspect-workflows-e2e-coreutils:
jobs:
- aw-test:
context: []
- delivery_manifest: false
workspace: e2e/coreutils
when:
- and:
- - not: << pipeline.parameters.perform_delivery >>
- - not:
- equal:
- - scheduled_pipeline
- - << pipeline.trigger_source >>
+ not:
+ equal:
+ - scheduled_pipeline
+ - << pipeline.trigger_source >>
aspect-workflows-e2e-external_copy_to_directory:
jobs:
- aw-test:
context: []
- delivery_manifest: false
workspace: e2e/external_copy_to_directory
when:
- and:
- - not: << pipeline.parameters.perform_delivery >>
- - not:
- equal:
- - scheduled_pipeline
- - << pipeline.trigger_source >>
+ not:
+ equal:
+ - scheduled_pipeline
+ - << pipeline.trigger_source >>
aspect-workflows-e2e-smoke:
jobs:
- aw-test:
context: []
- delivery_manifest: false
workspace: e2e/smoke
when:
- and:
- - not: << pipeline.parameters.perform_delivery >>
- - not:
- equal:
- - scheduled_pipeline
- - << pipeline.trigger_source >>
+ not:
+ equal:
+ - scheduled_pipeline
+ - << pipeline.trigger_source >>
aspect-workflows-manual-deliver:
jobs:
- aw-manual-deliver:
@@ -222,6 +210,18 @@
name: Agent health checks
no_output_timeout: 180m
- run:
+ command: rosetta run checkout
+ environment:
+ ASPECT_WORKFLOWS_CIRCLE_PIPELINE_NUMBER: << pipeline.number >>
+ ASPECT_WORKFLOWS_CIRCLE_PIPELINE_PROJECT_TYPE: << pipeline.project.type
+ >>
+ ASPECT_WORKFLOWS_CIRCLE_WORKFLOW_BASE_NAME: aspect-workflows
+ ASPECT_WORKFLOWS_CONFIG: .aspect/workflows/config.yaml
+ CC: /bin/false
+ XDG_CACHE_HOME: /mnt/ephemeral/caches
+ name: Checkout Health
+ no_output_timeout: 180m
+ - run:
command: rosetta run buildifier --workspace << parameters.workspace >>
environment:
ASPECT_WORKFLOWS_CIRCLE_PIPELINE_NUMBER: << pipeline.number >>
@@ -299,6 +299,18 @@
name: Agent health checks
no_output_timeout: 180m
- run:
+ command: rosetta run checkout
+ environment:
+ ASPECT_WORKFLOWS_CIRCLE_PIPELINE_NUMBER: << pipeline.number >>
+ ASPECT_WORKFLOWS_CIRCLE_PIPELINE_PROJECT_TYPE: << pipeline.project.type
+ >>
+ ASPECT_WORKFLOWS_CIRCLE_WORKFLOW_BASE_NAME: aspect-workflows
+ ASPECT_WORKFLOWS_CONFIG: .aspect/workflows/config.yaml
+ CC: /bin/false
+ XDG_CACHE_HOME: /mnt/ephemeral/caches
+ name: Checkout Health
+ no_output_timeout: 180m
+ - run:
command: rosetta run configure --workspace << parameters.workspace >>
environment:
ASPECT_WORKFLOWS_CIRCLE_PIPELINE_NUMBER: << pipeline.number >>
@@ -376,6 +388,18 @@
name: Agent health checks
no_output_timeout: 180m
- run:
+ command: rosetta run checkout
+ environment:
+ ASPECT_WORKFLOWS_CIRCLE_PIPELINE_NUMBER: << pipeline.number >>
+ ASPECT_WORKFLOWS_CIRCLE_PIPELINE_PROJECT_TYPE: << pipeline.project.type
+ >>
+ ASPECT_WORKFLOWS_CIRCLE_WORKFLOW_BASE_NAME: aspect-workflows
+ ASPECT_WORKFLOWS_CONFIG: .aspect/workflows/config.yaml
+ CC: /bin/false
+ XDG_CACHE_HOME: /mnt/ephemeral/caches
+ name: Checkout Health
+ no_output_timeout: 180m
+ - run:
command: rosetta run format --workspace << parameters.workspace >>
environment:
ASPECT_WORKFLOWS_CIRCLE_PIPELINE_NUMBER: << pipeline.number >>
@@ -453,6 +477,18 @@
name: Agent health checks
no_output_timeout: 180m
- run:
+ command: rosetta run checkout
+ environment:
+ ASPECT_WORKFLOWS_CIRCLE_PIPELINE_NUMBER: << pipeline.number >>
+ ASPECT_WORKFLOWS_CIRCLE_PIPELINE_PROJECT_TYPE: << pipeline.project.type
+ >>
+ ASPECT_WORKFLOWS_CIRCLE_WORKFLOW_BASE_NAME: aspect-workflows
+ ASPECT_WORKFLOWS_CONFIG: .aspect/workflows/config.yaml
+ CC: /bin/false
+ XDG_CACHE_HOME: /mnt/ephemeral/caches
+ name: Checkout Health
+ no_output_timeout: 180m
+ - run:
command: rosetta run gazelle --workspace << parameters.workspace >>
environment:
ASPECT_WORKFLOWS_CIRCLE_PIPELINE_NUMBER: << pipeline.number >>
@@ -537,7 +573,7 @@
name: Delivery
no_output_timeout: 180m
working_directory: /mnt/ephemeral/workdir
- aw-root_workspace_test:
+ aw-test:
environment:
ASPECT_WORKFLOWS_CONFIG: .aspect/workflows/config.yaml
ASPECT_WORKFLOWS_WORKSPACE: << parameters.workspace >>
@@ -587,6 +623,18 @@
name: Agent health checks
no_output_timeout: 180m
- run:
+ command: rosetta run checkout
+ environment:
+ ASPECT_WORKFLOWS_CIRCLE_PIPELINE_NUMBER: << pipeline.number >>
+ ASPECT_WORKFLOWS_CIRCLE_PIPELINE_PROJECT_TYPE: << pipeline.project.type
+ >>
+ ASPECT_WORKFLOWS_CIRCLE_WORKFLOW_BASE_NAME: aspect-workflows
+ ASPECT_WORKFLOWS_CONFIG: .aspect/workflows/config.yaml
+ CC: /bin/false
+ XDG_CACHE_HOME: /mnt/ephemeral/caches
+ name: Checkout Health
+ no_output_timeout: 180m
+ - run:
command: rosetta run test --workspace << parameters.workspace >>
environment:
ASPECT_WORKFLOWS_CIRCLE_PIPELINE_NUMBER: << pipeline.number >>
@@ -642,112 +690,6 @@
no_output_timeout: 10m
when: always
working_directory: /mnt/ephemeral/workdir
- aw-test:
- environment:
- ASPECT_WORKFLOWS_CONFIG: .aspect/workflows/config.yaml
- ASPECT_WORKFLOWS_WORKSPACE: << parameters.workspace >>
- XDG_CACHE_HOME: /mnt/ephemeral/caches
- machine: true
- parameters:
- delivery_manifest:
- default: true
- type: boolean
- workspace:
- type: string
- resource_class: aspect-build/bazel-lib-small
- steps:
- - run:
- command: /etc/aspect/workflows/bin/configure_workflows_env
- environment:
- ASPECT_WORKFLOWS_CIRCLE_PIPELINE_NUMBER: << pipeline.number >>
- ASPECT_WORKFLOWS_CIRCLE_PIPELINE_PROJECT_TYPE: << pipeline.project.type
- >>
- ASPECT_WORKFLOWS_CIRCLE_WORKFLOW_BASE_NAME: aspect-workflows
- ASPECT_WORKFLOWS_CONFIG: .aspect/workflows/config.yaml
- CC: /bin/false
- XDG_CACHE_HOME: /mnt/ephemeral/caches
- name: Configure Workflows
- - checkout
- - run:
- command: rm -rf /workflows/artifacts /workflows/testlogs
- environment:
- ASPECT_WORKFLOWS_CIRCLE_PIPELINE_NUMBER: << pipeline.number >>
- ASPECT_WORKFLOWS_CIRCLE_PIPELINE_PROJECT_TYPE: << pipeline.project.type
- >>
- ASPECT_WORKFLOWS_CIRCLE_WORKFLOW_BASE_NAME: aspect-workflows
- ASPECT_WORKFLOWS_CONFIG: .aspect/workflows/config.yaml
- CC: /bin/false
- XDG_CACHE_HOME: /mnt/ephemeral/caches
- name: Prepare archive directories
- - run:
- command: /etc/aspect/workflows/bin/agent_health_check
- environment:
- ASPECT_WORKFLOWS_CIRCLE_PIPELINE_NUMBER: << pipeline.number >>
- ASPECT_WORKFLOWS_CIRCLE_PIPELINE_PROJECT_TYPE: << pipeline.project.type
- >>
- ASPECT_WORKFLOWS_CIRCLE_WORKFLOW_BASE_NAME: aspect-workflows
- ASPECT_WORKFLOWS_CONFIG: .aspect/workflows/config.yaml
- CC: /bin/false
- XDG_CACHE_HOME: /mnt/ephemeral/caches
- name: Agent health checks
- no_output_timeout: 180m
- - run:
- command: rosetta run test --workspace << parameters.workspace >>
- environment:
- ASPECT_WORKFLOWS_CIRCLE_PIPELINE_NUMBER: << pipeline.number >>
- ASPECT_WORKFLOWS_CIRCLE_PIPELINE_PROJECT_TYPE: << pipeline.project.type
- >>
- ASPECT_WORKFLOWS_CIRCLE_WORKFLOW_BASE_NAME: aspect-workflows
- ASPECT_WORKFLOWS_CONFIG: .aspect/workflows/config.yaml
- CC: /bin/false
- XDG_CACHE_HOME: /mnt/ephemeral/caches
- name: Test
- no_output_timeout: 180m
- - store_test_results:
- path: /workflows/testlogs
- - when:
- condition:
- and:
- - <<parameters.delivery_manifest>>
- - or:
- - matches:
- pattern: ^main$
- value: << pipeline.git.branch >>
- - matches:
- pattern: ^master$
- value: << pipeline.git.branch >>
- steps:
- - run:
- command: rosetta run delivery_manifest --workspace << parameters.workspace
- >> --data TARGETS_SOURCE=test
- environment:
- ASPECT_WORKFLOWS_CIRCLE_PIPELINE_NUMBER: << pipeline.number >>
- ASPECT_WORKFLOWS_CIRCLE_PIPELINE_PROJECT_TYPE: << pipeline.project.type
- >>
- ASPECT_WORKFLOWS_CIRCLE_WORKFLOW_BASE_NAME: aspect-workflows
- ASPECT_WORKFLOWS_CONFIG: .aspect/workflows/config.yaml
- CC: /bin/false
- XDG_CACHE_HOME: /mnt/ephemeral/caches
- name: Delivery Manifest
- no_output_timeout: 180m
- - store_artifacts:
- path: /workflows/testlogs
- - store_artifacts:
- path: /workflows/artifacts
- - run:
- command: rosetta run finalization
- environment:
- ASPECT_WORKFLOWS_CIRCLE_PIPELINE_NUMBER: << pipeline.number >>
- ASPECT_WORKFLOWS_CIRCLE_PIPELINE_PROJECT_TYPE: << pipeline.project.type
- >>
- ASPECT_WORKFLOWS_CIRCLE_WORKFLOW_BASE_NAME: aspect-workflows
- ASPECT_WORKFLOWS_CONFIG: .aspect/workflows/config.yaml
- CC: /bin/false
- XDG_CACHE_HOME: /mnt/ephemeral/caches
- name: Finalization
- no_output_timeout: 10m
- when: always
- working_directory: /mnt/ephemeral/workdir
aw-warming:
environment:
ASPECT_WORKFLOWS_CONFIG: .aspect/workflows/config.yaml
@@ -829,7 +771,7 @@
ASPECT_WORKFLOWS_CONFIG: .aspect/workflows/config.yaml
CC: /bin/false
XDG_CACHE_HOME: /mnt/ephemeral/caches
- name: Create warming archive for root
+ name: Create warming archive for bazel-lib
no_output_timeout: 180m
- run:
command: /etc/aspect/workflows/bin/warming_archive