Skip to content

Commit 4f235f1

Browse files
committed
release: prepare WePush Next 0.1.0-beta.1
1 parent 173ee5a commit 4f235f1

97 files changed

Lines changed: 2363 additions & 309 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/next-ci.yml‎

Lines changed: 88 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ on:
66
- 'next/**'
77
- '.github/workflows/next-ci.yml'
88
- '.github/workflows/next-release.yml'
9+
- '.github/workflows/next-soak.yml'
910
pull_request:
1011
paths:
1112
- 'next/**'
1213
- '.github/workflows/next-ci.yml'
1314
- '.github/workflows/next-release.yml'
15+
- '.github/workflows/next-soak.yml'
1416
workflow_dispatch:
1517

1618
permissions:
@@ -121,6 +123,12 @@ jobs:
121123
- name: Typecheck, test and build UI
122124
working-directory: next/ui
123125
run: pnpm check
126+
- name: Install Chromium for browser E2E
127+
working-directory: next/ui
128+
run: pnpm --filter @wepush-next/web exec playwright install --with-deps chromium
129+
- name: Run browser E2E
130+
working-directory: next/ui
131+
run: pnpm --filter @wepush-next/web e2e
124132

125133
desktop-and-platform-scripts:
126134
name: Desktop and installers (${{ matrix.os }})
@@ -151,6 +159,7 @@ jobs:
151159
run: |
152160
find next/distribution/src/main/distribution -type f -name '*.sh' -print0 |
153161
xargs -0 -n1 sh -n
162+
next/distribution/src/test/operations-self-test.sh
154163
- name: Validate launchd units and macOS application
155164
if: runner.os == 'macOS'
156165
shell: bash
@@ -159,16 +168,19 @@ jobs:
159168
xargs -0 -n1 plutil -lint
160169
test -f 'next/ui/apps/desktop/release/WePush Next.app/Contents/Info.plist'
161170
codesign --verify --deep --strict --verbose=2 'next/ui/apps/desktop/release/WePush Next.app'
171+
WEPUSH_DESKTOP_SMOKE_TEST=true 'next/ui/apps/desktop/release/WePush Next.app/Contents/MacOS/WePush Next'
162172
- name: Validate Linux application
163173
if: runner.os == 'Linux'
164174
shell: bash
165-
run: test -x next/ui/apps/desktop/release/linux-unpacked/wepush-next
175+
run: |
176+
test -x next/ui/apps/desktop/release/linux-unpacked/wepush-next
177+
xvfb-run -a env WEPUSH_DESKTOP_SMOKE_TEST=true next/ui/apps/desktop/release/linux-unpacked/wepush-next
166178
- name: Validate PowerShell, WinSW XML and Windows application
167179
if: runner.os == 'Windows'
168180
shell: pwsh
169181
run: |
170182
$failed = $false
171-
Get-ChildItem next/distribution/src/main/distribution -Recurse -Filter *.ps1 | ForEach-Object {
183+
Get-ChildItem next/distribution/src -Recurse -Filter *.ps1 | ForEach-Object {
172184
$tokens = $null
173185
$errors = $null
174186
[System.Management.Automation.Language.Parser]::ParseFile($_.FullName, [ref]$tokens, [ref]$errors) | Out-Null
@@ -185,6 +197,10 @@ jobs:
185197
$failed = $true
186198
}
187199
if ($failed) { exit 1 }
200+
& next/distribution/src/test/operations-self-test.ps1
201+
$env:WEPUSH_DESKTOP_SMOKE_TEST = 'true'
202+
$process = Start-Process 'next/ui/apps/desktop/release/win-unpacked/WePush Next.exe' -Wait -PassThru
203+
if ($process.ExitCode -ne 0) { throw "Desktop smoke check failed with exit code $($process.ExitCode)" }
188204
189205
distribution:
190206
name: Distribution archives
@@ -204,6 +220,8 @@ jobs:
204220
- name: Build WebUI
205221
working-directory: next/ui
206222
run: pnpm install --frozen-lockfile && pnpm --filter @wepush-next/web build
223+
- name: Prepare pinned offline Windows service wrapper
224+
run: next/scripts/prepare-winsw.sh
207225
- name: Build release archives after verified jobs
208226
working-directory: next
209227
run: ./mvnw --batch-mode --no-transfer-progress -DskipTests package
@@ -227,6 +245,8 @@ jobs:
227245
grep -Eq '^wepush-next-[^/]+/sdk/embedded-java-[^/]+\.jar$' <<< "$tar_listing"
228246
grep -Eq '^wepush-next-[^/]+/sdk/provider-http-[^/]+\.jar$' <<< "$tar_listing"
229247
grep -Eq '^wepush-next-[^/]+/sdk/provider-standard-[^/]+\.jar$' <<< "$tar_listing"
248+
grep -Eq '^wepush-next-[^/]+/install/windows/WinSW-x64\.exe$' <<< "$tar_listing"
249+
grep -Eq '^wepush-next-[^/]+/install/windows/WinSW-NOTICE\.txt$' <<< "$tar_listing"
230250
unzip -t "$zip_archive"
231251
- uses: actions/upload-artifact@v4
232252
with:
@@ -237,3 +257,69 @@ jobs:
237257
next/distribution/target/*.sha256
238258
if-no-files-found: error
239259
retention-days: 14
260+
261+
bundled-runtime-packages:
262+
name: Bundled Java runtime (${{ matrix.platform }})
263+
needs: distribution
264+
runs-on: ${{ matrix.os }}
265+
strategy:
266+
fail-fast: false
267+
matrix:
268+
include:
269+
- os: ubuntu-latest
270+
platform: linux
271+
- os: macos-latest
272+
platform: macos
273+
- os: windows-latest
274+
platform: windows
275+
steps:
276+
- uses: actions/checkout@v4
277+
- uses: actions/setup-java@v4
278+
with:
279+
distribution: temurin
280+
java-version: '21'
281+
- uses: actions/download-artifact@v4
282+
with:
283+
name: wepush-next-distribution
284+
path: slim
285+
- name: Build and verify Unix bundled-runtime archive
286+
if: runner.os != 'Windows'
287+
shell: bash
288+
run: |
289+
set -euo pipefail
290+
archive=$(find slim -maxdepth 1 -name '*.tar.gz' -print -quit)
291+
mkdir staging output
292+
tar -xzf "$archive" -C staging
293+
root=$(find staging -mindepth 1 -maxdepth 1 -type d -print -quit)
294+
"$JAVA_HOME/bin/jlink" --add-modules ALL-MODULE-PATH --strip-debug --no-header-files --no-man-pages --compress=2 --output "$root/runtime"
295+
"$root/runtime/bin/java" -version
296+
machine=$(uname -m)
297+
case "$machine" in x86_64) arch=x64;; arm64|aarch64) arch=arm64;; *) arch=$machine;; esac
298+
version=$(basename "$root" | sed 's/^wepush-next-//')
299+
if [ "${{ matrix.platform }}" = macos ]; then
300+
ditto -c -k --sequesterRsrc --keepParent "$root" "output/wepush-next-$version-macos-$arch.zip"
301+
else
302+
tar -C staging -czf "output/wepush-next-$version-linux-$arch.tar.gz" "$(basename "$root")"
303+
fi
304+
- name: Build and verify Windows bundled-runtime archive
305+
if: runner.os == 'Windows'
306+
shell: pwsh
307+
run: |
308+
$archive = Get-ChildItem slim -Filter *.zip |
309+
Where-Object { $_.Name -notlike '*java-sdk*' } |
310+
Select-Object -First 1
311+
if (-not $archive) { throw 'Slim Windows distribution archive not found' }
312+
New-Item -ItemType Directory -Force -Path staging,output | Out-Null
313+
Expand-Archive $archive.FullName staging
314+
$root = Get-ChildItem staging -Directory | Select-Object -First 1
315+
& "$env:JAVA_HOME\bin\jlink.exe" --add-modules ALL-MODULE-PATH --strip-debug --no-header-files --no-man-pages --compress=2 --output "$($root.FullName)\runtime"
316+
& "$($root.FullName)\runtime\bin\java.exe" -version
317+
$arch = if ($env:PROCESSOR_ARCHITECTURE -eq 'ARM64') { 'arm64' } else { 'x64' }
318+
$version = $root.Name -replace '^wepush-next-', ''
319+
Compress-Archive $root.FullName "output\wepush-next-$version-windows-$arch.zip"
320+
- uses: actions/upload-artifact@v4
321+
with:
322+
name: wepush-next-runtime-${{ matrix.platform }}
323+
path: output/*
324+
if-no-files-found: error
325+
retention-days: 14

‎.github/workflows/next-release.yml‎

Lines changed: 81 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ jobs:
7878
- name: Verify and build WebUI
7979
working-directory: next/ui
8080
run: pnpm install --frozen-lockfile && pnpm check
81+
- name: Install Chromium and run browser E2E
82+
working-directory: next/ui
83+
run: |
84+
pnpm --filter @wepush-next/web exec playwright install --with-deps chromium
85+
pnpm --filter @wepush-next/web e2e
86+
- name: Prepare pinned offline Windows service wrapper
87+
run: next/scripts/prepare-winsw.sh
8188
- name: Verify Java, PostgreSQL, S3 and build distributions
8289
working-directory: next
8390
run: ./mvnw --batch-mode --no-transfer-progress verify
@@ -92,6 +99,8 @@ jobs:
9299
grep -Eq '^wepush-next-[^/]+/docs/user-guide.md$' <<< "$tar_listing"
93100
grep -Eq '^wepush-next-[^/]+/sdk/embedded-java-[^/]+\.jar$' <<< "$tar_listing"
94101
grep -Eq '^wepush-next-[^/]+/sdk/provider-standard-[^/]+\.jar$' <<< "$tar_listing"
102+
grep -Eq '^wepush-next-[^/]+/install/windows/WinSW-x64\.exe$' <<< "$tar_listing"
103+
grep -Eq '^wepush-next-[^/]+/install/windows/WinSW-NOTICE\.txt$' <<< "$tar_listing"
95104
unzip -t "wepush-next-${{ steps.metadata.outputs.version }}.zip"
96105
- name: Stage distribution assets
97106
env:
@@ -188,6 +197,7 @@ jobs:
188197
set -euo pipefail
189198
test -x next/ui/apps/desktop/release/linux-unpacked/wepush-next
190199
node -e 'const p=require("./next/ui/apps/desktop/release/linux-unpacked/resources/app/package.json");if(p.version!==process.env.VERSION)process.exit(1)'
200+
xvfb-run -a env WEPUSH_DESKTOP_SMOKE_TEST=true next/ui/apps/desktop/release/linux-unpacked/wepush-next
191201
name="wepush-next-desktop-$VERSION-linux-$ARCH"
192202
mkdir -p "release-assets" "$name"
193203
cp -a next/ui/apps/desktop/release/linux-unpacked "$name/WePush Next"
@@ -206,6 +216,7 @@ jobs:
206216
test "$(plutil -extract CFBundleExecutable raw 'next/ui/apps/desktop/release/WePush Next.app/Contents/Info.plist')" = 'WePush Next'
207217
test "$(plutil -extract CFBundleShortVersionString raw 'next/ui/apps/desktop/release/WePush Next.app/Contents/Info.plist')" = "${VERSION%%-*}"
208218
node -e 'const p=require("./next/ui/apps/desktop/release/WePush Next.app/Contents/Resources/app/package.json");if(p.version!==process.env.VERSION)process.exit(1)'
219+
WEPUSH_DESKTOP_SMOKE_TEST=true 'next/ui/apps/desktop/release/WePush Next.app/Contents/MacOS/WePush Next'
209220
name="wepush-next-desktop-$VERSION-macos-$ARCH"
210221
mkdir -p "release-assets" "$name"
211222
cp -R 'next/ui/apps/desktop/release/WePush Next.app' "$name/"
@@ -225,6 +236,9 @@ jobs:
225236
if ($metadata.version -ne $env:VERSION) {
226237
throw "Packaged Windows version is $($metadata.version), expected $env:VERSION"
227238
}
239+
$env:WEPUSH_DESKTOP_SMOKE_TEST = 'true'
240+
$process = Start-Process 'next/ui/apps/desktop/release/win-unpacked/WePush Next.exe' -Wait -PassThru
241+
if ($process.ExitCode -ne 0) { throw "Desktop smoke check failed with exit code $($process.ExitCode)" }
228242
$name = "wepush-next-desktop-$env:VERSION-windows-$env:ARCH"
229243
New-Item -ItemType Directory -Force -Path release-assets, $name | Out-Null
230244
Copy-Item next/ui/apps/desktop/release/win-unpacked "$name/WePush Next" -Recurse
@@ -237,9 +251,75 @@ jobs:
237251
if-no-files-found: error
238252
retention-days: 30
239253

254+
runtime:
255+
name: Bundled Java runtime (${{ matrix.platform }})
256+
needs: distribution
257+
runs-on: ${{ matrix.os }}
258+
strategy:
259+
fail-fast: false
260+
matrix:
261+
include:
262+
- os: ubuntu-latest
263+
platform: linux
264+
- os: macos-latest
265+
platform: macos
266+
- os: windows-latest
267+
platform: windows
268+
steps:
269+
- uses: actions/checkout@v4
270+
- uses: actions/setup-java@v4
271+
with:
272+
distribution: temurin
273+
java-version: '21'
274+
- uses: actions/download-artifact@v4
275+
with:
276+
name: wepush-next-distribution
277+
path: slim
278+
- name: Build Unix bundled-runtime archive
279+
if: runner.os != 'Windows'
280+
shell: bash
281+
run: |
282+
set -euo pipefail
283+
archive=$(find slim -maxdepth 1 -name '*.tar.gz' -print -quit)
284+
mkdir staging release-assets
285+
tar -xzf "$archive" -C staging
286+
root=$(find staging -mindepth 1 -maxdepth 1 -type d -print -quit)
287+
"$JAVA_HOME/bin/jlink" --add-modules ALL-MODULE-PATH --strip-debug --no-header-files --no-man-pages --compress=2 --output "$root/runtime"
288+
"$root/runtime/bin/java" -version
289+
machine=$(uname -m)
290+
case "$machine" in x86_64) arch=x64;; arm64|aarch64) arch=arm64;; *) arch=$machine;; esac
291+
version=$(basename "$root" | sed 's/^wepush-next-//')
292+
if [ "${{ matrix.platform }}" = macos ]; then
293+
ditto -c -k --sequesterRsrc --keepParent "$root" "release-assets/wepush-next-$version-macos-$arch.zip"
294+
else
295+
tar -C staging -czf "release-assets/wepush-next-$version-linux-$arch.tar.gz" "$(basename "$root")"
296+
fi
297+
- name: Build Windows bundled-runtime archive
298+
if: runner.os == 'Windows'
299+
shell: pwsh
300+
run: |
301+
$archive = Get-ChildItem slim -Filter *.zip |
302+
Where-Object { $_.Name -notlike '*java-sdk*' } |
303+
Select-Object -First 1
304+
if (-not $archive) { throw 'Slim Windows distribution archive not found' }
305+
New-Item -ItemType Directory -Force -Path staging,'release-assets' | Out-Null
306+
Expand-Archive $archive.FullName staging
307+
$root = Get-ChildItem staging -Directory | Select-Object -First 1
308+
& "$env:JAVA_HOME\bin\jlink.exe" --add-modules ALL-MODULE-PATH --strip-debug --no-header-files --no-man-pages --compress=2 --output "$($root.FullName)\runtime"
309+
& "$($root.FullName)\runtime\bin\java.exe" -version
310+
$arch = if ($env:PROCESSOR_ARCHITECTURE -eq 'ARM64') { 'arm64' } else { 'x64' }
311+
$version = $root.Name -replace '^wepush-next-', ''
312+
Compress-Archive $root.FullName "release-assets\wepush-next-$version-windows-$arch.zip"
313+
- uses: actions/upload-artifact@v4
314+
with:
315+
name: wepush-next-runtime-${{ matrix.platform }}
316+
path: release-assets/*
317+
if-no-files-found: error
318+
retention-days: 30
319+
240320
publish:
241321
name: Publish GitHub Pre-release
242-
needs: [distribution, desktop]
322+
needs: [distribution, desktop, runtime]
243323
runs-on: ubuntu-latest
244324
permissions:
245325
contents: write

‎.github/workflows/next-soak.yml‎

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: WePush Next Long-running Stability
2+
3+
on:
4+
schedule:
5+
- cron: '17 18 * * 2,5'
6+
workflow_dispatch:
7+
inputs:
8+
duration_seconds:
9+
description: Duration of each matrix cell in seconds
10+
required: false
11+
default: '300'
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
standalone-soak:
18+
name: ${{ matrix.database }} / Java ${{ matrix.java }}
19+
runs-on: ubuntu-latest
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
database: [sqlite, postgres]
24+
java: ['21', '25']
25+
services:
26+
postgres:
27+
image: postgres:18-alpine
28+
env:
29+
POSTGRES_DB: wepush
30+
POSTGRES_USER: wepush
31+
POSTGRES_PASSWORD: wepush-test
32+
ports:
33+
- 5432:5432
34+
options: >-
35+
--health-cmd "pg_isready -U wepush"
36+
--health-interval 5s
37+
--health-timeout 3s
38+
--health-retries 20
39+
env:
40+
WEPUSH_SOAK_DATABASE: ${{ matrix.database }}
41+
WEPUSH_TEST_POSTGRES_URL: jdbc:postgresql://127.0.0.1:5432/wepush
42+
WEPUSH_TEST_POSTGRES_USERNAME: wepush
43+
WEPUSH_TEST_POSTGRES_PASSWORD: wepush-test
44+
SOAK_SECONDS: ${{ inputs.duration_seconds || '300' }}
45+
steps:
46+
- uses: actions/checkout@v4
47+
- uses: actions/setup-java@v4
48+
with:
49+
distribution: temurin
50+
java-version: ${{ matrix.java }}
51+
cache: maven
52+
- name: Run bounded standalone soak
53+
working-directory: next
54+
run: >-
55+
./mvnw --batch-mode --no-transfer-progress
56+
-pl service/service-app -am
57+
-Dtest=StandaloneSoakIntegrationTest
58+
-Dsurefire.failIfNoSpecifiedTests=false
59+
-Dwepush.soak.seconds=${SOAK_SECONDS}
60+
test

‎.gitignore‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,10 @@
88
/jdks/
99
/downloads/
1010
/dist/
11+
12+
# Generated during WePush Next release packaging from a pinned upstream binary.
13+
/next/distribution/src/main/distribution/install/windows/WinSW-x64.exe
14+
15+
# Playwright generates these local reports during browser end-to-end tests.
16+
/next/ui/apps/web/playwright-report/
17+
/next/ui/apps/web/test-results/

‎next/CHANGELOG.md‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,25 @@
44

55
## Unreleased
66

7+
## 0.1.0-beta.1 — 2026-08-28
8+
9+
### Added
10+
11+
- 三平台统一 Standalone 安装入口、`jlink` Java Runtime 完整包和系统 Java 精简包;Windows 离线携带固定摘要的 WinSW。
12+
- 正式 Backup/Restore、逐文件内容校验、恢复前副本、Installation Health,以及升级失败自动切回旧版本和数据。
13+
- Desktop 本机 Service 检测/启停/日志/诊断、原生安全 Token 存储和签名 Provider 插件 Stage/Activate/Rollback。
14+
- Playwright 浏览器 E2E、三平台 Desktop 冒烟、安装/恢复/失败升级自测和 Java 21/25 × SQLite/PostgreSQL 长稳矩阵。
15+
16+
### Changed
17+
18+
- 浏览器 Token 从持久 `localStorage` 收口为标签页 `sessionStorage`;Desktop 在系统安全存储不可用时拒绝弱持久化。
19+
- Provider 插件 Stage 先复用 Agent 生产校验器,并按清单 `pluginId` 生成稳定激活文件名。
20+
- Service 新增 Installation Health 组,同时检查 Flyway 当前版本和无网络 Provider Dry Run。
21+
22+
### Fixed
23+
24+
- 清理未来 JDK SQLite Native Access 警告、Agent Shade 重复模块/签名/许可证资源和基础设施测试日志依赖缺口。
25+
726
## 0.1.0-alpha.4 — 2026-08-28
827

928
### Added

‎next/PREVIEW-NOTICE.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# WePush Next Public Preview Notice
22

3-
WePush Next `0.1.0-alpha.4` 是面向社区的公开预览版,用于验证新架构、收集反馈和开展兼容性测试;它不是稳定版,也不建议直接用于关键生产业务。
3+
WePush Next `0.1.0-beta.1` 是面向社区的公开预览版,用于验证新架构、收集反馈和开展兼容性测试;它不是稳定版,也不建议直接用于关键生产业务。
44

55
## 未签名发行说明
66

@@ -15,7 +15,7 @@ WePush Next `0.1.0-alpha.4` 是面向社区的公开预览版,用于验证新
1515
## 预览期边界
1616

1717
- API、配置项、数据结构和升级路径仍可能在后续预览版发生不兼容变化。
18-
- `alpha.4` 的 SMTP、企业 IM、短信和微信 Provider 会在正式 Run 中调用用户配置的第三方账号,并可能消耗渠道额度或产生第三方费用。务必先用自有测试目标完成 Dry Run 和小范围验证。
18+
- `beta.1` 的 SMTP、企业 IM、短信和微信 Provider 会在正式 Run 中调用用户配置的第三方账号,并可能消耗渠道额度或产生第三方费用。务必先用自有测试目标完成 Dry Run 和小范围验证。
1919
- 第三方渠道的模板审核、关注/订阅授权、IP 白名单、账号余额、频率与地区规则由用户和渠道厂商负责;连接测试成功不代表正式消息一定可送达。
2020
- 请先备份数据库、Secret 主密钥、Agent 身份文件、插件与 Artifact,再执行升级或卸载。
2121
- 跨主机部署必须启用认证和 TLS;默认回环地址与明文 gRPC 仅用于本机体验。

0 commit comments

Comments
 (0)