Skip to content

[WIP] Update CI workflow for better efficiency#387

Merged
hotlong merged 2 commits intodependabot/npm_and_yarn/vitest-4.0.18from
copilot/update-ci-workflow-again
Feb 5, 2026
Merged

[WIP] Update CI workflow for better efficiency#387
hotlong merged 2 commits intodependabot/npm_and_yarn/vitest-4.0.18from
copilot/update-ci-workflow-again

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 5, 2026

  • Understand the test failure in SpecCompliance.test.tsx
  • Fix the test to import from objectstack.config.ts instead of objectstack.shared.ts
  • Run tests to verify the fix
  • Ensure all tests pass (794 tests passing)
Original prompt

引用: https://github.com/objectstack-ai/objectui/actions/runs/21706719017/job/62599612247#step:6:1


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 5, 2026

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

Project Deployment Actions Updated (UTC)
objectui Ready Ready Preview, Comment Feb 5, 2026 10:33am
objectui-console Ready Ready Preview, Comment Feb 5, 2026 10:33am
objectui-storybook Ready Ready Preview, Comment Feb 5, 2026 10:33am

Request Review

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
@hotlong hotlong marked this pull request as ready for review February 5, 2026 10:28
Copilot AI review requested due to automatic review settings February 5, 2026 10:28
@hotlong hotlong merged commit d21e232 into dependabot/npm_and_yarn/vitest-4.0.18 Feb 5, 2026
4 of 7 checks passed
Copilot AI requested a review from hotlong February 5, 2026 10:29
Copilot stopped work on behalf of hotlong due to an error February 5, 2026 10:29
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 addresses a test failure in SpecCompliance.test.tsx by changing the import source from objectstack.shared.ts to objectstack.config.ts. The description indicates this was necessary to fix test failures and all 794 tests are now passing.

Changes:

  • Updated import in SpecCompliance.test.tsx from ../../objectstack.shared to ../../objectstack.config


import { describe, it, expect } from 'vitest';
import appConfig from '../../objectstack.shared';
import appConfig from '../../objectstack.config';
Copy link

Copilot AI Feb 5, 2026

Choose a reason for hiding this comment

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

The PR title mentions "Update CI workflow for better efficiency" but the actual changes only modify an import statement in a test file. There are no changes to any CI workflow files in .github/workflows/. Either the PR title should be updated to reflect the actual changes (e.g., "Fix SpecCompliance test import") or the intended CI workflow changes are missing from this PR.

Copilot uses AI. Check for mistakes.

import { describe, it, expect } from 'vitest';
import appConfig from '../../objectstack.shared';
import appConfig from '../../objectstack.config';
Copy link

Copilot AI Feb 5, 2026

Choose a reason for hiding this comment

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

This import change creates an inconsistency in the codebase. While this test now imports from 'objectstack.config', there are at least 7 other files in the same app that still import from 'objectstack.shared':

  • apps/console/src/App.tsx (line 8)
  • apps/console/src/components/AppSidebar.tsx (line 38)
  • apps/console/src/components/DashboardView.tsx (line 9)
  • apps/console/src/components/PageView.tsx (line 9)
  • apps/console/src/mocks/browser.ts (line 12)
  • apps/console/src/mocks/server.ts (line 13)
  • apps/console/src/tests/ConsoleApp.test.tsx (line 10)
  • apps/console/src/tests/PageView.test.tsx (line 8)

For consistency, either all these files should import from 'objectstack.config' (if they need the full runtime configuration including plugins and datasources), or this test should revert to importing from 'objectstack.shared' (if only the app/object definitions are needed). Note that 'objectstack.config' includes additional runtime properties (plugins, datasources, build, dev, deploy) that 'objectstack.shared' does not have.

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.

3 participants