Skip to content

Commit

Permalink
chore: Add release integration canary (#50)
Browse files Browse the repository at this point in the history
Signed-off-by: Charles Moore <[email protected]>
  • Loading branch information
moorec-aws authored Oct 11, 2023
1 parent fd71650 commit 1281b16
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 44 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/integ_test.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
name: E2E Tests
name: Release Integration Canary

on:
workflow_dispatch:
schedule:
- cron: '0 */1 * * *'

jobs:
E2E:
Release Integration Canary:
runs-on: ubuntu-latest
environment: mainline
environment: release
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
with:
ref: release
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_CODEBUILD_MAINLINE_E2E_ROLE }}
role-to-assume: ${{ secrets.AWS_CODEBUILD_RELEASE_INTEG_ROLE }}
aws-region: us-west-2
mask-aws-account-id: true
- name: Run CodeBuild
uses: aws-actions/aws-codebuild-run-build@v1
with:
project-name: deadline-cloud-worker-agent-dev-E2ETest
project-name: deadline-cloud-worker-agent-IntegTest
hide-cloudwatch-logs: true
9 changes: 2 additions & 7 deletions hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,7 @@ PIP_INDEX_URL="https://aws:{env:CODEARTIFACT_AUTH_TOKEN}@{env:CODEARTIFACT_DOMAI

[envs.codebuild.scripts]
build = "hatch build"
integ-test = "pytest --no-cov test/integ {args}"

[envs.codebuild.env-vars]
PIP_INDEX_URL=""

[envs.integ.scripts]
test = "pytest --no-cov {args:test/integ}"

[envs.e2e.scripts]
test = "pytest --no-cov {args:test/e2e}"
PIP_INDEX_URL=""
7 changes: 0 additions & 7 deletions pipeline/e2e.sh

This file was deleted.

2 changes: 1 addition & 1 deletion pipeline/integ.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ set -e

pip install --upgrade pip
pip install --upgrade hatch
hatch run integ:test
hatch run codebuild:integ-test

0 comments on commit 1281b16

Please sign in to comment.