Skip to content

feat: KB MVP Frontend #3729

feat: KB MVP Frontend

feat: KB MVP Frontend #3729

Triggered via pull request July 31, 2024 17:28
Status Failure
Total duration 4m 34s
Artifacts

unit-test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 16 warnings
unit-test
@instill-ai/toolkit#lint: command (/home/runner/work/console/console/packages/toolkit) /home/runner/setup-pnpm/node_modules/.bin/pnpm run lint exited (1)
unit-test: packages/toolkit/src/view/knowledge/components/CreateKnowledgeBaseCard.tsx#L126
React Hook "useGetAllChunks" is called in function "queryFn" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use"
unit-test
Process completed with exit code 1.
unit-test
The following actions uses node12 which is deprecated and will be forced to run on node16: pnpm/[email protected]. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
unit-test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3, pnpm/[email protected], actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
unit-test: packages/toolkit/src/components/card-model/CardModel.tsx#L57
img elements must have an alt prop, either with meaningful text, or an empty string for decorative images
unit-test: packages/toolkit/src/components/card-pipeline/CardPipeline.tsx#L61
img elements must have an alt prop, either with meaningful text, or an empty string for decorative images
unit-test: packages/toolkit/src/lib/use-instill-form/useInstillForm.tsx#L58
The 'forceCloseCollapsibleFormGroups' logical expression could make the dependencies of useMemo Hook (at line 173) change on every render. Move it inside the useMemo callback. Alternatively, wrap the initialization of 'forceCloseCollapsibleFormGroups' in its own useMemo() Hook
unit-test: packages/toolkit/src/lib/use-instill-form/useInstillForm.tsx#L62
The 'forceOpenCollapsibleFormGroups' logical expression could make the dependencies of useMemo Hook (at line 173) change on every render. Move it inside the useMemo callback. Alternatively, wrap the initialization of 'forceOpenCollapsibleFormGroups' in its own useMemo() Hook
unit-test: packages/toolkit/src/view/knowledge/KnowledgeBaseView.tsx#L145
React Hook React.useEffect has a missing dependency: 'actuallyDeleteKnowledgeBase'. Either include it or remove the dependency array
unit-test: packages/toolkit/src/view/model/view-model/ModelPlayground.tsx#L164
React Hook React.useCallback has missing dependencies: 'existingModelTriggerResult', 'model?.name', and 'queryClient'. Either include them or remove the dependency array
unit-test: packages/toolkit/src/view/model/view-model/ModelPlayground.tsx#L214
React Hook useEffect has missing dependencies: 'existingTriggerState?.done' and 'pollForResponse'. Either include them or remove the dependency array
unit-test: packages/toolkit/src/view/model/view-model/ModelPlayground.tsx#L259
React Hook useEffect has missing dependencies: 'model' and 'pollForResponse'. Either include them or remove the dependency array
unit-test: packages/toolkit/src/view/pipeline-builder/lib/hooks/useSortedReleases.tsx#L64
React Hook React.useEffect has a missing dependency: 'pipelineReleases'. Either include it or remove the dependency array
unit-test: packages/toolkit/src/view/pipeline-builder/lib/hooks/useUpdaterOnNode.tsx#L55
React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead
unit-test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
unit-test
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
unit-test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
unit-test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/