Skip to content

DHP-969 Batch Export Participant Worker & DHP-970 Tune Worker Thread Pool #175

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 3 commits into
base: develop
Choose a base branch
from

Conversation

DwayneJengSage
Copy link
Contributor

@ConsoleCatzirl ConsoleCatzirl requested a review from Copilot May 27, 2025 22:11
Copy link

@Copilot 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 refactors several worker processors and their test suites for participant version export, while also updating configuration values and introducing a common base request and processor class to reduce duplicated logic. Key changes include:

  • Consolidation of request classes with a common base (BaseParticipantVersionRequest)
  • Updated thread pool and rate limiter configurations in the resources and Spring configuration files
  • Refactoring of Redrive, Ex3, and BatchExport worker processors to extend a common base class

Reviewed Changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/test/java/org/sagebionetworks/bridge/exporter3/RedriveParticipantVersionsWorkerProcessorTest.java Adjustments in test setup and removal of legacy mocking/testing code
src/test/java/org/sagebionetworks/bridge/exporter3/BatchExportParticipantVersionWorkerProcessorTest.java New test suite for batch export functionality
src/main/resources/BridgeWorkerPlatform.conf Updates to thread pool sizes and Synapse rate limits
src/main/java/org/sagebionetworks/bridge/workerPlatform/config/SpringConfig.java Added bean for append table executor service
src/main/java/org/sagebionetworks/bridge/exporter3/* Refactoring of various worker processors to inherit common behavior via a base class

// Mock shared dependencies.
Config mockConfig = mock(Config.class);
when(mockConfig.get(RedriveParticipantVersionsWorkerProcessor.CONFIG_KEY_BACKFILL_BUCKET)).thenReturn(
BACKFILL_BUCKET);
processor.setConfig(mockConfig);

app = Exporter3TestUtil.makeAppWithEx3Config();
App app = Exporter3TestUtil.makeAppWithEx3Config();
Copy link
Preview

Copilot AI May 27, 2025

Choose a reason for hiding this comment

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

Consider assigning to the class-level 'app' field instead of declaring a new local variable so that later tests that rely on 'app' are not affected by variable shadowing.

Suggested change
App app = Exporter3TestUtil.makeAppWithEx3Config();
app = Exporter3TestUtil.makeAppWithEx3Config();

Copilot uses AI. Check for mistakes.

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