Skip to content

Commit

Permalink
debug action
Browse files Browse the repository at this point in the history
  • Loading branch information
elchead committed Nov 16, 2023
1 parent 4044c87 commit 3f4fc32
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 10 deletions.
21 changes: 12 additions & 9 deletions .github/actions/notify_e2e_failure/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ runs:

- name: Get the current date
id: date
shell: bash
run: echo "::set-output name=date::$(date +'%Y-%m-%d %H:%M:%S')"

- name: Create body template
id: body-template
shell: bash
run: |
# TODO(katexochen): add job number when possible
jobURL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
Expand Down Expand Up @@ -70,6 +72,7 @@ runs:
refStream: ${{ inputs.refStream }}
token: ${{ secrets.PROJECT_WRITE_TOKEN }}
- run: echo ${{ steps.gh_create_issue.outputs.issue-url }} # TODO rm
shell: bash

- name: Create project card in case of failure
id: create-project-card
Expand Down Expand Up @@ -153,12 +156,12 @@ runs:
echo "additionalFields=$(cat facts.json)" | tee -a "$GITHUB_OUTPUT"
echo "additionalButtons=$buttons" | tee -a "$GITHUB_OUTPUT"
- name: Notify teams channel
continue-on-error: true
uses: ./.github/actions/notify_teams
with:
teamsWebhookURI: ${{ inputs.teamsWebhookUri }}
title: "Constellation E2E test failed"
assignee: ${{ steps.pick-assignee.outputs.assignee }}
additionalFields: ${{ steps.create-fields.outputs.additionalFields }}
additionalButtons: ${{ steps.create-fields.outputs.additionalButtons }}
#- name: Notify teams channel
# continue-on-error: true
# uses: ./.github/actions/notify_teams
# with:
# teamsWebhookURI: ${{ inputs.teamsWebhookUri }}
# title: "Constellation E2E test failed"
# assignee: ${{ steps.pick-assignee.outputs.assignee }}
# additionalFields: ${{ steps.create-fields.outputs.additionalFields }}
# additionalButtons: ${{ steps.create-fields.outputs.additionalButtons }}
19 changes: 18 additions & 1 deletion .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ jobs:
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
ref: ${{ inputs.git-ref }}

- name: Get Latest Image
id: find-latest-image
uses: ./.github/actions/find_latest_image
Expand Down Expand Up @@ -202,6 +202,23 @@ jobs:
with:
ref: ${{ inputs.git-ref }}

- name: Notify about failure
continue-on-error: true
uses: ./.github/actions/notify_e2e_failure
with:
projectWriteToken: ${{ secrets.PROJECT_WRITE_TOKEN }}
teamsWebhookUri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }}
refStream: test
test: E2E manual
kubernetesVersion: v1.99.0
provider: aws
selfManagedInfra: "false"

- run: exit 1
shell: bash



- name: Set up gcloud CLI (macOS)
if: inputs.cloudProvider == 'gcp' && runner.os == 'macOS'
uses: google-github-actions/setup-gcloud@e30db14379863a8c79331b04a9969f4c1e225e0b # v1.1.1
Expand Down

0 comments on commit 3f4fc32

Please sign in to comment.