Skip to content

Add Go Routines#338

Merged
sajayantony merged 20 commits intonotaryproject:mainfrom
akashsinghal:akashsinghal/addConcurrency
Oct 21, 2022
Merged

Add Go Routines#338
sajayantony merged 20 commits intonotaryproject:mainfrom
akashsinghal:akashsinghal/addConcurrency

Conversation

@akashsinghal
Copy link
Collaborator

@akashsinghal akashsinghal commented Oct 4, 2022

Description

Adds necessary locks and synchronization code to the ORAS store and executor to go routines for all execution operations

  • Adds go routines for subjects, stores, artifacts
  • Adds auth cache locks
  • Adds local oras store cache locks

Implementation Plan: https://hackmd.io/@akashsinghal/SyCJn6NGs

Fixes #153

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration

  • Unit tests
  • Deploy to K8 and test

Checklist:

  • Does the affected code have corresponding tests?
  • Are the changes documented, not just with inline documentation, but also with conceptual documentation such as an overview of a new feature, or task-based documentation like a tutorial? Consider if this change should be announced on your project blog.
  • Does this introduce breaking changes that would require an announcement or bumping the major version?
  • Do all new files have appropriate license header?

@akashsinghal akashsinghal marked this pull request as draft October 4, 2022 18:23
@akashsinghal akashsinghal changed the title {WIP] Add Go Routines [WIP] Add Go Routines Oct 4, 2022
@akashsinghal akashsinghal marked this pull request as ready for review October 7, 2022 23:01
@akashsinghal akashsinghal changed the title [WIP] Add Go Routines Add Go Routines Oct 7, 2022
Copy link
Contributor

@binbin-li binbin-li left a comment

Choose a reason for hiding this comment

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

lgtm

@sajayantony sajayantony merged commit 8fa6464 into notaryproject:main Oct 21, 2022
fseldow pushed a commit to fseldow/ratify that referenced this pull request Dec 7, 2022
* adding oras store locking and concurrency for multiple subjects
* small fix; add concurrency to store and artifact
* add testing and more fixes
* remove timing logic
* first round of comments
* address more comments
* attempt to resolve codeql
* codeql fix
* add utils package
* make insecure client config go routine safe
* update to use custom http client settings
* use http constants instead
* bump default cpu and memory for pod
@akashsinghal akashsinghal deleted the akashsinghal/addConcurrency branch March 1, 2023 23:15
bspaans pushed a commit to bspaans/ratify that referenced this pull request Oct 17, 2023
* adding oras store locking and concurrency for multiple subjects
* small fix; add concurrency to store and artifact
* add testing and more fixes
* remove timing logic
* first round of comments
* address more comments
* attempt to resolve codeql
* codeql fix
* add utils package
* make insecure client config go routine safe
* update to use custom http client settings
* use http constants instead
* bump default cpu and memory for pod
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.

Add Go Routines for Concurrent Verifier/Referrer Store Operations

4 participants