forked from datenanfragen/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
datenanfragen#1133 improved pipeline to check for not yet assessed ya…
…rn issues
- Loading branch information
1 parent
230736e
commit 84c8980
Showing
5 changed files
with
55 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
rm -rf node_modules | ||
yarn install --check-files --no-progress --no-colors 2> temp_yarn_output.txt 1>/dev/null | ||
touch yarn_issues_assessed.txt | ||
grep -E "^(error|warning)" temp_yarn_output.txt > yarn_issues.txt | ||
|
||
# skip all assessed errors and warnings | ||
grep -vxFf yarn_issues_assessed.txt yarn_issues.txt > new_issues.txt | ||
|
||
if [ -s new_issues.txt ] | ||
then | ||
echo "New not yet assessed yarn issues found:" | ||
cat new_issues.txt | ||
rm temp_yarn_output.txt yarn_issues.txt new_issues.txt | ||
exit 1 | ||
fi | ||
|
||
rm temp_yarn_output.txt yarn_issues.txt new_issues.txt | ||
|
||
|
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,11 @@ | ||
# Dependency Management | ||
This document describes the current status of our dependency management and dependency assessment. | ||
|
||
# Never ignore errors and warnings | ||
If `ỳarn` issues a `warning` or `error`then act on it and do an assessment. | ||
Our CI/CD pipeline will check if there are warnings or errors that are new and not yet assessed. | ||
|
||
# Assessment of warnings and errors | ||
If you spot yarn errors and warnings then fix it. If you think it is safe to ignore them, then add the warning or error | ||
message to our [ignore list](./yarn_issues_assessed.txt) and put a comment line above it to inform other developers | ||
why it is safe to ignore this message. |
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,21 @@ | ||
# This file contains a list of YARN warnings and errors that are allowed to be skipped by our CI/CD pipeline. | ||
# All YARN warnings and errors not listed here will trigger a pipeline fail (by intention). | ||
# Add comments above each line to describe the reason why it is save to ignore this YARN warning or error | ||
|
||
# Skip list incl reason: | ||
|
||
# as of 2024-01-17 the team ignores this warning without providing a reason. Reason may get provided at a later point in time | ||
warning " > [email protected]" has unmet peer dependency "algoliasearch@>= 3.1 < 5". | ||
warning " > [email protected]" has unmet peer dependency "react@>= 16.3.0 < 19". | ||
warning " > [email protected]" has unmet peer dependency "react-dom@>= 16.3.0 < 19". | ||
warning "react-instantsearch-dom > [email protected]" has unmet peer dependency "algoliasearch@>= 3.1 < 5". | ||
warning "react-instantsearch-dom > [email protected]" has unmet peer dependency "algoliasearch@>= 3.1 < 5". | ||
warning "react-instantsearch-dom > [email protected]" has unmet peer dependency "react@>= 16.3.0 < 19". | ||
warning " > [email protected]" has unmet peer dependency "react@>=0.14.0". | ||
warning " > [email protected]" has unmet peer dependency "react-dom@>=0.14.0". | ||
warning " > @this-dot/[email protected]" has incorrect peer dependency "cypress@< 12.6.0". | ||
warning " > [email protected]" has incorrect peer dependency "eslint@^4.0.0 || ^5.0.0". | ||
warning " > [email protected]" has incorrect peer dependency "postcss@^8.4.14". | ||
warning " > [email protected]" has incorrect peer dependency "webpack@^5.0.0". | ||
warning " > [email protected]" has incorrect peer dependency "stylelint@^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0". | ||
warning " > [email protected]" has incorrect peer dependency "stylelint@10 - 13". |