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]>
Signed-off-by: Graeme McHale <[email protected]>
Signed-off-by: Gahyun Suh <[email protected]>
  • Loading branch information
moorec-aws authored and gahyusuh committed Nov 6, 2023
1 parent a671cae commit d776853
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 d776853

Please sign in to comment.