Skip to content

feat: Add fisherman integration tests #424

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: snowmead/feat-fisherman-migrations-indexing
Choose a base branch
from

Conversation

snowmead
Copy link
Contributor

@snowmead snowmead commented Jul 23, 2025

TL;DR

Added a dedicated fisherman node with specialized indexer mode for monitoring the network.

What changed?

  • Added a new sh-fisherman service to the Docker compose template with appropriate configuration
  • Added test suites to verify fisherman functionality:
    • fisherman-default-mode.test.ts - Tests basic fisherman node setup and indexer operation
    • indexer-fishing.test.ts - Comprehensive tests for the fishing mode functionality
    • indexer-modes-comparison.test.ts - Compares behavior across different indexer modes
  • Extended the test utilities to support fisherman node configuration and API access
  • Added new npm scripts for running fisherman-specific tests

Copy link
Contributor Author

snowmead commented Jul 23, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@snowmead snowmead marked this pull request as ready for review July 23, 2025 15:14
@snowmead snowmead force-pushed the snowmead/feat-fisherman-migrations-indexing branch from 5b22334 to e9916c5 Compare July 23, 2025 15:30
@snowmead snowmead force-pushed the snowmead/feat-fisherman-integration-tests branch 2 times, most recently from 2c95e1b to b2b0435 Compare July 23, 2025 16:19
@snowmead snowmead changed the title feat: Integrate fisherman with node and add comprehensive tests feat: Add fisherman integration tests Jul 23, 2025
@snowmead snowmead force-pushed the snowmead/feat-fisherman-integration-tests branch from b2b0435 to b6b3b09 Compare July 23, 2025 17:59
@snowmead snowmead force-pushed the snowmead/feat-fisherman-migrations-indexing branch from 69399eb to d9ef814 Compare July 28, 2025 12:49
@snowmead snowmead force-pushed the snowmead/feat-fisherman-integration-tests branch 2 times, most recently from ac687f0 to bca30de Compare July 28, 2025 16:01
snowmead and others added 6 commits July 30, 2025 11:03
- Add fisherman service spawning in node service layer
- Configure automatic indexer mode selection for fisherman nodes
- Add fisherman node to Docker fullnet configuration
- Implement fisherman support in test infrastructure
- Add createFishermanApi to FullNetContext for test access
- Configure test runners to support fisherman and indexer modes
- Add fisherman test scripts to package.json
- Include comprehensive integration tests for fisherman functionality

The fisherman service now integrates seamlessly with the node,
automatically enabling the indexer in fishing mode when needed.

🤖 Generated with Claude Code
Co-Authored-By: Claude <[email protected]>
Prevent potential errors when disconnecting undefined API instances in test cleanup.
- Fix createFishermanApi not being properly added to test context in testrunner
  - Changed from checking fishermanApiPromise to checking fullNetConfig.fisherman
  - Add createFishermanApi conditionally after context creation
- Add TypeScript type annotations for createApi endpoint parameters
- Update expected log message in fisherman-default-mode test to match actual output
  - Changed from 'Fishing (file tracking only) mode\!' to 'Fishing mode\!'
- Fix fisherman indexer mode configuration in Docker setup
  - Always add --indexer-mode flag when fishermanIndexerMode is specified
  - Ensures fisherman node runs with correct indexer mode (fishing)
- Update indexer-fishing test to use proper test utilities and remove duplicated code
… storage confirmation

- Replace manual event checking with existing wait helper methods for BSP volunteer flow
- Consolidate MSP response event handling to check only for MspAcceptedStorageRequest
- Remove unnecessary value proposition query logic in createBucketAndSendNewStorageRequest
- Add BSP account parameter to bspStored wait helper for better specificity
- Increase timeout for BSP storage confirmation in file deletion test

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@snowmead snowmead force-pushed the snowmead/feat-fisherman-migrations-indexing branch from 5a9748f to 54b1f27 Compare July 30, 2025 15:06
@snowmead snowmead force-pushed the snowmead/feat-fisherman-integration-tests branch from bca30de to c75182e Compare July 30, 2025 15:06
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.

1 participant