Skip to content

Commit 531bec7

Browse files
authored
Release 5.25 r1 (#911)
* fix: WPB-25755 cleaned changelogs and prepared 5.25-R1 * fix: WPB-25755 updated artifact hashes for 5.25-R1 * fix: WPB-25755 update changelog verification fot releases
1 parent 2dd562a commit 531bec7

12 files changed

Lines changed: 55 additions & 22 deletions

File tree

.github/workflows/changelog-verify.yml

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,28 @@ jobs:
2626
BASE_SHA=${{ github.event.pull_request.base.sha }}
2727
HEAD_SHA=${{ github.event.pull_request.head.sha }}
2828
29-
# Use 3-dot syntax so we only see changes introduced by this PR
30-
CHANGED_FILES=$(git diff --name-only "$BASE_SHA...$HEAD_SHA" -- changelog.d/ | grep -vE "^$" || true)
29+
# Use 3-dot syntax so we only see changes introduced by this PR
30+
CHANGED_FILES=$(git diff --name-status "$BASE_SHA...$HEAD_SHA" -- changelog.d/ | awk '$1 ~ /^[AM]/ {print $2}' || true)
31+
DELETED_FILES=$(git diff --name-status "$BASE_SHA...$HEAD_SHA" -- changelog.d/ | awk '$1 ~ /^D/ {print $2}' || true)
32+
CHANGELOG_MODIFIED=$(git diff --name-only "$BASE_SHA...$HEAD_SHA" -- CHANGELOG.md | grep -vE "^$" || true)
3133
else
3234
# For push events, compare with the previous commit
3335
HEAD_SHA=${{ github.sha }}
3436
BASE_SHA=$(git rev-parse HEAD~1)
35-
CHANGED_FILES=$(git diff --name-only "$BASE_SHA" "$HEAD_SHA" -- changelog.d/ | grep -vE "^$" || true)
37+
CHANGED_FILES=$(git diff --name-status "$BASE_SHA" "$HEAD_SHA" -- changelog.d/ | awk '$1 ~ /^[AM]/ {print $2}' || true)
38+
DELETED_FILES=$(git diff --name-status "$BASE_SHA" "$HEAD_SHA" -- changelog.d/ | awk '$1 ~ /^D/ {print $2}' || true)
39+
CHANGELOG_MODIFIED=$(git diff --name-only "$BASE_SHA" "$HEAD_SHA" -- CHANGELOG.md | grep -vE "^$" || true)
3640
fi
3741
3842
echo "BASE_SHA: $BASE_SHA"
3943
echo "HEAD_SHA: $HEAD_SHA"
44+
echo "CHANGELOG_MODIFIED: ${CHANGELOG_MODIFIED:-false}"
4045
echo "CHANGED_FILES:"
4146
echo "$CHANGED_FILES"
47+
if [ -n "$DELETED_FILES" ]; then
48+
echo "DELETED_CHANGELOG_FILES:"
49+
echo "$DELETED_FILES"
50+
fi
4251
4352
# Check if commit is by zebot with wire-build update message
4453
COMMIT_AUTHOR=$(git log --format="%an" -1 $HEAD_SHA)
@@ -51,16 +60,26 @@ jobs:
5160
exit 0
5261
fi
5362
54-
if [ -z "$CHANGED_FILES" ]; then
55-
echo "No files changed in changelog.d/ for this ${GITHUB_EVENT_NAME:-event}."
56-
echo "Every PR must add or modify at least one changelog.d/ entry."
57-
exit 1
58-
fi
59-
6063
PATTERN='^(Added|Changed|Deprecated|Removed|Fixed|Security): .+'
6164
LINE_FOUND=false
65+
ALLOW_RELEASE_CLEANUP=false
66+
67+
if [ -z "$CHANGED_FILES" ]; then
68+
if [ -n "$DELETED_FILES" ] && [ -n "$CHANGELOG_MODIFIED" ]; then
69+
echo "No new or modified changelog.d/ entries found, but CHANGELOG.md changed, so this release cleanup is allowed."
70+
ALLOW_RELEASE_CLEANUP=true
71+
else
72+
echo "No files changed in changelog.d/ for this ${GITHUB_EVENT_NAME:-event}."
73+
echo "Every PR must add or modify at least one changelog.d/ entry."
74+
exit 1
75+
fi
76+
fi
6277
6378
for file in $CHANGED_FILES; do
79+
if [ ! -f "$file" ]; then
80+
echo "Skipping missing changelog file: $file"
81+
continue
82+
fi
6483
while IFS= read -r line; do
6584
if [[ -z "$line" ]]; then
6685
continue
@@ -75,7 +94,7 @@ jobs:
7594
done < "$file"
7695
done
7796
78-
if [ "$LINE_FOUND" = false ]; then
97+
if [ "$LINE_FOUND" = false ] && [ "$ALLOW_RELEASE_CLEANUP" = false ]; then
7998
echo "No valid lines found in changelog.d/ files. Ensure there is a newline at the end of files."
8099
echo "Please read more policies about changelog at https://keepachangelog.com/en/1.1.0"
81100
exit 1

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,30 @@
1212
1313
-->
1414

15+
# Relase 5.25 R1
16+
17+
## Release notes
18+
19+
* Changed: removing all old changelogs to cut a release for wire-server-deploy 5.25 for prod, wiab-staging and wiab-dev (#898)
20+
21+
## Internal Dependencies
22+
23+
* Removed: old images not in use anymore from proc_system_containers.sh (#909)
24+
* Fixed: update reference for 5.25 to 5.25.21 without any pinned component
25+
Added: logging in case of helm chart failure (#900)
26+
* Fixed: values for smtp helm chart (#900)
27+
28+
## External dependencies
29+
30+
* Fixed: Enable MLS protocol in production and dev values for brig (#909)
31+
* Fixed: Refactored terraform logic for CD purposes for all solutions wiab-dev(demo), wiab-staging and default (equivalent). All logic to pick up the region and server type remains in the respective scripts, there will be an iteration over regions first, terraform would just validate the regions and server types (#900)
32+
* Fixed: smtp helm chart values
33+
Fixed: issue due to requirement of mls keys for webapp for wiab-dev when MLS is not required (#900)
34+
35+
## Offline Documentation
36+
37+
* Fixed: commands in wiab-stag documentation (#907)
38+
1539
# Relase 5.25
1640

1741
## release-notes

ansible/inventory/demo/host.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ wiab:
1818
wire_ip: ""
1919

2020
# artifact_hash
21-
artifact_hash: "7a1e98f9ca610349824c89e2fd2e967b779a2f91"
21+
artifact_hash: "2dd562a37d449eb88eb1f77dcad5c9153987af5f"
2222

2323
# docker vars
2424
docker_ce_version: "5:28.1.1-1~ubuntu.24.04~noble"

ansible/inventory/demo/wiab-staging.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ wiab-staging:
66
ansible_user: 'demo'
77
ansible_ssh_private_key_file: "~/.ssh/id_ed25519"
88
vars:
9-
artifact_hash: 7a1e98f9ca610349824c89e2fd2e967b779a2f91
9+
artifact_hash: 2dd562a37d449eb88eb1f77dcad5c9153987af5f
1010
# when enabled, disable WAN SNAT/masquerading for VMs on the private network
1111
private_deployment: true

changelog.d/0-release-notes/release-5.25

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/2-wire-builds/clean-old-system-images

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/2-wire-builds/release-5.25

Lines changed: 0 additions & 2 deletions
This file was deleted.

changelog.d/2-wire-builds/smpt-values-fix

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/3-deploy-builds/fix-mls-value

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/3-deploy-builds/heztner-deployment

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)