Skip to content

Add missing package builds to pretest script#226

Merged
hotlong merged 2 commits intomainfrom
copilot/update-action-workflow-config
Jan 27, 2026
Merged

Add missing package builds to pretest script#226
hotlong merged 2 commits intomainfrom
copilot/update-action-workflow-config

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 27, 2026

CI failing on examples/crm-app/src/components/SidebarNav.test.tsx because @object-ui/layout and @object-ui/fields weren't built before test execution. Tests import from these packages but their dist folders don't exist.

Changes

  • Added @object-ui/fields and @object-ui/layout to the pretest script build chain

The pretest script now builds all required dependencies before running tests:

"pretest": "pnpm --filter @object-ui/types build && pnpm --filter @object-ui/core build && pnpm --filter @object-ui/react build && pnpm --filter @object-ui/components build && pnpm --filter @object-ui/fields build && pnpm --filter @object-ui/layout build && pnpm --filter @object-ui/plugin-kanban build && pnpm --filter @object-ui/plugin-charts build"
Original prompt

引用: https://github.com/objectstack-ai/objectui/actions/runs/21388111749/job/61568576913#step:8:1


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
objectui-site Error Error Jan 27, 2026 7:23am

Request Review

Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>
Copilot AI changed the title [WIP] Update action workflow configuration for better performance Add missing package builds to pretest script Jan 27, 2026
Copilot AI requested a review from xuyushun441-sys January 27, 2026 07:23
@hotlong hotlong marked this pull request as ready for review January 27, 2026 07:29
Copilot AI review requested due to automatic review settings January 27, 2026 07:29
@hotlong hotlong merged commit 3b23212 into main Jan 27, 2026
4 of 5 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a CI test failure by adding @object-ui/fields and @object-ui/layout to the pretest build script. The test examples/crm-app/src/components/SidebarNav.test.tsx was failing because it imports from @object-ui/layout, which in turn depends on @object-ui/components, and the SidebarNav component imports from @object-ui/layout. Without these packages being built before test execution, their dist folders don't exist, causing import failures.

Changes:

  • Added @object-ui/fields and @object-ui/layout to the pretest script build chain in the correct dependency order

Comment thread package.json
"dev": "pnpm --filter @examples/crm-app dev",
"build": "pnpm --filter './packages/*' -r build && pnpm --filter './examples/*' -r build && pnpm --filter './apps/*' -r build",
"pretest": "pnpm --filter @object-ui/types build && pnpm --filter @object-ui/core build && pnpm --filter @object-ui/react build && pnpm --filter @object-ui/components build && pnpm --filter @object-ui/plugin-kanban build && pnpm --filter @object-ui/plugin-charts build",
"pretest": "pnpm --filter @object-ui/types build && pnpm --filter @object-ui/core build && pnpm --filter @object-ui/react build && pnpm --filter @object-ui/components build && pnpm --filter @object-ui/fields build && pnpm --filter @object-ui/layout build && pnpm --filter @object-ui/plugin-kanban build && pnpm --filter @object-ui/plugin-charts build",
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The build order doesn't account for all package dependencies. While this change fixes the immediate CI failure, there are other packages with dependencies on @object-ui/fields that are not included in the pretest chain:

  • @object-ui/plugin-grid depends on @object-ui/fields (see packages/plugin-grid/package.json:25)
  • @object-ui/plugin-form depends on @object-ui/fields (see packages/plugin-form/package.json:25)
  • @object-ui/plugin-view depends on both @object-ui/plugin-grid and @object-ui/plugin-form (see packages/plugin-view/package.json:25-26)

If tests exist for these packages or if they're imported elsewhere in test files, they will fail similarly. Consider either:

  1. Adding these packages to the pretest script in dependency order
  2. Using a more maintainable approach like pnpm --filter './packages/*' -r build which respects the dependency graph automatically
Suggested change
"pretest": "pnpm --filter @object-ui/types build && pnpm --filter @object-ui/core build && pnpm --filter @object-ui/react build && pnpm --filter @object-ui/components build && pnpm --filter @object-ui/fields build && pnpm --filter @object-ui/layout build && pnpm --filter @object-ui/plugin-kanban build && pnpm --filter @object-ui/plugin-charts build",
"pretest": "pnpm run build",

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants