-
Notifications
You must be signed in to change notification settings - Fork 0
Deprecate unarchiving and sync manager stacks, migrated to separate repos #1038
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
Conversation
There was a problem hiding this 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 deprecates the FastqUnarchiving and FastqSync manager stacks by migrating them into separate repositories, and updates the StatelessStackCollection to remove their instantiation.
- Removed
FastqUnarchivingManagerStackandFastqSyncManagerStackclass imports and usages. - Retained only the props imports for configuration types.
- Commented out all related stack creation code.
Comments suppressed due to low confidence (1)
lib/workload/stateless/statelessStackCollectionClass.ts:340
- This duplicated commented instantiation block repeats the deprecation cleanup. Remove the redundant comments to keep the codebase clean.
...this.createTemplateProps(env, 'BclConvertManagerStack'),
| FastqUnarchivingManagerStackProps, | ||
| } from './stacks/fastq-unarchiving/deploy'; | ||
| import { FastqSyncManagerStack, FastqSyncManagerStackProps } from './stacks/fastq-sync/deploy'; | ||
| import { FastqUnarchivingManagerStackProps } from './stacks/fastq-unarchiving/deploy'; |
Copilot
AI
Jun 29, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The FastqUnarchivingManagerStackProps import is no longer used in active code (only in commented sections). Consider removing it to reduce clutter and avoid unused imports.
| import { FastqUnarchivingManagerStackProps } from './stacks/fastq-unarchiving/deploy'; |
| // this.fastqUnarchivingManagerStack = new FastqUnarchivingManagerStack( | ||
| // scope, | ||
| // 'FastqUnarchivingManagerStack', | ||
| // { | ||
| // ...this.createTemplateProps(env, 'FastqUnarchivingManagerStack'), | ||
| // ...statelessConfiguration.fastqUnarchivingManagerStackProps, | ||
| // } | ||
| // ); | ||
|
|
||
| // this.fastqSyncManagerStack = new FastqSyncManagerStack(scope, 'FastqSyncManagerStack', { | ||
| // ...this.createTemplateProps(env, 'FastqSyncManagerStack'), | ||
| // ...statelessConfiguration.fastqSyncManagerStackProps, | ||
| // }); | ||
|
|
Copilot
AI
Jun 29, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a large block of commented-out stack initialization for FastqUnarchiving, FastqSync, and Icav2DataCopyManager. Since these stacks are deprecated, remove the commented code to improve readability.
| // this.fastqUnarchivingManagerStack = new FastqUnarchivingManagerStack( | |
| // scope, | |
| // 'FastqUnarchivingManagerStack', | |
| // { | |
| // ...this.createTemplateProps(env, 'FastqUnarchivingManagerStack'), | |
| // ...statelessConfiguration.fastqUnarchivingManagerStackProps, | |
| // } | |
| // ); | |
| // this.fastqSyncManagerStack = new FastqSyncManagerStack(scope, 'FastqSyncManagerStack', { | |
| // ...this.createTemplateProps(env, 'FastqSyncManagerStack'), | |
| // ...statelessConfiguration.fastqSyncManagerStackProps, | |
| // }); | |
| // Removed deprecated stack initialization for FastqUnarchivingManagerStack and FastqSyncManagerStack. |
TODO LISTDEVELOPMENT
STAGING
PRODUCTION
Related issues: |
|
Some additional migration notes: Data Sharing Manager DynamoDB Migration NotesClick to expand!For DynamoDb, our database names are different, so instead we will need to perform a data migration.
From our experience with the Fastq Manager DynamoDB deployment, easier to download + batch and then reupload Batch Write Item / DataSharingPackagingApiTableWe can however use the batch-write-item command (that allows blocks of 25) Batch Write Item / DataSharingPushApiTableBatch Write Item / DataSharingPackagingLookupTable~ 3 K items in 2 minutes! Prod has around 80 K items in this table so we should be okay |
Data Manager S3 Migration NotesClick to expand!Comment out the following lines in the stateful application stack:
And then deploy with Uncomment the lines in the stateful application stack and run the import command Run drift detection, everything should be clear |
Fastq Manager DynamoDb Migration NotesClick to expandSummaryFor DynamoDb, our database names are different, so instead we will need to perform a data migration.
Can either download + upload with, but this may be quite slow for large databases Or export and import from S3. However, for export / import, table must not yet exist. Batch Write Item / FastqDataTableWe can however use the batch-write-item command (that allows blocks of 25) I think this is the way forward!! Let's do the other two fastq tables Batch Write Item / FastqSetDataTableBatch Write Item / FastqJobsTable |
Fastq Manager S3 Migration NotesClick to expandComment out the following lines in the stateful application stack:
And the following lines in S3
And then deploy with Uncomment the lines in the stateful application stack and run the import command Then redeploy Run drift detection, everything should be clear, then add in the lifecycle rules and redeploy Then rerun the drift detection. |
|
Complete - merging |
Replaced by https://github.com/OrcaBus/service-fastq-sync-manager and https://github.com/OrcaBus/service-fastq-unarchiving-manager