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

t/l/f/store: make the fake store aware of components #14882

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

andrewphelpsj
Copy link
Member

This will let us test things with the fake store that use components.

Copy link
Contributor

@miguelpires miguelpires left a comment

Choose a reason for hiding this comment

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

TestCollectSnaps is failing. Otherwise, LGTM besides some small comments

containers: map[snap.Revision]string{
snap.R(5): filepath.Join(s.store.blobDir, "foo_1_all.snap"),
snap.R(6): filepath.Join(s.store.blobDir, "foo_2_all.snap"),
revisions: map[snap.Revision]availableSnap{
Copy link
Contributor

Choose a reason for hiding this comment

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

This test is failing

Copy link
Member Author

Choose a reason for hiding this comment

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

Missed a commit, sorry, added now. 26eb211

tests/lib/fakestore/store/store.go Outdated Show resolved Hide resolved
@andrewphelpsj andrewphelpsj force-pushed the fakestore-component-aware branch from b58b2ec to c1f8eba Compare December 19, 2024 14:07
@github-actions github-actions bot added the Needs Documentation -auto- Label automatically added which indicates the change needs documentation label Dec 19, 2024
Copy link

codecov bot commented Dec 19, 2024

Codecov Report

Attention: Patch coverage is 38.97059% with 166 lines in your changes missing coverage. Please review.

Project coverage is 78.22%. Comparing base (24a0034) to head (c1f8eba).
Report is 72 commits behind head on master.

Files with missing lines Patch % Lines
tests/lib/fakestore/refresh/snap_asserts.go 0.00% 79 Missing ⚠️
tests/lib/fakestore/store/store.go 67.94% 35 Missing and 15 partials ⚠️
...estore/cmd/fakestore/cmd_new_snap_resource_pair.go 0.00% 18 Missing ⚠️
...re/cmd/fakestore/cmd_new_snap_resource_revision.go 0.00% 18 Missing ⚠️
snap/snaptest/snaptest.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #14882      +/-   ##
==========================================
+ Coverage   78.20%   78.22%   +0.01%     
==========================================
  Files        1151     1155       +4     
  Lines      151396   152775    +1379     
==========================================
+ Hits       118402   119502    +1100     
- Misses      25662    25889     +227     
- Partials     7332     7384      +52     
Flag Coverage Δ
unittests 78.22% <38.97%> (+0.01%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@olivercalder olivercalder left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks!

Copy link
Contributor

@miguelpires miguelpires left a comment

Choose a reason for hiding this comment

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

lgtm

@andrewphelpsj andrewphelpsj added the Run nested The PR also runs tests inluded in nested suite label Dec 20, 2024
@andrewphelpsj andrewphelpsj reopened this Dec 20, 2024
@andrewphelpsj andrewphelpsj force-pushed the fakestore-component-aware branch from e93a77b to a5a78c7 Compare December 20, 2024 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Documentation -auto- Label automatically added which indicates the change needs documentation Run nested The PR also runs tests inluded in nested suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants