Skip to content

Commit

Permalink
fix: add checks for FFPrope executable
Browse files Browse the repository at this point in the history
  • Loading branch information
nytamin committed Oct 19, 2023
1 parent 9688588 commit f1084e8
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ export const MediaFilePreview: ExpectationWindowsHandler = {
tech: `Cannot access FFMpeg executable: ${windowsWorker.testFFMpeg}`,
},
}
if (windowsWorker.testFFProbe)
return {
support: false,
reason: {
user: 'There is an issue with the Worker (FFProbe)',
tech: `Cannot access FFProbe executable: ${windowsWorker.testFFProbe}`,
},
}
return checkWorkerHasAccessToPackageContainersOnPackage(genericWorker, {
sources: exp.startRequirement.sources,
targets: exp.endRequirement.targets,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ export const MediaFileThumbnail: ExpectationWindowsHandler = {
tech: `Cannot access FFMpeg executable: ${windowsWorker.testFFMpeg}`,
},
}
if (windowsWorker.testFFProbe)
return {
support: false,
reason: {
user: 'There is an issue with the Worker (FFProbe)',
tech: `Cannot access FFProbe executable: ${windowsWorker.testFFProbe}`,
},
}
return checkWorkerHasAccessToPackageContainersOnPackage(genericWorker, {
sources: exp.startRequirement.sources,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ export const PackageDeepScan: ExpectationWindowsHandler = {
tech: `Cannot access FFMpeg executable: ${windowsWorker.testFFMpeg}`,
},
}
if (windowsWorker.testFFProbe)
return {
support: false,
reason: {
user: 'There is an issue with the Worker (FFProbe)',
tech: `Cannot access FFProbe executable: ${windowsWorker.testFFProbe}`,
},
}
return checkWorkerHasAccessToPackageContainersOnPackage(genericWorker, {
sources: exp.startRequirement.sources,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ export const PackageLoudnessScan: ExpectationWindowsHandler = {
tech: `Cannot access FFMpeg executable: ${windowsWorker.testFFMpeg}`,
},
}
if (windowsWorker.testFFProbe)
return {
support: false,
reason: {
user: 'There is an issue with the Worker (FFProbe)',
tech: `Cannot access FFProbe executable: ${windowsWorker.testFFProbe}`,
},
}
return checkWorkerHasAccessToPackageContainersOnPackage(genericWorker, {
sources: exp.startRequirement.sources,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ export const PackageScan: ExpectationWindowsHandler = {
tech: `Cannot access FFMpeg executable: ${windowsWorker.testFFMpeg}`,
},
}
if (windowsWorker.testFFProbe)
return {
support: false,
reason: {
user: 'There is an issue with the Worker (FFProbe)',
tech: `Cannot access FFProbe executable: ${windowsWorker.testFFProbe}`,
},
}
return checkWorkerHasAccessToPackageContainersOnPackage(genericWorker, {
sources: exp.startRequirement.sources,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ import { FileVerify } from './expectationHandlers/fileVerify'
export class WindowsWorker extends GenericWorker {
static readonly type = 'windowsWorker'

/** null = all is well */
/** Contains the result of testing the FFMpeg executable. null = all is well, otherwise contains error message */
public testFFMpeg: null | string = 'Not initialized'
/** null = all is well */
/** Contains the result of testing the FFProbe executable. null = all is well, otherwise contains error message */
public testFFProbe: null | string = 'Not initialized'

private monitor: NodeJS.Timer | undefined
Expand Down

0 comments on commit f1084e8

Please sign in to comment.