-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: Move runner types to runner package #11552
Conversation
To make sure the port is not already being listened
"import": "./src/start.ts", | ||
"types": "./dist/start.d.ts" | ||
}, | ||
".": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Separate entrypoints for starting the task runner and importing code
|
||
import type { RPC_ALLOW_LIST, TaskDataRequestParams, TaskResultData } from './runner-types'; | ||
|
||
export namespace N8nMessage { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved from runner-types
as is
env: boolean; | ||
} | ||
|
||
export interface DataRequestResponse { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved from cli
|
||
export type All = TaskSettings | TaskCancel | RPCResponse | TaskDataResponse | TaskRequest; | ||
} | ||
export interface TaskData { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved from cli
| RPC | ||
| TaskDataRequest; | ||
} | ||
export interface PartialAdditionalData { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved from cli
@@ -34,230 +34,3 @@ export interface TaskRunnerServerInitRequest | |||
} | |||
|
|||
export type TaskRunnerServerInitResponse = Response & { req: TaskRunnerServerInitRequest }; | |||
|
|||
export namespace N8nMessage { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to runner-messages
in @n8n/task-runner
export interface TaskResultData { | ||
result: INodeExecutionData[]; | ||
customData?: Record<string, string>; | ||
} | ||
|
||
export namespace N8nMessage { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to runner-messages
Codecov ReportAttention: Patch coverage is 📢 Thoughts on this report? Let us know! |
n8n Run #7703
Run Properties:
|
Project |
n8n
|
Branch Review |
refactor-move-runner-types-to-runner-package
|
Run status |
Passed #7703
|
Run duration | 04m 29s |
Commit |
4d97d03537: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 tomi 🗃️ e2e/*
|
Committer | Tomi Turtiainen |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
2
|
Pending |
0
|
Skipped |
0
|
Passing |
461
|
View all changes introduced in this branch ↗︎ |
✅ All Cypress E2E specs passed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙏🏻
✅ All Cypress E2E specs passed |
Summary
Move shared task runner types to task runner package.
Also small fix to tests:
Review / Merge checklist
release/backport
(if the PR is an urgent fix that needs to be backported)