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

Add more clear error message when fetching secrets #1847

Merged
merged 2 commits into from Sep 23, 2023

Conversation

ysysys3074
Copy link
Contributor

TL;DR

User gets confused as error message is missing useful prompts when they did not add secret_requests in task config to get secrets, this PR adds more clear error message.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

How did you fix the bug, make the feature etc. Link to any design docs etc

Tracking Issue

https://github.com/flyteorg/flyte/issues/

Follow-up issue

NA
OR
https://github.com/flyteorg/flyte/issues/

Signed-off-by: Yue Shang <s.yue3074@gmail.com>
ByronHsu
ByronHsu previously approved these changes Sep 22, 2023
pingsutw
pingsutw previously approved these changes Sep 23, 2023
@codecov
Copy link

codecov bot commented Sep 23, 2023

Codecov Report

Patch coverage: 19.84% and project coverage change: -50.90% ⚠️

Comparison is base (3370a96) 71.03% compared to head (c3ede2d) 20.13%.
Report is 101 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #1847       +/-   ##
===========================================
- Coverage   71.03%   20.13%   -50.90%     
===========================================
  Files         336      337        +1     
  Lines       30798    32427     +1629     
  Branches     5589     5857      +268     
===========================================
- Hits        21876     6530    -15346     
- Misses       8375    25731    +17356     
+ Partials      547      166      -381     
Files Changed Coverage Δ
flytekit/clis/sdk_in_container/build.py 0.00% <0.00%> (-94.65%) ⬇️
flytekit/clis/sdk_in_container/constants.py 0.00% <ø> (-100.00%) ⬇️
flytekit/clis/sdk_in_container/run.py 0.00% <0.00%> (-85.57%) ⬇️
flytekit/clis/sdk_in_container/serialize.py 0.00% <0.00%> (-57.15%) ⬇️
flytekit/clis/sdk_in_container/serve.py 0.00% <0.00%> (-100.00%) ⬇️
flytekit/configuration/__init__.py 71.98% <0.00%> (+34.60%) ⬆️
flytekit/core/context_manager.py 57.92% <0.00%> (+17.08%) ⬆️
flytekit/core/local_cache.py 41.30% <0.00%> (-4.35%) ⬇️
flytekit/core/node_creation.py 0.00% <0.00%> (-62.72%) ⬇️
flytekit/core/promise.py 27.94% <0.00%> (-26.79%) ⬇️
... and 57 more

... and 285 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Yue Shang <s.yue3074@gmail.com>
@ysysys3074 ysysys3074 dismissed stale reviews from pingsutw and ByronHsu via c3ede2d September 23, 2023 04:58
@pingsutw pingsutw merged commit 3f87154 into flyteorg:master Sep 23, 2023
67 of 69 checks passed
Future-Outlier pushed a commit to Future-Outlier/flytekit that referenced this pull request Oct 3, 2023
* add more clear error  message when fetch secrets

Signed-off-by: Yue Shang <s.yue3074@gmail.com>

* fix format

Signed-off-by: Yue Shang <s.yue3074@gmail.com>

---------

Signed-off-by: Yue Shang <s.yue3074@gmail.com>
Signed-off-by: Future Outlier <eric901201@gmai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants