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

Core storage model cost [VS-473] #7913

Merged
merged 15 commits into from
Jun 28, 2022
Merged

Conversation

mcovarr
Copy link
Collaborator

@mcovarr mcovarr commented Jun 22, 2022

No description provided.

@codecov
Copy link

codecov bot commented Jun 22, 2022

Codecov Report

❗ No coverage uploaded for pull request base (ah_var_store@8781b56). Click here to learn what that means.
The diff coverage is n/a.

@@               Coverage Diff                @@
##             ah_var_store     #7913   +/-   ##
================================================
  Coverage                ?   86.286%           
  Complexity              ?     35188           
================================================
  Files                   ?      2170           
  Lines                   ?    164888           
  Branches                ?     17786           
================================================
  Hits                    ?    142276           
  Misses                  ?     16289           
  Partials                ?      6323           

@@ -2,11 +2,11 @@ version 1.0

workflow GvsCallsetCost {
input {
# String project_id
# String dataset_name
String project_name
Copy link

Choose a reason for hiding this comment

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

Why "project_name"? All other WDLs use "project_id", I believe.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll fix this, I actually confused myself with the three different ways of identifying a Google project.


# Technically single quotes and exclamation points are allowed but none of that nonsense here.
# https://cloud.google.com/resource-manager/docs/creating-managing-projects#:~:text=A%20project%20name%20can%20contain,between%204%20and%2030%20characters.
valid='-_0-9a-zA-Z'
Copy link
Contributor

Choose a reason for hiding this comment

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

thank you!

String workspace_namespace
String workspace_name
# String callset_name
String callset_name
Copy link
Contributor

Choose a reason for hiding this comment

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

what is the callset name? is this the same as the filter_set_name ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually this should be callset identifier, which is the name of a column in the cost observability table. It looks like the plan is to default the filter set name to the call set identifier unless a value is explicitly specified.

@mcovarr mcovarr force-pushed the vs_473_core_storage_model_cost branch from 2487afb to 45da559 Compare June 27, 2022 16:55
@mcovarr mcovarr requested a review from rsasch June 27, 2022 17:35
String workspace_namespace
String workspace_name
# String callset_name
String callset_identifier
Copy link

Choose a reason for hiding this comment

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

nit: change to call_set_identifier to be consistent with table field?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah this was bugging me too... I was wondering whether to standardize on call_set or callset, sounds like you prefer the former.

}
command <<<

sanity_check_project() {
Copy link

Choose a reason for hiding this comment

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

Why validate the project id? And if there are good reasons to validate it, why just here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This gets interpolated into various BQ queries and given all the recent Hack EDU training I thought a little validation might be in order. 🙂 I was working on centralizing all input validation to one task in my next PR with downstream tasks only running if that succeeds.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

actually since I have reviewers' attention now I'll just mosey that code on from my in-progress branch to this one... 🙂

fi
}

sanity_check_dataset_name() {
Copy link

Choose a reason for hiding this comment

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

see questions about sanity_check_project()

@mcovarr mcovarr requested a review from rsasch June 27, 2022 20:43
@mcovarr mcovarr merged commit 586f3f7 into ah_var_store Jun 28, 2022
@mcovarr mcovarr deleted the vs_473_core_storage_model_cost branch June 28, 2022 21:56
RoriCremer pushed a commit that referenced this pull request Jun 29, 2022
This was referenced Mar 17, 2023
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