Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: configure e2e tests to run against staging before prod can deploy #1012

Merged
merged 7 commits into from
Jul 2, 2024

Conversation

hspitzley-czi
Copy link
Contributor

No description provided.

Comment on lines +7 to +21
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
prod_stack_upsert:
runs-on: [ARM64, self-hosted, Linux]
permissions:
id-token: write
contents: read
id-token: write
issues: write
pull-requests: write

steps:
- name: Upsert Prod Stack
uses: chanzuckerberg/argus-artifacts/ci/packages/create-stack@v0.19.1
uses: chanzuckerberg/argus-artifacts/ci/packages/create-stack@v0.23.0
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upgrade, not related to e2e tests

Comment on lines +7 to +22
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
create-rdev-stack:
runs-on: [ARM64, self-hosted, Linux]
if: contains(github.event.pull_request.labels.*.name, 'stack')
permissions:
id-token: write
contents: read
id-token: write
issues: write
pull-requests: write

steps:
- name: Create Stack
uses: chanzuckerberg/argus-artifacts/ci/packages/create-stack@v0.19.1
uses: chanzuckerberg/argus-artifacts/ci/packages/create-stack@v0.23.0
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upgrade, not related to e2e tests

Comment on lines +12 to +18
id-token: write
issues: write
pull-requests: write

steps:
- name: Delete Stack
uses: chanzuckerberg/argus-artifacts/ci/packages/delete-stack@v0.19.1
uses: chanzuckerberg/argus-artifacts/ci/packages/delete-stack@v0.23.0
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upgrade, not related to e2e tests


steps:
- name: Upsert Staging Stack
uses: chanzuckerberg/argus-artifacts/ci/packages/create-stack@v0.19.1
uses: chanzuckerberg/argus-artifacts/ci/packages/create-stack@v0.23.0
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upgrade, not related to e2e tests

Comment on lines +34 to +41
waitForDeploymentSeconds: 300

- name: Wait for Stating Stack to become Healthy
id: wait
uses: chanzuckerberg/argus-artifacts/ci/packages/wait-for-deployment@v0.19.1
with:
appName: single-cell-explorer
envName: staging
staging_smoke_test:
uses: ./.github/workflows/workflow-smoke-test.yaml
needs: staging_stack_upsert
secrets: inherit
with:
env: stage
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wait for healthy staging deployment and then run smoke tests against it

@@ -0,0 +1,61 @@
name: Smoke Test
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copied from .github/workflows/deploy-happy-stack.yml and made into a reusable workflow so it can easily be invoked for staging and prod

@hspitzley-czi hspitzley-czi marked this pull request as ready for review July 1, 2024 22:05
@hspitzley-czi hspitzley-czi merged commit 3995a74 into main Jul 2, 2024
13 of 14 checks passed
@hspitzley-czi hspitzley-czi deleted the hspitzley/e2e_tests_against_staging branch July 2, 2024 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants