Skip to content

Commit cf8ca93

Browse files
committed
Merge branch 'release52' into feat/vite-ui-bundler2
2 parents 3339dbd + f2fe508 commit cf8ca93

File tree

151 files changed

+1920
-1306
lines changed

Some content is hidden

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

151 files changed

+1920
-1306
lines changed

.github/PULL-REQUEST-TEMPLATE.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,27 @@ What is the new behavior?
3030
-->
3131

3232

33-
## Testing Instructions
33+
## Testing
3434
<!--
35-
Please provide some instructions and other information for how to verify that the feature works.
35+
When you add a feature, you should also provide relevant unit tests, in order to
36+
* ensure that the feature works as expected
37+
* ensure that the feature will continue to work in the future
38+
-->
39+
40+
- [ ] I have added one or more unit tests for this PR
41+
- [ ] I have updated the relevant unit tests
42+
- [ ] No unit test changes are needed for this PR
43+
44+
### Affected areas
45+
46+
<!--
47+
Please provide some details on what areas of the system that are affected by this PR.
48+
This is useful for testers to know where to focus their testing efforts.
3649
Examples:
37-
* "Do a Take for a part that contains an adlib, verify that the adlib plays out."
38-
* "Open the Switchboard panel and toggle a route, verify that the route toggles in the GUI."
39-
* "This feature also affects 'feature X', so that needs to be tested for regressions as well."
50+
* This PR affects the playout logic in general.
51+
* This PR affects the timing calculation in the Rundown during playout.
52+
* This PR affects the NRC/MOS integration
53+
*
4054
-->
4155

4256

.github/workflows/node.yaml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ jobs:
219219
password: ${{ secrets.GITHUB_TOKEN }}
220220
- name: Build and push to GHCR
221221
if: steps.check-build-and-push.outputs.enable == 'true' && steps.check-ghcr.outputs.enable == 'true' && steps.ghcr-tag.outputs.tags != 0
222-
uses: docker/build-push-action@v5
222+
uses: docker/build-push-action@v6
223223
with:
224224
context: .
225225
file: ./meteor/Dockerfile.circle
@@ -230,7 +230,7 @@ jobs:
230230
github-token: ${{ github.token }}
231231
- name: Build and push to DockerHub
232232
if: steps.check-build-and-push.outputs.enable == 'true' && steps.dockerhub.outputs.dockerhub-publish == '1'
233-
uses: docker/build-push-action@v5
233+
uses: docker/build-push-action@v6
234234
with:
235235
context: .
236236
file: ./meteor/Dockerfile.circle
@@ -246,7 +246,7 @@ jobs:
246246
echo "image=$image" >> $GITHUB_OUTPUT
247247
- name: Trivy scanning
248248
if: steps.check-build-and-push.outputs.enable == 'true' && steps.check-ghcr.outputs.enable == 'true' && steps.ghcr-tag.outputs.tags != 0
249-
uses: aquasecurity/trivy-action@0.17.0
249+
uses: aquasecurity/trivy-action@0.24.0
250250
with:
251251
image-ref: "${{ steps.trivy-image.outputs.image }}"
252252
format: "table"
@@ -369,7 +369,7 @@ jobs:
369369
password: ${{ secrets.GITHUB_TOKEN }}
370370
- name: Build and push to GHCR
371371
if: steps.check-build-and-push.outputs.enable == 'true' && steps.check-ghcr.outputs.enable == 'true' && steps.ghcr-tag.outputs.tags != 0
372-
uses: docker/build-push-action@v5
372+
uses: docker/build-push-action@v6
373373
with:
374374
context: ./packages
375375
file: ./packages/${{ matrix.gateway-name }}/Dockerfile.circle
@@ -379,7 +379,7 @@ jobs:
379379
tags: "${{ steps.ghcr-tag.outputs.tags }}"
380380
- name: Build and push to DockerHub
381381
if: steps.check-build-and-push.outputs.enable == 'true' && steps.dockerhub.outputs.dockerhub-publish == '1'
382-
uses: docker/build-push-action@v5
382+
uses: docker/build-push-action@v6
383383
with:
384384
context: ./packages
385385
file: ./packages/${{ matrix.gateway-name }}/Dockerfile.circle
@@ -395,7 +395,7 @@ jobs:
395395
echo "image=$image" >> $GITHUB_OUTPUT
396396
- name: Trivy scanning
397397
if: steps.check-build-and-push.outputs.enable == 'true' && steps.check-ghcr.outputs.enable == 'true' && steps.ghcr-tag.outputs.tags != 0
398-
uses: aquasecurity/trivy-action@0.17.0
398+
uses: aquasecurity/trivy-action@0.24.0
399399
with:
400400
image-ref: "${{ steps.trivy-image.outputs.image }}"
401401
format: "table"
@@ -476,7 +476,7 @@ jobs:
476476
- blueprints-integration
477477
- server-core-integration
478478
- shared-lib
479-
node-version: [14.x, 16.x, 18.x, 20.x]
479+
node-version: [14.x, 18.x, 20.x, 22.x]
480480
include:
481481
# include additional configs, to run certain packages only for a certain version of node
482482
- node-version: 14.x
@@ -486,24 +486,26 @@ jobs:
486486
package-name: job-worker
487487
send-coverage: true
488488
# manual openapi to avoid testing for 14.x
489-
- node-version: 16.x
490-
package-name: openapi
491489
- node-version: 18.x
492490
package-name: openapi
493491
- node-version: 20.x
494492
package-name: openapi
493+
- node-version: 22.x
494+
package-name: openapi
495495
# No tests for the gateways yet
496496
# - node-version: 18.x
497497
# package-name: playout-gateway
498498
# - node-version: 18.x
499499
# package-name: mos-gateway
500500
- node-version: 18.x
501501
package-name: live-status-gateway
502+
send-coverage: true
502503
- node-version: 18.x
503504
package-name: webui
504505
# manual meteor-lib as it only needs a couple of versions
505506
- node-version: 18.x
506507
package-name: meteor-lib
508+
send-coverage: true
507509
- node-version: 14.x
508510
package-name: meteor-lib
509511

