Skip to content

Commit

Permalink
Merge branch 'upstream/release52' into feat/pr-upstream-for-elemement…
Browse files Browse the repository at this point in the history
…-selector-for-ui

# Conflicts:
#	packages/webui/src/client/ui/RundownView.tsx
#	packages/webui/src/client/ui/SegmentTimeline/SegmentTimelineContainer.tsx
  • Loading branch information
Julusian committed Dec 10, 2024
2 parents 0a93b9c + c4365ad commit fc0046b
Show file tree
Hide file tree
Showing 558 changed files with 27,142 additions and 10,072 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/audit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: |
yarn
cd meteor
meteor yarn validate:prod-dependencies
meteor npm run validate:prod-dependencies
env:
CI: true

Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
run: |
yarn
cd meteor
meteor yarn run validate:all-dependencies
meteor npm run validate:all-dependencies
env:
CI: true

Expand Down
36 changes: 18 additions & 18 deletions .github/workflows/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
# setup zodern:types. No linters are setup, so this simply installs the packages
meteor lint
meteor yarn ci:lint
meteor npm run ci:lint
env:
CI: true

Expand Down Expand Up @@ -85,12 +85,12 @@ jobs:
# setup zodern:types. No linters are setup, so this simply installs the packages
meteor lint
NODE_OPTIONS="--max-old-space-size=6144" meteor yarn unitci --force-exit
NODE_OPTIONS="--max-old-space-size=6144" meteor npm run unitci --force-exit
env:
CI: true
- name: Send coverage
if: ((github.event_name == 'pull_request') && (!startsWith(github.head_ref, 'release'))) || ((github.event_name == 'push') && (!startsWith(github.ref_name, 'release')))
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

Expand Down Expand Up @@ -246,7 +246,9 @@ jobs:
echo "image=$image" >> $GITHUB_OUTPUT
- name: Trivy scanning
if: steps.check-build-and-push.outputs.enable == 'true' && steps.check-ghcr.outputs.enable == 'true' && steps.ghcr-tag.outputs.tags != 0
uses: aquasecurity/trivy-action@0.24.0
uses: aquasecurity/trivy-action@0.29.0
env:
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db
with:
image-ref: "${{ steps.trivy-image.outputs.image }}"
format: "table"
Expand Down Expand Up @@ -395,7 +397,9 @@ jobs:
echo "image=$image" >> $GITHUB_OUTPUT
- name: Trivy scanning
if: steps.check-build-and-push.outputs.enable == 'true' && steps.check-ghcr.outputs.enable == 'true' && steps.ghcr-tag.outputs.tags != 0
uses: aquasecurity/trivy-action@0.24.0
uses: aquasecurity/trivy-action@0.29.0
env:
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db
with:
image-ref: "${{ steps.trivy-image.outputs.image }}"
format: "table"
Expand Down Expand Up @@ -587,13 +591,17 @@ jobs:
yarn
env:
CI: true
- name: Run generator
- name: Build OpenAPI client library
run: |
cd packages/openapi
yarn build
env:
CI: true
- name: Generate OpenAPI docs and server
run: |
cd packages/openapi
yarn gendocs
yarn genserver
yarn genclient:ts
env:
CI: true

Expand Down Expand Up @@ -682,7 +690,7 @@ jobs:
else
# make dependencies of `determine-npm-tag` available
yarn install --mode=skip-build
cd packages
PACKAGE_NAME="@sofie-automation/shared-lib"
PUBLISHED_VERSION=$(yarn npm info --json $PACKAGE_NAME | jq -c '.version' -r)
Expand All @@ -700,19 +708,11 @@ jobs:
yarn build
env:
CI: true
- name: Generate OpenAPI client library
if: ${{ steps.do-publish.outputs.tag }}
uses: hatamiarash7/openapi-generator@v0.3.0
with:
generator: typescript-fetch
openapi-file: ./packages/openapi/api/actions.yaml
output-dir: ./packages/openapi/client/ts
command-args: -p supportsES6=true
- name: Build OpenAPI client library
if: ${{ steps.do-publish.outputs.tag }}
run: |
cd packages/openapi
yarn build:main
yarn build
env:
CI: true
- name: Modify dependencies to use npm packages
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/prerelease-libs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,19 +131,12 @@ jobs:
yarn build
env:
CI: true
- name: Generate OpenAPI client library
if: ${{ steps.do-publish.outputs.tag }}
uses: hatamiarash7/openapi-generator@v0.3.0
with:
generator: typescript-fetch
openapi-file: ./packages/openapi/api/actions.yaml
output-dir: ./packages/openapi/client/ts
command-args: -p supportsES6=true

- name: Build OpenAPI client library
if: ${{ steps.do-publish.outputs.tag }}
if: ${{ steps.do-publish.outputs.publish }}
run: |
cd packages/openapi
yarn build:main
yarn build
env:
CI: true
- name: Modify dependencies to use npm packages
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/prune-container-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:

jobs:
prune-container-images:
if: ${{ github.repository_owner == 'nrkno' }}

uses: nrkno/sofie-github-workflows/.github/workflows/prune-container-images.yml@main
strategy:
max-parallel: 1
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/prune-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ on:

jobs:
prune-tags:
if: ${{ github.repository_owner == 'nrkno' }}

name: Prune tags
runs-on: ubuntu-latest
timeout-minutes: 15
Expand Down
91 changes: 42 additions & 49 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ name: Scheduled Trivy Scan
on:
workflow_dispatch:
schedule:
- cron: '0 10 * * 1'
- cron: "0 10 * * 1"

jobs:
trivy:
if: ${{ github.repository_owner == 'nrkno' }}

name: Trivy scan
runs-on: ubuntu-latest
strategy:
Expand All @@ -15,17 +17,21 @@ jobs:

steps:
- name: Run Trivy vulnerability scanner (json)
uses: aquasecurity/trivy-action@0.24.0
uses: aquasecurity/trivy-action@0.29.0
env:
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db
with:
image-ref: ghcr.io/nrkno/sofie-core-${{ matrix.image }}:latest
format: json
output: '${{ matrix.image }}-trivy-scan-results.json'
output: "${{ matrix.image }}-trivy-scan-results.json"

- name: Run Trivy vulnerability scanner (table)
uses: aquasecurity/trivy-action@0.24.0
uses: aquasecurity/trivy-action@0.29.0
env:
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db
with:
image-ref: ghcr.io/nrkno/sofie-core-${{ matrix.image }}:latest
output: '${{ matrix.image }}-trivy-scan-results.txt'
output: "${{ matrix.image }}-trivy-scan-results.txt"

- name: Post all scan results to Github Summary as a table
env:
Expand All @@ -38,10 +44,12 @@ jobs:
echo $CODE_BLOCK >> $GITHUB_STEP_SUMMARY
- name: Run Trivy in GitHub SBOM mode and submit results to Dependency Graph
uses: aquasecurity/trivy-action@0.24.0
uses: aquasecurity/trivy-action@0.29.0
env:
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db
with:
format: 'github'
output: 'dependency-results-${{ matrix.image }}.sbom.json'
format: "github"
output: "dependency-results-${{ matrix.image }}.sbom.json"
image-ref: ghcr.io/nrkno/sofie-core-${{ matrix.image }}:latest
github-pat: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -56,46 +64,31 @@ jobs:
echo ${{ env.SUMMARY }}
- name: Send Slack Notification
uses: slackapi/slack-github-action@v1.27.0
uses: slackapi/slack-github-action@v2.0.0
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: |
{
"text": "Trivy scan results",
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "Trivy scan results for sofie-core-${{ matrix.image }}:latest"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":thisisfine: ${{ env.SUMMARY }}"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Read the full scan results on Github"
},
"accessory": {
"type": "button",
"text": {
"type": "plain_text",
"text": ":github: Scan results",
"emoji": true
},
"value": "workflow_run",
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}",
"action_id": "button-action"
}
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
text: "Trivy scan results"
blocks:
- type: "header"
text:
type: "plain_text"
text: "Trivy scan results for sofie-core-${{ matrix.image }}:latest"
- type: "section"
text:
type: "mrkdwn"
text: ":thisisfine: ${{ env.SUMMARY }}"
- type: "section"
text:
type: "mrkdwn"
text: "Read the full scan results on Github"
accessory:
type: "button"
text:
type: "plain_text"
text: ":github: Scan results"
emoji: true
value: "workflow_run"
url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
action_id: "button-action"
3 changes: 2 additions & 1 deletion .vscode/settings.json.default
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"packages/shared-lib",
"packages/job-worker",
"packages/openapi",
"packages/live-status-gateway"
"packages/live-status-gateway",
"packages/webui"
],
"prettier.enable": true,
"sonarlint.connectedMode.project": { "projectKey": "nrkno_sofie-core" },
Expand Down
3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ This repository uses the following branches:
* **_master_** is our main branch. We consider it stable and it is used in production.
* The **_releaseXX_** branches are our in-development branches. When a release is ready, we decide to “freeze” that branch and create a new **_releaseXX+1_** branch.

