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

Use consistent resource name and serial number for fake driver across different collections #620

Merged
merged 7 commits into from
Jun 22, 2021

Conversation

NajmudheenCT
Copy link
Member

@NajmudheenCT NajmudheenCT commented Jun 21, 2021

What this PR does / why we need it:
Use similar naming pattern for resource names in resource and perf metric collection
Fix for #619
increased E2E tests sleep time to 5sec to give some time for the DB to get updated before the next test run
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #619

Special notes for your reviewer:
This is to help delfin clients to test with fake driver
Release note:

@codecov
Copy link

codecov bot commented Jun 21, 2021

Codecov Report

Merging #620 (a9df89b) into master (cec1e47) will decrease coverage by 0.01%.
The diff coverage is 55.55%.

@@            Coverage Diff             @@
##           master     #620      +/-   ##
==========================================
- Coverage   71.88%   71.86%   -0.02%     
==========================================
  Files         141      141              
  Lines       12562    12570       +8     
  Branches     1499     1501       +2     
==========================================
+ Hits         9030     9034       +4     
- Misses       3017     3021       +4     
  Partials      515      515              
Impacted Files Coverage Δ
delfin/drivers/fake_storage/__init__.py 93.72% <55.55%> (-1.42%) ⬇️

"storage_id": self.storage_id,
"native_storage_pool_id": "fake_original_id_" + str(idx),
"native_storage_pool_id": "storagePool_" + str(idx),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Convention looks fine, how about using "native_" prefix for native ids just to differentiate it from name

Copy link
Member Author

Choose a reason for hiding this comment

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

IMO which will be again confusing.. because in metric we keep resource_id as a common label for all resources.. It is supposed to be the native_id .. in order to avoid confusion lets keep resource name and native_id same..

Co-authored-by: Joseph Vazhappilly <josephvp@gmail.com>
@sushanthakumar
Copy link
Collaborator

LGTM

Copy link
Collaborator

@kumarashit kumarashit left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@skdwriting skdwriting left a comment

Choose a reason for hiding this comment

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

LGTM

@skdwriting skdwriting merged commit 2a9a9a5 into sodafoundation:master Jun 22, 2021
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.

Correlate resource name in fake driver API implementation
5 participants