-
Notifications
You must be signed in to change notification settings - Fork 805
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate a metadata file artifact in unit test buildkite job (#5708)
- Loading branch information
1 parent
384c045
commit aac1eb3
Showing
3 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
|
||
set -ex | ||
|
||
# This script generates coverage metadata for the coverage report. | ||
# Output is used by SonarQube integration in Uber and not used by OS repo coverage tool itself. | ||
|
||
# Example output: | ||
# commit-sha: 6953daa563e8e44512bc349c9608484cfd4ec4ff | ||
# timestamp: 2024-03-04T19:29:16Z | ||
|
||
output_path="$1" | ||
|
||
echo "commit-sha: $(git rev-parse HEAD)" > "$output_path" | ||
echo "timestamp: $(date -u +%Y-%m-%dT%H:%M:%SZ)" >> "$output_path" | ||
|
||
echo "Coverage metadata written to $output_path" |