Skip to content

Commit a358970

Browse files
committed
v1.6.1
1 parent b480571 commit a358970

48 files changed

Lines changed: 2506 additions & 704 deletions

Some content is hidden

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

‎.github/ISSUE_TEMPLATE/bug_report.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ body:
2121
attributes:
2222
label: ChannelWatch version
2323
description: In Settings > Updates, copy Application version. Include Container image version if the problem involves updating.
24-
placeholder: "e.g. 1.6.0"
24+
placeholder: "e.g. 1.6.1"
2525
validations:
2626
required: true
2727

‎.github/ISSUE_TEMPLATE/question.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ body:
2828
attributes:
2929
label: ChannelWatch version
3030
description: In Settings > Updates, copy Application version. Include Container image version if the problem involves updating.
31-
placeholder: "e.g. 1.6.0"
31+
placeholder: "e.g. 1.6.1"
3232
validations:
3333
required: true
3434

‎.github/workflows/docker-publish.yml‎

Lines changed: 81 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,27 @@ jobs:
724724
tar -xf "${RUNNER_TEMP}/signed-assets.tar" -C "${RUNNER_TEMP}/signed-assets"
725725
rm -f "${RUNNER_TEMP}/signed-assets.tar"
726726
echo "PYTHONPATH=${PYTHONPATH}" >> "${GITHUB_ENV}"
727+
- name: Download the immutable v1.6.0 protocol-4 source
728+
if: needs.candidate-source-gates.outputs.runtime_generation_required == 'true'
729+
shell: bash
730+
run: |
731+
set -euo pipefail
732+
source_dir="${RUNNER_TEMP}/runtime-source-v1.6.0"
733+
mkdir -p "${source_dir}"
734+
base_url="https://github.com/CoderLuii/ChannelWatch/releases/download/v1.6.0"
735+
curl --fail --silent --show-error --location \
736+
--output "${source_dir}/channelwatch-update-catalog-v3.json" \
737+
"${base_url}/channelwatch-update-catalog-v3.json"
738+
for architecture in amd64 arm64; do
739+
curl --fail --silent --show-error --location \
740+
--output "${source_dir}/channelwatch-runtime-v1.6.0-${architecture}.zip" \
741+
"${base_url}/channelwatch-runtime-v1.6.0-${architecture}.zip"
742+
done
743+
printf '%s %s\n' \
744+
'f20578206578901c9a28486c28e2a6f8c2e7974bad4ec314d55a3bcba53e1b39' "${source_dir}/channelwatch-update-catalog-v3.json" \
745+
'865a6054f0fbddd213fe5f2e2578de5da8bc4453f322a991003516cc1bd9cadc' "${source_dir}/channelwatch-runtime-v1.6.0-amd64.zip" \
746+
'60f0a7a97433778ac89e17bab90ef6e83566159649697f90e2f5918afd17c2ec' "${source_dir}/channelwatch-runtime-v1.6.0-arm64.zip" \
747+
| sha256sum --check --strict
727748
- name: Run the native protocol-4 lifecycle verifier
728749
if: needs.candidate-source-gates.outputs.runtime_generation_required == 'true'
729750
env:
@@ -752,14 +773,26 @@ jobs:
752773
--minimum-image-version "$(jq -r '.minimum_image_version' scripts/release/release-config.json)" \
753774
--image-index-digest "$(jq -r '.minimum_image_sha256' scripts/release/release-config.json)" \
754775
--architecture "${NATIVE_ARCHITECTURE}" \
755-
--evidence-json "${RUNNER_TEMP}/runtime-capability/runtime-capability-${NATIVE_ARCHITECTURE}.json"
776+
--evidence-json "${RUNNER_TEMP}/runtime-capability/runtime-capability-${NATIVE_ARCHITECTURE}-1.5.3.json"
777+
python scripts/release/verify-runtime-source-upgrade.py \
778+
--source-catalog "${RUNNER_TEMP}/runtime-source-v1.6.0/channelwatch-update-catalog-v3.json" \
779+
--source-amd64-bundle "${RUNNER_TEMP}/runtime-source-v1.6.0/channelwatch-runtime-v1.6.0-amd64.zip" \
780+
--source-arm64-bundle "${RUNNER_TEMP}/runtime-source-v1.6.0/channelwatch-runtime-v1.6.0-arm64.zip" \
781+
--target-catalog "${RUNNER_TEMP}/signed-assets/candidate-one/channelwatch-update-catalog-v3.json" \
782+
--target-amd64-bundle "${RUNNER_TEMP}/signed-assets/candidate-one/channelwatch-runtime-${tag}-amd64.zip" \
783+
--target-arm64-bundle "${RUNNER_TEMP}/signed-assets/candidate-one/channelwatch-runtime-${tag}-arm64.zip" \
784+
--target-version "${version}" \
785+
--target-commit "${GITHUB_SHA}" \
786+
--image-index-digest "$(jq -r '.minimum_image_sha256' scripts/release/release-config.json)" \
787+
--architecture "${NATIVE_ARCHITECTURE}" \
788+
--evidence-json "${RUNNER_TEMP}/runtime-capability/runtime-capability-${NATIVE_ARCHITECTURE}-1.6.0.json"
756789
- name: Validate the complete native receipt before retention
757790
if: needs.candidate-source-gates.outputs.runtime_generation_required == 'true'
758791
shell: bash
759792
run: |
760793
set -euo pipefail
761794
python scripts/release/aggregate-runtime-capability.py \
762-
--validate-evidence "${RUNNER_TEMP}/runtime-capability/runtime-capability-${{ matrix.architecture }}.json" \
795+
--validate-evidence "${RUNNER_TEMP}/runtime-capability/runtime-capability-${{ matrix.architecture }}-1.5.3.json" \
763796
--architecture "${{ matrix.architecture }}" \
764797
--catalog "${RUNNER_TEMP}/signed-assets/candidate-one/channelwatch-update-catalog-v3.json" \
765798
--release-config scripts/release/release-config.json \
@@ -851,7 +884,7 @@ jobs:
851884
run: |
852885
set -euo pipefail
853886
mkdir -p "${RUNNER_TEMP}/legacy-overlays"
854-
for version in 1.4.1 1.4.5; do
887+
for version in 1.4.1 1.4.5 1.6.0; do
855888
curl --fail --location --silent --show-error \
856889
--output "${RUNNER_TEMP}/legacy-overlays/channelwatch-catalog-v${version}.json" \
857890
"https://github.com/CoderLuii/ChannelWatch/releases/download/v${version}/channelwatch-catalog-v${version}.json"
@@ -863,6 +896,8 @@ jobs:
863896
echo "89c4cd4f0d0aebff5224e84c5a51a28c514067cd66486ca26cbde3f17e96c8cd ${RUNNER_TEMP}/legacy-overlays/channelwatch-app-v1.4.1.zip" | sha256sum --check
864897
echo "376e7f0572a7f3ebcc2ce74f1d30a703c026a690c99fca81108d08f5db31f783 ${RUNNER_TEMP}/legacy-overlays/channelwatch-catalog-v1.4.5.json" | sha256sum --check
865898
echo "d354ea7d424e4a7c8af623fad2408665f8e536b7ec171979da8bed4afed9f362 ${RUNNER_TEMP}/legacy-overlays/channelwatch-app-v1.4.5.zip" | sha256sum --check
899+
echo "bc9bcdb38c44af581835fdd4f29e2a2550eb8bb5d51b8308395a803110feb185 ${RUNNER_TEMP}/legacy-overlays/channelwatch-catalog-v1.6.0.json" | sha256sum --check
900+
echo "f8cbdca71ef254df84b0e3b472facce8ece201b4928218caf757f4c5ddf53914 ${RUNNER_TEMP}/legacy-overlays/channelwatch-app-v1.6.0.zip" | sha256sum --check
866901
- name: Run the native legacy same-container matrix
867902
env:
868903
NATIVE_ARCHITECTURE: ${{ matrix.architecture }}
@@ -873,7 +908,7 @@ jobs:
873908
run: |
874909
set -euo pipefail
875910
version="$(jq -r '.version' scripts/release/release-config.json)"
876-
test "$(jq -c '.legacy_app_update_sources' scripts/release/release-config.json)" = '["1.4.0","1.4.1","1.4.5"]'
911+
test "$(jq -c '.legacy_app_update_sources' scripts/release/release-config.json)" = '["1.4.0","1.4.1","1.4.5","1.6.0"]'
877912
tag="v${version}"
878913
evidence="${RUNNER_TEMP}/legacy-app-upgrades"
879914
mkdir -p "${evidence}"
@@ -885,6 +920,7 @@ jobs:
885920
overlay-1.4.1-to-1.4.5
886921
stock-1.4.5
887922
)
923+
for qualification_mode in direct chained; do
888924
for scenario in "${scenarios[@]}"; do
889925
overlay_version=""
890926
case "${scenario}" in
@@ -898,6 +934,13 @@ jobs:
898934
--overlay-bundle "${RUNNER_TEMP}/legacy-overlays/channelwatch-app-v${overlay_version}.zip"
899935
)
900936
fi
937+
bridge_args=()
938+
if [ "${qualification_mode}" = "chained" ]; then
939+
bridge_args=(
940+
--bridge-catalog "${RUNNER_TEMP}/legacy-overlays/channelwatch-catalog-v1.6.0.json"
941+
--bridge-bundle "${RUNNER_TEMP}/legacy-overlays/channelwatch-app-v1.6.0.zip"
942+
)
943+
fi
901944
python scripts/release/verify-legacy-app-upgrade.py \
902945
--baselines scripts/release/legacy-app-upgrade-baselines.json \
903946
--release-config scripts/release/release-config.json \
@@ -907,9 +950,12 @@ jobs:
907950
--source-commit "${GITHUB_SHA}" \
908951
--catalog "${RUNNER_TEMP}/signed-assets/candidate-one/channelwatch-catalog-${tag}.json" \
909952
--bundle "${RUNNER_TEMP}/signed-assets/candidate-one/channelwatch-app-${tag}.zip" \
953+
--qualification-mode "${qualification_mode}" \
910954
"${overlay_args[@]}" \
911-
--receipt "${evidence}/legacy-app-upgrade-${NATIVE_ARCHITECTURE}-${scenario}.json" \
912-
--log-directory "${evidence}/legacy-app-upgrade-${NATIVE_ARCHITECTURE}-${scenario}-logs"
955+
"${bridge_args[@]}" \
956+
--receipt "${evidence}/legacy-app-upgrade-${NATIVE_ARCHITECTURE}-${qualification_mode}-${scenario}.json" \
957+
--log-directory "${evidence}/legacy-app-upgrade-${NATIVE_ARCHITECTURE}-${qualification_mode}-${scenario}-logs"
958+
done
913959
done
914960
- name: Retain native legacy app-upgrade evidence
915961
if: always()
@@ -1677,12 +1723,21 @@ jobs:
16771723
if [ "${updater_protocol}" = "4" ] && [ "${runtime_generation_required}" = "true" ]; then
16781724
capability_evidence="dist/candidate-one/channelwatch-runtime-capability-${tag}.json"
16791725
python scripts/release/aggregate-runtime-capability.py \
1680-
--amd64-evidence "${RUNNER_TEMP}/runtime-capability/runtime-capability-amd64.json" \
1681-
--arm64-evidence "${RUNNER_TEMP}/runtime-capability/runtime-capability-arm64.json" \
1726+
--amd64-evidence "${RUNNER_TEMP}/runtime-capability/runtime-capability-amd64-1.5.3.json" \
1727+
--arm64-evidence "${RUNNER_TEMP}/runtime-capability/runtime-capability-arm64-1.5.3.json" \
16821728
--catalog "dist/candidate-one/channelwatch-update-catalog-v3.json" \
16831729
--release-config scripts/release/release-config.json \
16841730
--source-commit "${GITHUB_SHA}" \
16851731
--output "${capability_evidence}"
1732+
python scripts/release/aggregate-runtime-source-upgrades.py \
1733+
--receipt "1.5.3=amd64=${RUNNER_TEMP}/runtime-capability/runtime-capability-amd64-1.5.3.json" \
1734+
--receipt "1.5.3=arm64=${RUNNER_TEMP}/runtime-capability/runtime-capability-arm64-1.5.3.json" \
1735+
--receipt "1.6.0=amd64=${RUNNER_TEMP}/runtime-capability/runtime-capability-amd64-1.6.0.json" \
1736+
--receipt "1.6.0=arm64=${RUNNER_TEMP}/runtime-capability/runtime-capability-arm64-1.6.0.json" \
1737+
--target-catalog "dist/candidate-one/channelwatch-update-catalog-v3.json" \
1738+
--release-config scripts/release/release-config.json \
1739+
--target-commit "${GITHUB_SHA}" \
1740+
--output "dist/candidate-one/channelwatch-runtime-source-upgrades-${tag}.json"
16861741
runtime_policy_args=(
16871742
--runtime-catalog "dist/candidate-one/channelwatch-update-catalog-v3.json"
16881743
--runtime-capability-evidence "${capability_evidence}"
@@ -1737,11 +1792,13 @@ jobs:
17371792
--bundle "dist/candidate-one/channelwatch-app-${tag}.zip" \
17381793
--output "${legacy_evidence}"
17391794
for architecture in amd64 arm64; do
1795+
for qualification_mode in direct chained; do
17401796
while IFS= read -r scenario; do
1741-
receipt="${RUNNER_TEMP}/legacy-app-upgrades/legacy-app-upgrade-${architecture}-${scenario}.json"
1797+
receipt="${RUNNER_TEMP}/legacy-app-upgrades/legacy-app-upgrade-${architecture}-${qualification_mode}-${scenario}.json"
17421798
test -s "${receipt}"
1743-
cp "${receipt}" "dist/candidate-one/channelwatch-legacy-app-upgrade-${tag}-${architecture}-${scenario}.json"
1799+
cp "${receipt}" "dist/candidate-one/channelwatch-legacy-app-upgrade-${tag}-${architecture}-${qualification_mode}-${scenario}.json"
17441800
done < <(jq -r '.scenarios[].id' scripts/release/legacy-app-upgrade-baselines.json)
1801+
done
17451802
done
17461803
find "${RUNNER_TEMP}/legacy-app-upgrades" \
17471804
-mindepth 1 -maxdepth 1 -type d -name 'legacy-app-upgrade-*-logs' \
@@ -2356,7 +2413,7 @@ jobs:
23562413
-name "channelwatch-legacy-app-upgrade-${TAG}-*" -print0 \
23572414
| sort -z
23582415
)
2359-
expected_legacy_assets=$((2 + (2 * $(jq '.scenarios | length' scripts/release/legacy-app-upgrade-baselines.json))))
2416+
expected_legacy_assets=$((2 + (4 * $(jq '.scenarios | length' scripts/release/legacy-app-upgrade-baselines.json))))
23602417
if [ "${#legacy_assets[@]}" -ne "${expected_legacy_assets}" ] || [ ! -f "${legacy_assets[0]:-}" ]; then
23612418
echo "::error::The approved candidate does not contain the exact legacy upgrade evidence matrix."
23622419
exit 1
@@ -2781,11 +2838,13 @@ jobs:
27812838
test -s "${legacy_logs}"
27822839
assets+=("${legacy_evidence}" "${legacy_logs}")
27832840
for architecture in amd64 arm64; do
2841+
for qualification_mode in direct chained; do
27842842
while IFS= read -r scenario; do
2785-
legacy_receipt="dist/update/channelwatch-legacy-app-upgrade-${TAG}-${architecture}-${scenario}.json"
2843+
legacy_receipt="dist/update/channelwatch-legacy-app-upgrade-${TAG}-${architecture}-${qualification_mode}-${scenario}.json"
27862844
test -s "${legacy_receipt}"
27872845
assets+=("${legacy_receipt}")
27882846
done < <(jq -r '.scenarios[].id' scripts/release/legacy-app-upgrade-baselines.json)
2847+
done
27892848
done
27902849
test -s "${native_evidence}"
27912850
assets+=("${native_evidence}")
@@ -3085,9 +3144,11 @@ jobs:
30853144
"channelwatch-legacy-app-upgrade-${TAG}-logs.tar"
30863145
)
30873146
for architecture in amd64 arm64; do
3147+
for qualification_mode in direct chained; do
30883148
while IFS= read -r scenario; do
3089-
draft_assets+=("channelwatch-legacy-app-upgrade-${TAG}-${architecture}-${scenario}.json")
3149+
draft_assets+=("channelwatch-legacy-app-upgrade-${TAG}-${architecture}-${qualification_mode}-${scenario}.json")
30903150
done < <(jq -r '.scenarios[].id' scripts/release/legacy-app-upgrade-baselines.json)
3151+
done
30913152
done
30923153
if [ "$(jq -r '.updater_protocol' scripts/release/release-config.json)" = "4" ]; then
30933154
draft_assets+=("channelwatch-update-catalog-v3.json")
@@ -3234,9 +3295,11 @@ jobs:
32343295
"channelwatch-legacy-app-upgrade-${TAG}-logs.tar"
32353296
)
32363297
for architecture in amd64 arm64; do
3298+
for qualification_mode in direct chained; do
32373299
while IFS= read -r scenario; do
3238-
required_assets+=("channelwatch-legacy-app-upgrade-${TAG}-${architecture}-${scenario}.json")
3300+
required_assets+=("channelwatch-legacy-app-upgrade-${TAG}-${architecture}-${qualification_mode}-${scenario}.json")
32393301
done < <(jq -r '.scenarios[].id' scripts/release/legacy-app-upgrade-baselines.json)
3302+
done
32403303
done
32413304
if [ "$(jq -r '.updater_protocol' scripts/release/release-config.json)" = "4" ]; then
32423305
required_assets+=("channelwatch-update-catalog-v3.json")
@@ -3958,9 +4021,11 @@ jobs:
39584021
"channelwatch-${tag}-SHA256SUMS.txt" \
39594022
| sort > "${expected_assets}"
39604023
for architecture in amd64 arm64; do
4024+
for qualification_mode in direct chained; do
39614025
while IFS= read -r scenario; do
3962-
echo "channelwatch-legacy-app-upgrade-${tag}-${architecture}-${scenario}.json" >> "${expected_assets}"
4026+
echo "channelwatch-legacy-app-upgrade-${tag}-${architecture}-${qualification_mode}-${scenario}.json" >> "${expected_assets}"
39634027
done < <(jq -r '.scenarios[].id' scripts/release/legacy-app-upgrade-baselines.json)
4028+
done
39644029
done
39654030
if [ "$(jq -r '.updater_protocol' scripts/release/release-config.json)" = "4" ]; then
39664031
echo "channelwatch-update-catalog-v3.json" >> "${expected_assets}"
@@ -4026,7 +4091,7 @@ jobs:
40264091
done < "${RUNNER_TEMP}/expected-public-assets.txt"
40274092
40284093
checksum_file="channelwatch-${TAG}-SHA256SUMS.txt"
4029-
expected_checksum_count=32
4094+
expected_checksum_count=44
40304095
if [ "$(jq -r '.updater_protocol' scripts/release/release-config.json)" = "4" ]; then
40314096
expected_checksum_count=$((expected_checksum_count + 1))
40324097
fi

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,11 @@ The Helm chart is single-replica by design because ChannelWatch uses writable ap
216216

