Skip to content

Fix release workflow: remove version check and skip Chrome test in CI#157

Draft
Copilot wants to merge 3 commits intoeffect-native/mainfrom
copilot/fix-release-issue
Draft

Fix release workflow: remove version check and skip Chrome test in CI#157
Copilot wants to merge 3 commits intoeffect-native/mainfrom
copilot/fix-release-issue

Conversation

Copy link
Contributor

Copilot AI commented Oct 10, 2025

Problem

The release workflow was failing due to two test failures:

  1. CLI test version mismatch: The test was asserting a specific version string 0.0.1 in the help output, but the package version had been bumped to 0.1.0 in package.json.

  2. Chrome debugger test timeout: The test "connects to Chrome remote debugging" was failing in CI with Error: Timed out waiting for Chrome debugger target (last-error=fetch failed) because Chrome is not available in the CI environment.

Solution

  1. Removed version check entirely from the CLI test to make it more maintainable. Version assertions are brittle and don't add meaningful value to the test - the test now focuses on verifying the actual help content is present.

  2. Skip Chrome test in CI by adding it.effect.skipIf(!!process.env.CI) to conditionally skip the Chrome remote debugging test when running in CI environments where Chrome is not available.

Changes

  • Removed version assertion from packages-native/effect-native/test/cli.test.ts
  • Added CI skip condition to packages-native/debug/test/CdpConnection.test.ts for the Chrome remote debugging test

Verification

✅ CLI test passes successfully
✅ Chrome test is skipped in CI (but runs locally)
✅ Full test suite: 80 passed | 9 skipped
✅ All linting checks pass

This fix unblocks the release workflow by addressing both test failures that were preventing successful builds.

Fixes #156

Original prompt

This section details on the original issue you should resolve

<issue_title>unbreak release</issue_title>
<issue_description>See the logs here: https://productionresultssa16.blob.core.windows.net/actions-results/91050427-e3ed-4c08-81ac-39575bf7ebf6/workflow-job-run-7c16944a-c8b5-51e8-8cc9-e14c20972fd2/logs/job/job-logs.txt?rsct=text%2Fplain&se=2025-10-10T17%3A05%3A05Z&sig=Wi5qwe3sZrLMOXOVojYuHC6f74lPCIv81DLz9CbDaVA%3D&ske=2025-10-11T02%3A43%3A28Z&skoid=ca7593d4-ee42-46cd-af88-8b886a2f84eb&sks=b&skt=2025-10-10T14%3A43%3A28Z&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skv=2025-11-05&sp=r&spr=https&sr=b&st=2025-10-10T16%3A55%3A00Z&sv=2025-11-05</issue_description>

Comments on the Issue (you are @copilot in this section)

Fixes #156


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Co-authored-by: subtleGradient <4117+subtleGradient@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issue to unbreak the release Fix CLI test: update expected version from 0.0.1 to 0.1.0 Oct 10, 2025
Copilot AI requested a review from subtleGradient October 10, 2025 17:03
Copy link
Member

@subtleGradient subtleGradient left a comment

Choose a reason for hiding this comment

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

Remove the version check in the test entirely

@subtleGradient
Copy link
Member

@copilot Be sure to also for the

Error: Timed out waiting for Chrome debugger target (last-error=fetch failed)

By skipping that test in CI since there's no chrome available in CI

Co-authored-by: subtleGradient <4117+subtleGradient@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Oct 11, 2025

@copilot Be sure to also for the

Error: Timed out waiting for Chrome debugger target (last-error=fetch failed)...

Fixed. Added it.effect.skipIf(!!process.env.CI) to skip the Chrome debugger test in CI. The test now passes in CI (skipped) and the full test suite shows 80 passed | 9 skipped.

Remove the version check in the test entirely

Done in commit 40ae7a0 and updated. Removed the version check from the CLI test entirely.

Copilot AI changed the title Fix CLI test: update expected version from 0.0.1 to 0.1.0 Fix release workflow: remove version check and skip Chrome test in CI Oct 11, 2025
Copilot AI requested a review from subtleGradient October 11, 2025 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Delegate

Development

Successfully merging this pull request may close these issues.

unbreak release

2 participants