-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: check-links: enable caching and check for warnings (#3026)
- Loading branch information
Showing
4 changed files
with
73 additions
and
7 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
WARN docs/specs/opamp/index.md:.*semantic-conventions/tree/main/docs/resource |
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,19 @@ | ||
#!/bin/bash | ||
# | ||
# NOTE: add warning skip patterns, one per line to WARNINGS_SKIP_LIST to | ||
# temporarily skip known warnings or errors. | ||
|
||
BUILD_LOG=tmp/build-log.txt | ||
WARNINGS_SKIP_LIST=.warnings-skip-list.txt | ||
|
||
WARNINGS=`grep -E -ie 'warn(ing)?|error' $BUILD_LOG | grep -v -f $WARNINGS_SKIP_LIST` | ||
|
||
if [ -e $BUILD_LOG ]; then | ||
if [ -n "$WARNINGS" ]; then | ||
echo "WARNINGs or ERRORs found in build log:\n" | ||
echo "$WARNINGS\n" | ||
exit 1 | ||
fi | ||
else | ||
echo "INFO: $BUILD_LOG file not found." | ||
fi |