[Infra] Include GitHub workflow name in each task #3636
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Which Delta project/connector is this regarding?
Description
I'd like to do some data science using the GitHub REST API on our PR runtimes. Unfortunately, using the GitHub CHECKs API (https://docs.github.com/en/rest/checks/runs?apiVersion=2022-11-28#list-check-runs-for-a-git-reference), I only get the name of the individual check (task). Getting the name of the parent workflow requires an additional API call.
This PR adds a name for the parent GitHub workflow in each workflow task. This will help my data science be able to identify each test.
Without this change, I will see tasks results like
test (2.12.18, 2): completed, cancelled, 2024-08-15T23:36:12Z
andtest (2.12.18): completed, success, 2024-08-15T22:34:13Z
but won't be able to tell which spark workflow (latest, master) they were for.How was this patch tested?
CI tests.
Does this PR introduce any user-facing changes?
No