@gpustack/loopwright 0.0.0-stage → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +191 -0
- package/README.md +356 -2
- package/bin/loopwright.js +3 -0
- package/node_modules/@loopwright/agent-pi/dist/adapter-v2.d.ts +9 -0
- package/node_modules/@loopwright/agent-pi/dist/adapter-v2.js +122 -0
- package/node_modules/@loopwright/agent-pi/dist/adapter.d.ts +30 -0
- package/node_modules/@loopwright/agent-pi/dist/adapter.js +340 -0
- package/node_modules/@loopwright/agent-pi/dist/admission.d.ts +25 -0
- package/node_modules/@loopwright/agent-pi/dist/admission.js +65 -0
- package/node_modules/@loopwright/agent-pi/dist/artifacts.d.ts +15 -0
- package/node_modules/@loopwright/agent-pi/dist/artifacts.js +76 -0
- package/node_modules/@loopwright/agent-pi/dist/boundary.d.ts +18 -0
- package/node_modules/@loopwright/agent-pi/dist/boundary.js +113 -0
- package/node_modules/@loopwright/agent-pi/dist/broker-channel.d.ts +4 -0
- package/node_modules/@loopwright/agent-pi/dist/broker-channel.js +121 -0
- package/node_modules/@loopwright/agent-pi/dist/candidate.d.ts +96 -0
- package/node_modules/@loopwright/agent-pi/dist/candidate.js +1712 -0
- package/node_modules/@loopwright/agent-pi/dist/capture.d.ts +39 -0
- package/node_modules/@loopwright/agent-pi/dist/capture.js +146 -0
- package/node_modules/@loopwright/agent-pi/dist/cas.d.ts +51 -0
- package/node_modules/@loopwright/agent-pi/dist/cas.js +836 -0
- package/node_modules/@loopwright/agent-pi/dist/catalog-api.d.ts +3 -0
- package/node_modules/@loopwright/agent-pi/dist/catalog-api.js +2 -0
- package/node_modules/@loopwright/agent-pi/dist/catalog.d.ts +39 -0
- package/node_modules/@loopwright/agent-pi/dist/catalog.js +280 -0
- package/node_modules/@loopwright/agent-pi/dist/circuit-breaker-limits.d.ts +9 -0
- package/node_modules/@loopwright/agent-pi/dist/circuit-breaker-limits.js +12 -0
- package/node_modules/@loopwright/agent-pi/dist/containers.d.ts +29 -0
- package/node_modules/@loopwright/agent-pi/dist/containers.js +160 -0
- package/node_modules/@loopwright/agent-pi/dist/context.d.ts +56 -0
- package/node_modules/@loopwright/agent-pi/dist/context.js +351 -0
- package/node_modules/@loopwright/agent-pi/dist/daemon.d.ts +8 -0
- package/node_modules/@loopwright/agent-pi/dist/daemon.js +52 -0
- package/node_modules/@loopwright/agent-pi/dist/deadline.d.ts +6 -0
- package/node_modules/@loopwright/agent-pi/dist/deadline.js +18 -0
- package/node_modules/@loopwright/agent-pi/dist/decode-capture.d.ts +39 -0
- package/node_modules/@loopwright/agent-pi/dist/decode-capture.js +287 -0
- package/node_modules/@loopwright/agent-pi/dist/descriptor.d.ts +12 -0
- package/node_modules/@loopwright/agent-pi/dist/descriptor.js +17 -0
- package/node_modules/@loopwright/agent-pi/dist/docker-absence.d.ts +2 -0
- package/node_modules/@loopwright/agent-pi/dist/docker-absence.js +9 -0
- package/node_modules/@loopwright/agent-pi/dist/errors.d.ts +7 -0
- package/node_modules/@loopwright/agent-pi/dist/errors.js +19 -0
- package/node_modules/@loopwright/agent-pi/dist/event-sequence.d.ts +6 -0
- package/node_modules/@loopwright/agent-pi/dist/event-sequence.js +64 -0
- package/node_modules/@loopwright/agent-pi/dist/events.d.ts +19 -0
- package/node_modules/@loopwright/agent-pi/dist/events.js +132 -0
- package/node_modules/@loopwright/agent-pi/dist/execution-guard.d.ts +9 -0
- package/node_modules/@loopwright/agent-pi/dist/execution-guard.js +25 -0
- package/node_modules/@loopwright/agent-pi/dist/execution-lease.d.ts +24 -0
- package/node_modules/@loopwright/agent-pi/dist/execution-lease.js +316 -0
- package/node_modules/@loopwright/agent-pi/dist/execution.d.ts +32 -0
- package/node_modules/@loopwright/agent-pi/dist/execution.js +476 -0
- package/node_modules/@loopwright/agent-pi/dist/external-mcp.d.ts +87 -0
- package/node_modules/@loopwright/agent-pi/dist/external-mcp.js +526 -0
- package/node_modules/@loopwright/agent-pi/dist/factory-bootstrap.d.ts +15 -0
- package/node_modules/@loopwright/agent-pi/dist/factory-bootstrap.js +74 -0
- package/node_modules/@loopwright/agent-pi/dist/host-session.d.ts +51 -0
- package/node_modules/@loopwright/agent-pi/dist/host-session.js +2083 -0
- package/node_modules/@loopwright/agent-pi/dist/http-mcp.d.ts +32 -0
- package/node_modules/@loopwright/agent-pi/dist/http-mcp.js +353 -0
- package/node_modules/@loopwright/agent-pi/dist/index.d.ts +7 -0
- package/node_modules/@loopwright/agent-pi/dist/index.js +4 -0
- package/node_modules/@loopwright/agent-pi/dist/lifecycle.d.ts +13 -0
- package/node_modules/@loopwright/agent-pi/dist/lifecycle.js +11 -0
- package/node_modules/@loopwright/agent-pi/dist/mcp-process.d.ts +35 -0
- package/node_modules/@loopwright/agent-pi/dist/mcp-process.js +92 -0
- package/node_modules/@loopwright/agent-pi/dist/mcp-transport.d.ts +25 -0
- package/node_modules/@loopwright/agent-pi/dist/mcp-transport.js +63 -0
- package/node_modules/@loopwright/agent-pi/dist/mcp.d.ts +23 -0
- package/node_modules/@loopwright/agent-pi/dist/mcp.js +212 -0
- package/node_modules/@loopwright/agent-pi/dist/operation.d.ts +5 -0
- package/node_modules/@loopwright/agent-pi/dist/operation.js +28 -0
- package/node_modules/@loopwright/agent-pi/dist/policy-v2.d.ts +10 -0
- package/node_modules/@loopwright/agent-pi/dist/policy-v2.js +64 -0
- package/node_modules/@loopwright/agent-pi/dist/policy.d.ts +13 -0
- package/node_modules/@loopwright/agent-pi/dist/policy.js +260 -0
- package/node_modules/@loopwright/agent-pi/dist/preflight.d.ts +60 -0
- package/node_modules/@loopwright/agent-pi/dist/preflight.js +700 -0
- package/node_modules/@loopwright/agent-pi/dist/progress-summary.d.ts +1 -0
- package/node_modules/@loopwright/agent-pi/dist/progress-summary.js +119 -0
- package/node_modules/@loopwright/agent-pi/dist/protocol.d.ts +17 -0
- package/node_modules/@loopwright/agent-pi/dist/protocol.js +131 -0
- package/node_modules/@loopwright/agent-pi/dist/provider.d.ts +62 -0
- package/node_modules/@loopwright/agent-pi/dist/provider.js +217 -0
- package/node_modules/@loopwright/agent-pi/dist/receipt.d.ts +3 -0
- package/node_modules/@loopwright/agent-pi/dist/receipt.js +64 -0
- package/node_modules/@loopwright/agent-pi/dist/recovery.d.ts +6 -0
- package/node_modules/@loopwright/agent-pi/dist/recovery.js +188 -0
- package/node_modules/@loopwright/agent-pi/dist/resources.d.ts +13 -0
- package/node_modules/@loopwright/agent-pi/dist/resources.js +81 -0
- package/node_modules/@loopwright/agent-pi/dist/response.d.ts +20 -0
- package/node_modules/@loopwright/agent-pi/dist/response.js +259 -0
- package/node_modules/@loopwright/agent-pi/dist/runtime-profile.d.ts +6 -0
- package/node_modules/@loopwright/agent-pi/dist/runtime-profile.js +37 -0
- package/node_modules/@loopwright/agent-pi/dist/sdk-worker.d.ts +14 -0
- package/node_modules/@loopwright/agent-pi/dist/sdk-worker.js +633 -0
- package/node_modules/@loopwright/agent-pi/dist/sender.d.ts +46 -0
- package/node_modules/@loopwright/agent-pi/dist/sender.js +553 -0
- package/node_modules/@loopwright/agent-pi/dist/session-host.d.ts +21 -0
- package/node_modules/@loopwright/agent-pi/dist/session-host.js +315 -0
- package/node_modules/@loopwright/agent-pi/dist/snapshot-transfer.d.ts +14 -0
- package/node_modules/@loopwright/agent-pi/dist/snapshot-transfer.js +102 -0
- package/node_modules/@loopwright/agent-pi/dist/snapshot.d.ts +19 -0
- package/node_modules/@loopwright/agent-pi/dist/snapshot.js +121 -0
- package/node_modules/@loopwright/agent-pi/dist/tool-process.d.ts +32 -0
- package/node_modules/@loopwright/agent-pi/dist/tool-process.js +85 -0
- package/node_modules/@loopwright/agent-pi/dist/tool-worker.d.ts +2 -0
- package/node_modules/@loopwright/agent-pi/dist/tool-worker.js +105 -0
- package/node_modules/@loopwright/agent-pi/dist/tools.d.ts +36 -0
- package/node_modules/@loopwright/agent-pi/dist/tools.js +128 -0
- package/node_modules/@loopwright/agent-pi/dist/types-v2.d.ts +71 -0
- package/node_modules/@loopwright/agent-pi/dist/types-v2.js +1 -0
- package/node_modules/@loopwright/agent-pi/dist/types.d.ts +314 -0
- package/node_modules/@loopwright/agent-pi/dist/types.js +1 -0
- package/node_modules/@loopwright/agent-pi/dist/usage.d.ts +18 -0
- package/node_modules/@loopwright/agent-pi/dist/usage.js +314 -0
- package/node_modules/@loopwright/agent-pi/dist/workspace-mcp.d.ts +27 -0
- package/node_modules/@loopwright/agent-pi/dist/workspace-mcp.js +142 -0
- package/node_modules/@loopwright/agent-pi/package.json +24 -0
- package/node_modules/@loopwright/agent-pi/runtime/Dockerfile +8 -0
- package/node_modules/@loopwright/agent-pi/runtime/seccomp.json +1 -0
- package/node_modules/@loopwright/cli/dist/arguments.d.ts +19 -0
- package/node_modules/@loopwright/cli/dist/arguments.js +358 -0
- package/node_modules/@loopwright/cli/dist/closure.d.ts +93 -0
- package/node_modules/@loopwright/cli/dist/closure.js +230 -0
- package/node_modules/@loopwright/cli/dist/draft.d.ts +9 -0
- package/node_modules/@loopwright/cli/dist/draft.js +106 -0
- package/node_modules/@loopwright/cli/dist/failure-matrix.d.ts +9 -0
- package/node_modules/@loopwright/cli/dist/failure-matrix.js +701 -0
- package/node_modules/@loopwright/cli/dist/index.d.ts +6 -0
- package/node_modules/@loopwright/cli/dist/index.js +5 -0
- package/node_modules/@loopwright/cli/dist/main.d.ts +22 -0
- package/node_modules/@loopwright/cli/dist/main.js +1855 -0
- package/node_modules/@loopwright/cli/package.json +16 -0
- package/node_modules/@loopwright/controller/dist/acceptance.d.ts +43 -0
- package/node_modules/@loopwright/controller/dist/acceptance.js +446 -0
- package/node_modules/@loopwright/controller/dist/benchmark-gate.d.ts +273 -0
- package/node_modules/@loopwright/controller/dist/benchmark-gate.js +3147 -0
- package/node_modules/@loopwright/controller/dist/budget-observations.d.ts +25 -0
- package/node_modules/@loopwright/controller/dist/budget-observations.js +139 -0
- package/node_modules/@loopwright/controller/dist/bundle.d.ts +26 -0
- package/node_modules/@loopwright/controller/dist/bundle.js +64 -0
- package/node_modules/@loopwright/controller/dist/capture.d.ts +89 -0
- package/node_modules/@loopwright/controller/dist/capture.js +587 -0
- package/node_modules/@loopwright/controller/dist/compile.d.ts +3 -0
- package/node_modules/@loopwright/controller/dist/compile.js +402 -0
- package/node_modules/@loopwright/controller/dist/config.d.ts +22 -0
- package/node_modules/@loopwright/controller/dist/config.js +255 -0
- package/node_modules/@loopwright/controller/dist/controller.d.ts +177 -0
- package/node_modules/@loopwright/controller/dist/controller.js +2135 -0
- package/node_modules/@loopwright/controller/dist/credentials.d.ts +29 -0
- package/node_modules/@loopwright/controller/dist/credentials.js +189 -0
- package/node_modules/@loopwright/controller/dist/deadlines.d.ts +18 -0
- package/node_modules/@loopwright/controller/dist/deadlines.js +71 -0
- package/node_modules/@loopwright/controller/dist/errors.d.ts +27 -0
- package/node_modules/@loopwright/controller/dist/errors.js +41 -0
- package/node_modules/@loopwright/controller/dist/events.d.ts +52 -0
- package/node_modules/@loopwright/controller/dist/events.js +228 -0
- package/node_modules/@loopwright/controller/dist/files.d.ts +51 -0
- package/node_modules/@loopwright/controller/dist/files.js +386 -0
- package/node_modules/@loopwright/controller/dist/finalize.d.ts +25 -0
- package/node_modules/@loopwright/controller/dist/finalize.js +32 -0
- package/node_modules/@loopwright/controller/dist/gate.d.ts +84 -0
- package/node_modules/@loopwright/controller/dist/gate.js +640 -0
- package/node_modules/@loopwright/controller/dist/git-objects.d.ts +11 -0
- package/node_modules/@loopwright/controller/dist/git-objects.js +59 -0
- package/node_modules/@loopwright/controller/dist/git-reader.d.ts +17 -0
- package/node_modules/@loopwright/controller/dist/git-reader.js +40 -0
- package/node_modules/@loopwright/controller/dist/handlers.d.ts +6 -0
- package/node_modules/@loopwright/controller/dist/handlers.js +45 -0
- package/node_modules/@loopwright/controller/dist/handoff.d.ts +71 -0
- package/node_modules/@loopwright/controller/dist/handoff.js +554 -0
- package/node_modules/@loopwright/controller/dist/index.d.ts +41 -0
- package/node_modules/@loopwright/controller/dist/index.js +21 -0
- package/node_modules/@loopwright/controller/dist/inspect.d.ts +30 -0
- package/node_modules/@loopwright/controller/dist/inspect.js +372 -0
- package/node_modules/@loopwright/controller/dist/interpolation.d.ts +9 -0
- package/node_modules/@loopwright/controller/dist/interpolation.js +79 -0
- package/node_modules/@loopwright/controller/dist/ownership.d.ts +41 -0
- package/node_modules/@loopwright/controller/dist/ownership.js +666 -0
- package/node_modules/@loopwright/controller/dist/parser.d.ts +5 -0
- package/node_modules/@loopwright/controller/dist/parser.js +200 -0
- package/node_modules/@loopwright/controller/dist/progress.d.ts +41 -0
- package/node_modules/@loopwright/controller/dist/progress.js +904 -0
- package/node_modules/@loopwright/controller/dist/publication.d.ts +60 -0
- package/node_modules/@loopwright/controller/dist/publication.js +329 -0
- package/node_modules/@loopwright/controller/dist/reconcile.d.ts +26 -0
- package/node_modules/@loopwright/controller/dist/reconcile.js +1378 -0
- package/node_modules/@loopwright/controller/dist/recovery.d.ts +10 -0
- package/node_modules/@loopwright/controller/dist/recovery.js +315 -0
- package/node_modules/@loopwright/controller/dist/refusal-record.d.ts +43 -0
- package/node_modules/@loopwright/controller/dist/refusal-record.js +150 -0
- package/node_modules/@loopwright/controller/dist/registry.d.ts +6 -0
- package/node_modules/@loopwright/controller/dist/registry.js +374 -0
- package/node_modules/@loopwright/controller/dist/repair.d.ts +31 -0
- package/node_modules/@loopwright/controller/dist/repair.js +102 -0
- package/node_modules/@loopwright/controller/dist/report.d.ts +64 -0
- package/node_modules/@loopwright/controller/dist/report.js +596 -0
- package/node_modules/@loopwright/controller/dist/retained.d.ts +284 -0
- package/node_modules/@loopwright/controller/dist/retained.js +193 -0
- package/node_modules/@loopwright/controller/dist/rules.d.ts +31 -0
- package/node_modules/@loopwright/controller/dist/rules.js +110 -0
- package/node_modules/@loopwright/controller/dist/run-eval.d.ts +115 -0
- package/node_modules/@loopwright/controller/dist/run-eval.js +959 -0
- package/node_modules/@loopwright/controller/dist/scheduler.d.ts +10 -0
- package/node_modules/@loopwright/controller/dist/scheduler.js +41 -0
- package/node_modules/@loopwright/controller/dist/schema.d.ts +17 -0
- package/node_modules/@loopwright/controller/dist/schema.js +78 -0
- package/node_modules/@loopwright/controller/dist/source.d.ts +69 -0
- package/node_modules/@loopwright/controller/dist/source.js +872 -0
- package/node_modules/@loopwright/controller/dist/step.d.ts +38 -0
- package/node_modules/@loopwright/controller/dist/step.js +1776 -0
- package/node_modules/@loopwright/controller/dist/storage.d.ts +90 -0
- package/node_modules/@loopwright/controller/dist/storage.js +1345 -0
- package/node_modules/@loopwright/controller/dist/submission.d.ts +51 -0
- package/node_modules/@loopwright/controller/dist/submission.js +292 -0
- package/node_modules/@loopwright/controller/dist/types.d.ts +585 -0
- package/node_modules/@loopwright/controller/dist/types.js +9 -0
- package/node_modules/@loopwright/controller/dist/verification.d.ts +124 -0
- package/node_modules/@loopwright/controller/dist/verification.js +1308 -0
- package/node_modules/@loopwright/controller/dist/verifier-protocol.d.ts +105 -0
- package/node_modules/@loopwright/controller/dist/verifier-protocol.js +1312 -0
- package/node_modules/@loopwright/controller/dist/verifier-worker.d.ts +1 -0
- package/node_modules/@loopwright/controller/dist/verifier-worker.js +33 -0
- package/node_modules/@loopwright/controller/package.json +12 -0
- package/node_modules/@loopwright/core/dist/acceptance.d.ts +108 -0
- package/node_modules/@loopwright/core/dist/acceptance.js +327 -0
- package/node_modules/@loopwright/core/dist/artifacts.d.ts +63 -0
- package/node_modules/@loopwright/core/dist/artifacts.js +356 -0
- package/node_modules/@loopwright/core/dist/boundary.d.ts +21 -0
- package/node_modules/@loopwright/core/dist/boundary.js +484 -0
- package/node_modules/@loopwright/core/dist/contracts.d.ts +287 -0
- package/node_modules/@loopwright/core/dist/contracts.js +694 -0
- package/node_modules/@loopwright/core/dist/diagnostics.d.ts +21 -0
- package/node_modules/@loopwright/core/dist/diagnostics.js +51 -0
- package/node_modules/@loopwright/core/dist/evidence.d.ts +92 -0
- package/node_modules/@loopwright/core/dist/evidence.js +85 -0
- package/node_modules/@loopwright/core/dist/graph.d.ts +8 -0
- package/node_modules/@loopwright/core/dist/graph.js +44 -0
- package/node_modules/@loopwright/core/dist/identity.d.ts +162 -0
- package/node_modules/@loopwright/core/dist/identity.js +80 -0
- package/node_modules/@loopwright/core/dist/index.d.ts +30 -0
- package/node_modules/@loopwright/core/dist/index.js +39 -0
- package/node_modules/@loopwright/core/dist/limits.d.ts +99 -0
- package/node_modules/@loopwright/core/dist/limits.js +59 -0
- package/node_modules/@loopwright/core/dist/results.d.ts +161 -0
- package/node_modules/@loopwright/core/dist/results.js +98 -0
- package/node_modules/@loopwright/core/dist/scope.d.ts +13 -0
- package/node_modules/@loopwright/core/dist/scope.js +154 -0
- package/node_modules/@loopwright/core/dist/scrubber.d.ts +13 -0
- package/node_modules/@loopwright/core/dist/scrubber.js +63 -0
- package/node_modules/@loopwright/core/dist/usage.d.ts +68 -0
- package/node_modules/@loopwright/core/dist/usage.js +56 -0
- package/node_modules/@loopwright/core/package.json +12 -0
- package/node_modules/@loopwright/decisions/dist/benchmark.d.ts +23 -0
- package/node_modules/@loopwright/decisions/dist/benchmark.js +337 -0
- package/node_modules/@loopwright/decisions/dist/client.d.ts +74 -0
- package/node_modules/@loopwright/decisions/dist/client.js +292 -0
- package/node_modules/@loopwright/decisions/dist/index.d.ts +15 -0
- package/node_modules/@loopwright/decisions/dist/index.js +8 -0
- package/node_modules/@loopwright/decisions/dist/nodes.d.ts +63 -0
- package/node_modules/@loopwright/decisions/dist/nodes.js +282 -0
- package/node_modules/@loopwright/decisions/dist/primitives.d.ts +36 -0
- package/node_modules/@loopwright/decisions/dist/primitives.js +300 -0
- package/node_modules/@loopwright/decisions/dist/redaction.d.ts +23 -0
- package/node_modules/@loopwright/decisions/dist/redaction.js +146 -0
- package/node_modules/@loopwright/decisions/dist/router.d.ts +55 -0
- package/node_modules/@loopwright/decisions/dist/router.js +248 -0
- package/node_modules/@loopwright/decisions/dist/schema.d.ts +25 -0
- package/node_modules/@loopwright/decisions/dist/schema.js +536 -0
- package/node_modules/@loopwright/decisions/dist/types.d.ts +394 -0
- package/node_modules/@loopwright/decisions/dist/types.js +80 -0
- package/node_modules/@loopwright/decisions/package.json +12 -0
- package/node_modules/@loopwright/github-app/dist/action.d.ts +90 -0
- package/node_modules/@loopwright/github-app/dist/action.js +2429 -0
- package/node_modules/@loopwright/github-app/dist/config.d.ts +23 -0
- package/node_modules/@loopwright/github-app/dist/config.js +297 -0
- package/node_modules/@loopwright/github-app/dist/digests.d.ts +1 -0
- package/node_modules/@loopwright/github-app/dist/digests.js +1 -0
- package/node_modules/@loopwright/github-app/dist/index.d.ts +14 -0
- package/node_modules/@loopwright/github-app/dist/index.js +13 -0
- package/node_modules/@loopwright/github-app/dist/models-config.d.ts +1 -0
- package/node_modules/@loopwright/github-app/dist/models-config.js +1 -0
- package/node_modules/@loopwright/github-app/dist/output-format.d.ts +1 -0
- package/node_modules/@loopwright/github-app/dist/output-format.js +1 -0
- package/node_modules/@loopwright/github-app/dist/preflight.d.ts +1 -0
- package/node_modules/@loopwright/github-app/dist/preflight.js +1 -0
- package/node_modules/@loopwright/github-app/dist/publisher.d.ts +58 -0
- package/node_modules/@loopwright/github-app/dist/publisher.js +1368 -0
- package/node_modules/@loopwright/github-app/dist/qualification.d.ts +1 -0
- package/node_modules/@loopwright/github-app/dist/qualification.js +1 -0
- package/node_modules/@loopwright/github-app/dist/sandbox.d.ts +1 -0
- package/node_modules/@loopwright/github-app/dist/sandbox.js +1 -0
- package/node_modules/@loopwright/github-app/dist/schema.d.ts +1 -0
- package/node_modules/@loopwright/github-app/dist/schema.js +1 -0
- package/node_modules/@loopwright/github-app/dist/service.d.ts +52 -0
- package/node_modules/@loopwright/github-app/dist/service.js +1658 -0
- package/node_modules/@loopwright/github-app/dist/suite-pr-lookup.d.ts +90 -0
- package/node_modules/@loopwright/github-app/dist/suite-pr-lookup.js +392 -0
- package/node_modules/@loopwright/github-app/dist/taskpack.d.ts +1 -0
- package/node_modules/@loopwright/github-app/dist/taskpack.js +1 -0
- package/node_modules/@loopwright/github-app/dist/tenant-queue.d.ts +44 -0
- package/node_modules/@loopwright/github-app/dist/tenant-queue.js +423 -0
- package/node_modules/@loopwright/github-app/dist/token-broker.d.ts +50 -0
- package/node_modules/@loopwright/github-app/dist/token-broker.js +262 -0
- package/node_modules/@loopwright/github-app/dist/turnkey-memory.d.ts +35 -0
- package/node_modules/@loopwright/github-app/dist/turnkey-memory.js +1654 -0
- package/node_modules/@loopwright/github-app/dist/turnkey.d.ts +16 -0
- package/node_modules/@loopwright/github-app/dist/turnkey.js +34 -0
- package/node_modules/@loopwright/github-app/dist/types.d.ts +220 -0
- package/node_modules/@loopwright/github-app/dist/types.js +14 -0
- package/node_modules/@loopwright/github-app/dist/upstreams.d.ts +13 -0
- package/node_modules/@loopwright/github-app/dist/upstreams.js +65 -0
- package/node_modules/@loopwright/github-app/dist/webhook.d.ts +34 -0
- package/node_modules/@loopwright/github-app/dist/webhook.js +241 -0
- package/node_modules/@loopwright/github-app/dist/yaml.d.ts +1 -0
- package/node_modules/@loopwright/github-app/dist/yaml.js +1 -0
- package/node_modules/@loopwright/github-app/package.json +12 -0
- package/node_modules/@loopwright/hardware-runner/dist/config.d.ts +48 -0
- package/node_modules/@loopwright/hardware-runner/dist/config.js +719 -0
- package/node_modules/@loopwright/hardware-runner/dist/evaluator.d.ts +230 -0
- package/node_modules/@loopwright/hardware-runner/dist/evaluator.js +3178 -0
- package/node_modules/@loopwright/hardware-runner/dist/index.d.ts +13 -0
- package/node_modules/@loopwright/hardware-runner/dist/index.js +9 -0
- package/node_modules/@loopwright/hardware-runner/dist/provenance.d.ts +128 -0
- package/node_modules/@loopwright/hardware-runner/dist/provenance.js +1500 -0
- package/node_modules/@loopwright/hardware-runner/dist/queue.d.ts +81 -0
- package/node_modules/@loopwright/hardware-runner/dist/queue.js +1081 -0
- package/node_modules/@loopwright/hardware-runner/dist/relay-server.d.ts +13 -0
- package/node_modules/@loopwright/hardware-runner/dist/relay-server.js +2997 -0
- package/node_modules/@loopwright/hardware-runner/dist/types.d.ts +239 -0
- package/node_modules/@loopwright/hardware-runner/dist/types.js +12 -0
- package/node_modules/@loopwright/hardware-runner/dist/worker.d.ts +49 -0
- package/node_modules/@loopwright/hardware-runner/dist/worker.js +1646 -0
- package/node_modules/@loopwright/hardware-runner/package.json +12 -0
- package/node_modules/@loopwright/memory/dist/cas.d.ts +21 -0
- package/node_modules/@loopwright/memory/dist/cas.js +510 -0
- package/node_modules/@loopwright/memory/dist/compaction.d.ts +18 -0
- package/node_modules/@loopwright/memory/dist/compaction.js +110 -0
- package/node_modules/@loopwright/memory/dist/finalizer.d.ts +23 -0
- package/node_modules/@loopwright/memory/dist/finalizer.js +538 -0
- package/node_modules/@loopwright/memory/dist/index.d.ts +9 -0
- package/node_modules/@loopwright/memory/dist/index.js +8 -0
- package/node_modules/@loopwright/memory/dist/schema.d.ts +36 -0
- package/node_modules/@loopwright/memory/dist/schema.js +510 -0
- package/node_modules/@loopwright/memory/dist/selector.d.ts +7 -0
- package/node_modules/@loopwright/memory/dist/selector.js +157 -0
- package/node_modules/@loopwright/memory/dist/store.d.ts +51 -0
- package/node_modules/@loopwright/memory/dist/store.js +554 -0
- package/node_modules/@loopwright/memory/dist/types.d.ts +442 -0
- package/node_modules/@loopwright/memory/dist/types.js +8 -0
- package/node_modules/@loopwright/memory/dist/verifier.d.ts +5 -0
- package/node_modules/@loopwright/memory/dist/verifier.js +328 -0
- package/node_modules/@loopwright/memory/package.json +12 -0
- package/node_modules/@loopwright/state/dist/admission.d.ts +321 -0
- package/node_modules/@loopwright/state/dist/admission.js +199 -0
- package/node_modules/@loopwright/state/dist/boundary.d.ts +53 -0
- package/node_modules/@loopwright/state/dist/boundary.js +194 -0
- package/node_modules/@loopwright/state/dist/checkpoint.d.ts +16 -0
- package/node_modules/@loopwright/state/dist/checkpoint.js +84 -0
- package/node_modules/@loopwright/state/dist/clock.d.ts +8 -0
- package/node_modules/@loopwright/state/dist/clock.js +27 -0
- package/node_modules/@loopwright/state/dist/connection.d.ts +55 -0
- package/node_modules/@loopwright/state/dist/connection.js +391 -0
- package/node_modules/@loopwright/state/dist/errors.d.ts +13 -0
- package/node_modules/@loopwright/state/dist/errors.js +34 -0
- package/node_modules/@loopwright/state/dist/index.d.ts +3 -0
- package/node_modules/@loopwright/state/dist/index.js +1 -0
- package/node_modules/@loopwright/state/dist/journal.d.ts +119 -0
- package/node_modules/@loopwright/state/dist/journal.js +72 -0
- package/node_modules/@loopwright/state/dist/model.d.ts +40 -0
- package/node_modules/@loopwright/state/dist/model.js +58 -0
- package/node_modules/@loopwright/state/dist/ownership.d.ts +14 -0
- package/node_modules/@loopwright/state/dist/ownership.js +45 -0
- package/node_modules/@loopwright/state/dist/pages.d.ts +11 -0
- package/node_modules/@loopwright/state/dist/pages.js +41 -0
- package/node_modules/@loopwright/state/dist/receipts.d.ts +33 -0
- package/node_modules/@loopwright/state/dist/receipts.js +97 -0
- package/node_modules/@loopwright/state/dist/schema.d.ts +28 -0
- package/node_modules/@loopwright/state/dist/schema.js +41 -0
- package/node_modules/@loopwright/state/dist/settlement.d.ts +10 -0
- package/node_modules/@loopwright/state/dist/settlement.js +129 -0
- package/node_modules/@loopwright/state/dist/store.d.ts +52 -0
- package/node_modules/@loopwright/state/dist/store.js +100 -0
- package/node_modules/@loopwright/state/dist/types.d.ts +315 -0
- package/node_modules/@loopwright/state/dist/types.js +1 -0
- package/node_modules/@loopwright/state/package.json +12 -0
- package/node_modules/@loopwright/taskpack/dist/baseline-align.d.ts +195 -0
- package/node_modules/@loopwright/taskpack/dist/baseline-align.js +1847 -0
- package/node_modules/@loopwright/taskpack/dist/digests.d.ts +61 -0
- package/node_modules/@loopwright/taskpack/dist/digests.js +715 -0
- package/node_modules/@loopwright/taskpack/dist/index.d.ts +18 -0
- package/node_modules/@loopwright/taskpack/dist/index.js +17 -0
- package/node_modules/@loopwright/taskpack/dist/models-config.d.ts +112 -0
- package/node_modules/@loopwright/taskpack/dist/models-config.js +1026 -0
- package/node_modules/@loopwright/taskpack/dist/output-format.d.ts +28 -0
- package/node_modules/@loopwright/taskpack/dist/output-format.js +157 -0
- package/node_modules/@loopwright/taskpack/dist/preflight.d.ts +130 -0
- package/node_modules/@loopwright/taskpack/dist/preflight.js +1497 -0
- package/node_modules/@loopwright/taskpack/dist/qualification.d.ts +23 -0
- package/node_modules/@loopwright/taskpack/dist/qualification.js +120 -0
- package/node_modules/@loopwright/taskpack/dist/sandbox.d.ts +121 -0
- package/node_modules/@loopwright/taskpack/dist/sandbox.js +2605 -0
- package/node_modules/@loopwright/taskpack/dist/schema.d.ts +197 -0
- package/node_modules/@loopwright/taskpack/dist/schema.js +4189 -0
- package/node_modules/@loopwright/taskpack/dist/scrubber.d.ts +47 -0
- package/node_modules/@loopwright/taskpack/dist/scrubber.js +283 -0
- package/node_modules/@loopwright/taskpack/dist/suite.d.ts +124 -0
- package/node_modules/@loopwright/taskpack/dist/suite.js +3256 -0
- package/node_modules/@loopwright/taskpack/dist/taskpack.d.ts +154 -0
- package/node_modules/@loopwright/taskpack/dist/taskpack.js +3634 -0
- package/node_modules/@loopwright/taskpack/dist/turnkey-memory.d.ts +122 -0
- package/node_modules/@loopwright/taskpack/dist/turnkey-memory.js +483 -0
- package/node_modules/@loopwright/taskpack/dist/turnkey.d.ts +437 -0
- package/node_modules/@loopwright/taskpack/dist/turnkey.js +7313 -0
- package/node_modules/@loopwright/taskpack/dist/types.d.ts +1274 -0
- package/node_modules/@loopwright/taskpack/dist/types.js +99 -0
- package/node_modules/@loopwright/taskpack/dist/upstreams.d.ts +261 -0
- package/node_modules/@loopwright/taskpack/dist/upstreams.js +2242 -0
- package/node_modules/@loopwright/taskpack/dist/yaml.d.ts +18 -0
- package/node_modules/@loopwright/taskpack/dist/yaml.js +167 -0
- package/node_modules/@loopwright/taskpack/package.json +12 -0
- package/node_modules/@loopwright/taskpack-runner/dist/compile-taskpack.d.ts +137 -0
- package/node_modules/@loopwright/taskpack-runner/dist/compile-taskpack.js +474 -0
- package/node_modules/@loopwright/taskpack-runner/dist/corpus.d.ts +8 -0
- package/node_modules/@loopwright/taskpack-runner/dist/corpus.js +129 -0
- package/node_modules/@loopwright/taskpack-runner/dist/index.d.ts +13 -0
- package/node_modules/@loopwright/taskpack-runner/dist/index.js +7 -0
- package/node_modules/@loopwright/taskpack-runner/dist/intake.d.ts +149 -0
- package/node_modules/@loopwright/taskpack-runner/dist/intake.js +135 -0
- package/node_modules/@loopwright/taskpack-runner/dist/parity.d.ts +130 -0
- package/node_modules/@loopwright/taskpack-runner/dist/parity.js +927 -0
- package/node_modules/@loopwright/taskpack-runner/dist/python-bridge.d.ts +68 -0
- package/node_modules/@loopwright/taskpack-runner/dist/python-bridge.js +517 -0
- package/node_modules/@loopwright/taskpack-runner/dist/service.d.ts +149 -0
- package/node_modules/@loopwright/taskpack-runner/dist/service.js +1796 -0
- package/node_modules/@loopwright/taskpack-runner/dist/types.d.ts +29 -0
- package/node_modules/@loopwright/taskpack-runner/dist/types.js +11 -0
- package/node_modules/@loopwright/taskpack-runner/package.json +12 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/README.md +77 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/docs/support-records.md +57 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/docs/supported-runners.md +98 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/manifest.json +205 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/pack/expand_matrix.sh +273 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/pack/matrix.yaml +280 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/pack/resolve_dockerfile.sh +24 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/pyproject.toml +46 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/runtime_runner/runner.py.json +5270 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tests/auto_sync/fixtures/discovery/legacy-support.md +86 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tests/auto_sync/fixtures/github/service.py +401 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tests/auto_sync/fixtures/proposals/analysis.json +95 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tests/auto_sync/fixtures/proposals/ready.json +109 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tests/auto_sync/test_assemble.py +263 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tests/auto_sync/test_check_draft.py +333 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tests/auto_sync/test_checks.py +1099 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tests/auto_sync/test_discovery.py +817 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tests/auto_sync/test_proposal.py +658 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tests/auto_sync/test_publish.py +987 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tests/auto_sync/test_summary.py +107 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tools/auto_sync/agent.py +610 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tools/auto_sync/assemble.py +84 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tools/auto_sync/check_draft.py +94 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tools/auto_sync/checks.py +1002 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tools/auto_sync/discovery.py +789 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tools/auto_sync/model.py +557 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tools/auto_sync/progress.py +174 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tools/auto_sync/prompts/analysis.md +40 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tools/auto_sync/prompts/proposal.md +65 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tools/auto_sync/prompts/repair.md +17 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tools/auto_sync/proposal.py +903 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tools/auto_sync/publish.py +997 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tools/auto_sync/summary.py +131 -0
- package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/tools/auto_sync/tool-versions.json +133 -0
- package/node_modules/package-lock.json +3021 -0
- package/package-lock.json +3021 -0
- package/package.json +52 -4
package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/pack/expand_matrix.sh
ADDED
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
set -eo pipefail
|
|
4
|
+
|
|
5
|
+
INPUT_POST_OPERATION=${INPUT_POST_OPERATION:-""}
|
|
6
|
+
INPUT_BACKEND="${INPUT_BACKEND:-"all"}"
|
|
7
|
+
INPUT_TARGET=${INPUT_TARGET:-""}
|
|
8
|
+
INPUT_FOR_RELEASE=${INPUT_FOR_RELEASE:-"false"}
|
|
9
|
+
INPUT_RUNNER_PROFILE=${INPUT_RUNNER_PROFILE:-"normal"}
|
|
10
|
+
INPUT_WORKSPACE="${INPUT_WORKSPACE:-"$(dirname "${BASH_SOURCE[0]}")"}"
|
|
11
|
+
INPUT_TEMPDIR="${INPUT_TEMPDIR:-"/tmp"}"
|
|
12
|
+
|
|
13
|
+
if [[ -z "${INPUT_TARGET}" ]]; then
|
|
14
|
+
echo "[ERROR] No target specified. Please set the INPUT_TARGET input."
|
|
15
|
+
exit 1
|
|
16
|
+
fi
|
|
17
|
+
|
|
18
|
+
MATRIX_WORKSPACE="${INPUT_WORKSPACE}"
|
|
19
|
+
if [[ -n "${INPUT_POST_OPERATION}" ]]; then
|
|
20
|
+
MATRIX_WORKSPACE="${MATRIX_WORKSPACE}/.post_operation/${INPUT_POST_OPERATION}"
|
|
21
|
+
fi
|
|
22
|
+
echo "[INFO] Using workspace: ${MATRIX_WORKSPACE}"
|
|
23
|
+
echo "[INFO] Using tempdir: ${INPUT_TEMPDIR}"
|
|
24
|
+
echo "[INFO] Expanding matrix for backend: ${INPUT_BACKEND}, target: ${INPUT_TARGET}, for_release: ${INPUT_FOR_RELEASE}, runner_profile: ${INPUT_RUNNER_PROFILE}"
|
|
25
|
+
|
|
26
|
+
# Filter the rules based on the backend input.
|
|
27
|
+
RULES="$(yq '.[]' \
|
|
28
|
+
--output-format json \
|
|
29
|
+
--indent 0 \
|
|
30
|
+
"${MATRIX_WORKSPACE}/matrix.yaml")"
|
|
31
|
+
if [[ "${INPUT_BACKEND}" != "all" ]]; then
|
|
32
|
+
RULES="$(echo "${RULES}" | jq -cr \
|
|
33
|
+
--arg backend "${INPUT_BACKEND}" \
|
|
34
|
+
'.[] | select(.backend == $backend)' | jq -cs .)"
|
|
35
|
+
fi
|
|
36
|
+
|
|
37
|
+
# Skip unsupported pairs before reading Dockerfile defaults.
|
|
38
|
+
RULES="$(echo "${RULES}" | jq -cr \
|
|
39
|
+
--arg target "${INPUT_TARGET}" \
|
|
40
|
+
'map(select((.services // []) | index($target)))')"
|
|
41
|
+
|
|
42
|
+
# Iterate all backends to gain the ARGs from the given Dockerfile.
|
|
43
|
+
BACKENDS="$(echo "${RULES}" | jq -r '.[] | .backend' | sort -u | jq -R . | jq -cs .)"
|
|
44
|
+
for BACKEND in $(echo "${BACKENDS}" | jq -cr '.[]'); do
|
|
45
|
+
# Get the Dockerfile path for the backend.
|
|
46
|
+
DOCKERFILE="$("$(dirname "${BASH_SOURCE[0]}")/resolve_dockerfile.sh" \
|
|
47
|
+
"${INPUT_WORKSPACE}" "${BACKEND}" "${INPUT_TARGET}" "${INPUT_POST_OPERATION}")"
|
|
48
|
+
|
|
49
|
+
# Merge the extension args into rules.
|
|
50
|
+
if [[ -n "${INPUT_ARGS}" ]]; then
|
|
51
|
+
INPUT_ARGS="$(echo "${INPUT_ARGS}" | jq -R 'split(" ")' | jq -cr 'map(select(. != null and . != "null" and . != ""))')"
|
|
52
|
+
RULES="$(echo "${RULES}" | jq -cr \
|
|
53
|
+
--arg backend "${BACKEND}" \
|
|
54
|
+
--argjson args "${INPUT_ARGS}" \
|
|
55
|
+
'map(if .backend == $backend then .args = .args + $args else . end)')"
|
|
56
|
+
fi
|
|
57
|
+
|
|
58
|
+
# Merge the Dockerfile ARGs into rules.
|
|
59
|
+
FULL_ARGS="$(grep -E '^ARG\s+(\w+)=.*' "${DOCKERFILE}" | sed 's/^ARG[[:space:]]+*//;s/[[:space:]]+$//;s/="/=/;s/"$//' | jq -R . | jq -cs .)"
|
|
60
|
+
if [[ "${FULL_ARGS}" == "[\"\"]" ]]; then
|
|
61
|
+
continue
|
|
62
|
+
fi
|
|
63
|
+
RULES="$(echo "${RULES}" | jq -cr \
|
|
64
|
+
--arg backend "${BACKEND}" \
|
|
65
|
+
--argjson full_args "${FULL_ARGS}" \
|
|
66
|
+
'map(if .backend == $backend then {full_args: $full_args} + . else . end)')"
|
|
67
|
+
done
|
|
68
|
+
|
|
69
|
+
# Iterate all items of rules to generate the matrix.
|
|
70
|
+
MANIFEST_JOBS="{}"
|
|
71
|
+
BUILD_JOBS="[]"
|
|
72
|
+
for RULE in $(echo "${RULES}" | jq -cr '.[]'); do
|
|
73
|
+
# Prepare environment variables for sourcing.
|
|
74
|
+
echo "${RULE}" | jq -cr '.full_args + .args' | jq -r '. | map("export " + .) | .[]' >"${INPUT_TEMPDIR}/envs_shared"
|
|
75
|
+
|
|
76
|
+
# Extract backend.
|
|
77
|
+
BACKEND="$(echo "${RULE}" | jq -cr '.backend')"
|
|
78
|
+
BACKEND_UPPER="$(echo "${BACKEND}" | tr '[:lower:]' '[:upper:]')"
|
|
79
|
+
BACKEND_VARIANT=""
|
|
80
|
+
{
|
|
81
|
+
echo "export ORIGINAL_BACKEND_VERSION=\${${BACKEND_UPPER}_VERSION}"
|
|
82
|
+
cat <<EOT
|
|
83
|
+
IFS="." read -r BV_MAJOR BV_MINOR BV_PATCH BV_POST <<<"\${ORIGINAL_BACKEND_VERSION}"
|
|
84
|
+
export BACKEND_VERSION="\${BV_MAJOR}.\${BV_MINOR}"
|
|
85
|
+
EOT
|
|
86
|
+
if [[ "${BACKEND}" == "cann" ]]; then
|
|
87
|
+
echo "export BACKEND_VARIANT=\${${BACKEND_UPPER}_ARCHS}"
|
|
88
|
+
fi
|
|
89
|
+
} >>"${INPUT_TEMPDIR}/envs_shared"
|
|
90
|
+
# Extract args.
|
|
91
|
+
ARGS="$(echo "${RULE}" | jq -cr '.args')"
|
|
92
|
+
|
|
93
|
+
# Prepare tag prefix/suffix.
|
|
94
|
+
TAG_PREFIX="${BACKEND}\${BACKEND_VERSION}-"
|
|
95
|
+
if [[ "${BACKEND}" == "cann" ]]; then
|
|
96
|
+
TAG_PREFIX="${TAG_PREFIX}\${${BACKEND_UPPER}_ARCHS}-"
|
|
97
|
+
fi
|
|
98
|
+
TAG_SUFFIX="-dev"
|
|
99
|
+
if [[ "${INPUT_FOR_RELEASE}" == "true" ]]; then
|
|
100
|
+
TAG_SUFFIX=""
|
|
101
|
+
fi
|
|
102
|
+
|
|
103
|
+
# For service packing.
|
|
104
|
+
|
|
105
|
+
# Iterate all services of the item.
|
|
106
|
+
SERVICES=($(echo "${RULE}" | jq -cr '(.services[])?'))
|
|
107
|
+
if [[ "${#SERVICES[@]}" -eq 0 ]]; then
|
|
108
|
+
echo "[WARN] No services defined for backend '${BACKEND}', skipping..."
|
|
109
|
+
continue
|
|
110
|
+
fi
|
|
111
|
+
for SERVICE in "${SERVICES[@]}"; do
|
|
112
|
+
SERVICE_UPPER="$(echo "${SERVICE}" | tr '[:lower:]' '[:upper:]')"
|
|
113
|
+
if [[ "${INPUT_TARGET}" != "${SERVICE}" ]]; then
|
|
114
|
+
echo "[INFO] Skipping build service '${SERVICE}' for backend '${BACKEND}' as input target '${INPUT_TARGET}'..."
|
|
115
|
+
continue
|
|
116
|
+
fi
|
|
117
|
+
# Prepare environment variables for sourcing.
|
|
118
|
+
cp -f "${INPUT_TEMPDIR}/envs_shared" "${INPUT_TEMPDIR}/envs_dedicated"
|
|
119
|
+
{
|
|
120
|
+
echo "export SERVICE_VERSION=\${${SERVICE_UPPER}_VERSION}"
|
|
121
|
+
cat <<EOT
|
|
122
|
+
IFS="." read -r SV_MAJOR SV_MINOR SV_PATCH SV_POST_RELEASE <<<"\${SERVICE_VERSION}"
|
|
123
|
+
if [[ -z "\${SV_PATCH}" ]]; then
|
|
124
|
+
SV_PATCH=0
|
|
125
|
+
fi
|
|
126
|
+
export SERVICE_VERSION_MAJOR="\${SV_MAJOR}"
|
|
127
|
+
export SERVICE_VERSION_MINOR="\${SV_MINOR}"
|
|
128
|
+
export SERVICE_VERSION_PATCH="\${SV_PATCH}"
|
|
129
|
+
export SERVICE_VERSION_POST_RELEASE="\${SV_POST_RELEASE}"
|
|
130
|
+
EOT
|
|
131
|
+
echo "export TAG=${TAG_PREFIX}${SERVICE}\${SERVICE_VERSION}"
|
|
132
|
+
echo "export TAG_X=${TAG_PREFIX}${SERVICE}\${SERVICE_VERSION_MAJOR}"
|
|
133
|
+
echo "export TAG_XY=${TAG_PREFIX}${SERVICE}\${SERVICE_VERSION_MAJOR}.\${SERVICE_VERSION_MINOR}"
|
|
134
|
+
} >>"${INPUT_TEMPDIR}/envs_dedicated"
|
|
135
|
+
# Value from environment variable.
|
|
136
|
+
source "${INPUT_TEMPDIR}/envs_dedicated" &&
|
|
137
|
+
rm -f "${INPUT_TEMPDIR}/envs_dedicated"
|
|
138
|
+
TAG="$(echo "${TAG}" | tr '[:upper:]' '[:lower:]')"
|
|
139
|
+
if [[ -n "${INPUT_TAG}" ]] && [[ "${INPUT_TAG}" != "${TAG}"* ]]; then
|
|
140
|
+
echo "[INFO] Skipping build tag '${TAG}${TAG_SUFFIX}' for backend '${BACKEND}' service '${SERVICE}' as input tag '${INPUT_TAG}'..."
|
|
141
|
+
continue
|
|
142
|
+
fi
|
|
143
|
+
TAG_X="$(echo "${TAG_X}" | tr '[:upper:]' '[:lower:]')"
|
|
144
|
+
TAG_XY="$(echo "${TAG_XY}" | tr '[:upper:]' '[:lower:]')"
|
|
145
|
+
# Generate.
|
|
146
|
+
MANIFEST_JOBS="$(echo "${MANIFEST_JOBS}" | jq -cr \
|
|
147
|
+
--arg tag "${TAG}${TAG_SUFFIX}" \
|
|
148
|
+
'{($tag): []} + .')"
|
|
149
|
+
# Iterate all platforms of the item.
|
|
150
|
+
PLATFORMS=($(echo "${RULE}" | jq -cr '(.platforms[])?'))
|
|
151
|
+
if [[ "${#PLATFORMS[@]}" -eq 0 ]]; then
|
|
152
|
+
PLATFORMS=("linux/amd64" "linux/arm64")
|
|
153
|
+
fi
|
|
154
|
+
for PLATFORM in "${PLATFORMS[@]}"; do
|
|
155
|
+
IFS="/" read -r OS ARCH VARIANT <<<"${PLATFORM}"
|
|
156
|
+
PLATFORM_TAG="${TAG}-${OS}-${ARCH}"
|
|
157
|
+
if [[ -n "${INPUT_TAG}" ]] && [[ "${PLATFORM_TAG}" != "${INPUT_TAG}"* ]]; then
|
|
158
|
+
echo "[INFO] Skipping build tag '${PLATFORM_TAG}' for backend '${BACKEND}' service '${SERVICE}' as input tag '${INPUT_TAG}'..."
|
|
159
|
+
continue
|
|
160
|
+
fi
|
|
161
|
+
PLATFORM_TAG_X="${TAG_X}-${OS}-${ARCH}"
|
|
162
|
+
PLATFORM_TAG_XY="${TAG_XY}-${OS}-${ARCH}"
|
|
163
|
+
RUNNER="ubuntu-24.04"
|
|
164
|
+
if [[ "${PLATFORM}" == "linux/arm64" ]]; then
|
|
165
|
+
RUNNER="ubuntu-24.04-arm"
|
|
166
|
+
fi
|
|
167
|
+
if [[ "${INPUT_RUNNER_PROFILE}" != "normal" ]]; then
|
|
168
|
+
RUNNER="${RUNNER}-${INPUT_RUNNER_PROFILE}"
|
|
169
|
+
fi
|
|
170
|
+
# Generate.
|
|
171
|
+
MANIFEST_JOBS="$(echo "${MANIFEST_JOBS}" | jq -cr \
|
|
172
|
+
--arg tag "${TAG}${TAG_SUFFIX}" \
|
|
173
|
+
--arg platform_tag "${PLATFORM_TAG}" \
|
|
174
|
+
'.[$tag] += [$platform_tag]')"
|
|
175
|
+
BUILD_JOBS="$(echo "${BUILD_JOBS}" | jq -cr \
|
|
176
|
+
--arg backend "${BACKEND}" \
|
|
177
|
+
--arg backend_version "${BACKEND_VERSION}" \
|
|
178
|
+
--arg backend_variant "${BACKEND_VARIANT}" \
|
|
179
|
+
--arg service "${SERVICE}" \
|
|
180
|
+
--arg service_version "${SERVICE_VERSION}" \
|
|
181
|
+
--arg platform "${PLATFORM}" \
|
|
182
|
+
--arg platform_tag "${PLATFORM_TAG}" \
|
|
183
|
+
--arg tag "${TAG}${TAG_SUFFIX}" \
|
|
184
|
+
--argjson args "${ARGS}" \
|
|
185
|
+
--arg runner "${RUNNER}" \
|
|
186
|
+
--argjson platform_tag_cache "[\"${PLATFORM_TAG}\",\"${PLATFORM_TAG_XY}\",\"${PLATFORM_TAG_X}\"]" \
|
|
187
|
+
--arg original_backend_version "${ORIGINAL_BACKEND_VERSION}" \
|
|
188
|
+
'[{
|
|
189
|
+
backend: $backend,
|
|
190
|
+
backend_version: $backend_version,
|
|
191
|
+
backend_variant: $backend_variant,
|
|
192
|
+
service: $service,
|
|
193
|
+
service_version: $service_version,
|
|
194
|
+
platform: $platform,
|
|
195
|
+
platform_tag: $platform_tag,
|
|
196
|
+
tag: $tag,
|
|
197
|
+
args: $args,
|
|
198
|
+
runner: $runner,
|
|
199
|
+
platform_tag_cache: $platform_tag_cache,
|
|
200
|
+
original_backend_version: $original_backend_version,
|
|
201
|
+
deprecated: false,
|
|
202
|
+
}] + .')"
|
|
203
|
+
done
|
|
204
|
+
done
|
|
205
|
+
done
|
|
206
|
+
|
|
207
|
+
# Export variables.
|
|
208
|
+
export RULES
|
|
209
|
+
export BUILD_JOBS
|
|
210
|
+
export MANIFEST_JOBS
|
|
211
|
+
|
|
212
|
+
# Review the generated matrix.
|
|
213
|
+
echo "[INFO]: Generated Matrix:"
|
|
214
|
+
echo "build_jobs="
|
|
215
|
+
# Example
|
|
216
|
+
# [
|
|
217
|
+
# {
|
|
218
|
+
# "backend": "cuda",
|
|
219
|
+
# "backend_version": "12.6",
|
|
220
|
+
# "backend_variant": "",
|
|
221
|
+
# "service": "vllm",
|
|
222
|
+
# "service_version": "0.9.2",
|
|
223
|
+
# "platform": "linux/arm64",
|
|
224
|
+
# "platform_tag": "cuda12.6-vllm0.9.2-linux-arm64",
|
|
225
|
+
# "tag": "cuda12.6-vllm0.9.2",
|
|
226
|
+
# "args": [
|
|
227
|
+
# "CUDA_VERSION=12.6.3"
|
|
228
|
+
# ],
|
|
229
|
+
# "runner": "ubuntu-24.04-arm",
|
|
230
|
+
# "platform_tag_cache": [
|
|
231
|
+
# "cuda12.6-vllm0.9.2-linux-arm64",
|
|
232
|
+
# "cuda12.6-vllm0.9-linux-arm64",
|
|
233
|
+
# "cuda12.6-vllm0-linux-arm64",
|
|
234
|
+
# ],
|
|
235
|
+
# "original_backend_version": "12.6.3",
|
|
236
|
+
# "deprecated": false
|
|
237
|
+
# },
|
|
238
|
+
# {
|
|
239
|
+
# "backend": "cuda",
|
|
240
|
+
# "backend_version": "12.6",
|
|
241
|
+
# "backend_variant": "",
|
|
242
|
+
# "service": "vllm",
|
|
243
|
+
# "service_version": "0.9.2",
|
|
244
|
+
# "platform": "linux/amd64",
|
|
245
|
+
# "platform_tag": "cuda12.6-vllm0.9.2-linux-amd64",
|
|
246
|
+
# "tag": "cuda12.6-vllm0.9.2",
|
|
247
|
+
# "args": [
|
|
248
|
+
# "CUDA_VERSION=12.6.3"
|
|
249
|
+
# ],
|
|
250
|
+
# "runner": "ubuntu-24.04",
|
|
251
|
+
# "platform_tag_cache": [
|
|
252
|
+
# "cuda12.6-vllm0.9.2-linux-amd64",
|
|
253
|
+
# "cuda12.6-vllm0.9-linux-amd64",
|
|
254
|
+
# "cuda12.6-vllm0-linux-amd64",
|
|
255
|
+
# ],
|
|
256
|
+
# "original_backend_version": "12.6.3",
|
|
257
|
+
# "deprecated": false
|
|
258
|
+
# }
|
|
259
|
+
# ]
|
|
260
|
+
echo "${BUILD_JOBS}" | jq -r '.'
|
|
261
|
+
echo "manifest_jobs="
|
|
262
|
+
# Example
|
|
263
|
+
# {
|
|
264
|
+
# "cuda12.6-vllm0.9.2-dev": [
|
|
265
|
+
# "cuda12.6-vllm0.9.2-linux-amd64",
|
|
266
|
+
# "cuda12.6-vllm0.9.2-linux-arm64"
|
|
267
|
+
# ]
|
|
268
|
+
# }
|
|
269
|
+
echo "${MANIFEST_JOBS}" | jq -r '.'
|
|
270
|
+
|
|
271
|
+
# Export the build_jobs/manifest_jobs to GH output.
|
|
272
|
+
echo "build_jobs=${BUILD_JOBS}" >>"$GITHUB_OUTPUT" || true
|
|
273
|
+
echo "manifest_jobs=${MANIFEST_JOBS}" >>"$GITHUB_OUTPUT" || true
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
# Runner Packing Rules
|
|
2
|
+
#
|
|
3
|
+
# - backend: (Required) The accelerated backend to pack for,
|
|
4
|
+
# used to select the packing rules and Dockerfile below `pack` directory.
|
|
5
|
+
# - services: (Required) The inference service to pack for,
|
|
6
|
+
# used to select the service stage in `pack/${backend}/Dockerfile.${service}`.
|
|
7
|
+
# - platforms: (Optional) The platforms to build for,
|
|
8
|
+
# used to select the Docker Linux build platforms.
|
|
9
|
+
# Default to `linux/amd64` and `linux/arm64`.
|
|
10
|
+
# - args: (Optional) The build arguments to pass to the Docker build,
|
|
11
|
+
# used to override defaults in `pack/${backend}/Dockerfile.${service}`.
|
|
12
|
+
|
|
13
|
+
rules:
|
|
14
|
+
|
|
15
|
+
#
|
|
16
|
+
# Ascend CANN
|
|
17
|
+
#
|
|
18
|
+
|
|
19
|
+
## Ascend CANN 9.2.1, using CANN Kernel for 950 (A5).
|
|
20
|
+
## (CANN_ARCHS follows the CANN variant name "950", while the vLLM Ascend
|
|
21
|
+
## image tags the same generation "a5")
|
|
22
|
+
## (Omni has no A5 support yet, so it is switched off)
|
|
23
|
+
##
|
|
24
|
+
- backend: "cann"
|
|
25
|
+
services:
|
|
26
|
+
- "vllm"
|
|
27
|
+
args:
|
|
28
|
+
- "CANN_VERSION=9.2.1"
|
|
29
|
+
- "CANN_ARCHS=950"
|
|
30
|
+
- "PYTHON_VERSION=3.12"
|
|
31
|
+
- "VLLM_VERSION=0.30.0"
|
|
32
|
+
- "CANN_BASE_IMAGE=quay.io/ascend/vllm-ascend:v0.30.0-a5"
|
|
33
|
+
- "VLLM_OMNI_COMMIT="
|
|
34
|
+
## Ascend CANN 9.2.1, using CANN Kernel for A3.
|
|
35
|
+
##
|
|
36
|
+
- backend: "cann"
|
|
37
|
+
services:
|
|
38
|
+
- "vllm"
|
|
39
|
+
args:
|
|
40
|
+
- "CANN_VERSION=9.2.1"
|
|
41
|
+
- "CANN_ARCHS=a3"
|
|
42
|
+
- "PYTHON_VERSION=3.12"
|
|
43
|
+
- "VLLM_VERSION=0.30.0"
|
|
44
|
+
- "CANN_BASE_IMAGE=quay.io/ascend/vllm-ascend:v0.30.0-a3"
|
|
45
|
+
## Ascend CANN 9.2.1, using CANN Kernel for 910B.
|
|
46
|
+
##
|
|
47
|
+
- backend: "cann"
|
|
48
|
+
services:
|
|
49
|
+
- "vllm"
|
|
50
|
+
args:
|
|
51
|
+
- "CANN_VERSION=9.2.1"
|
|
52
|
+
- "CANN_ARCHS=910b"
|
|
53
|
+
- "PYTHON_VERSION=3.12"
|
|
54
|
+
- "VLLM_VERSION=0.30.0"
|
|
55
|
+
- "CANN_BASE_IMAGE=quay.io/ascend/vllm-ascend:v0.30.0"
|
|
56
|
+
## Ascend CANN 9.2.1, using CANN Kernel for 310P.
|
|
57
|
+
##
|
|
58
|
+
- backend: "cann"
|
|
59
|
+
services:
|
|
60
|
+
- "vllm"
|
|
61
|
+
args:
|
|
62
|
+
- "CANN_VERSION=9.2.1"
|
|
63
|
+
- "CANN_ARCHS=310p"
|
|
64
|
+
- "PYTHON_VERSION=3.12"
|
|
65
|
+
- "VLLM_VERSION=0.30.0"
|
|
66
|
+
- "CANN_BASE_IMAGE=quay.io/ascend/vllm-ascend:v0.30.0-310p"
|
|
67
|
+
## Ascend CANN 9.1.0, SGLang 0.5.23 for A3.
|
|
68
|
+
## (no sglang upstream image for 310p variant)
|
|
69
|
+
## (910b retired: upstream publishes no 0.5.22 910b image, only 950/a3 on
|
|
70
|
+
## cann9.1.0; re-add when an upstream 910b image returns)
|
|
71
|
+
##
|
|
72
|
+
- backend: "cann"
|
|
73
|
+
services:
|
|
74
|
+
- "sglang"
|
|
75
|
+
args:
|
|
76
|
+
- "CANN_VERSION=9.1.0"
|
|
77
|
+
- "CANN_ARCHS=a3"
|
|
78
|
+
- "PYTHON_VERSION=3.12"
|
|
79
|
+
- "SGLANG_VERSION=0.5.23"
|
|
80
|
+
- "SGLANG_BASE_IMAGE=quay.io/ascend/sglang:v0.5.23-cann9.1.0-a3"
|
|
81
|
+
## Ascend CANN 9.1.0, SGLang 0.5.23 for 950 (A5).
|
|
82
|
+
## (upstream publishes v0.5.22-cann9.1.0-950 alongside the a3 image)
|
|
83
|
+
##
|
|
84
|
+
- backend: "cann"
|
|
85
|
+
services:
|
|
86
|
+
- "sglang"
|
|
87
|
+
args:
|
|
88
|
+
- "CANN_VERSION=9.1.0"
|
|
89
|
+
- "CANN_ARCHS=950"
|
|
90
|
+
- "PYTHON_VERSION=3.12"
|
|
91
|
+
- "SGLANG_VERSION=0.5.23"
|
|
92
|
+
- "SGLANG_BASE_IMAGE=quay.io/ascend/sglang:v0.5.23-cann9.1.0-950"
|
|
93
|
+
|
|
94
|
+
## MindIE 2.3.0 retains the published CANN 8.5.0 variants.
|
|
95
|
+
- backend: "cann"
|
|
96
|
+
services:
|
|
97
|
+
- "mindie"
|
|
98
|
+
args:
|
|
99
|
+
- "CANN_VERSION=8.5.0"
|
|
100
|
+
- "CANN_ARCHS=a3"
|
|
101
|
+
- "MINDIE_VERSION=2.3.0"
|
|
102
|
+
- backend: "cann"
|
|
103
|
+
services:
|
|
104
|
+
- "mindie"
|
|
105
|
+
args:
|
|
106
|
+
- "CANN_VERSION=8.5.0"
|
|
107
|
+
- "CANN_ARCHS=910b"
|
|
108
|
+
- "MINDIE_VERSION=2.3.0"
|
|
109
|
+
- backend: "cann"
|
|
110
|
+
services:
|
|
111
|
+
- "mindie"
|
|
112
|
+
args:
|
|
113
|
+
- "CANN_VERSION=8.5.0"
|
|
114
|
+
- "CANN_ARCHS=310p"
|
|
115
|
+
- "MINDIE_VERSION=2.3.0"
|
|
116
|
+
|
|
117
|
+
#
|
|
118
|
+
# AMD ROCm
|
|
119
|
+
#
|
|
120
|
+
|
|
121
|
+
## AMD ROCm 7.2.3
|
|
122
|
+
##
|
|
123
|
+
- backend: "rocm"
|
|
124
|
+
services:
|
|
125
|
+
- "vllm"
|
|
126
|
+
platforms:
|
|
127
|
+
- "linux/amd64"
|
|
128
|
+
args:
|
|
129
|
+
- "ROCM_VERSION=7.2.3"
|
|
130
|
+
- "VLLM_VERSION=0.32.0"
|
|
131
|
+
- "VLLM_BASE_IMAGE=vllm/vllm-openai-rocm:v0.32.0"
|
|
132
|
+
## AMD ROCm 7.2.1 - SGLang 0.5.23 (rocm720-mi30x)
|
|
133
|
+
##
|
|
134
|
+
- backend: "rocm"
|
|
135
|
+
services:
|
|
136
|
+
- "sglang"
|
|
137
|
+
platforms:
|
|
138
|
+
- "linux/amd64"
|
|
139
|
+
args:
|
|
140
|
+
- "ROCM_VERSION=7.2.1"
|
|
141
|
+
- "SGLANG_VERSION=0.5.23"
|
|
142
|
+
- "SGLANG_BASE_IMAGE=lmsysorg/sglang:v0.5.23-rocm720-mi30x"
|
|
143
|
+
|
|
144
|
+
#
|
|
145
|
+
# NVIDIA CUDA
|
|
146
|
+
#
|
|
147
|
+
|
|
148
|
+
## NVIDIA CUDA 13.0.1
|
|
149
|
+
##
|
|
150
|
+
- backend: "cuda"
|
|
151
|
+
services:
|
|
152
|
+
- "vllm"
|
|
153
|
+
args:
|
|
154
|
+
- "CUDA_VERSION=13.0.3"
|
|
155
|
+
- "VLLM_VERSION=0.32.0"
|
|
156
|
+
- "VLLM_BASE_IMAGE=vllm/vllm-openai:v0.32.0-ubuntu2404"
|
|
157
|
+
## NVIDIA CUDA 13.0.3 - SGLang 0.5.22
|
|
158
|
+
## (upstream publishes no cu129 image for 0.5.22, so only the cu130 rule remains)
|
|
159
|
+
##
|
|
160
|
+
- backend: "cuda"
|
|
161
|
+
services:
|
|
162
|
+
- "sglang"
|
|
163
|
+
args:
|
|
164
|
+
- "CUDA_VERSION=13.0.3"
|
|
165
|
+
- "SGLANG_VERSION=0.5.23"
|
|
166
|
+
- "SGLANG_BASE_IMAGE=lmsysorg/sglang:v0.5.23-cu130"
|
|
167
|
+
## NVIDIA CUDA 12.9.1
|
|
168
|
+
## The upstream cu129 image pairs torch 2.13.0+cu129 with the 12.9 toolkit, but
|
|
169
|
+
## bundles a CUDA 13-built torchcodec that crashes `vllm serve` at import
|
|
170
|
+
## (vllm-project/vllm#60406); VLLM_TORCHCODEC_VERSION replaces it with the CPU
|
|
171
|
+
## build —— see pack/cuda/Dockerfile.vllm. LMCache 0.5.x is unaffected by
|
|
172
|
+
## upstream's cu12 lmcache==0.4.4 pin (kv_connectors_cu12.txt), which exists
|
|
173
|
+
## because the 0.5.x PyPI wheels declare CUDA 13 dependencies; we compile
|
|
174
|
+
## LMCache from source against the base's own torch instead.
|
|
175
|
+
##
|
|
176
|
+
- backend: "cuda"
|
|
177
|
+
services:
|
|
178
|
+
- "vllm"
|
|
179
|
+
args:
|
|
180
|
+
- "CUDA_VERSION=12.9.1"
|
|
181
|
+
- "VLLM_VERSION=0.32.0"
|
|
182
|
+
- "VLLM_BASE_IMAGE=vllm/vllm-openai:v0.32.0-cu129-ubuntu2404"
|
|
183
|
+
- "VLLM_TORCHCODEC_VERSION=0.17.0"
|
|
184
|
+
|
|
185
|
+
## VoxBox 0.0.21 retains CUDA 12.8.1 and Torch 2.7.1's cu128 wheels.
|
|
186
|
+
- backend: "cuda"
|
|
187
|
+
services:
|
|
188
|
+
- "voxbox"
|
|
189
|
+
args:
|
|
190
|
+
- "CUDA_VERSION=12.8.1"
|
|
191
|
+
- "VOXBOX_VERSION=0.0.21"
|
|
192
|
+
|
|
193
|
+
#
|
|
194
|
+
# Iluvatar CoreX
|
|
195
|
+
#
|
|
196
|
+
##
|
|
197
|
+
## Use pack flow's arguments to override the default COREX version and version extra,
|
|
198
|
+
## which are used in `pack/corex/Dockerfile.vllm` to construct the image tags and build arguments.
|
|
199
|
+
##
|
|
200
|
+
- backend: "corex"
|
|
201
|
+
services:
|
|
202
|
+
- "vllm"
|
|
203
|
+
platforms:
|
|
204
|
+
- "linux/amd64"
|
|
205
|
+
args:
|
|
206
|
+
- "COREX_VERSION="
|
|
207
|
+
- "VLLM_VERSION="
|
|
208
|
+
|
|
209
|
+
#
|
|
210
|
+
# Hygon DTK
|
|
211
|
+
#
|
|
212
|
+
##
|
|
213
|
+
## Use pack flow's arguments to override the default DTK version and version extra,
|
|
214
|
+
## which are used in `pack/dtk/Dockerfile.vllm` and `pack/dtk/Dockerfile.sglang`
|
|
215
|
+
## to construct the image tags and build arguments.
|
|
216
|
+
##
|
|
217
|
+
- backend: "dtk"
|
|
218
|
+
services:
|
|
219
|
+
- "vllm"
|
|
220
|
+
- "sglang"
|
|
221
|
+
platforms:
|
|
222
|
+
- "linux/amd64"
|
|
223
|
+
|
|
224
|
+
#
|
|
225
|
+
# T-Head HGGC
|
|
226
|
+
#
|
|
227
|
+
##
|
|
228
|
+
## Use pack flow's arguments to override the default HGGC version and version extra,
|
|
229
|
+
## which are used in `pack/hggc/Dockerfile.vllm` and `pack/hggc/Dockerfile.sglang`
|
|
230
|
+
## to construct the image tags and build arguments.
|
|
231
|
+
##
|
|
232
|
+
## Get HGGC version via `VERSION=$(cat /usr/local/PPU_SDK/include/hggc.h | grep HGGC_VERSION | grep define | cut -d' ' -f3); echo "$(( ${VERSION} / 1000 )).$(( ${VERSION} % 1000 / 10 )).$(( ${VERSION} % 10 ))"`
|
|
233
|
+
- backend: "hggc"
|
|
234
|
+
services:
|
|
235
|
+
- "vllm"
|
|
236
|
+
- "sglang"
|
|
237
|
+
platforms:
|
|
238
|
+
- "linux/amd64"
|
|
239
|
+
|
|
240
|
+
#
|
|
241
|
+
# MateX MACA
|
|
242
|
+
#
|
|
243
|
+
##
|
|
244
|
+
## Use pack flow's arguments to override the default MACA version and version extra,
|
|
245
|
+
## which are used in `pack/maca/Dockerfile.vllm` and `pack/maca/Dockerfile.sglang`
|
|
246
|
+
## to construct the image tags and build arguments.
|
|
247
|
+
##
|
|
248
|
+
- backend: "maca"
|
|
249
|
+
services:
|
|
250
|
+
- "vllm"
|
|
251
|
+
- "sglang"
|
|
252
|
+
platforms:
|
|
253
|
+
- "linux/amd64"
|
|
254
|
+
|
|
255
|
+
#
|
|
256
|
+
# MThreads MUSA
|
|
257
|
+
#
|
|
258
|
+
##
|
|
259
|
+
## Use pack flow's arguments to override the default MUSA version and version extra,
|
|
260
|
+
## which are used in `pack/musa/Dockerfile.vllm` and `pack/musa/Dockerfile.sglang`
|
|
261
|
+
## to construct the image tags and build arguments.
|
|
262
|
+
##
|
|
263
|
+
- backend: "musa"
|
|
264
|
+
services:
|
|
265
|
+
- "vllm"
|
|
266
|
+
platforms:
|
|
267
|
+
- "linux/amd64"
|
|
268
|
+
args:
|
|
269
|
+
- "MUSA_VERSION=4.1.0"
|
|
270
|
+
- "MUSA_VERSION_EXTRA="
|
|
271
|
+
- "VLLM_VERSION=0.9.2"
|
|
272
|
+
- backend: "musa"
|
|
273
|
+
services:
|
|
274
|
+
- "sglang"
|
|
275
|
+
platforms:
|
|
276
|
+
- "linux/amd64"
|
|
277
|
+
args:
|
|
278
|
+
- "MUSA_VERSION=4.3.2"
|
|
279
|
+
- "MUSA_VERSION_EXTRA="
|
|
280
|
+
- "SGLANG_VERSION=0.5.7"
|
package/node_modules/@loopwright/taskpack-runner/vendor/runner-auto-sync/pack/resolve_dockerfile.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
set -eo pipefail
|
|
4
|
+
|
|
5
|
+
# Usage: resolve_dockerfile.sh <pack directory> <backend> <service> [post operation]
|
|
6
|
+
WORKSPACE="${1:?Pack directory is required}"
|
|
7
|
+
BACKEND="${2:?Backend is required}"
|
|
8
|
+
SERVICE="${3:?Service is required}"
|
|
9
|
+
POST_OPERATION="${4:-}"
|
|
10
|
+
|
|
11
|
+
if [[ -n "${POST_OPERATION}" ]]; then
|
|
12
|
+
WORKSPACE="${WORKSPACE}/.post_operation/${POST_OPERATION}"
|
|
13
|
+
fi
|
|
14
|
+
|
|
15
|
+
DOCKERFILE="${WORKSPACE}/${BACKEND}/Dockerfile.${SERVICE}"
|
|
16
|
+
if [[ -f "${DOCKERFILE}" ]]; then
|
|
17
|
+
printf '%s\n' "${DOCKERFILE}"
|
|
18
|
+
elif [[ -n "${POST_OPERATION}" && -f "${WORKSPACE}/${BACKEND}/Dockerfile" ]]; then
|
|
19
|
+
# Only explicit historical operations retain combined filenames.
|
|
20
|
+
printf '%s\n' "${WORKSPACE}/${BACKEND}/Dockerfile"
|
|
21
|
+
else
|
|
22
|
+
echo "[ERROR]: Dockerfile not found for backend '${BACKEND}', service '${SERVICE}': ${DOCKERFILE}" >&2
|
|
23
|
+
exit 1
|
|
24
|
+
fi
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling", "hatch-vcs"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "runtime-runner"
|
|
7
|
+
description = "Runtime Runner is library for registering runnable accelerated backends and services in GPUStack."
|
|
8
|
+
readme = "README.md"
|
|
9
|
+
requires-python = ">=3.10"
|
|
10
|
+
authors = [{name = "GPUStack Authors", email = "contact@gpustack.ai"}]
|
|
11
|
+
license = "Apache-2.0"
|
|
12
|
+
license-files = ["LICENSE"]
|
|
13
|
+
classifiers = [
|
|
14
|
+
"Programming Language :: Python :: 3",
|
|
15
|
+
"Programming Language :: Python :: 3.10",
|
|
16
|
+
"Programming Language :: Python :: 3.11",
|
|
17
|
+
"Programming Language :: Python :: 3.12",
|
|
18
|
+
"Programming Language :: Python :: 3.13",
|
|
19
|
+
]
|
|
20
|
+
dependencies = [
|
|
21
|
+
"argcomplete>=3.6.3",
|
|
22
|
+
"dataclasses-json>=0.6.7",
|
|
23
|
+
"packaging>=21.0",
|
|
24
|
+
"requests>=2.33.0",
|
|
25
|
+
]
|
|
26
|
+
dynamic = ["version"]
|
|
27
|
+
|
|
28
|
+
[project.scripts]
|
|
29
|
+
runtime-runner = "runtime_runner.__main__:main"
|
|
30
|
+
|
|
31
|
+
[project.urls]
|
|
32
|
+
"Homepage" = "https://github.com/example-org/runtime-runner"
|
|
33
|
+
"Bug Tracker" = "https://github.com/gpustack/gpustack/issues"
|
|
34
|
+
|
|
35
|
+
[dependency-groups]
|
|
36
|
+
dev=[
|
|
37
|
+
"pyclean==3.4.0",
|
|
38
|
+
"pre-commit==4.5.0; python_version >= '3.11'",
|
|
39
|
+
"pytest==9.0.3",
|
|
40
|
+
"hatchling",
|
|
41
|
+
"hatch-vcs",
|
|
42
|
+
"mkdocs>=1.6.1",
|
|
43
|
+
"mkdocstrings-python>=1.18.0",
|
|
44
|
+
"mkdocs-material>=9.6.18",
|
|
45
|
+
"pymdown-extensions>=11.0.1",
|
|
46
|
+
]
|