@@ -536,7 +538,7 @@ jobs:
536538
env:
537539
CI: true
538540
- name: Send coverage
539-
if: (matrix.node-version == '16.x' || matrix.send-coverage == true) && ((github.event_name == 'pull_request') && ((!startsWith(github.head_ref, 'release'))) || ((github.event_name == 'push') && (!startsWith(github.ref_name, 'release'))))
541+
if: (matrix.node-version == '18.x' || matrix.send-coverage == true) && ((github.event_name == 'pull_request') && ((!startsWith(github.head_ref, 'release'))) || ((github.event_name == 'push') && (!startsWith(github.ref_name, 'release'))))
540542
uses: codecov/codecov-action@v4
541543
env:
542544
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
@@ -638,7 +640,7 @@ jobs:
638640
CI: true
639641
- name: Publish
640642
if: github.ref == 'refs/heads/master' # always publish for just the master branch
641-
uses: peaceiris/actions-gh-pages@v3
643+
uses: peaceiris/actions-gh-pages@v4
642644
with:
643645
github_token: ${{ secrets.GITHUB_TOKEN }}
644646
publish_dir: ./packages/documentation/build

.github/workflows/prerelease-libs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- blueprints-integration
5454
- server-core-integration
5555
- shared-lib
56-
node-version: [14.x, 16.x, 18.x, 20.x]
56+
node-version: [14.x, 18.x, 20.x, 22.x]
5757

5858
steps:
5959
- uses: actions/checkout@v4

.github/workflows/trivy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ jobs:
1313
image: ["server-core", "playout-gateway", "mos-gateway"]
1414
steps:
1515
- name: Run Trivy vulnerability scanner (json)
16-
uses: aquasecurity/trivy-action@0.17.0
16+
uses: aquasecurity/trivy-action@0.24.0
1717
with:
1818
image-ref: ghcr.io/nrkno/sofie-core-${{ matrix.image }}:latest
1919
format: json
2020
output: '${{ matrix.image }}-trivy-scan-results.json'
2121

2222
- name: Run Trivy vulnerability scanner (table)
23-
uses: aquasecurity/trivy-action@0.17.0
23+
uses: aquasecurity/trivy-action@0.24.0
2424
with:
2525
image-ref: ghcr.io/nrkno/sofie-core-${{ matrix.image }}:latest
2626
output: '${{ matrix.image }}-trivy-scan-results.txt'
@@ -36,7 +36,7 @@ jobs:
3636
echo $CODE_BLOCK >> $GITHUB_STEP_SUMMARY
3737
3838
- name: Run Trivy in GitHub SBOM mode and submit results to Dependency Graph
39-
uses: aquasecurity/trivy-action@0.17.0
39+
uses: aquasecurity/trivy-action@0.24.0
4040
with:
4141
format: 'github'
4242
output: 'dependency-results-${{ matrix.image }}.sbom.json'
@@ -54,7 +54,7 @@ jobs:
5454
echo ${{ env.SUMMARY }}
5555
5656
- name: Send Slack Notification
57-
uses: slackapi/slack-github-action@v1.25.0
57+
uses: slackapi/slack-github-action@v1.26.0
5858
with:
5959
payload: |
6060
{

DEVELOPER.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@ Follow these instructions to start up Sofie Core in development mode. (For produ
1818

1919
### Prerequisites
2020

21-
- Install [Node.js](https://nodejs.org) 18 (14 should also work) (using [nvm](https://github.com/nvm-sh/nvm) or [nvm-windows](https://github.com/coreybutler/nvm-windows) is the recommended way to install Node.js)
22-
- If on Windows: `npm install --global windows-build-tools`
21+
- Install [Node.js](https://nodejs.org) 14 (using [nvm](https://github.com/nvm-sh/nvm) or [nvm-windows](https://github.com/coreybutler/nvm-windows) is the recommended way to install Node.js)
2322
- Install [Meteor](https://www.meteor.com/install) (`npm install --global meteor`)
23+
- Install [Node.js](https://nodejs.org) 18 (using the same method you used above, you can uninstall node 14 if needed)
24+
- Install an older version of corepack (`npm install --global corepack@0.15.3`)
2425
- Enable [corepack](https://nodejs.org/api/corepack.html#corepack) (`corepack enable`) as administrator/root. If `corepack` is not found, you may need to install it first with `npm install --global corepack`
2526

27+
- If on Windows, you may need to `npm install --global windows-build-tools` but this is not always necessary
28+
2629
### Quick Start
2730

2831
```bash

0 commit comments

Comments
 (0)