Skip to content

Commit

Permalink
Merge branch 'test/20221205' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
nytamin committed Jan 4, 2023
2 parents 8e06bbf + d594338 commit 830ee7a
Show file tree
Hide file tree
Showing 23 changed files with 161 additions and 61 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.39.4-alpha.0](https://github.com/nrkno/tv-automation-package-manager/compare/v1.39.3...v1.39.4-alpha.0) (2022-12-05)


### Bug Fixes

* blackDetectRegex expects black_duration to be a number with a decimal point ([eb4aaa3](https://github.com/nrkno/tv-automation-package-manager/commit/eb4aaa36ae0a93697f38d263a6f526f82ca2077d))
* blackDetectRegex expects black_duration to be a number with a decimal point ([#19](https://github.com/nrkno/tv-automation-package-manager/issues/19)) ([bb23fba](https://github.com/nrkno/tv-automation-package-manager/commit/bb23fba5dd9ffb97ee8791bd3342bbf0e482aa73))
* support for multiple smartbulls ([bc9db81](https://github.com/nrkno/tv-automation-package-manager/commit/bc9db819a3436774686a19d212c1fe77f89ae3bf))





## [1.39.3](https://github.com/nrkno/tv-automation-package-manager/compare/v1.39.2...v1.39.3) (2022-11-30)


Expand Down
8 changes: 8 additions & 0 deletions apps/appcontainer-node/app/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.39.4-alpha.0](https://github.com/nrkno/tv-automation-package-manager/compare/v1.39.3...v1.39.4-alpha.0) (2022-12-05)

**Note:** Version bump only for package @appcontainer-node/app





## [1.39.3](https://github.com/nrkno/tv-automation-package-manager/compare/v1.39.2...v1.39.3) (2022-11-30)

**Note:** Version bump only for package @appcontainer-node/app
Expand Down
4 changes: 2 additions & 2 deletions apps/appcontainer-node/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@appcontainer-node/app",
"version": "1.39.3",
"version": "1.39.4-alpha.0",
"description": "AppContainer-Node.js",
"private": true,
"scripts": {
Expand All @@ -16,7 +16,7 @@
"nexe": "^3.3.7"
},
"dependencies": {
"@appcontainer-node/generic": "1.39.3"
"@appcontainer-node/generic": "1.39.4-alpha.0"
},
"peerDependencies": {
"@sofie-automation/blueprints-integration": "*"
Expand Down
8 changes: 8 additions & 0 deletions apps/appcontainer-node/packages/generic/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.39.4-alpha.0](https://github.com/nrkno/tv-automation-package-manager/compare/v1.39.3...v1.39.4-alpha.0) (2022-12-05)

**Note:** Version bump only for package @appcontainer-node/generic





## [1.39.3](https://github.com/nrkno/tv-automation-package-manager/compare/v1.39.2...v1.39.3) (2022-11-30)

**Note:** Version bump only for package @appcontainer-node/generic
Expand Down
4 changes: 2 additions & 2 deletions apps/appcontainer-node/packages/generic/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@appcontainer-node/generic",
"version": "1.39.3",
"version": "1.39.4-alpha.0",
"private": true,
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -15,7 +15,7 @@
},
"dependencies": {
"@sofie-package-manager/api": "1.39.2",
"@sofie-package-manager/worker": "1.39.3",
"@sofie-package-manager/worker": "1.39.4-alpha.0",
"underscore": "^1.12.0"
},
"devDependencies": {
Expand Down
8 changes: 8 additions & 0 deletions apps/package-manager/app/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.39.4-alpha.0](https://github.com/nrkno/tv-automation-package-manager/compare/v1.39.3...v1.39.4-alpha.0) (2022-12-05)

**Note:** Version bump only for package @package-manager/app





## [1.39.3](https://github.com/nrkno/tv-automation-package-manager/compare/v1.39.2...v1.39.3) (2022-11-30)

**Note:** Version bump only for package @package-manager/app
Expand Down
4 changes: 2 additions & 2 deletions apps/package-manager/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@package-manager/app",
"version": "1.39.3",
"version": "1.39.4-alpha.0",
"private": true,
"scripts": {
"build": "rimraf dist && yarn build:main",
Expand All @@ -15,7 +15,7 @@
"nexe": "^3.3.7"
},
"dependencies": {
"@package-manager/generic": "1.39.3"
"@package-manager/generic": "1.39.4-alpha.0"
},
"peerDependencies": {
"@sofie-automation/blueprints-integration": "*"
Expand Down
11 changes: 11 additions & 0 deletions apps/package-manager/packages/generic/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.39.4-alpha.0](https://github.com/nrkno/tv-automation-package-manager/compare/v1.39.3...v1.39.4-alpha.0) (2022-12-05)


### Bug Fixes

* support for multiple smartbulls ([bc9db81](https://github.com/nrkno/tv-automation-package-manager/commit/bc9db819a3436774686a19d212c1fe77f89ae3bf))





## [1.39.3](https://github.com/nrkno/tv-automation-package-manager/compare/v1.39.2...v1.39.3) (2022-11-30)

**Note:** Version bump only for package @package-manager/generic
Expand Down
6 changes: 3 additions & 3 deletions apps/package-manager/packages/generic/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@package-manager/generic",
"version": "1.39.3",
"version": "1.39.4-alpha.0",
"private": true,
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -16,8 +16,8 @@
},
"dependencies": {
"@sofie-package-manager/api": "1.39.2",
"@sofie-package-manager/expectation-manager": "1.39.3",
"@sofie-package-manager/worker": "1.39.3",
"@sofie-package-manager/expectation-manager": "1.39.4-alpha.0",
"@sofie-package-manager/worker": "1.39.4-alpha.0",
"chokidar": "^3.5.1",
"deep-extend": "^0.6.0",
"fast-clone": "^1.5.13",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,61 +32,62 @@ export function getSmartbullExpectedPackages(
logger: LoggerInstance,
expectedPackages: ExpectedPackageWrap[]
): ExpectedPackageWrapMediaFile[] {
let orgSmartbullExpectedPackage: ExpectedPackageWrap | undefined = undefined
const orgSmartbullExpectedPackages: ExpectedPackageWrap[] = []

// Find the smartbull package:
for (const packageWrap of expectedPackages) {
if (expectedPackageIsSmartbull(packageWrap)) {
// hack
orgSmartbullExpectedPackage = packageWrap
orgSmartbullExpectedPackages.push(packageWrap)
}
}

// Find smartbull source packages:
const smartbullExpectations: ExpectedPackageWrap[] = []
const smartbullExpectations: ExpectedPackageWrapMediaFile[] = []
for (const packageWrap of expectedPackages) {
if (expectedPackageIsSmartbullSource(packageWrap)) {
// Set the smartbull priority:
packageWrap.priority = PriorityMagnitude.PLAY_SOON
smartbullExpectations.push(packageWrap)
smartbullExpectations.push(packageWrap as ExpectedPackageWrapMediaFile)
}
}

// Handle Smartbull:
const smartbulls: ExpectedPackageWrapMediaFile[] = []
if (orgSmartbullExpectedPackage && smartbullExpectations.length > 0) {
// Sort alphabetically on filePath:
smartbullExpectations.sort((a, b) => {
const expA = a.expectedPackage as ExpectedPackage.ExpectedPackageMediaFile
const expB = b.expectedPackage as ExpectedPackage.ExpectedPackageMediaFile
// Sort smartbulls alphabetically on filePath:
smartbullExpectations.sort((a, b) => {
// Lowest first:
if (a.expectedPackage.content.filePath > b.expectedPackage.content.filePath) return 1
if (a.expectedPackage.content.filePath < b.expectedPackage.content.filePath) return -1

// lowest first:
if (expA.content.filePath > expB.content.filePath) return 1
if (expA.content.filePath < expB.content.filePath) return -1
// Lowest first: (lower is better)
if (a.priority > b.priority) return 1
if (a.priority < b.priority) return -1

return 0
})
// Pick the last one:
const bestSmartbull = smartbullExpectations[smartbullExpectations.length - 1] as
| ExpectedPackageWrapMediaFile
| undefined
if (bestSmartbull) {
if (orgSmartbullExpectedPackage.expectedPackage.type === ExpectedPackage.PackageType.MEDIA_FILE) {
const org = orgSmartbullExpectedPackage as ExpectedPackageWrapMediaFile
return 0
})
// Pick the last one:
const bestSmartbull =
smartbullExpectations.length > 0 ? smartbullExpectations[smartbullExpectations.length - 1] : undefined

const newPackage: ExpectedPackageWrapMediaFile = {
...org,
expectedPackage: {
...org.expectedPackage,
// Take these from bestSmartbull:
content: bestSmartbull.expectedPackage.content,
version: {}, // Don't even use bestSmartbull.expectedPackage.version,
sources: bestSmartbull.expectedPackage.sources,
},
}
smartbulls.push(newPackage)
} else logger.warn('orgSmartbullExpectation is not a MEDIA_FILE')
}
if (!bestSmartbull) return []

// Handle Smartbull:
const smartbulls: ExpectedPackageWrapMediaFile[] = []
for (const orgSmartbullExpectedPackage of orgSmartbullExpectedPackages) {
if (orgSmartbullExpectedPackage.expectedPackage.type === ExpectedPackage.PackageType.MEDIA_FILE) {
const org = orgSmartbullExpectedPackage as ExpectedPackageWrapMediaFile

const newPackage: ExpectedPackageWrapMediaFile = {
...org,
expectedPackage: {
...org.expectedPackage,
// Take these from bestSmartbull:
content: bestSmartbull.expectedPackage.content,
version: {}, // Don't even use bestSmartbull.expectedPackage.version,
sources: bestSmartbull.expectedPackage.sources,
},
}
smartbulls.push(newPackage)
} else logger.warn('orgSmartbullExpectation is not a MEDIA_FILE')
}
return smartbulls
}
8 changes: 8 additions & 0 deletions apps/single-app/app/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.39.4-alpha.0](https://github.com/nrkno/tv-automation-package-manager/compare/v1.39.3...v1.39.4-alpha.0) (2022-12-05)

**Note:** Version bump only for package @single-app/app





## [1.39.3](https://github.com/nrkno/tv-automation-package-manager/compare/v1.39.2...v1.39.3) (2022-11-30)

**Note:** Version bump only for package @single-app/app
Expand Down
8 changes: 4 additions & 4 deletions apps/single-app/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@single-app/app",
"version": "1.39.3",
"version": "1.39.4-alpha.0",
"description": "Package Manager, http-proxy etc.. all in one application",
"private": true,
"scripts": {
Expand All @@ -16,12 +16,12 @@
"nexe": "^3.3.7"
},
"dependencies": {
"@appcontainer-node/generic": "1.39.3",
"@appcontainer-node/generic": "1.39.4-alpha.0",
"@http-server/generic": "1.39.2",
"@package-manager/generic": "1.39.3",
"@package-manager/generic": "1.39.4-alpha.0",
"@quantel-http-transformer-proxy/generic": "1.39.2",
"@sofie-package-manager/api": "1.39.2",
"@sofie-package-manager/worker": "1.39.3",
"@sofie-package-manager/worker": "1.39.4-alpha.0",
"@sofie-package-manager/workforce": "1.39.2",
"underscore": "^1.12.0"
},
Expand Down
8 changes: 8 additions & 0 deletions apps/worker/app/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.39.4-alpha.0](https://github.com/nrkno/tv-automation-package-manager/compare/v1.39.3...v1.39.4-alpha.0) (2022-12-05)

**Note:** Version bump only for package @worker/app





## [1.39.3](https://github.com/nrkno/tv-automation-package-manager/compare/v1.39.2...v1.39.3) (2022-11-30)

**Note:** Version bump only for package @worker/app
Expand Down
4 changes: 2 additions & 2 deletions apps/worker/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@worker/app",
"version": "1.39.3",
"version": "1.39.4-alpha.0",
"description": "Boilerplace",
"private": true,
"scripts": {
Expand All @@ -17,7 +17,7 @@
"nexe": "^3.3.7"
},
"dependencies": {
"@worker/generic": "1.39.3"
"@worker/generic": "1.39.4-alpha.0"
},
"peerDependencies": {
"@sofie-automation/blueprints-integration": "*"
Expand Down
8 changes: 8 additions & 0 deletions apps/worker/packages/generic/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.39.4-alpha.0](https://github.com/nrkno/tv-automation-package-manager/compare/v1.39.3...v1.39.4-alpha.0) (2022-12-05)

**Note:** Version bump only for package @worker/generic





## [1.39.3](https://github.com/nrkno/tv-automation-package-manager/compare/v1.39.2...v1.39.3) (2022-11-30)

**Note:** Version bump only for package @worker/generic
Expand Down
4 changes: 2 additions & 2 deletions apps/worker/packages/generic/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@worker/generic",
"version": "1.39.3",
"version": "1.39.4-alpha.0",
"private": true,
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -15,7 +15,7 @@
},
"dependencies": {
"@sofie-package-manager/api": "1.39.2",
"@sofie-package-manager/worker": "1.39.3"
"@sofie-package-manager/worker": "1.39.4-alpha.0"
},
"devDependencies": {
"lint-staged": "^7.2.0"
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"apps/**",
"tests/**"
],
"version": "1.39.3",
"version": "1.39.4-alpha.0",
"npmClient": "yarn",
"useWorkspaces": true
}
8 changes: 8 additions & 0 deletions shared/packages/expectationManager/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.39.4-alpha.0](https://github.com/nrkno/tv-automation-package-manager/compare/v1.39.3...v1.39.4-alpha.0) (2022-12-05)

**Note:** Version bump only for package @sofie-package-manager/expectation-manager





## [1.39.3](https://github.com/nrkno/tv-automation-package-manager/compare/v1.39.2...v1.39.3) (2022-11-30)

**Note:** Version bump only for package @sofie-package-manager/expectation-manager
Expand Down
4 changes: 2 additions & 2 deletions shared/packages/expectationManager/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sofie-package-manager/expectation-manager",
"version": "1.39.3",
"version": "1.39.4-alpha.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"license": "MIT",
Expand All @@ -18,7 +18,7 @@
},
"dependencies": {
"@sofie-package-manager/api": "1.39.2",
"@sofie-package-manager/worker": "1.39.3",
"@sofie-package-manager/worker": "1.39.4-alpha.0",
"@supercharge/promise-pool": "^1.7.0",
"underscore": "^1.12.0"
},
Expand Down
Loading

0 comments on commit 830ee7a

Please sign in to comment.