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

Adding e2e test coverage #1071

Merged
merged 9 commits into from
Sep 24, 2022
Merged

Adding e2e test coverage #1071

merged 9 commits into from
Sep 24, 2022

Conversation

cdris
Copy link

@cdris cdris commented Sep 22, 2022

Summary

Instruments e2e tests for code coverage. Uploads e2e coverage report to codecov as part of github action.

Release Note

NONE

Documentation

Ceridwen Driskill added 6 commits September 22, 2022 18:44
Signed-off-by: Ceridwen Driskill <cdriskill@google.com>
Signed-off-by: Ceridwen Driskill <cdriskill@google.com>
Signed-off-by: Ceridwen Driskill <cdriskill@google.com>
Signed-off-by: Ceridwen Driskill <cdriskill@google.com>
Signed-off-by: Ceridwen Driskill <cdriskill@google.com>
Signed-off-by: Ceridwen Driskill <cdriskill@google.com>
@cdris cdris marked this pull request as ready for review September 22, 2022 19:45
@cdris cdris requested review from cpanato and a team as code owners September 22, 2022 19:45
Signed-off-by: Ceridwen Driskill <cdriskill@google.com>
@cdris cdris requested review from bobcallaway and removed request for cpanato September 22, 2022 20:56
bobcallaway
bobcallaway previously approved these changes Sep 23, 2022
Copy link
Member

@bobcallaway bobcallaway left a comment

Choose a reason for hiding this comment

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

LGTM, one question on marking flag as hidden

cmd/rekor-server/app/root.go Show resolved Hide resolved
Signed-off-by: Ceridwen Driskill <cdriskill@google.com>
asraa
asraa previously approved these changes Sep 23, 2022
.github/workflows/main.yml Outdated Show resolved Hide resolved
tests/util.go Outdated Show resolved Hide resolved
Dockerfile Show resolved Hide resolved
Signed-off-by: Ceridwen Driskill <cdriskill@google.com>
@cdris cdris requested review from asraa and removed request for bobcallaway September 23, 2022 16:58
@codecov-commenter
Copy link

codecov-commenter commented Sep 23, 2022

Codecov Report

Merging #1071 (a62fbc6) into main (78e8f0b) will increase coverage by 22.98%.
The diff coverage is 83.33%.

@@             Coverage Diff             @@
##             main    #1071       +/-   ##
===========================================
+ Coverage   41.09%   64.08%   +22.98%     
===========================================
  Files          71       81       +10     
  Lines        7061     7481      +420     
===========================================
+ Hits         2902     4794     +1892     
+ Misses       3854     2065     -1789     
- Partials      305      622      +317     
Flag Coverage Δ
e2etests 48.80% <83.33%> (?)
unittests 41.03% <ø> (?)

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

Impacted Files Coverage Δ
cmd/rekor-server/app/serve.go 84.61% <81.25%> (ø)
cmd/rekor-server/app/root.go 55.17% <100.00%> (ø)
pkg/storage/storage.go 45.71% <0.00%> (ø)
cmd/rekor-server/app/version.go 100.00% <0.00%> (ø)
cmd/rekor-cli/app/format/wrap.go 59.09% <0.00%> (ø)
cmd/rekor-server/app/watch.go 2.91% <0.00%> (ø)
pkg/log/log.go 70.27% <0.00%> (ø)
cmd/rekor-cli/main.go 0.00% <0.00%> (ø)
... and 50 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@bobcallaway
Copy link
Member

the codecov comment doesn't show the e2e output, saying something about "Flags with carried forward coverage won't be shown. Click here to find out more."?

@cdris
Copy link
Author

cdris commented Sep 23, 2022

the codecov comment doesn't show the e2e output, saying something about "Flags with carried forward coverage won't be shown. Click here to find out more."?

@bobcallaway this is happening because the e2e tests take longer to run, codecov updates the comment with e2e coverage once those tests have finished (see the codecov comment now).

Copy link
Contributor

@asraa asraa left a comment

Choose a reason for hiding this comment

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

Great stuff!!

@bobcallaway bobcallaway merged commit f989b43 into sigstore:main Sep 24, 2022
@github-actions github-actions bot added this to the v1.0.0 milestone Sep 24, 2022
@cdris cdris deleted the e2e-test-coverage branch September 26, 2022 20:15
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Oct 19, 2022
https://build.opensuse.org/request/show/1029934
by user msmeissn + dimstar_suse
- updated to rekor 1.0.0 (sc#SLE-23476):
  - add description on /api/v1/index/retrieve endpoint by @bobcallaway in sigstore/rekor#1073
  - Adding e2e test coverage by @cdris in sigstore/rekor#1071
  - export rekor build/version information by @cpanato in sigstore/rekor#1074
  - Use POST instead of GET for /api/log/entries/retrieve metrics. by @var-sdk in sigstore/rekor#1083
  - Search through all shards when searching by hash by @priyawadhwa in sigstore/rekor#1082
  - verify: verify checkpoint's STH against the inclusion proof root hash by @asraa in sigstore/rekor#1092
  - add ability to enable/disable specific rekor API endpoints by @bobcallaway in
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.

4 participants