We encourage you to base your contributions on the latest **_releaseXX_** branch, alternatively the **_master_** branch or a recently frozen **_releaseXX_** branch. The [_Sofie Releases_](https://nrkno.github.io/sofie-core/releases) page collects the status and timeline of the releases.
We require contributions to be based based on the latest **_release\*_** branch.
The [_Sofie Releases_](https://nrkno.github.io/sofie-core/releases) page collects the status and timeline of the releases.
5 changes: 3 additions & 2 deletions DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Follow these instructions to start up Sofie Core in development mode. (For produ
```bash
git clone -b master https://github.com/nrkno/sofie-core.git
cd sofie-core
yarn
yarn start
```

Expand Down Expand Up @@ -138,12 +139,12 @@ Then submit this as a PR.

### ConfigManifests

The ConfigManifests for Blueprints and Gateways was replaced with JSONSchema in R50.
The ConfigManifests for Blueprints and Gateways was replaced with JSONSchema in R50.
However, one usage by AdlibActions for their userDataManifest remains as this is not something we are actively using.

## Blueprint Migrations

In R49, a replacement flow was added consisting of `validateConfig` and `applyConfig`.
In R49, a replacement flow was added consisting of `validateConfig` and `applyConfig`.
It is no longer recommended to use the old migrations flow for showstyle and studio blueprints.

### ExpectedMediaItems
Expand Down
20 changes: 5 additions & 15 deletions meteor/.meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,18 @@
# but you can also edit it by hand.

meteor-base@1.5.1 # Packages every Meteor app needs to have
mobile-experience@1.1.0 # Packages for a great mobile UX
mongo@1.16.7 # The database Meteor supports right now
mongo@1.16.10 # The database Meteor supports right now
reactive-var@1.0.12 # Reactive variable for tracker

standard-minifier-css@1.9.2 # CSS minifier run for production mode
standard-minifier-js@2.8.1 # JS minifier run for production mode
es5-shim@4.8.0 # ECMAScript 5 compatibility for older browsers
ecmascript@0.16.7 # Enable ECMAScript2015+ syntax in app code
typescript@4.9.4 # Enable TypeScript syntax in .ts and .tsx modules
ecmascript@0.16.8 # Enable ECMAScript2015+ syntax in app code
typescript@4.9.5 # Enable TypeScript syntax in .ts and .tsx modules
shell-server@0.5.0 # Server-side component of the `meteor shell` command
modern-browsers@0.1.9 # Select when to allow use of the "modern" bundle

static-html@1.3.2 # Define static page content in .html files
react-meteor-data # React higher-order component for reactively tracking Meteor data

tracker@1.3.2 # Meteor's client-side reactive programming library
session@1.2.1
fourseven:scss
tracker@1.3.3 # Meteor's client-side reactive programming library

dynamic-import@0.7.3
ostrio:meteor-root
accounts-password@2.3.4
accounts-password@2.4.0

julusian:meteor-elastic-apm@2.5.2
zodern:types
2 changes: 1 addition & 1 deletion meteor/.meteor/release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
METEOR@2.13.3
METEOR@2.16
Loading

0 comments on commit fc0046b

Please sign in to comment.