-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into feature/#515-dependen…
…cy-upgrade
- Loading branch information
Showing
12 changed files
with
163 additions
and
22 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 |
---|---|---|
|
@@ -25,7 +25,6 @@ dependency-reduced-pom.xml | |
.DS_Store | ||
*.swp | ||
local | ||
Scripts | ||
.dbeaver* | ||
**/*.log | ||
.directory | ||
|
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
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
53 changes: 53 additions & 0 deletions
53
doc/requirements/images/dependencies_update_process.plantuml
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,53 @@ | ||
@startuml dependencies_update_process | ||
|
||
start | ||
:**dependencies_check.yml** workflow | ||
(triggered daily); | ||
note right | ||
Pass information about created | ||
issues & vulnerabilities to | ||
**dependencies_update.yml** | ||
end note | ||
if(Vulnerable dependencies found?) then (yes) | ||
group **dependencies_update.yml** workflow | ||
note right | ||
GitHub Workflow | ||
generated by PK | ||
end note | ||
:Run PK **update-dependencies** as Maven plugin; | ||
group PK **update-dependencies** | ||
note right | ||
Implement | ||
in PK | ||
end note | ||
if(Latest version already released?) then (yes) | ||
:Increment project version; | ||
else (no) | ||
endif | ||
:Update dependencies; | ||
:Run PK fix; | ||
note right | ||
Add dependency changes to | ||
changelog, Update list of | ||
dependencies, ... | ||
end note | ||
:Update changlog: add fixed vulnerabilites; | ||
if(pom.xml contains artifact-reference-checker-maven-plugin) then (yes) | ||
:Run artifact-reference-checker-maven-plugin:fix; | ||
else (no) | ||
endif | ||
end group | ||
:Create branch, commit, push & | ||
create pull request; | ||
note right | ||
Needs information about | ||
issues & vulnerabilities | ||
end note | ||
:Send Slack notification | ||
for success and failure; | ||
end group | ||
else (no) | ||
stop | ||
endif | ||
stop | ||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,51 @@ | ||
@startuml release_process | ||
|
||
start | ||
note right | ||
Triggered manually or | ||
on pushes to main branch. | ||
end note | ||
group **release.yml** workflow | ||
note right | ||
Generated | ||
by PK | ||
end note | ||
:Run PK **verify-release** as Maven plugin; | ||
group PK **verify-release** | ||
note right | ||
Implemented | ||
in PK | ||
end note | ||
if(Release date up-to-date?\n(allow skipping the release)) then (up-to-date) | ||
:Run PK **verify**; | ||
:Run additional release checks; | ||
:Write changelog content to file; | ||
note right | ||
Required for creating | ||
the GitHub release | ||
end note | ||
else (invalid/outdated) | ||
:Fail build; | ||
stop | ||
endif | ||
end group | ||
:Run **mvn verify**; | ||
if(Maven Central deployment required) then (required) | ||
:Run **mvn deploy**; | ||
endif | ||
:Calculate checksums for release artifacts; | ||
:Create GitHub release; | ||
note right | ||
Reads changelog | ||
content from file | ||
end note | ||
:Attach release artifacts and | ||
checksums to GitHub release; | ||
note right | ||
Customizable | ||
end note | ||
:Send Slack notification | ||
for success & failure; | ||
end group | ||
stop | ||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,34 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
# This script builds all design diagrams | ||
|
||
base_dir="$( cd "$(dirname "$0")/.." >/dev/null 2>&1 ; pwd -P )" | ||
readonly base_dir | ||
|
||
readonly diagrams_dir="$base_dir/doc/requirements/images" | ||
readonly output_dir="$base_dir/doc/requirements/images" | ||
|
||
if [[ "$(ls -A "$output_dir"/*.svg)" ]]; then | ||
echo "Deleting diagrams from $output_dir..." | ||
rm "$output_dir"/*.svg | ||
fi | ||
|
||
expected_diagram_count=$(find "$diagrams_dir" -name "*.plantuml" | wc --lines) | ||
readonly expected_diagram_count | ||
|
||
echo "Building $expected_diagram_count diagrams..." | ||
plantuml -tsvg -output "$output_dir" -failonerror -failonwarn -failfast2 "$diagrams_dir/**/*.plantuml" | ||
|
||
actual_diagram_count=$(find "$output_dir" -name "*.svg" | wc --lines) | ||
readonly actual_diagram_count | ||
|
||
if [[ "$expected_diagram_count" -ne "$actual_diagram_count" ]]; then | ||
echo "ERROR: Expected $expected_diagram_count diagrams but $actual_diagram_count were generated" | ||
exit 1 | ||
fi | ||
|
||
echo "All $actual_diagram_count diagrams were built successfully in $output_dir." |