Skip to content

Refactor archival fx initialization#7766

Merged
dnr merged 9 commits intomainfrom
david/refactor-archival-fx
May 15, 2025
Merged

Refactor archival fx initialization#7766
dnr merged 9 commits intomainfrom
david/refactor-archival-fx

Conversation

@dnr
Copy link
Copy Markdown
Contributor

@dnr dnr commented May 14, 2025

What changed?

Refactor how archival subsystem gets its dependencies to work better with fx:

  • Remove service type maps (archivalProvider is already service-specific)
  • Remove "bootstrap" structs and just pass around dependencies

Why?

The service type maps were causing issues like #7631, and are unnecessary.

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

@dnr dnr requested a review from a team as a code owner May 14, 2025 17:45
}

// HistoryBootstrapContainer contains components needed by all history Archiver implementations
HistoryBootstrapContainer struct {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Bye bye old friend.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Did you add these? Was that before fx?


testBase.Setup(clusterMetadataConfig)
archiverBase := newArchiverBase(clusterConfig.EnableArchival, logger)
archiverBase := newArchiverBase(clusterConfig.EnableArchival, testBase.ExecutionManager, logger)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I have plans around this archiverBase too.

Copy link
Copy Markdown
Contributor

@alexshtin alexshtin left a comment

Choose a reason for hiding this comment

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

Build is failing. Otherwise great step in the right direction.

@dnr dnr force-pushed the david/refactor-archival-fx branch from 92c8be0 to 6b82b9e Compare May 14, 2025 21:02
@dnr dnr enabled auto-merge (squash) May 15, 2025 18:53
@dnr dnr merged commit 3a0db3b into main May 15, 2025
56 checks passed
@dnr dnr deleted the david/refactor-archival-fx branch May 15, 2025 20:17
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.

2 participants