Skip to content

Conversation

@anikdhabal
Copy link
Contributor

@anikdhabal anikdhabal commented Dec 30, 2025

Summary by cubic

Updated intentToCreateOrg tests with explicit mocks to reduce flakes and cover hosted/self-hosted flows.

Written for commit bc488f8. Summary will update on new commits.

@vercel
Copy link

vercel bot commented Dec 30, 2025

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

3 Skipped Deployments
Project Deployment Review Updated (UTC)
cal Ignored Ignored Dec 30, 2025 5:12pm
cal-companion Ignored Ignored Preview Dec 30, 2025 5:12pm
cal-eu Ignored Ignored Dec 30, 2025 5:12pm

@anikdhabal anikdhabal marked this pull request as draft December 30, 2025 12:28
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 1 file (changes from recent commits).

Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them.


<file name=".github/workflows/pr.yml">

<violation number="1" location=".github/workflows/pr.yml:4">
P1: Removing `pull_request_review` trigger breaks the external contributor approval workflow. The trust-check job relies on this trigger to re-run CI after a maintainer approves an external contributor&#39;s PR. Without it, external PRs will remain blocked even after approval.

Additionally, references to `github.event_name == &#39;pull_request_review&#39;` in concurrency and trust-check conditions are now dead code since this event will never trigger the workflow.

If intentionally removing this flow, also clean up the dead code references to `pull_request_review` in the concurrency group, cancel-in-progress, and trust-check job.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

@blacksmith-sh
Copy link

blacksmith-sh bot commented Dec 30, 2025

Found 3 test failures on Blacksmith runners:

Failures

Test View Logs
apps/web/playwright/booking-pages.e2e.ts/
Booking on different layouts › Book on column layout
View Logs
packages/embeds/embed-react/playwright/tests/basic.e2e.ts/
React Embed › Floating button Popup › should verify that the iframe got created with co
rrect URL - namespaced
View Logs
packages/embeds/embed-react/playwright/tests/basic.e2e.ts/
React Embed › Inline › should verify that the iframe got created with correct URL - nam
espaced
View Logs

Fix in Cursor

@github-actions
Copy link
Contributor

github-actions bot commented Dec 30, 2025

E2E results are ready!

@anikdhabal anikdhabal changed the title fix: wip ci: clean cached directories before restore to prevent symlink conflicts Dec 30, 2025
@anikdhabal anikdhabal marked this pull request as ready for review December 30, 2025 15:26
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

@anikdhabal anikdhabal enabled auto-merge (squash) December 30, 2025 15:30
@anikdhabal anikdhabal changed the title ci: clean cached directories before restore to prevent symlink conflicts ci: remove node_modules exclusion from build cache Dec 30, 2025
@anikdhabal anikdhabal closed this Dec 30, 2025
auto-merge was automatically disabled December 30, 2025 15:59

Pull request was closed

@anikdhabal anikdhabal reopened this Dec 30, 2025
Remove node_modules from cache path in action.yml
@anikdhabal anikdhabal changed the title ci: remove node_modules exclusion from build cache test: flaky unit test Dec 30, 2025
@anikdhabal anikdhabal enabled auto-merge (squash) December 30, 2025 16:11
Updated mocks for various services and constants in tests, ensuring accurate behavior for both hosted and self-hosted scenarios.
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 1 file (changes from recent commits).

Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them.


<file name="packages/trpc/server/routers/viewer/organizations/intentToCreateOrg.handler.test.ts">

<violation number="1">
P1: `vi.mock()` inside `beforeEach()` won&#39;t work as intended. Vitest hoists `vi.mock()` calls to the top of the file at compile time, so placing it inside `beforeEach()` doesn&#39;t dynamically change the mock per describe block. The mock is set once at module load time.

For per-describe mock variations, use `vi.doMock()` (which is not hoisted) with dynamic imports, or export the constant through a getter function that can be mocked with `vi.spyOn()`/`vi.mocked().mockReturnValue()`.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

@anikdhabal anikdhabal merged commit 77ff860 into main Dec 30, 2025
65 of 67 checks passed
@anikdhabal anikdhabal deleted the cache-build branch December 30, 2025 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants