Skip to content

Commit

Permalink
[Internal] Improve integration test comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorcast-db committed Sep 2, 2024
1 parent 6ab81ee commit 0d1280b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/check-mark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ jobs:
-f 'status=in_progress' \
-f output[title]="Integration Tests Check" \
-f output[summary]="Running." \
-f output[text]="Tests running:
Details https://github.com/databricks-eng/eng-dev-ecosystem/actions/runs/${{inputs.test_run_id}}" \
/repos/${{github.repository}}/check-runs/${{ inputs.check_run_id }}
mark-as-done:
Expand All @@ -53,11 +51,9 @@ jobs:
--input - <<- EOF
{
"conclusion": "success",
"details_url": "https://github.com/databricks-eng/eng-dev-ecosystem/actions/runs/${{inputs.test_run_id}}",
"output": {
"title": "Integration Tests Succeed 🚀",
"summary": "**Summary**: The tests succeded.",
"text": "Details https://github.com/databricks-eng/eng-dev-ecosystem/actions/runs/${{inputs.test_run_id}}"
"summary": "**Summary**: The tests succeded."
}
}
EOF
Expand All @@ -74,11 +70,9 @@ jobs:
--input - <<- EOF
{
"conclusion": "failure",
"details_url": "https://github.com/${{ github.repository }}/actions/runs/${{inputs.test_run_id}}",
"output": {
"title": "Integration Tests Failed",
"summary": "**Summary**: The tests failed.",
"text": "Details https://github.com/${{ github.repository }}/actions/runs/${{inputs.test_run_id}}"
"summary": "**Summary**: The tests failed."
}
}
EOF
Expand All @@ -104,9 +98,6 @@ jobs:
"<!-- INTEGRATION_TESTS -->
Test status: ${{ github.event.inputs.status}}
Workflow: https://github.com/databricks-eng/eng-dev-ecosystem/actions/workflows/sdk-go-isolated-pr.yml
Check Run ID: ${{ inputs.check_run_id }}
This check will be approved automatically on success.
Check URL: ${{ github.server_url }}/${{ github.repository }}/runs/${{ inputs.check_run_id }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
-f status='queued' \
-f output[title]="Integration Tests Check" \
-f output[summary]="This check is being created." \
-f output[text]="This check is being created. Refresh for details." \
--jq '.id' \
/repos/${{ github.repository }}/check-runs)
Expand All @@ -35,8 +34,7 @@ jobs:
-f name='Integration Tests Check' \
-f output[title]="Integration Tests Check" \
-f output[summary]="Waiting for test to run." \
-f output[text]="Run the following workflow using the provided check_run_id:
Workflow https://github.com/databricks-eng/eng-dev-ecosystem/actions/workflows/sdk-go-isolated-pr.yml
-f output[text]="Run the corresponding workflow using the provided check_run_id:
Check Run ID: $check_run_id " \
/repos/${{ github.repository }}/check-runs/$check_run_id
Expand All @@ -56,9 +54,11 @@ jobs:
# Add new comment
gh pr comment ${{ github.event.pull_request.number }} --body \
"<!-- INTEGRATION_TESTS -->
A new approval check has been created. Start integration tests by using the following link.
https://github.com/databricks-eng/eng-dev-ecosystem/actions/workflows/sdk-go-isolated-pr.yml/dispatch?pull_request_number=${{github.event.pull_request.number}}&check_run_id=${{ env.CHECK_RUN_ID }}
Run integration tests using the corresponding workflow:
Inputs:
pull_request_number=${{github.event.pull_request.number}}
check_run_id=${{ env.CHECK_RUN_ID }}
This check will be approved automatically on success.
Expand Down

0 comments on commit 0d1280b

Please sign in to comment.