@@ -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
0 commit comments