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 4818080
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 11 deletions.
23 changes: 13 additions & 10 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 @@ -68,8 +70,9 @@ runs:
cloudProvider: ${{ inputs.provider }}
test: ${{ inputs.test }}
refStream: ${{ inputs.refStream }}
token: ${{ secrets.PROJECT_WRITE_TOKEN }}
token: ${{ inputs.projectWriteToken }}
- 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 4818080

Please sign in to comment.