217217
## Updating ChannelWatch
218218

219-
Use `coderluii/channelwatch:1.6.0` for a new installation, or `latest` for the newest stable image. Existing v1.5.3 containers can install v1.6.0 from **Settings > Updates** without recreation. Preserve `/config` and any external storage key configuration whenever you update an image.
219+
Use `coderluii/channelwatch:1.6.1` for a new installation, or `latest` for the newest stable image. Existing v1.5.3 and v1.6.0 containers can install v1.6.1 from **Settings > Updates** without recreation. Preserve `/config` and any external storage key configuration whenever you update an image.
220220

221-
On v1.4.0, v1.4.1 or v1.4.5, install v1.6.0 directly from **Settings > Updates**. This signed app-only update retains your container's existing Python packages. No intermediate release or container recreation is needed.
221+
On v1.4.0, v1.4.1 or v1.4.5, install v1.6.1 directly from **Settings > Updates**. This signed app-only update retains your container's existing Python packages. No intermediate release or container recreation is needed.
222222

223-
After v1.5.3 is running, **Settings > Updates** can install v1.6.0 and its official Python packages as one complete signed runtime generation in the same container. Install this release manually; automatic installation is disabled for v1.6.0. ChannelWatch prepares the generation away from the active runtime, restarts, verifies the matching core and UI, and rolls the application and packages back together if initial activation fails. v1.5.3 supplies the image foundation; it does not publish a runtime-generation payload. Python interpreter, OS, glibc, Supervisor, and image-owned verifier updates still require a new container image.
223+
After v1.5.3 is running, **Settings > Updates** can install v1.6.1 and its official Python packages as one complete signed runtime generation in the same container. v1.6.0 can update directly to v1.6.1 through the same route. Install this release manually; automatic installation is disabled. ChannelWatch prepares the generation away from the active runtime, restarts, verifies the matching core and UI, and rolls the application and packages back together if initial activation fails. v1.5.3 remains the minimum image foundation. Python interpreter, OS, glibc, Supervisor, and image-owned verifier updates still require a new container image.
224224

225225
Open **Settings > Updates** to review the automatic update policy, check the official signed stable channel, apply an update immediately, postpone it, retry a failed attempt, or roll back a compatible app bundle. Automatic compatible updates default to the local 03:00–05:00 maintenance window; notify-only mode is available.
226226

‎app/core/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import os
1717
from pathlib import Path
1818

19-
__version__ = "1.6.0"
19+
__version__ = "1.6.1"
2020
__app_name__ = "ChannelWatch"
2121

2222

0 commit comments

Comments
 (0)