fix(ql3): ship local process launcher asset

This commit is contained in:
whyour
2026-08-28 08:31:14 +08:00
parent ce4284ff76
commit 920a31fb66
3 changed files with 59 additions and 13 deletions
+16 -6
View File
@@ -266,6 +266,13 @@ function auditDockerfile(contents, findings) {
sortedObject(
Object.fromEntries(RUNTIME_PACKAGES.map((name) => [name, 2])),
),
) ||
!assembledStage.includes(
'COPY --from=workspace /workspace/packages/ql3-local-process/assets \\\n' +
' node_modules/@qinglong/local-process/assets',
) ||
!assembledStage.includes(
'RUN chmod 0555 node_modules/@qinglong/local-process/assets/ql3-launcher.sh',
)
) {
addFinding(findings, 'RUNTIME_INTERNAL_PACKAGE_CLOSURE_DRIFT');
@@ -280,14 +287,19 @@ function auditDockerfile(contents, findings) {
!sameJson(
sortedObject(consoleRuntimeCopyCounts),
sortedObject(
Object.fromEntries(
CONSOLE_RUNTIME_PACKAGES.map((name) => [name, 2]),
),
Object.fromEntries(CONSOLE_RUNTIME_PACKAGES.map((name) => [name, 2])),
),
) ||
!consoleAssembledStage.includes(
'COPY --from=workspace /workspace/packages/ql3-local-api/assets \\\n' +
' node_modules/@qinglong/local-api/assets',
) ||
!consoleAssembledStage.includes(
'COPY --from=workspace /workspace/packages/ql3-local-process/assets \\\n' +
' node_modules/@qinglong/local-process/assets',
) ||
!consoleAssembledStage.includes(
'RUN chmod 0555 node_modules/@qinglong/local-process/assets/ql3-launcher.sh',
)
) {
addFinding(findings, 'CONSOLE_RUNTIME_INTERNAL_PACKAGE_CLOSURE_DRIFT');
@@ -448,9 +460,7 @@ function auditLocalImageContract(root) {
),
consoleRuntimePackages: Object.freeze(
[
...CONSOLE_RUNTIME_PACKAGES.map(
(name) => `@qinglong/${name.slice(4)}`,
),
...CONSOLE_RUNTIME_PACKAGES.map((name) => `@qinglong/${name.slice(4)}`),
...Object.keys(RUNTIME_DEPENDENCIES),
].sort(),
),