Skip to content

Commit e49715e

Browse files
committed
Merge remote-tracking branch 'upstream/release51' into feat/mos-openmedia-hot-standby
2 parents 484b0d7 + 302e559 commit e49715e

File tree

433 files changed

+13322
-7176
lines changed

Some content is hidden

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

433 files changed

+13322
-7176
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @nrkno/sofieteam

.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: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ jobs:
212212
password: ${{ secrets.GITHUB_TOKEN }}
213213
- name: Build and push to GHCR
214214
if: steps.check-build-and-push.outputs.enable == 'true' && steps.check-ghcr.outputs.enable == 'true' && steps.ghcr-tag.outputs.tags != 0
215-
uses: docker/build-push-action@v5
215+
uses: docker/build-push-action@v6
216216
with:
217217
context: .
218218
file: ./meteor/Dockerfile.circle
@@ -223,7 +223,7 @@ jobs:
223223
github-token: ${{ github.token }}
224224
- name: Build and push to DockerHub
225225
if: steps.check-build-and-push.outputs.enable == 'true' && steps.dockerhub.outputs.dockerhub-publish == '1'
226-
uses: docker/build-push-action@v5
226+
uses: docker/build-push-action@v6
227227
with:
228228
context: .
229229
file: ./meteor/Dockerfile.circle
@@ -239,7 +239,7 @@ jobs:
239239
echo "image=$image" >> $GITHUB_OUTPUT
240240
- name: Trivy scanning
241241
if: steps.check-build-and-push.outputs.enable == 'true' && steps.check-ghcr.outputs.enable == 'true' && steps.ghcr-tag.outputs.tags != 0
242-
uses: aquasecurity/trivy-action@0.17.0
242+
uses: aquasecurity/trivy-action@0.24.0
243243
with:
244244
image-ref: "${{ steps.trivy-image.outputs.image }}"
245245
format: "table"
@@ -343,7 +343,7 @@ jobs:
343343
yarn install
344344
yarn lerna run --scope \*\*/${{ matrix.gateway-name }} --include-dependencies --stream build
345345
yarn run pinst --disable
346-
yarn workspaces focus --all --production
346+
yarn workspaces focus ${{ matrix.gateway-name }} --production
347347
- name: Set up Docker Buildx
348348
if: steps.check-build-and-push.outputs.enable == 'true'
349349
uses: docker/setup-buildx-action@v3
@@ -362,7 +362,7 @@ jobs:
362362
password: ${{ secrets.GITHUB_TOKEN }}
363363
- name: Build and push to GHCR
364364
if: steps.check-build-and-push.outputs.enable == 'true' && steps.check-ghcr.outputs.enable == 'true' && steps.ghcr-tag.outputs.tags != 0
365-
uses: docker/build-push-action@v5
365+
uses: docker/build-push-action@v6
366366
with:
367367
context: ./packages
368368
file: ./packages/${{ matrix.gateway-name }}/Dockerfile.circle
@@ -372,7 +372,7 @@ jobs:
372372
tags: "${{ steps.ghcr-tag.outputs.tags }}"
373373
- name: Build and push to DockerHub
374374
if: steps.check-build-and-push.outputs.enable == 'true' && steps.dockerhub.outputs.dockerhub-publish == '1'
375-
uses: docker/build-push-action@v5
375+
uses: docker/build-push-action@v6
376376
with:
377377
context: ./packages
378378
file: ./packages/${{ matrix.gateway-name }}/Dockerfile.circle
@@ -388,7 +388,7 @@ jobs:
388388
echo "image=$image" >> $GITHUB_OUTPUT
389389
- name: Trivy scanning
390390
if: steps.check-build-and-push.outputs.enable == 'true' && steps.check-ghcr.outputs.enable == 'true' && steps.ghcr-tag.outputs.tags != 0
391-
uses: aquasecurity/trivy-action@0.17.0
391+
uses: aquasecurity/trivy-action@0.24.0
392392
with:
393393
image-ref: "${{ steps.trivy-image.outputs.image }}"
394394
format: "table"
@@ -467,7 +467,7 @@ jobs:
467467
- blueprints-integration
468468
- server-core-integration
469469
- shared-lib
470-
node-version: [14.x, 16.x, 18.x]
470+
node-version: [14.x, 16.x, 18.x, 20.x]
471471
include:
472472
# include additional configs, to run certain packages only for a certain version of node
473473
- node-version: 14.x
@@ -481,6 +481,8 @@ jobs:
481481
package-name: openapi
482482
- node-version: 18.x
483483
package-name: openapi
484+
- node-version: 20.x
485+
package-name: openapi
484486
# No tests for the gateways yet
485487
# - node-version: 18.x
486488
# package-name: playout-gateway
@@ -526,7 +528,6 @@ jobs:
526528
asyncapi-generation:
527529
name: AsyncAPI Generation
528530
runs-on: ubuntu-latest
529-
continue-on-error: true
530531
timeout-minutes: 15
531532
steps:
532533
- uses: actions/checkout@v4
@@ -553,7 +554,6 @@ jobs:
553554
openapi-generation:
554555
name: OpenAPI Generation
555556
runs-on: ubuntu-latest
556-
continue-on-error: true
557557
timeout-minutes: 15
558558
steps:
559559
- uses: actions/checkout@v4
@@ -622,7 +622,7 @@ jobs:
622622
CI: true
623623
- name: Publish
624624
if: github.ref == 'refs/heads/master' # always publish for just the master branch
625-
uses: peaceiris/actions-gh-pages@v3
625+
uses: peaceiris/actions-gh-pages@v4
626626
with:
627627
github_token: ${{ secrets.GITHUB_TOKEN }}
628628
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]
56+
node-version: [14.x, 16.x, 18.x, 20.x]
5757

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

.github/workflows/sonar.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
sonarcloud:
1313
name: SonarCloud
1414
runs-on: ubuntu-latest
15-
if: ${{ github.repository_owner == 'nrkno' }}
15+
if: ${{ github.repository_owner == 'nrkno' && !github.event.pull_request.head.repo.fork }}
1616

1717
steps:
1818
- 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 [email protected]`)
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)