-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Added --skip-source-validation flag to feast apply #1702
Conversation
Hi @mavysavydav. Thanks for your PR. I'm waiting for a feast-dev member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Codecov Report
@@ Coverage Diff @@
## master #1702 +/- ##
==========================================
- Coverage 82.75% 82.00% -0.75%
==========================================
Files 76 78 +2
Lines 6754 7981 +1227
==========================================
+ Hits 5589 6545 +956
- Misses 1165 1436 +271
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Should we perhaps be a bit more explicit in the naming? What about |
sounds good, i'll rename flag to |
-- also, when i run make lint-python on master, i get teh same error |
I think it's a dependency issue. @achals is looking into it. |
I just landed a fix. @mavysavydav Can you please rebase and see if the problem is fixed? |
/kind feature |
Signed-off-by: David Y Liu <[email protected]>
Signed-off-by: David Y Liu <[email protected]>
9c02944
to
4a7ea3f
Compare
Hey @mavysavydav, can we add a simple test for this? |
thanks for the review @achals. I think writing a test case for this may introduce more complexity in the test files than it's worth especially since there's no natural place to put the test. We'd also be essentially testing one "if" statement. I would probably put it in test_repo_operations but right now that test file is super minimal and i'd probably need to pull in a bunch of dependencies to test appropriately. |
Fair. We're working on refactoring the tests the coming few days, so hopefully a test for this kind of thing would be easier to add in the future. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: achals, mavysavydav The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* Added --validate-off flag to feast apply Signed-off-by: David Y Liu <[email protected]> * changed flag name to be more descriptive Signed-off-by: David Y Liu <[email protected]> Signed-off-by: CS <[email protected]>
Signed-off-by: David Y Liu [email protected]
What this PR does / why we need it:
Companies that have permission controls may make validation impossible since one user may not have access to all the tables of the data sources, and therefore can't run
feast apply
.Example error msg upon running
feast apply
google.api_core.exceptions.Forbidden: 403 GET https://bigquery.googleapis.com/bigquery/v2/projects/twttr-gcp-aggregates-vteam-stg/datasets/wtf/tables/country_candidate_user_aggregates_v1?prettyPrint=false: Access Denied: Table twttr-gcp-aggregates-vteam-stg:wtf.country_candidate_user_aggregates_v1: Permission bigquery.tables.get denied on table twttr-gcp-aggregates-vteam-stg:wtf.country_candidate_user_aggregates_v1 (or it may not exist).
Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?: