Skip to content
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

Fix TaskRegistry mutability #9032

Merged
merged 2 commits into from
Jul 14, 2023

Conversation

JanKrivanek
Copy link
Member

Fixes ADO#1801351 and ADO#1801341

Reuses chunk of changes from #8861

Context

TaskRegistry should be logically immutable after initialization and sharing is possible and ok, but there can be actual writes on first access which needs to be made thread safe

Changes Made

  • Clarified some confusing comments
  • Simplified TaskRegistry contract to allow only single shot initialization after which TaskRegistry is logically immutable
  • ProjectImportPathMatch and ToolSet adjustment to better express immutability

Testing

Existing unit tests

@JanKrivanek JanKrivanek force-pushed the proto/TaskRegistryMutability branch from 7825043 to 50eebae Compare July 13, 2023 16:24
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.

None yet

3 participants