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

Test failure pr #648

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 52 additions & 51 deletions .github/workflows/auto-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,33 +36,33 @@ jobs:
- name: Check out this repository code
uses: actions/checkout@v3
with:
path: empower
path: empower-flaky-tests
fetch-depth: 0

- name: Check out `empower-config` to get env-config
uses: actions/checkout@v3
with:
repository: sentry-demos/empower-config
path: empower-config
token: ${{ secrets.KOSTY_PERSONAL_ACCESS_TOKEN_FOR_SYNC_DEPLOY_FORK }}
# - name: Check out `empower-config` to get env-config
# uses: actions/checkout@v3
# with:
# repository: sentry-demos/empower-config
# path: empower-config
# token: ${{ secrets.KOSTY_PERSONAL_ACCESS_TOKEN_FOR_SYNC_DEPLOY_FORK }}

- name: Install Node
uses: actions/setup-node@v3
with:
node-version: "18"
# - name: Install Node
# uses: actions/setup-node@v3
# with:
# node-version: "18"

- name: Setup Sentry CLI
uses: mathieu-bour/[email protected]
with:
version: 2.17.4
token: ${{ SECRETS.SENTRY_AUTH_TOKEN }} # from GitHub secrets
# - name: Setup Sentry CLI
# uses: mathieu-bour/[email protected]
# with:
# version: 2.17.4
# token: ${{ SECRETS.SENTRY_AUTH_TOKEN }} # from GitHub secrets

- name: Get commit SHA that was last successfully deployed
uses: nrwl/[email protected]
with:
main-branch-name: master
error-on-no-successful-workflow: false
working-directory: ./empower
working-directory: ./empower-flaky-tests

# Test previous step worked
- run: |
Expand All @@ -73,7 +73,7 @@ jobs:
run: |
npm install
npm test -- --coverage --reporters=jest-junit
working-directory: ./empower/react
working-directory: ./empower-flaky-tests/react
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -84,7 +84,8 @@ jobs:
pip install -U pytest
pip install pytest-codecov
pytest --cov=. --cov-report=xml --junitxml=junit.xml -o junit_family=legacy
working-directory: ./empower/flask/src
working-directory: ./empower-flaky-tests/flask/src

- name: Upload coverage results to Codecov
uses: codecov/codecov-action@v3
with:
Expand All @@ -96,38 +97,38 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Get GCP_ env variables from empower-config/.gcloudrc
run: |
source empower-config/.gcloudrc
echo "GCP_WORKLOAD_IDENTITY_PROVIDER=$GCP_WORKLOAD_IDENTITY_PROVIDER" >> $GITHUB_OUTPUT
echo "GCP_SERVICE_ACCOUNT=$GCP_SERVICE_ACCOUNT" >> $GITHUB_OUTPUT
id: gcloudrc

- id: "auth"
name: "Authenticate Google Cloud"
uses: "google-github-actions/auth@v0"
with:
workload_identity_provider: ${{ steps.gcloudrc.outputs.GCP_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ steps.gcloudrc.outputs.GCP_SERVICE_ACCOUNT }}

- name: "Set up Google Cloud SDK"
uses: "google-github-actions/setup-gcloud@v0"

- name: Get env-config/production.env from empower-config
run: cp empower-config/production.env empower/env-config/

- name: Deploy to production
run: |
CHANGED_PROJECTS=$(./bin/projects_changed_bw_commits.sh "${{ env.NX_BASE }}" "${{ env.NX_HEAD }}")
if [[ ! -z "$CHANGED_PROJECTS" ]]; then
./deploy.sh $CHANGED_PROJECTS --env=production
elif [[ `./bin/release.sh` != `./bin/release.sh 1` ]]; then # different release than yesterday
# currently we create regular calendar releases only for React
./deploy.sh react --env=production
else
echo "No deployable projects have been changed since last successful deployment. New calendar release is not due either. Nothing to do."
fi
working-directory: ./empower
# - name: Get GCP_ env variables from empower-config/.gcloudrc
# run: |
# source empower-config/.gcloudrc
# echo "GCP_WORKLOAD_IDENTITY_PROVIDER=$GCP_WORKLOAD_IDENTITY_PROVIDER" >> $GITHUB_OUTPUT
# echo "GCP_SERVICE_ACCOUNT=$GCP_SERVICE_ACCOUNT" >> $GITHUB_OUTPUT
# id: gcloudrc

# - id: "auth"
# name: "Authenticate Google Cloud"
# uses: "google-github-actions/auth@v0"
# with:
# workload_identity_provider: ${{ steps.gcloudrc.outputs.GCP_WORKLOAD_IDENTITY_PROVIDER }}
# service_account: ${{ steps.gcloudrc.outputs.GCP_SERVICE_ACCOUNT }}

# - name: "Set up Google Cloud SDK"
# uses: "google-github-actions/setup-gcloud@v0"

# - name: Get env-config/production.env from empower-config
# run: cp empower-config/production.env empower/env-config/

# - name: Deploy to production
# run: |
# CHANGED_PROJECTS=$(./bin/projects_changed_bw_commits.sh "${{ env.NX_BASE }}" "${{ env.NX_HEAD }}")
# if [[ ! -z "$CHANGED_PROJECTS" ]]; then
# ./deploy.sh $CHANGED_PROJECTS --env=production
# elif [[ `./bin/release.sh` != `./bin/release.sh 1` ]]; then # different release than yesterday
# # currently we create regular calendar releases only for React
# ./deploy.sh react --env=production
# else
# echo "No deployable projects have been changed since last successful deployment. New calendar release is not due either. Nothing to do."
# fi
# working-directory: ./empower

- run: echo "Job status is ${{ job.status }}."

Expand Down
76 changes: 0 additions & 76 deletions .github/workflows/cleanup_inactive_cloud_resources.yml

This file was deleted.

62 changes: 0 additions & 62 deletions .github/workflows/deploy_tda.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/mock-data.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/pr_review_reminder.yml

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/run_codecov_on_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- name: Check out this repository code
uses: actions/checkout@v3
with:
path: empower
path: empower-flaky-tests
fetch-depth: 0

- name: Install Node
Expand All @@ -21,7 +21,7 @@ jobs:
run: |
npm install
npm test -- --coverage --reporters=jest-junit
working-directory: ./empower/react
working-directory: ./empower-flaky-tests/react
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -33,7 +33,7 @@ jobs:
pip install pytz
pip install pytest-codecov
pytest --cov=. --cov-report=xml --junitxml=junit.xml -o junit_family=legacy
working-directory: ./empower/flask/src
working-directory: ./empower-flaky-tests/flask/src
- name: Upload coverage results to Codecov
uses: codecov/codecov-action@v3
with:
Expand All @@ -45,4 +45,4 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}

- run: echo "Job status is ${{ job.status }}."
- run: echo "Job status is ${{ job.status }}."
42 changes: 0 additions & 42 deletions .github/workflows/test.yml

This file was deleted.

Loading
Loading