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

tests: Migrate alarm tests to common framework #13823

Merged
merged 8 commits into from
Mar 20, 2022

Conversation

nic-chen
Copy link
Contributor

@nic-chen nic-chen commented Mar 18, 2022

Part of #13637

cc @serathius @ptabor @spzala @ahrtr to review when you have time, thanks.

@codecov-commenter
Copy link

codecov-commenter commented Mar 19, 2022

Codecov Report

Merging #13823 (ab80328) into main (1b208aa) will decrease coverage by 0.20%.
The diff coverage is n/a.

❗ Current head ab80328 differs from pull request most recent head c6488a2. Consider uploading reports for the commit c6488a2 to get more accurate results

@@            Coverage Diff             @@
##             main   #13823      +/-   ##
==========================================
- Coverage   72.55%   72.35%   -0.21%     
==========================================
  Files         467      467              
  Lines       38280    38280              
==========================================
- Hits        27773    27696      -77     
- Misses       8717     8777      +60     
- Partials     1790     1807      +17     
Flag Coverage Δ
all 72.35% <ø> (-0.21%) ⬇️

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

Impacted Files Coverage Δ
etcdctl/ctlv3/command/compaction_command.go 30.43% <0.00%> (-43.48%) ⬇️
etcdctl/ctlv3/command/alarm_command.go 51.35% <0.00%> (-27.03%) ⬇️
client/v3/txn.go 73.33% <0.00%> (-26.67%) ⬇️
server/storage/quota.go 57.89% <0.00%> (-9.22%) ⬇️
client/pkg/v3/fileutil/lock_linux.go 72.22% <0.00%> (-8.34%) ⬇️
client/v3/namespace/watch.go 87.87% <0.00%> (-6.07%) ⬇️
server/storage/wal/file_pipeline.go 90.69% <0.00%> (-4.66%) ⬇️
server/storage/schema/cindex.go 95.34% <0.00%> (-4.66%) ⬇️
client/v3/leasing/cache.go 87.22% <0.00%> (-4.45%) ⬇️
server/etcdserver/api/v3rpc/member.go 93.54% <0.00%> (-3.23%) ⬇️
... and 15 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1b208aa...c6488a2. Read the comment docs.

@nic-chen nic-chen changed the title tests: Migrate key value Get to common framework tests: Migrate alarm tests to common framework Mar 19, 2022
@nic-chen nic-chen marked this pull request as ready for review March 19, 2022 18:04
@@ -41,6 +41,7 @@ type Client interface {
HashKV(rev int64) ([]*clientv3.HashKVResponse, error)
Health() error
Defragment(opts config.DefragOption) error
Alarm(cmd string, member *clientv3.AlarmMember) (*clientv3.AlarmResponse, error)
Copy link
Member

Choose a reason for hiding this comment

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

We should follow client interface, let's have separate AlarmList and AlarmDisarm calls.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed. thanks.

@serathius serathius merged commit 4787e71 into etcd-io:main Mar 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants