Skip Hyperswarm P2P tests in CI environments#84
Merged
kayodebristol merged 4 commits intomainfrom Feb 17, 2026
Merged
Conversation
- Add CI environment detection (CI=true) to all Hyperswarm test files - Skip network-dependent tests in CI while preserving local coverage - Update test documentation with CI isolation details - Add clear skip messages explaining why tests are skipped Affected files: - legacy/tests/unit/hyperswarm-sync.test.ts: CI detection + skip network test - tests/hyperswarm-integration.test.js: Complete skip in CI with message - legacy/tests/integration/mesh-network.test.ts: Enhanced skip logic with CI awareness - docs/TESTING.md: Added comprehensive CI test isolation section - README.md: Added note about CI test behavior Resolves: Hyperswarm test instability in CI (issue #79, PR #80) Benefits: Reliable automated releases, fast CI feedback, full local coverage Co-authored-by: kayodebristol <3579196+kayodebristol@users.noreply.github.com>
- Simplify Node.js test skip message (remove CI=false from instructions) - Clarify Deno test instructions to explain runtime limitations - Improve documentation about Deno native module incompatibility - Make test execution commands more user-friendly Addresses code review feedback on PR for issue #79 Co-authored-by: kayodebristol <3579196+kayodebristol@users.noreply.github.com>
- Clarify that CI is unset by default in local environments - Remove confusing CI=false instructions (string "false" doesn't work as expected) - Emphasize that simply running tests locally is sufficient - Improve explanation of Deno native module limitations Final improvements addressing all code review feedback Co-authored-by: kayodebristol <3579196+kayodebristol@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Skip Hyperswarm tests in CI for reliability
Skip Hyperswarm P2P tests in CI environments
Feb 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hyperswarm tests block CI due to udx-native native module failures in Deno and network instability. Skip network-dependent tests in CI while preserving full coverage locally.
Changes
Test files - Add CI detection pattern:
Files modified:
legacy/tests/unit/hyperswarm-sync.test.ts- Skip network test viaignore: isCItests/hyperswarm-integration.test.js- Early exit in CI with messagelegacy/tests/integration/mesh-network.test.ts- Enhanced skip logic:shouldRun = explicitlyEnabled || !isCIDocumentation:
docs/TESTING.md- Added Hyperswarm CI isolation sectionREADME.md- Note about CI test behaviorBehavior
RUN_MESH_TESTS=trueValidation tests (key format, database ready checks) run in all environments - they don't import Hyperswarm.
Impact
Original prompt
💡 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.