Skip to content

Conversation

@sirily11
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings January 18, 2026 03:04
@autopilot-project-manager autopilot-project-manager bot added the bug Something isn't working label Jan 18, 2026
@sirily11 sirily11 force-pushed the ci branch 2 times, most recently from 9992d2e to 470f5e2 Compare January 18, 2026 03:06
Copy link

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 CI issues by addressing database HMR (Hot Module Replacement) problems, correcting Playwright test flakiness, and standardizing GitHub Actions workflow configuration.

Changes:

  • Added HMR persistence for the database client to prevent connection resets during development
  • Fixed WebAuthn virtual authenticator setup to use the correct page instance
  • Added missing avatar button clicks before sign out actions in E2E tests
  • Standardized GitHub Actions workflow formatting and reduced artifact retention

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
lib/db/index.ts Added HMR persistence logic to preserve database client and connection across hot reloads
e2e/auth/passkey.spec.ts Fixed virtual authenticator setup to attach to the correct page and added missing avatar click
e2e/auth/register.spec.ts Added missing avatar button click before logout, removed display name assertion
e2e/auth/login.spec.ts Added missing avatar button click before logout, removed display name assertion, formatted long lines
.github/workflows/playwright.yml Standardized YAML formatting, removed 'master' branch, reduced artifact retention to 1 day

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

// Should redirect to account page (email verification skipped in E2E)
await expect(page).toHaveURL("/account");
await expect(page.getByText("Test User")).toBeVisible();

Copy link

Copilot AI Jan 18, 2026

Choose a reason for hiding this comment

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

Removed assertion that verified the user display name after registration. This removes test coverage for verifying that the registration was successful and the user data is correctly displayed on the account page.

Copilot uses AI. Check for mistakes.

await expect(page).toHaveURL("/account");
await expect(page.getByText(testUser.displayName)).toBeVisible();
});
Copy link

Copilot AI Jan 18, 2026

Choose a reason for hiding this comment

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

Removed assertion that verified the user display name is visible after successful login. This removes test coverage for confirming that the login was successful and the user's data is correctly displayed.

Copilot uses AI. Check for mistakes.
with:
name: playwright-report
path: playwright-report/
retention-days: 1
Copy link

Copilot AI Jan 18, 2026

Choose a reason for hiding this comment

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

Artifact retention reduced from 30 days to 1 day. This significantly limits the time available to review test reports and debug failures. Consider whether 1 day provides sufficient time for investigating test failures, especially over weekends or holidays.

Suggested change
retention-days: 1
retention-days: 7

Copilot uses AI. Check for mistakes.
const page = await context.newPage();

// Set up virtual authenticator on the SAME page we'll use for testing
const { cdpSession, authenticatorId } = await setupWebAuthn(page);
Copy link

Copilot AI Jan 18, 2026

Choose a reason for hiding this comment

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

Unused variable cdpSession.

Suggested change
const { cdpSession, authenticatorId } = await setupWebAuthn(page);
const { authenticatorId } = await setupWebAuthn(page);

Copilot uses AI. Check for mistakes.
const page = await context.newPage();

// Set up virtual authenticator on the SAME page we'll use for testing
const { cdpSession, authenticatorId } = await setupWebAuthn(page);
Copy link

Copilot AI Jan 18, 2026

Choose a reason for hiding this comment

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

Unused variable authenticatorId.

Suggested change
const { cdpSession, authenticatorId } = await setupWebAuthn(page);
await setupWebAuthn(page);

Copilot uses AI. Check for mistakes.
@sirily11 sirily11 force-pushed the ci branch 5 times, most recently from 1d8d752 to 41df7a0 Compare January 18, 2026 03:32
@blacksmith-sh
Copy link

blacksmith-sh bot commented Jan 18, 2026

Found 3 test failures on Blacksmith runners:

Failures

Test View Logs
[chromium] › e2e/auth/
passkey.spec.ts:56:7 › Passkey Authentication › should show add passkey dialog
View Logs
[chromium] › e2e/oauth/
consent.spec.ts:57:7 › OAuth Consent Flow › should redirect to login when not authentic
ated
View Logs
[chromium] › e2e/oauth/
oidc.spec.ts:122:7 › OAuth Token Endpoint › should reject invalid authorization code
View Logs

Fix in Cursor

@sirily11 sirily11 force-pushed the ci branch 3 times, most recently from b7c1c3a to 984da73 Compare January 18, 2026 03:47
@sirily11 sirily11 merged commit 18aa6c8 into main Jan 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants