Skip to content

Commit bb88a11

Browse files
committed
v1.6.2
1 parent f2e2943 commit bb88a11

38 files changed

Lines changed: 705 additions & 186 deletions

‎.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.1"
24+
placeholder: "e.g. 1.6.2"
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.1"
31+
placeholder: "e.g. 1.6.2"
3232
validations:
3333
required: true
3434

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

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,24 @@ jobs:
750750
'865a6054f0fbddd213fe5f2e2578de5da8bc4453f322a991003516cc1bd9cadc' "${source_dir}/channelwatch-runtime-v1.6.0-amd64.zip" \
751751
'60f0a7a97433778ac89e17bab90ef6e83566159649697f90e2f5918afd17c2ec' "${source_dir}/channelwatch-runtime-v1.6.0-arm64.zip" \
752752
| sha256sum --check --strict
753+
if [ "$(jq -r '.version' scripts/release/release-config.json)" = "1.6.2" ]; then
754+
source_dir="${RUNNER_TEMP}/runtime-source-v1.6.1"
755+
mkdir -p "${source_dir}"
756+
base_url="https://github.com/CoderLuii/ChannelWatch/releases/download/v1.6.1"
757+
curl --fail --silent --show-error --location \
758+
--output "${source_dir}/channelwatch-update-catalog-v3.json" \
759+
"${base_url}/channelwatch-update-catalog-v3.json"
760+
for architecture in amd64 arm64; do
761+
curl --fail --silent --show-error --location \
762+
--output "${source_dir}/channelwatch-runtime-v1.6.1-${architecture}.zip" \
763+
"${base_url}/channelwatch-runtime-v1.6.1-${architecture}.zip"
764+
done
765+
printf '%s %s\n' \
766+
'fd8cf8110c997a5259eb9f19023498dde4bc148e3785352abc1b7912cbfa9c34' "${source_dir}/channelwatch-update-catalog-v3.json" \
767+
'2da567d8b3554b156b5f8a8916f539fddce94bec27cf75c6c3460342f76c5b7a' "${source_dir}/channelwatch-runtime-v1.6.1-amd64.zip" \
768+
'a027707047a04dc5f0e52d1c50e3595f136a96b56e7efcfdce731802b8e925cd' "${source_dir}/channelwatch-runtime-v1.6.1-arm64.zip" \
769+
| sha256sum --check --strict
770+
fi
753771
- name: Run the native protocol-4 lifecycle verifier
754772
if: needs.candidate-source-gates.outputs.runtime_generation_required == 'true'
755773
env:
@@ -791,6 +809,21 @@ jobs:
791809
--image-index-digest "$(jq -r '.minimum_image_sha256' scripts/release/release-config.json)" \
792810
--architecture "${NATIVE_ARCHITECTURE}" \
793811
--evidence-json "${RUNNER_TEMP}/runtime-capability/runtime-capability-${NATIVE_ARCHITECTURE}-1.6.0.json"
812+
if [ "${version}" = "1.6.2" ]; then
813+
python scripts/release/verify-runtime-source-upgrade.py \
814+
--source-version 1.6.1 \
815+
--source-catalog "${RUNNER_TEMP}/runtime-source-v1.6.1/channelwatch-update-catalog-v3.json" \
816+
--source-amd64-bundle "${RUNNER_TEMP}/runtime-source-v1.6.1/channelwatch-runtime-v1.6.1-amd64.zip" \
817+
--source-arm64-bundle "${RUNNER_TEMP}/runtime-source-v1.6.1/channelwatch-runtime-v1.6.1-arm64.zip" \
818+
--target-catalog "${RUNNER_TEMP}/signed-assets/candidate-one/channelwatch-update-catalog-v3.json" \
819+
--target-amd64-bundle "${RUNNER_TEMP}/signed-assets/candidate-one/channelwatch-runtime-${tag}-amd64.zip" \
820+
--target-arm64-bundle "${RUNNER_TEMP}/signed-assets/candidate-one/channelwatch-runtime-${tag}-arm64.zip" \
821+
--target-version "${version}" \
822+
--target-commit "${GITHUB_SHA}" \
823+
--image-index-digest "$(jq -r '.minimum_image_sha256' scripts/release/release-config.json)" \
824+
--architecture "${NATIVE_ARCHITECTURE}" \
825+
--evidence-json "${RUNNER_TEMP}/runtime-capability/runtime-capability-${NATIVE_ARCHITECTURE}-1.6.1.json"
826+
fi
794827
- name: Validate the complete native receipt before retention
795828
if: needs.candidate-source-gates.outputs.runtime_generation_required == 'true'
796829
shell: bash
@@ -913,7 +946,11 @@ jobs:
913946
run: |
914947
set -euo pipefail
915948
version="$(jq -r '.version' scripts/release/release-config.json)"
916-
test "$(jq -c '.legacy_app_update_sources' scripts/release/release-config.json)" = '["1.4.0","1.4.1","1.4.5","1.6.0"]'
949+
legacy_sources='["1.4.0","1.4.1","1.4.5","1.6.0"]'
950+
if [ "${version}" = "1.6.2" ]; then
951+
legacy_sources='["1.4.0","1.4.1","1.4.5","1.6.0","1.6.1"]'
952+
fi
953+
test "$(jq -c '.legacy_app_update_sources' scripts/release/release-config.json)" = "${legacy_sources}"
917954
tag="v${version}"
918955
evidence="${RUNNER_TEMP}/legacy-app-upgrades"
919956
mkdir -p "${evidence}"
@@ -1734,11 +1771,19 @@ jobs:
17341771
--release-config scripts/release/release-config.json \
17351772
--source-commit "${GITHUB_SHA}" \
17361773
--output "${capability_evidence}"
1774+
source_receipt_args=()
1775+
if [ "${version}" = "1.6.2" ]; then
1776+
source_receipt_args=(
1777+
--receipt "1.6.1=amd64=${RUNNER_TEMP}/runtime-capability/runtime-capability-amd64-1.6.1.json"
1778+
--receipt "1.6.1=arm64=${RUNNER_TEMP}/runtime-capability/runtime-capability-arm64-1.6.1.json"
1779+
)
1780+
fi
17371781
python scripts/release/aggregate-runtime-source-upgrades.py \
17381782
--receipt "1.5.3=amd64=${RUNNER_TEMP}/runtime-capability/runtime-capability-amd64-1.5.3.json" \
17391783
--receipt "1.5.3=arm64=${RUNNER_TEMP}/runtime-capability/runtime-capability-arm64-1.5.3.json" \
17401784
--receipt "1.6.0=amd64=${RUNNER_TEMP}/runtime-capability/runtime-capability-amd64-1.6.0.json" \
17411785
--receipt "1.6.0=arm64=${RUNNER_TEMP}/runtime-capability/runtime-capability-arm64-1.6.0.json" \
1786+
"${source_receipt_args[@]}" \
17421787
--target-catalog "dist/candidate-one/channelwatch-update-catalog-v3.json" \
17431788
--release-config scripts/release/release-config.json \
17441789
--target-commit "${GITHUB_SHA}" \

‎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.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.
219+
Use `coderluii/channelwatch:1.6.2` for a new installation, or `latest` for the newest stable image. Existing v1.5.3, v1.6.0 and v1.6.1 containers can install v1.6.2 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.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.
221+
On v1.4.0, v1.4.1 or v1.4.5, install v1.6.2 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.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.
223+
After v1.5.3 is running, **Settings > Updates** can install v1.6.2 and its official Python packages as one complete signed runtime generation in the same container. v1.6.0 and v1.6.1 can update directly to v1.6.2 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.1"
19+
__version__ = "1.6.2"
2020
__app_name__ = "ChannelWatch"
2121

2222

‎app/core/tests/test_legacy_app_upgrade_aggregate.py‎

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,15 @@ def load_module():
1919
return module
2020

2121

22-
@pytest.fixture
23-
def matrix(tmp_path):
22+
@pytest.fixture(params=["1.6.1", "1.6.2"])
23+
def matrix(tmp_path, request):
2424
fixture = json.loads(
2525
(ROOT / "scripts/release/legacy-app-upgrade-baselines.json").read_text()
2626
)
27+
target_version = request.param
28+
fixture["target_version"] = target_version
29+
if target_version == "1.6.1":
30+
fixture["legacy_sources"] = ["1.4.0", "1.4.1", "1.4.5", "1.6.0"]
2731
receipts = {}
2832
config_sha256 = hashlib.sha256(CONFIG.read_bytes()).hexdigest()
2933
for architecture in ("amd64", "arm64"):
@@ -43,12 +47,12 @@ def matrix(tmp_path):
4347
"repo_digest": fixture["repository"] + "@" + fixture["images"][scenario["image_version"]]["manifests"][architecture],
4448
}
4549
selected_status = {
46-
"current_version": "1.6.1",
50+
"current_version": target_version,
4751
"image_version": scenario["image_version"],
4852
"launcher_protocol": 3,
4953
"runtime_source": "app_bundle",
5054
"active_bundle": {
51-
"version": "1.6.1",
55+
"version": target_version,
5256
"manifest": {"bundle_sha256": "2" * 64},
5357
},
5458
"worker_runtime": {
@@ -58,7 +62,7 @@ def matrix(tmp_path):
5862
},
5963
}
6064
current_check = {
61-
"current_version": "1.6.1",
65+
"current_version": target_version,
6266
"update_available": False,
6367
"last_job": {"operation": "check", "status": "current"},
6468
}
@@ -75,7 +79,7 @@ def matrix(tmp_path):
7579
"architecture": architecture,
7680
"qualification_mode": qualification_mode,
7781
"scenario": scenario,
78-
"target_version": "1.6.1",
82+
"target_version": target_version,
7983
"source_commit": "f" * 40,
8084
"catalog_sha256": "1" * 64,
8185
"bundle_sha256": "2" * 64,
@@ -158,10 +162,12 @@ def matrix(tmp_path):
158162
def aggregate(matrix):
159163
fixture, receipts, root = matrix
160164
release_config = json.loads(CONFIG.read_text())
165+
release_config["version"] = fixture["target_version"]
166+
release_config["legacy_app_update_sources"] = fixture["legacy_sources"]
161167
return load_module().aggregate(
162168
receipts,
163169
baselines=fixture,
164-
target_version="1.6.1",
170+
target_version=fixture["target_version"],
165171
source_commit="f" * 40,
166172
catalog_sha256="1" * 64,
167173
bundle_sha256="2" * 64,

‎app/core/tests/test_legacy_app_upgrade_verifier.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ def test_fixture_defines_exact_six_scenario_matrix_for_both_qualification_modes(
903903
fixture = json.loads(
904904
(ROOT / "scripts/release/legacy-app-upgrade-baselines.json").read_text()
905905
)
906-
scenarios = module.validate_baselines(fixture, target_version="1.6.1")
906+
scenarios = module.validate_baselines(fixture, target_version="1.6.2")
907907
assert [row["id"] for row in scenarios] == [
908908
"stock-1.4.0",
909909
"overlay-1.4.0-to-1.4.1",
@@ -915,15 +915,15 @@ def test_fixture_defines_exact_six_scenario_matrix_for_both_qualification_modes(
915915
broken = copy.deepcopy(fixture)
916916
broken["scenarios"].pop()
917917
with pytest.raises(module.LegacyAppUpgradeError):
918-
module.validate_baselines(broken, target_version="1.6.1")
918+
module.validate_baselines(broken, target_version="1.6.2")
919919

920920

921921
def test_fixture_binds_exact_immutable_160_bridge():
922922
module = load_module()
923923
fixture = json.loads(
924924
(ROOT / "scripts/release/legacy-app-upgrade-baselines.json").read_text()
925925
)
926-
module.validate_baselines(fixture, target_version="1.6.1")
926+
module.validate_baselines(fixture, target_version="1.6.2")
927927
assert fixture["qualification_modes"] == ["direct", "chained"]
928928
assert fixture["bridge_release"] == {
929929
"version": "1.6.0",
@@ -940,12 +940,12 @@ def test_release_config_requires_exact_legacy_source_contract():
940940
config = json.loads(
941941
(ROOT / "scripts/release/release-config.json").read_text()
942942
)
943-
assert module.validate_release_config(config, target_version="1.6.1") == [
944-
"1.4.0", "1.4.1", "1.4.5", "1.6.0"
943+
assert module.validate_release_config(config, target_version="1.6.2") == [
944+
"1.4.0", "1.4.1", "1.4.5", "1.6.0", "1.6.1"
945945
]
946946
config["legacy_app_update_sources"].pop()
947947
with pytest.raises(module.LegacyAppUpgradeError):
948-
module.validate_release_config(config, target_version="1.6.1")
948+
module.validate_release_config(config, target_version="1.6.2")
949949

950950
historical = {
951951
"version": "1.6.0",

‎app/core/tests/test_optional_base_refresh_policy.py‎

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@ def dockerfiles():
3232
return before, before.replace("a" * 64, "c" * 64).replace("b" * 64, "d" * 64).replace("VERSION=1.6.0", "VERSION=1.6.1")
3333

3434

35+
@pytest.fixture
36+
def release_161_config():
37+
return {
38+
"version": "1.6.1",
39+
"minimum_image_version": "1.5.3",
40+
"image_required": False,
41+
"delivery_mode": "app_update_with_image_refresh",
42+
"compatible_source_application_versions": ["1.5.3", "1.6.0"],
43+
"legacy_app_update_sources": ["1.4.0", "1.4.1", "1.4.5", "1.6.0"],
44+
}
45+
46+
3547
def test_only_immutable_same_line_base_digests_can_be_optional():
3648
tool = load()
3749
before, after = dockerfiles()
@@ -114,10 +126,10 @@ def test_final_native_image_proof_rejects_missing_tampered_or_wrong_bindings(nat
114126
(True, False, True, False, False, True),
115127
(True, True, False, False, False, True),
116128
])
117-
def test_pre_image_phase_is_explicit_and_final_phase_requires_native_proof(monkeypatch, phase, legacy, runtime, native, expected_pending, expected_required):
129+
def test_pre_image_phase_is_explicit_and_final_phase_requires_native_proof(monkeypatch, release_161_config, phase, legacy, runtime, native, expected_pending, expected_required):
118130
tool = load()
119131
before, after = dockerfiles()
120-
config = json.loads((ROOT / "scripts/release/release-config.json").read_text())
132+
config = release_161_config
121133
args = SimpleNamespace(pre_image_phase=phase, runtime_catalog=Path("catalog"), runtime_capability_evidence=Path("runtime"), legacy_app_receipts=Path("legacy"), legacy_app_catalog=Path("app-catalog"), legacy_app_bundle=Path("app-bundle"), config=ROOT / "scripts/release/release-config.json", native_image_evidence=Path("native"), candidate_image_archive=Path("archive"), candidate_image_descriptor=Path("descriptor"))
122134
descriptors = {arch: {"python_version": "3.14.8", "python_cache_tag": "cpython-314", "minimum_libc_version": [2, 36]} for arch in ("amd64", "arm64")}
123135
monkeypatch.setattr(tool, "_signed_protocol_four_runtime_variants", lambda **kwargs: (b"signed", descriptors, {}) if runtime else None)
@@ -132,10 +144,10 @@ def test_pre_image_phase_is_explicit_and_final_phase_requires_native_proof(monke
132144

133145

134146
@pytest.mark.parametrize("raised_floor", ["python", "image", "sources", "key"])
135-
def test_optional_refresh_never_raises_the_retained_floor_or_changes_trust(monkeypatch, raised_floor):
147+
def test_optional_refresh_never_raises_the_retained_floor_or_changes_trust(monkeypatch, release_161_config, raised_floor):
136148
tool = load()
137149
before, after = dockerfiles()
138-
config = json.loads((ROOT / "scripts/release/release-config.json").read_text())
150+
config = release_161_config
139151
args = SimpleNamespace(pre_image_phase=True, runtime_catalog=Path("catalog"), runtime_capability_evidence=Path("runtime"))
140152
descriptor = {"python_version": "3.14.9" if raised_floor == "python" else "3.14.8", "python_cache_tag": "cpython-314", "minimum_libc_version": [2, 36]}
141153
monkeypatch.setattr(tool, "_signed_protocol_four_runtime_variants", lambda **kwargs: (b"signed", {arch: descriptor for arch in ("amd64", "arm64")}, {}))
@@ -148,6 +160,26 @@ def test_optional_refresh_never_raises_the_retained_floor_or_changes_trust(monke
148160
assert pending is False
149161

150162

163+
@pytest.mark.parametrize("version", ["1.6.2", "1.6.3"])
164+
def test_optional_base_refresh_exception_does_not_extend_to_new_releases(monkeypatch, release_161_config, version):
165+
tool = load()
166+
before, after = dockerfiles()
167+
config = {**release_161_config, "version": version}
168+
args = SimpleNamespace(pre_image_phase=True, runtime_catalog=Path("catalog"), runtime_capability_evidence=Path("runtime"))
169+
descriptors = {arch: {"python_version": "3.14.8", "python_cache_tag": "cpython-314", "minimum_libc_version": [2, 36]} for arch in ("amd64", "arm64")}
170+
monkeypatch.setattr(tool, "_signed_protocol_four_runtime_variants", lambda **kwargs: (b"signed", descriptors, {}))
171+
monkeypatch.setattr(tool, "_read_protocol_four_runtime_evidence", lambda **kwargs: True)
172+
monkeypatch.setattr(tool, "verify_optional_legacy_proof", lambda **kwargs: True)
173+
monkeypatch.setattr(tool, "verify_optional_native_image_proof", lambda *args, **kwargs: True)
174+
result, pending = tool.apply_optional_base_refresh(
175+
tool._impact({"deploy/docker/Dockerfile"}, set()),
176+
before={"deploy/docker/Dockerfile": before}, after={"deploy/docker/Dockerfile": after},
177+
config=config, args=args, source_commit="f" * 40, public_keys=None,
178+
)
179+
assert result.image_required is True
180+
assert pending is False
181+
182+
151183
def test_publishing_classifier_never_uses_the_pending_phase():
152184
workflow = yaml.safe_load((ROOT / ".github/workflows/docker-publish.yml").read_text())
153185
candidate = str(workflow["jobs"]["candidate-qualification"])

‎app/core/tests/test_release_capability_policy.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -806,9 +806,9 @@ def test_current_release_config_retains_the_published_dependency_image_floor():
806806

807807
policy = module.validate_release_config(config)
808808

809-
assert config["version"] == "1.6.1"
809+
assert config["version"] == "1.6.2"
810810
assert config["minimum_image_version"] == "1.5.3"
811-
assert config["recommended_image_version"] == "1.6.1"
811+
assert config["recommended_image_version"] == "1.6.2"
812812
assert config["publication_time"].endswith("Z")
813813
assert config["automatic_install_after"].endswith("Z")
814814
publication_time = datetime_module.datetime.fromisoformat(
@@ -823,7 +823,7 @@ def test_current_release_config_retains_the_published_dependency_image_floor():
823823
days=7
824824
)
825825
assert config["automatic_install_allowed"] is False
826-
assert config["compatible_source_application_versions"] == ["1.5.3", "1.6.0"]
826+
assert config["compatible_source_application_versions"] == ["1.5.3", "1.6.0", "1.6.1"]
827827
assert config["runtime_generation_required"] is True
828828
assert config["runtime_compatibility_evidence"] == {}
829829
assert "recovers_unpublished_image_milestone" not in config

0 commit comments

Comments
 (0)