From 7ca2eb0e5a7157dfcb8075d3f2e23747de286dc2 Mon Sep 17 00:00:00 2001 From: Greg Magolan Date: Mon, 30 Dec 2024 10:10:32 +0700 Subject: [PATCH] chore: switch to Aspect Workflows on Buildkite --- .aspect/workflows/BUILD.bazel | 1 - .aspect/workflows/README.md | 18 -- .aspect/workflows/bazelrc | 8 + .aspect/workflows/config.yaml | 32 +-- .aspect/workflows/deps.bzl | 48 ---- .circleci/BUILD.bazel | 50 ----- .circleci/config.yml | 372 ------------------------------- .circleci/user-config.yml | 52 ----- .github/workflows/new_issue.yaml | 31 --- .prettierignore | 2 - WORKSPACE | 4 - release/BUILD.bazel | 23 -- tools/platforms/BUILD.bazel | 12 + yamlfmt.yaml | 1 - 14 files changed, 25 insertions(+), 629 deletions(-) delete mode 100644 .aspect/workflows/BUILD.bazel delete mode 100644 .aspect/workflows/README.md delete mode 100644 .aspect/workflows/deps.bzl delete mode 100644 .circleci/BUILD.bazel delete mode 100644 .circleci/config.yml delete mode 100644 .circleci/user-config.yml delete mode 100644 .github/workflows/new_issue.yaml create mode 100644 tools/platforms/BUILD.bazel diff --git a/.aspect/workflows/BUILD.bazel b/.aspect/workflows/BUILD.bazel deleted file mode 100644 index f5395d7e5..000000000 --- a/.aspect/workflows/BUILD.bazel +++ /dev/null @@ -1 +0,0 @@ -exports_files(["config.yaml"]) diff --git a/.aspect/workflows/README.md b/.aspect/workflows/README.md deleted file mode 100644 index 5325f0b1b..000000000 --- a/.aspect/workflows/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# Aspect Workflows demonstration deployment - -This deployment of [Aspect Workflows](https://www.aspect.build/workflows) is configured to run on CircleCI. - -You can see this Aspect Workflows demonstration deployment live at https://app.circleci.com/pipelines/github/aspect-build/aspect-cli. - -The two components of the configuration in this repository are, - -1. Aspect Workflows configuration yaml -1. CircleCI pipeline configuration - -## Aspect Workflows configuration yaml - -This is the [config.yaml](./config.yaml) file in this directory. - -## CircleCI pipeline configuration - -This is the [.circleci/config.yml](../../.circleci/config.yml) file. diff --git a/.aspect/workflows/bazelrc b/.aspect/workflows/bazelrc index 51dae69d3..dbcaacd0d 100644 --- a/.aspect/workflows/bazelrc +++ b/.aspect/workflows/bazelrc @@ -1,3 +1,11 @@ # build without the bytes common --remote_download_outputs=minimal common --nobuild_runfile_links + +# remote execution +common:rbe --extra_execution_platforms=//tools/platforms:x86_64_linux_remote +common:rbe --host_platform=//tools/platforms:x86_64_linux_remote +common:rbe --remote_executor=unix:///mnt/ephemeral/buildbarn/.cache/bb_clientd/grpc +common:rbe --genrule_strategy=remote,local +common:rbe --jobs=32 +common:rbe --remote_timeout=3600 diff --git a/.aspect/workflows/config.yaml b/.aspect/workflows/config.yaml index 86478b8c4..8c5b73223 100644 --- a/.aspect/workflows/config.yaml +++ b/.aspect/workflows/config.yaml @@ -1,34 +1,12 @@ -# See https://docs.aspect.build/v/workflows/config -queue: aspect-cli-default +# See https://docs.aspect.build/workflows/configuration +--- tasks: - format: - queue: aspect-cli-small + queue: aspect-small - buildifier: - queue: aspect-cli-small-graviton + queue: aspect-small - configure: - queue: aspect-cli-small-graviton + queue: aspect-small - test: - hooks: - - type: before_task - command: vmstat -a -S M -t 1 2>&1 > vmstat.out & - - type: after_task - command: cat vmstat.out - artifact_paths: - - vmstat.out - - delivery: - auto_deliver: true - rules: - - deliverable: 'attr("tags", "\bdeliverable\b", //...)' - condition: - branches: - - main - - deliverable: - - //release:aspect_cli_delivery - condition: - only_on_change: false - branches: - - main - - warming: - queue: aspect-cli-warming notifications: github: {} diff --git a/.aspect/workflows/deps.bzl b/.aspect/workflows/deps.bzl deleted file mode 100644 index 6904d9a35..000000000 --- a/.aspect/workflows/deps.bzl +++ /dev/null @@ -1,48 +0,0 @@ -"""Bazel dependencies for Aspect Workflows""" - -load("@bazel_tools//tools/build_defs/repo:http.bzl", _http_archive = "http_archive", _http_file = "http_file") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") - -# TODO: move this to a rule set so repositories on Aspect Workflows can avoid this boilerplate -rosetta_version = "5.11.0" -rosetta_integrity = { - "darwin_aarch64": "sha256-zmWdxspunpc9Sz5iZOow0FotE66EGe6WFeHk5+vwMJ8=", - "darwin_x86_64": "sha256-5V6SxvL3QYWbBE/GuwP1ReJwpe0zkznb+j8n4V36O+E=", - "linux_aarch64": "sha256-qwscEgk9kdMnNZ9df+Cw8aPo1ZokIHViS6+6nCSsfSU=", - "linux_x86_64": "sha256-WgDaxOssma7zDHGh+iZ4p3MyBvIBk6m138ZWzR44g2Q=", -} - -# https://github.com/suzuki-shunsuke/circleci-config-merge/releases -# https://dev.to/suzukishunsuke/splitting-circleci-config-yml-10gk -circleci_config_merge_version = "1.1.6" -circleci_config_merge_integrity = { - "darwin_aarch64": "sha256-7cQeLrSVRZR+mQu/njn+x//EIb2bhTV2+J8fafRHpr4=", - "darwin_x86_64": "sha256-vHKDSdDaYK58MaudJ9yOPRKh+OT/LiTQV/9E07RL8qA=", - "linux_aarch64": "sha256-MaXVQmRK9q9LgsfM5ZzxCIIT8rUcOBbzJ8aVDgK6zWs=", - "linux_x86_64": "sha256-3eYJn7dShZD1oiS3cgXfqXwdDzclf/N97A2nh7ZfW+w=", -} - -def http_archive(name, **kwargs): - maybe(_http_archive, name = name, **kwargs) - -def http_file(name, **kwargs): - maybe(_http_file, name = name, **kwargs) - -# buildifier: disable=function-docstring -def fetch_workflows_deps(): - for platform_arch in rosetta_integrity.keys(): - http_file( - name = "rosetta_{}".format(platform_arch), - downloaded_file_path = "rosetta", - executable = True, - integrity = rosetta_integrity[platform_arch], - urls = ["https://static.aspect.build/aspect/{0}/rosetta_real_{1}".format(rosetta_version, platform_arch.replace("aarch64", "arm64"))], - ) - - for platform_arch in circleci_config_merge_integrity.keys(): - http_archive( - name = "circleci_config_merge_{}".format(platform_arch), - build_file_content = "exports_files([\"circleci-config-merge\"])", - integrity = circleci_config_merge_integrity[platform_arch], - urls = ["https://github.com/suzuki-shunsuke/circleci-config-merge/releases/download/v{0}/circleci-config-merge_{0}_{1}.tar.gz".format(circleci_config_merge_version, platform_arch.replace("aarch64", "arm64").replace("x86_64", "amd64"))], - ) diff --git a/.circleci/BUILD.bazel b/.circleci/BUILD.bazel deleted file mode 100644 index 772b4528e..000000000 --- a/.circleci/BUILD.bazel +++ /dev/null @@ -1,50 +0,0 @@ -load("@aspect_bazel_lib//lib:write_source_files.bzl", "write_source_file") - -CIRCLECI_ORG = "aspect-build" - -CIRCLECI_USER_CONFIG_FILE = "//.circleci:user-config.yml" - -alias( - name = "rosetta", - actual = select({ - "@bazel_tools//src/conditions:darwin_arm64": "@rosetta_darwin_aarch64//file:rosetta", - "@bazel_tools//src/conditions:darwin_x86_64": "@rosetta_darwin_x86_64//file:rosetta", - "@bazel_tools//src/conditions:linux_aarch64": "@rosetta_linux_aarch64//file:rosetta", - "@bazel_tools//src/conditions:linux_x86_64": "@rosetta_linux_x86_64//file:rosetta", - }), -) - -alias( - name = "circleci-config-merge", - actual = select({ - "@bazel_tools//src/conditions:darwin_arm64": "@circleci_config_merge_darwin_aarch64//:circleci-config-merge", - "@bazel_tools//src/conditions:darwin_x86_64": "@circleci_config_merge_darwin_x86_64//:circleci-config-merge", - "@bazel_tools//src/conditions:linux_aarch64": "@circleci_config_merge_linux_aarch64//:circleci-config-merge", - "@bazel_tools//src/conditions:linux_x86_64": "@circleci_config_merge_linux_x86_64//:circleci-config-merge", - }), -) - -genrule( - name = "aspect_workflows_config", - srcs = ["//.aspect/workflows:config.yaml"], - outs = [":aspect-workflows-config.yml"], - cmd = "CI=1 CIRCLE_PROJECT_USERNAME={0} ASPECT_WORKFLOWS_DISABLE_TRACES_COLLECTION=1 $(execpath :rosetta) steps --configuration .aspect/workflows/config.yaml --host circleci > $@".format(CIRCLECI_ORG), - tools = [":rosetta"], -) - -genrule( - name = "merge_config", - srcs = [ - ":aspect-workflows-config.yml", - CIRCLECI_USER_CONFIG_FILE, - ], - outs = [":_config.yml"], - cmd = "echo -e '# GENERATED FILE - DO NOT EDIT!\\n# Update with: bazel run //.circleci:write_merged_config' > $@ && $(execpath :circleci-config-merge) merge $(execpath :aspect-workflows-config.yml) $(execpath {0}) >> $@".format(CIRCLECI_USER_CONFIG_FILE), - tools = [":circleci-config-merge"], -) - -write_source_file( - name = "write_merged_config", - in_file = ":_config.yml", - out_file = "config.yml", -) diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 80d376648..000000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,372 +0,0 @@ -# GENERATED FILE - DO NOT EDIT! -# Update with: bazel run //.circleci:write_merged_config -version: 2.1 -workflows: - aspect-workflows: - jobs: - - aw-auto-deliver: - context: [] - filters: - branches: - only: - - /^main$/ - requires: - - aw-test - workspace: . - - aw-buildifier: - context: [] - workspace: . - - aw-configure: - context: [] - workspace: . - - aw-format: - context: [] - workspace: . - - aw-test: - context: [] - workspace: . - when: - and: - - not: << pipeline.parameters.perform_delivery >> - - not: - equal: - - scheduled_pipeline - - << pipeline.trigger_source >> - aspect-workflows-manual-deliver: - jobs: - - aw-manual-deliver: - context: [] - workspace: << pipeline.parameters.workspace >> - when: - equal: - - true - - << pipeline.parameters.perform_delivery >> - aspect-workflows-warming: - jobs: - - aw-warming: {} - when: - and: - - equal: - - scheduled_pipeline - - << pipeline.trigger_source >> - - equal: - - aspect-workflows-warming - - << pipeline.schedule.name >> - user-workflow: - jobs: - - user-job - when: - and: - - not: << pipeline.parameters.perform_delivery >> - - not: - equal: - - << pipeline.trigger_source >> - - scheduled_pipeline -jobs: - aw-auto-deliver: - 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 - ASPECT_WORKFLOWS_DELIVERY_COMMIT: << pipeline.parameters.delivery_commit >> - ASPECT_WORKFLOWS_WORKSPACE: << parameters.workspace >> - XDG_CACHE_HOME: /mnt/ephemeral/caches - machine: true - parameters: - workspace: - type: string - resource_class: aspect-build/aspect-cli-default - steps: - - run: - command: /etc/aspect/workflows/bin/configure_workflows_env - name: Workflows environment - - checkout - - run: - command: /etc/aspect/workflows/bin/agent_health_check - name: Agent health check - no_output_timeout: 180m - - run: - command: git fetch - name: Git fetch - - when: - condition: << pipeline.parameters.delivery_commit >> - steps: - - run: - command: git checkout << pipeline.parameters.delivery_commit >> - name: Checkout release commit - - run: - command: rosetta run delivery - name: Delivery - no_output_timeout: 180m - working_directory: /mnt/ephemeral/workdir - aw-buildifier: - 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 - 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/aspect-cli-small-graviton - steps: - - run: - command: /etc/aspect/workflows/bin/configure_workflows_env - name: Workflows environment - - checkout - - run: - command: rm -rf /workflows/artifacts /workflows/testlogs - name: Prepare archive directories - - run: - command: /etc/aspect/workflows/bin/agent_health_check - name: Agent health check - no_output_timeout: 180m - - run: - command: rosetta run buildifier --workspace << parameters.workspace >> - name: Buildifier - no_output_timeout: 180m - - store_artifacts: - path: /workflows/artifacts - - run: - command: rosetta run finalization - name: Finalization - no_output_timeout: 10m - when: always - working_directory: /mnt/ephemeral/workdir - aw-configure: - 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 - 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/aspect-cli-small-graviton - steps: - - run: - command: /etc/aspect/workflows/bin/configure_workflows_env - name: Workflows environment - - checkout - - run: - command: rm -rf /workflows/artifacts /workflows/testlogs - name: Prepare archive directories - - run: - command: /etc/aspect/workflows/bin/agent_health_check - name: Agent health check - no_output_timeout: 180m - - run: - command: rosetta run configure --workspace << parameters.workspace >> - name: Configure - no_output_timeout: 180m - - store_artifacts: - path: /workflows/artifacts - - run: - command: rosetta run finalization - name: Finalization - no_output_timeout: 10m - when: always - working_directory: /mnt/ephemeral/workdir - aw-format: - 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 - 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/aspect-cli-small - steps: - - run: - command: /etc/aspect/workflows/bin/configure_workflows_env - name: Workflows environment - - checkout - - run: - command: rm -rf /workflows/artifacts /workflows/testlogs - name: Prepare archive directories - - run: - command: /etc/aspect/workflows/bin/agent_health_check - name: Agent health check - no_output_timeout: 180m - - run: - command: rosetta run format --workspace << parameters.workspace >> - name: Format - no_output_timeout: 180m - - store_artifacts: - path: /workflows/artifacts - - run: - command: rosetta run finalization - name: Finalization - no_output_timeout: 10m - when: always - working_directory: /mnt/ephemeral/workdir - aw-manual-deliver: - 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 - ASPECT_WORKFLOWS_DELIVERY_COMMIT: << pipeline.parameters.delivery_commit >> - ASPECT_WORKFLOWS_DELIVERY_TARGETS: << pipeline.parameters.delivery_targets >> - ASPECT_WORKFLOWS_WORKSPACE: << parameters.workspace >> - XDG_CACHE_HOME: /mnt/ephemeral/caches - machine: true - parameters: - workspace: - type: string - resource_class: aspect-build/aspect-cli-default - steps: - - run: - command: /etc/aspect/workflows/bin/configure_workflows_env - name: Workflows environment - - checkout - - run: - command: /etc/aspect/workflows/bin/agent_health_check - name: Agent health check - no_output_timeout: 180m - - run: - command: git fetch - name: Git fetch - - when: - condition: << pipeline.parameters.delivery_commit >> - steps: - - run: - command: git checkout << pipeline.parameters.delivery_commit >> - name: Checkout release commit - - run: - command: rosetta run delivery - name: Delivery - no_output_timeout: 180m - working_directory: /mnt/ephemeral/workdir - aw-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 - 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/aspect-cli-default - steps: - - run: - command: /etc/aspect/workflows/bin/configure_workflows_env - name: Workflows environment - - checkout - - run: - command: rm -rf /workflows/artifacts /workflows/testlogs - name: Prepare archive directories - - run: - command: /etc/aspect/workflows/bin/agent_health_check - name: Agent health check - no_output_timeout: 180m - - run: - command: rosetta run test --workspace << parameters.workspace >> - name: Test - no_output_timeout: 180m - - store_test_results: - path: /workflows/testlogs - - when: - condition: - and: - - <> - - or: - - matches: - pattern: ^main$ - value: << pipeline.git.branch >> - steps: - - run: - command: rosetta run delivery_manifest --workspace << parameters.workspace - >> --data TARGETS_SOURCE=test - name: Delivery manifest - no_output_timeout: 180m - - store_artifacts: - path: /workflows/testlogs - - store_artifacts: - path: /workflows/artifacts - - store_artifacts: - path: vmstat.out - - run: - command: rosetta run finalization - name: Finalization - no_output_timeout: 10m - when: always - working_directory: /mnt/ephemeral/workdir - aw-warming: - 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 - XDG_CACHE_HOME: /mnt/ephemeral/caches - machine: true - resource_class: aspect-build/aspect-cli-warming - steps: - - run: - command: /etc/aspect/workflows/bin/configure_workflows_env - name: Workflows environment - - checkout - - run: - command: /etc/aspect/workflows/bin/agent_health_check - name: Agent health check - no_output_timeout: 180m - - run: - command: rosetta run warming --workspace . - name: Create warming archive for root - no_output_timeout: 180m - - run: - command: /etc/aspect/workflows/bin/warming_archive - name: Archive warming tars - working_directory: /mnt/ephemeral/workdir - user-job: - docker: - - image: cimg/base:2023.03 - steps: - - checkout - - run: echo "Example user CircleCI job that is not generated by Aspect Workflows." -parameters: - delivery_commit: - default: "" - description: The commit to checkout and run the delivery from. Targets listed - in the delivery manifest for this commit will be delivered unless specific targets - are listed in `delivery_targets`. - type: string - delivery_targets: - default: "" - description: List of Bazel targets to deliver, delimited by spaces. For example, - `//app/a:push_release //app/b:push_release`. If empty, targets listed in the - delivery manifest for the target commit will be delivered. - type: string - perform_delivery: - default: false - type: boolean - workspace: - default: . - description: The workspace that the `delivery_targets` live within. - type: string diff --git a/.circleci/user-config.yml b/.circleci/user-config.yml deleted file mode 100644 index a11cf53de..000000000 --- a/.circleci/user-config.yml +++ /dev/null @@ -1,52 +0,0 @@ -# This is an example of a user CircleCI configuration that is not generated by -# Aspect Workflows. The naming of this file is arbitrary. This configuration is -# merged with the generated Aspect Workflows CircleCI configuration into the -# load bearing load `.circleci/config.yaml` configuration file that is used by -# CircleCI. -# -# To update `.circleci/config.yaml` after editing this file run: -# -# bazel run //.circleci:write_merged_config -# -# -# Aspect Workflows workflow names are all prefixed with "aspect-workflows-". -# These currently include: -# -# - aspect-workflows -# - aspect-workflows-warming -# - aspect-workflows-manual-deliver -# -# Aspect Workflows job names are all prefixed with "aw-". These currently -# include. -# -# - aw-auto-deliver -# - aw-buildifier -# - aw-configure -# - aw-format -# - aw-gazelle -# - aw-manual-deliver -# - aw-test -# - aw-warming -# -# In your user CircleCI configuration, avoid workflow names prefixed with -# `aspect-workflows-` and job names prefixed with `aw-`. Conflicting workflow or -# job names will result in a bad configuration merge. -version: 2.1 -jobs: - user-job: - docker: - - image: cimg/base:2023.03 - steps: - - checkout - - run: echo "Example user CircleCI job that is not generated by Aspect Workflows." -workflows: - user-workflow: - jobs: - - user-job - when: - and: - - not: << pipeline.parameters.perform_delivery >> - - not: - equal: - - << pipeline.trigger_source >> - - scheduled_pipeline diff --git a/.github/workflows/new_issue.yaml b/.github/workflows/new_issue.yaml deleted file mode 100644 index 19e4c8431..000000000 --- a/.github/workflows/new_issue.yaml +++ /dev/null @@ -1,31 +0,0 @@ -name: New issue -on: - issues: - types: - - opened - - reopened -jobs: - new_issue: - runs-on: ubuntu-latest - permissions: - issues: write - steps: - # https://docs.github.com/en/actions/managing-issues-and-pull-requests/adding-labels-to-issues - - uses: actions/github-script@v6 - with: - script: | - github.rest.issues.addLabels({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - labels: ["untriaged"] - }) - # https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/using-the-api-to-manage-projects#adding-an-item-to-a-project - - run: | - gh api graphql -f query="mutation { addProjectV2ItemById(input: {projectId: \"$PROJECT_ID\" contentId: \"$CONTENT_ID\"}) { item { id } } }" - env: - GITHUB_TOKEN: ${{ secrets.GH_PROJECTS_RW_TOKEN }} - OWNER: ${{ github.repository_owner }} - REPO: ${{ github.event.repository.name }} - CONTENT_ID: ${{ github.event.issue.node_id }} - PROJECT_ID: PVT_kwDOA6IKMs4ALj2o # Aspect OSS Bazel Rules diff --git a/.prettierignore b/.prettierignore index d18cddbda..67c42aba3 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,5 +1,3 @@ -.circleci/config.yml - # These are generated by cobra docs/*.md docs/plugins/*.d.ts diff --git a/WORKSPACE b/WORKSPACE index b405ace7a..e3bf508a8 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -342,7 +342,3 @@ multitool( name = "multitool", lockfile = "@aspect_rules_lint//format:multitool.lock.json", ) - -load("//.aspect/workflows:deps.bzl", "fetch_workflows_deps") - -fetch_workflows_deps() diff --git a/release/BUILD.bazel b/release/BUILD.bazel index af32059d2..183d2b9ac 100644 --- a/release/BUILD.bazel +++ b/release/BUILD.bazel @@ -70,26 +70,3 @@ bzl_library( srcs = ["platforms.bzl"], visibility = ["//visibility:public"], ) - -# Demonstration delivery target for Aspect Workflows. -# In the future this could be wired up to push dev releases to an S3 bucket. -sh_binary( - name = "aspect_cli_delivery", - srcs = ["delivery.sh"], - data = [ - ":aspect", - ":linux_and_darwin_artifacts", - ], -) - -# Demonstration delivery target for Aspect Workflows. -# In the future this could be wired up to push dev releases to an S3 bucket. -sh_binary( - name = "aspect_cli_delivery_only_on_change", - srcs = ["delivery.sh"], - data = [ - ":aspect", - ":linux_and_darwin_artifacts", - ], - tags = ["deliverable"], -) diff --git a/tools/platforms/BUILD.bazel b/tools/platforms/BUILD.bazel new file mode 100644 index 000000000..df58fbd90 --- /dev/null +++ b/tools/platforms/BUILD.bazel @@ -0,0 +1,12 @@ +platform( + name = "x86_64_linux_remote", + constraint_values = [ + "@platforms//os:linux", + "@platforms//cpu:x86_64", + ], + exec_properties = { + "OSFamily": "Linux", + "container-image": "docker://ghcr.io/catthehacker/ubuntu:act-22.04@sha256:5f9c35c25db1d51a8ddaae5c0ba8d3c163c5e9a4a6cc97acd409ac7eae239448", + }, + visibility = ["//visibility:public"], +) diff --git a/yamlfmt.yaml b/yamlfmt.yaml index 0108b353d..d27c8a5f5 100644 --- a/yamlfmt.yaml +++ b/yamlfmt.yaml @@ -1,5 +1,4 @@ gitignore_excludes: true doublestar: true exclude: - - .circleci/config.yml - gazelle/js/tests/**/*.yaml