Skip to content

Commit

Permalink
chore: update to Aspect Workflows 5.7.0-rc10 (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan authored and alexeagle committed Aug 26, 2023
1 parent fa3d5f9 commit 8bd7088
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 20 deletions.
27 changes: 17 additions & 10 deletions .aspect/workflows/terraform/workflows.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module "aspect_workflows" {
}

# Aspect Workflows terraform module
source = "https://s3.us-east-2.amazonaws.com/static.aspect.build/aspect/5.7.0-rc9/workflows/terraform-aws-aspect-workflows.zip"
source = "https://s3.us-east-2.amazonaws.com/static.aspect.build/aspect/5.7.0-rc10/workflows/terraform-aws-aspect-workflows.zip"

# Non-terraform Aspect Workflows release artifacts are pulled from the region specific
# aspect-artifacts bucket during apply. Aspect will grant your AWS account access to this bucket
Expand Down Expand Up @@ -83,21 +83,28 @@ module "aspect_workflows" {
gha_runner_groups = {
# The default runner group is use for the main build & test workflows.
default = {
agent_idle_timeout_min = 5
gh_repo = "aspect-build/rules_ts"
gha_workflow_ids = []
max_runners = 5
min_runners = 0
queue = "aspect-default"
resource_type = "default"
warming = true
agent_idle_timeout_min = 5
gh_repo = "aspect-build/rules_ts"
# Determine the workflow ID with:
# gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /repos/aspect-build/rules_ts/actions/workflows
# https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#list-repository-workflows
gha_workflow_ids = ["66360195"] # Aspect Workflows
max_runners = 5
min_runners = 0
queue = "aspect-default"
resource_type = "default"
scaling_polling_frequency = 3 # check for queued jobs every 20s
warming = true
}
# The warming runner group is used for the periodic warming job that creates
# warming archives for use by other runner groups.
warming = {
agent_idle_timeout_min = 1
gh_repo = "aspect-build/rules_ts"
gha_workflow_ids = []
# Determine the workflow ID with:
# gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /repos/aspect-build/rules_ts/actions/workflows
# https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#list-repository-workflows
gha_workflow_ids = ["66594869"] # Aspect Workflows Warming
max_runners = 1
min_runners = 0
policies = { warming_manage : module.aspect_workflows.warming_management_policies["default"].arn }
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/.aspect-workflows-reusable.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ==================================================================================================
# Aspect Workflows Reusable Workflow for GitHub Actions (v5.7.0-rc9)
# Aspect Workflows Reusable Workflow for GitHub Actions (v5.7.0-rc10)
#
# https://github.com/marketplace/actions/aspect-workflows?version=5.7.0-rc9
# https://github.com/marketplace/actions/aspect-workflows?version=5.7.0-rc10
#
# At this time, GitHub Actions does not allow referencing reusable workflows from public
# repositories in other organizations. See
Expand Down Expand Up @@ -37,10 +37,10 @@
# jobs:
# aspect-workflows:
# name: Aspect Workflows
# uses: my-github-org/workflows-action/.github/workflows/[email protected]rc9
# uses: my-github-org/workflows-action/.github/workflows/[email protected]rc10
# ```
# ==================================================================================================
name: Aspect Workflows Reusable Workflow (v5.7.0-rc9)
name: Aspect Workflows Reusable Workflow (v5.7.0-rc10)

on:
# Makes this workflow reusable, see
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
echo "filtered_secrets=${FILTERED_SECRETS}" | tee ${GITHUB_OUTPUT}
- name: Branch Freshness
uses: aspect-build/[email protected]rc9
uses: aspect-build/[email protected]rc10
timeout-minutes: ${{ fromJson(needs.setup.outputs.cfg).task_config[fromJson(needs.setup.outputs.cfg).workflows_config[matrix.job].workspace].tasks['branch_freshness'].timeout_in_minutes }}
with:
workspace: ${{ fromJson(needs.setup.outputs.cfg).workflows_config[matrix.job].workspace }}
Expand All @@ -121,7 +121,7 @@ jobs:
run: rm -rf ${{ join(fromJson(needs.setup.outputs.cfg).workflows_config[matrix.job].artifact_paths, ' ') }}

- name: ${{ fromJson(needs.setup.outputs.cfg).workflows_config[matrix.job].task }}
uses: aspect-build/[email protected]rc9
uses: aspect-build/[email protected]rc10
env: ${{ inputs.inherited_secrets != '' && fromJson(steps.process_secrets.outputs.filtered_secrets) || fromJson('{}') }}
timeout-minutes: ${{ fromJson(needs.setup.outputs.cfg).workflows_config[matrix.job].timeout_in_minutes }}
with:
Expand All @@ -143,7 +143,7 @@ jobs:

- name: Delivery Manifest
if: fromJson(needs.setup.outputs.cfg).workflows_config[matrix.job].generate_manifest
uses: aspect-build/[email protected]rc9
uses: aspect-build/[email protected]rc10
timeout-minutes: ${{ fromJson(needs.setup.outputs.cfg).task_config[fromJson(needs.setup.outputs.cfg).workflows_config[matrix.job].workspace].tasks['delivery'].timeout_in_minutes }}
with:
workspace: ${{ fromJson(needs.setup.outputs.cfg).workflows_config[matrix.job].workspace }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/aspect-workflows-warming.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Agent health checks
run: agent_health_check
- name: Create warming archive
uses: aspect-build/[email protected]rc9
uses: aspect-build/[email protected]rc10
with:
task: warming
- name: Archive warming tars
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

ASPECT_WORKFLOWS_VERSION = "5.7.0-rc9"
ASPECT_WORKFLOWS_ACTION_SHA256 = "3f0689e2784fd2943a7262990b54e51fac27798619d37dec3e412ca16a9f6343"
ASPECT_WORKFLOWS_VERSION = "5.7.0-rc10"
ASPECT_WORKFLOWS_ACTION_SHA256 = "8bcd79f8ad6beb90372002de97e955e18a6b901165ac4de71921a13062374ffb"

def aspect_workflows_github_actions_deps():
"Fetch deps needed for Aspect Workflows on GitHub Actions"
Expand Down

0 comments on commit 8bd7088

Please sign in to comment.