@norskvideo/ctl-dev-kit 0.2.132 → 0.2.134
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/conventions/build-image.yml +6 -2
- package/conventions/bump.sdk-app.yml +8 -1
- package/conventions/bump.yml +8 -1
- package/conventions/checks.sdk-app.yml +8 -1
- package/conventions/checks.yml +8 -1
- package/conventions/integration.yml +8 -1
- package/conventions/publish-docs.yml +8 -1
- package/conventions/server-install.sh +13 -1
- package/conventions/smoke.yml +8 -1
- package/package.json +1 -1
|
@@ -1155,13 +1155,17 @@ jobs:
|
|
|
1155
1155
|
clean: true
|
|
1156
1156
|
# guides-engine reports in the detail below and never sets the state: a
|
|
1157
1157
|
# failed engine tier is not a failed build, nor is one cancelled in its
|
|
1158
|
-
# concurrency queue.
|
|
1158
|
+
# concurrency queue. Otherwise failure beats cancelled beats success: a
|
|
1159
|
+
# cancelled job (24 h queued with no runner, or superseded) reports
|
|
1160
|
+
# "cancelled", which the board keeps red but marks apart from a failure.
|
|
1159
1161
|
- id: meta
|
|
1160
1162
|
env:
|
|
1161
1163
|
NEEDS: ${{ toJSON(needs) }}
|
|
1162
1164
|
run: |
|
|
1163
|
-
if jq -e 'del(.["guides-engine"]) | [.[].result] | any(. == "failure"
|
|
1165
|
+
if jq -e 'del(.["guides-engine"]) | [.[].result] | any(. == "failure")' <<<"$NEEDS" >/dev/null; then
|
|
1164
1166
|
echo "state=failure" >> "$GITHUB_OUTPUT"
|
|
1167
|
+
elif jq -e 'del(.["guides-engine"]) | [.[].result] | any(. == "cancelled")' <<<"$NEEDS" >/dev/null; then
|
|
1168
|
+
echo "state=cancelled" >> "$GITHUB_OUTPUT"
|
|
1165
1169
|
else
|
|
1166
1170
|
echo "state=success" >> "$GITHUB_OUTPUT"
|
|
1167
1171
|
fi
|
|
@@ -793,14 +793,21 @@ jobs:
|
|
|
793
793
|
- uses: actions/checkout@v5
|
|
794
794
|
with:
|
|
795
795
|
clean: true
|
|
796
|
+
# failure beats cancelled beats success. A cancelled job (24 h queued
|
|
797
|
+
# with no runner, or superseded) reports "cancelled": the board keeps it
|
|
798
|
+
# red but marks it apart from a broken build.
|
|
796
799
|
- id: meta
|
|
797
800
|
env:
|
|
801
|
+
NEEDS: ${{ toJSON(needs) }}
|
|
798
802
|
NIGHT: ${{ needs.bump.outputs.status }}
|
|
799
803
|
DEVKIT: ${{ needs.bump.outputs.devkit_status }}
|
|
800
804
|
run: |
|
|
801
|
-
if
|
|
805
|
+
if jq -e '[.[].result] | any(. == "failure")' <<<"$NEEDS" >/dev/null; then
|
|
802
806
|
echo "state=failure" >> "$GITHUB_OUTPUT"
|
|
803
807
|
echo "devkit=failure" >> "$GITHUB_OUTPUT"
|
|
808
|
+
elif jq -e '[.[].result] | any(. == "cancelled")' <<<"$NEEDS" >/dev/null; then
|
|
809
|
+
echo "state=cancelled" >> "$GITHUB_OUTPUT"
|
|
810
|
+
echo "devkit=cancelled" >> "$GITHUB_OUTPUT"
|
|
804
811
|
else
|
|
805
812
|
echo "state=${NIGHT:-success}" >> "$GITHUB_OUTPUT"
|
|
806
813
|
echo "devkit=${DEVKIT:-success}" >> "$GITHUB_OUTPUT"
|
package/conventions/bump.yml
CHANGED
|
@@ -905,14 +905,21 @@ jobs:
|
|
|
905
905
|
- uses: actions/checkout@v5
|
|
906
906
|
with:
|
|
907
907
|
clean: true
|
|
908
|
+
# failure beats cancelled beats success. A cancelled job (24 h queued
|
|
909
|
+
# with no runner, or superseded) reports "cancelled": the board keeps it
|
|
910
|
+
# red but marks it apart from a broken build.
|
|
908
911
|
- id: meta
|
|
909
912
|
env:
|
|
913
|
+
NEEDS: ${{ toJSON(needs) }}
|
|
910
914
|
NIGHT: ${{ needs.bump.outputs.status }}
|
|
911
915
|
DEVKIT: ${{ needs.bump.outputs.devkit_status }}
|
|
912
916
|
run: |
|
|
913
|
-
if
|
|
917
|
+
if jq -e '[.[].result] | any(. == "failure")' <<<"$NEEDS" >/dev/null; then
|
|
914
918
|
echo "state=failure" >> "$GITHUB_OUTPUT"
|
|
915
919
|
echo "devkit=failure" >> "$GITHUB_OUTPUT"
|
|
920
|
+
elif jq -e '[.[].result] | any(. == "cancelled")' <<<"$NEEDS" >/dev/null; then
|
|
921
|
+
echo "state=cancelled" >> "$GITHUB_OUTPUT"
|
|
922
|
+
echo "devkit=cancelled" >> "$GITHUB_OUTPUT"
|
|
916
923
|
else
|
|
917
924
|
echo "state=${NIGHT:-success}" >> "$GITHUB_OUTPUT"
|
|
918
925
|
echo "devkit=${DEVKIT:-success}" >> "$GITHUB_OUTPUT"
|
|
@@ -373,10 +373,17 @@ jobs:
|
|
|
373
373
|
- uses: actions/checkout@v5
|
|
374
374
|
with:
|
|
375
375
|
clean: true
|
|
376
|
+
# failure beats cancelled beats success. A cancelled job (24 h queued
|
|
377
|
+
# with no runner, or superseded) reports "cancelled": the board keeps it
|
|
378
|
+
# red but marks it apart from a broken build.
|
|
376
379
|
- id: meta
|
|
380
|
+
env:
|
|
381
|
+
NEEDS: ${{ toJSON(needs) }}
|
|
377
382
|
run: |
|
|
378
|
-
if
|
|
383
|
+
if jq -e '[.[].result] | any(. == "failure")' <<<"$NEEDS" >/dev/null; then
|
|
379
384
|
echo "state=failure" >> "$GITHUB_OUTPUT"
|
|
385
|
+
elif jq -e '[.[].result] | any(. == "cancelled")' <<<"$NEEDS" >/dev/null; then
|
|
386
|
+
echo "state=cancelled" >> "$GITHUB_OUTPUT"
|
|
380
387
|
else
|
|
381
388
|
echo "state=success" >> "$GITHUB_OUTPUT"
|
|
382
389
|
fi
|
package/conventions/checks.yml
CHANGED
|
@@ -380,10 +380,17 @@ jobs:
|
|
|
380
380
|
- uses: actions/checkout@v5
|
|
381
381
|
with:
|
|
382
382
|
clean: true
|
|
383
|
+
# failure beats cancelled beats success. A cancelled job (24 h queued
|
|
384
|
+
# with no runner, or superseded) reports "cancelled": the board keeps it
|
|
385
|
+
# red but marks it apart from a broken build.
|
|
383
386
|
- id: meta
|
|
387
|
+
env:
|
|
388
|
+
NEEDS: ${{ toJSON(needs) }}
|
|
384
389
|
run: |
|
|
385
|
-
if
|
|
390
|
+
if jq -e '[.[].result] | any(. == "failure")' <<<"$NEEDS" >/dev/null; then
|
|
386
391
|
echo "state=failure" >> "$GITHUB_OUTPUT"
|
|
392
|
+
elif jq -e '[.[].result] | any(. == "cancelled")' <<<"$NEEDS" >/dev/null; then
|
|
393
|
+
echo "state=cancelled" >> "$GITHUB_OUTPUT"
|
|
387
394
|
else
|
|
388
395
|
echo "state=success" >> "$GITHUB_OUTPUT"
|
|
389
396
|
fi
|
|
@@ -717,10 +717,17 @@ jobs:
|
|
|
717
717
|
- uses: actions/checkout@v5
|
|
718
718
|
with:
|
|
719
719
|
clean: true
|
|
720
|
+
# failure beats cancelled beats success. A cancelled job (24 h queued
|
|
721
|
+
# with no runner, or superseded) reports "cancelled": the board keeps it
|
|
722
|
+
# red but marks it apart from a broken build.
|
|
720
723
|
- id: meta
|
|
724
|
+
env:
|
|
725
|
+
NEEDS: ${{ toJSON(needs) }}
|
|
721
726
|
run: |
|
|
722
|
-
if
|
|
727
|
+
if jq -e '[.[].result] | any(. == "failure")' <<<"$NEEDS" >/dev/null; then
|
|
723
728
|
echo "state=failure" >> "$GITHUB_OUTPUT"
|
|
729
|
+
elif jq -e '[.[].result] | any(. == "cancelled")' <<<"$NEEDS" >/dev/null; then
|
|
730
|
+
echo "state=cancelled" >> "$GITHUB_OUTPUT"
|
|
724
731
|
else
|
|
725
732
|
echo "state=success" >> "$GITHUB_OUTPUT"
|
|
726
733
|
fi
|
|
@@ -577,10 +577,17 @@ jobs:
|
|
|
577
577
|
- uses: actions/checkout@v5
|
|
578
578
|
with:
|
|
579
579
|
clean: true
|
|
580
|
+
# failure beats cancelled beats success. A cancelled job (24 h queued
|
|
581
|
+
# with no runner, or superseded) reports "cancelled": the board keeps it
|
|
582
|
+
# red but marks it apart from a broken build.
|
|
580
583
|
- id: meta
|
|
584
|
+
env:
|
|
585
|
+
NEEDS: ${{ toJSON(needs) }}
|
|
581
586
|
run: |
|
|
582
|
-
if
|
|
587
|
+
if jq -e '[.[].result] | any(. == "failure")' <<<"$NEEDS" >/dev/null; then
|
|
583
588
|
echo "state=failure" >> "$GITHUB_OUTPUT"
|
|
589
|
+
elif jq -e '[.[].result] | any(. == "cancelled")' <<<"$NEEDS" >/dev/null; then
|
|
590
|
+
echo "state=cancelled" >> "$GITHUB_OUTPUT"
|
|
584
591
|
else
|
|
585
592
|
echo "state=success" >> "$GITHUB_OUTPUT"
|
|
586
593
|
fi
|
|
@@ -88,6 +88,16 @@ launch_params() {
|
|
|
88
88
|
[ "${#missing[@]}" = 0 ] || oops "export the required launch parameters: ${missing[*]}"
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
# The norsk-ctl installer's licence argument, NUL-separated: an older installer
|
|
92
|
+
# demands --license, a current one takes none. The product's licence reaches
|
|
93
|
+
# `product add` regardless.
|
|
94
|
+
installer_licence_args() {
|
|
95
|
+
local installer=$1 license=$2
|
|
96
|
+
if grep -q -- '--license)' "${installer}"; then
|
|
97
|
+
printf -- '--license\0%s\0' "${license}"
|
|
98
|
+
fi
|
|
99
|
+
}
|
|
100
|
+
|
|
91
101
|
main() {
|
|
92
102
|
local here
|
|
93
103
|
here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
@@ -177,7 +187,9 @@ main() {
|
|
|
177
187
|
else
|
|
178
188
|
flags+=(--public-host "${PUBLIC_HOST:-auto}")
|
|
179
189
|
fi
|
|
180
|
-
|
|
190
|
+
local licence_args=()
|
|
191
|
+
while IFS= read -r -d '' arg; do licence_args+=("${arg}"); done < <(installer_licence_args "${installer}" "${license}")
|
|
192
|
+
bash "${installer}" --server --version "${CTL_VERSION}" "${licence_args[@]}" "${flags[@]}" --pull-images --yes
|
|
181
193
|
rm -f "${installer}"
|
|
182
194
|
fi
|
|
183
195
|
# The public installer leaves a running norsk-ctl as it is, so a box set up by
|
package/conventions/smoke.yml
CHANGED
|
@@ -529,10 +529,17 @@ jobs:
|
|
|
529
529
|
- uses: actions/checkout@v5
|
|
530
530
|
with:
|
|
531
531
|
clean: true
|
|
532
|
+
# failure beats cancelled beats success. A cancelled job (24 h queued
|
|
533
|
+
# with no runner, or superseded) reports "cancelled": the board keeps it
|
|
534
|
+
# red but marks it apart from a broken build.
|
|
532
535
|
- id: meta
|
|
536
|
+
env:
|
|
537
|
+
NEEDS: ${{ toJSON(needs) }}
|
|
533
538
|
run: |
|
|
534
|
-
if
|
|
539
|
+
if jq -e '[.[].result] | any(. == "failure")' <<<"$NEEDS" >/dev/null; then
|
|
535
540
|
echo "state=failure" >> "$GITHUB_OUTPUT"
|
|
541
|
+
elif jq -e '[.[].result] | any(. == "cancelled")' <<<"$NEEDS" >/dev/null; then
|
|
542
|
+
echo "state=cancelled" >> "$GITHUB_OUTPUT"
|
|
536
543
|
else
|
|
537
544
|
echo "state=success" >> "$GITHUB_OUTPUT"
|
|
538
545
|
fi
|