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

Try 2: Add retry for oauth metadata endpoint #4262

Merged
merged 17 commits into from
Oct 19, 2023

Conversation

squiishyy
Copy link
Contributor

@squiishyy squiishyy commented Oct 19, 2023

Tracking issue

squiishyy
Contributor
squiishyy commented 6 hours ago
Tracking issue
https://unionai.atlassian.net/browse/CLOUD-175

Describe your changes

Added functionality to retry getting oauth metadata information upon 5xx error codes.
Added config values to be able to specify number of retry attempts and retry delay duration.
Added tests as well!

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Screenshots

Note to reviewers

…ttprequestwithretry, need to work on config mappingn still, tests in

Signed-off-by: squiishyy <[email protected]>
Signed-off-by: squiishyy <[email protected]>
Signed-off-by: squiishyy <[email protected]>
Signed-off-by: squiishyy <[email protected]>
Signed-off-by: squiishyy <[email protected]>
Signed-off-by: squiishyy <[email protected]>
Signed-off-by: squiishyy <[email protected]>
Signed-off-by: squiishyy <[email protected]>
@squiishyy squiishyy marked this pull request as ready for review October 19, 2023 00:31
Copy link
Contributor

@katrogan katrogan left a comment

Choose a reason for hiding this comment

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

looks great!

flyteadmin/auth/authzserver/metadata_provider.go Outdated Show resolved Hide resolved
flyteadmin/auth/authzserver/metadata_provider.go Outdated Show resolved Hide resolved
flyteadmin/auth/authzserver/metadata_provider.go Outdated Show resolved Hide resolved
flyteadmin/pkg/async/shared.go Outdated Show resolved Hide resolved
flyteadmin/auth/authzserver/metadata_provider.go Outdated Show resolved Hide resolved
flyteadmin/auth/config/config.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Oct 19, 2023

Codecov Report

Attention: 41 lines in your changes are missing coverage. Please review.

Comparison is base (60cf95e) 59.21% compared to head (fc547cd) 59.63%.
Report is 6 commits behind head on master.

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

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4262      +/-   ##
==========================================
+ Coverage   59.21%   59.63%   +0.41%     
==========================================
  Files         621      553      -68     
  Lines       53106    40068   -13038     
==========================================
- Hits        31449    23893    -7556     
+ Misses      19148    13825    -5323     
+ Partials     2509     2350     -159     
Flag Coverage Δ
unittests ?

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

Files Coverage Δ
flyteadmin/auth/config/config.go 71.42% <ø> (ø)
flyteadmin/auth/config/config_flags.go 65.45% <100.00%> (+3.63%) ⬆️
flytepropeller/pkg/controller/nodes/resolve.go 88.05% <100.00%> (+0.71%) ⬆️
flytepropeller/pkg/controller/controller.go 11.52% <0.00%> (-0.23%) ⬇️
flytepropeller/pkg/compiler/validators/bindings.go 71.87% <76.92%> (+1.08%) ⬆️
...epropeller/pkg/controller/nodes/output_resolver.go 47.54% <60.00%> (+1.82%) ⬆️
flyteadmin/auth/authzserver/metadata_provider.go 76.47% <80.76%> (+5.23%) ⬆️
...tepropeller/pkg/compiler/errors/compiler_errors.go 65.81% <0.00%> (-2.58%) ⬇️
...opeller/pkg/controller/nodes/attr_path_resolver.go 76.84% <76.84%> (ø)

... and 551 files with indirect coverage changes

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

flyteadmin/auth/authzserver/metadata_provider.go Outdated Show resolved Hide resolved
flyteadmin/pkg/async/shared.go Outdated Show resolved Hide resolved
Copy link
Contributor

@katrogan katrogan left a comment

Choose a reason for hiding this comment

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

looks good, just a few nits!

flyteadmin/auth/authzserver/metadata_provider.go Outdated Show resolved Hide resolved
flyteadmin/auth/authzserver/metadata_provider.go Outdated Show resolved Hide resolved
flyteadmin/auth/authzserver/metadata_provider.go Outdated Show resolved Hide resolved
flyteadmin/auth/authzserver/metadata_provider.go Outdated Show resolved Hide resolved
Signed-off-by: squiishyy <[email protected]>
Signed-off-by: squiishyy <[email protected]>
Signed-off-by: squiishyy <[email protected]>
katrogan
katrogan previously approved these changes Oct 19, 2023
Signed-off-by: squiishyy <[email protected]>
Signed-off-by: squiishyy <[email protected]>
@pmahindrakar-oss pmahindrakar-oss merged commit 9af6d84 into flyteorg:master Oct 19, 2023
29 of 31 checks passed
@welcome
Copy link

welcome bot commented Oct 19, 2023

Congrats on merging your first pull request! 🎉

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.

3 participants