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

bugfix: add lock to image blob list #2238

Merged
merged 1 commit into from
Jun 5, 2023

Conversation

kakaZhou719
Copy link
Member

Describe what this PR does / why we need it

Does this pull request fix one issue?

bugfix: add lock to image blob list, slice is not concurrency safe

image

Describe how you did it

Describe how to verify it

Special notes for reviews

Signed-off-by: kakzhou719 <kakazhou719@163.com>
@kakaZhou719 kakaZhou719 requested a review from starnop June 1, 2023 08:31
@codecov-commenter
Copy link

codecov-commenter commented Jun 1, 2023

Codecov Report

Patch coverage has no change and project coverage change: -6.81 ⚠️

Comparison is base (211005f) 19.96% compared to head (8813f37) 13.15%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2238      +/-   ##
==========================================
- Coverage   19.96%   13.15%   -6.81%     
==========================================
  Files          98      263     +165     
  Lines        9303    22836   +13533     
==========================================
+ Hits         1857     3005    +1148     
- Misses       7191    19426   +12235     
- Partials      255      405     +150     
Flag Coverage Δ
e2e-tests 8.49% <ø> (?)
unit-tests 19.92% <0.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/image/save/interface.go 0.00% <ø> (ø)
pkg/image/save/save.go 0.00% <0.00%> (ø)

... and 165 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Collaborator

@starnop starnop left a comment

Choose a reason for hiding this comment

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

LGTM

@starnop
Copy link
Collaborator

starnop commented Jun 5, 2023

In addition, we need to see if other places that use goroutines have similar operations. @kakaZhou719

@starnop starnop merged commit 9b08d0c into sealerio:main Jun 5, 2023
11 checks passed
@kakaZhou719 kakaZhou719 deleted the bugfix-safe-append-image-blob branch June 5, 2023 06: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