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

feat(kumactl): add --api-timeout flag #3723

Merged
merged 4 commits into from
Jan 20, 2022
Merged

Conversation

lahabana
Copy link
Contributor

Summary

tests were flaky because we were modifying a global variable.
Extracted this global var in a configuration parameter as it may be
useful anyway.

Documentation

Testing

  • Unit tests
  • E2E tests
  • Manual testing on Universal
  • Manual testing on Kubernetes

Backwards compatibility

  • [ ] Update UPGRADE.md with any steps users will need to take when upgrading.
  • [ ] Add backport-to-stable label if the code follows our backporting policy

@lahabana lahabana requested a review from a team as a code owner January 17, 2022 16:34
@lahabana
Copy link
Contributor Author

mac_dev circleci job sometimes fails because of this.

@codecov-commenter
Copy link

Codecov Report

Merging #3723 (5264257) into master (624bf49) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3723   +/-   ##
=======================================
  Coverage   50.85%   50.85%           
=======================================
  Files         925      925           
  Lines       56789    56790    +1     
=======================================
+ Hits        28878    28880    +2     
+ Misses      25619    25616    -3     
- Partials     2292     2294    +2     
Impacted Files Coverage Δ
...pp/kumactl/cmd/config/config_control_planes_add.go 82.19% <100.00%> (+0.24%) ⬆️
app/kumactl/pkg/config/validate.go 66.66% <100.00%> (ø)
pkg/plugins/runtime/gateway/route/sorter.go 66.66% <0.00%> (-5.13%) ⬇️
...s/authn/api-server/tokens/admin_token_bootstrap.go 78.00% <0.00%> (-4.00%) ⬇️
pkg/xds/generator/direct_access_proxy_generator.go 85.86% <0.00%> (-1.09%) ⬇️
pkg/core/resources/model/rest/resource.go 69.23% <0.00%> (+1.28%) ⬆️
pkg/plugins/leader/postgres/leader_elector.go 100.00% <0.00%> (+2.12%) ⬆️
pkg/core/resources/manager/cache.go 88.31% <0.00%> (+5.19%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 624bf49...5264257. Read the comment docs.

tests were flaky because we were modifying a global variable.
Extracted this global var in a configuration parameter as it may be
useful anyway

Signed-off-by: Charly Molter <charly.molter@konghq.com>

Actually do api-timeout for the whole kumactl

Signed-off-by: Charly Molter <charly.molter@konghq.com>
@lahabana lahabana changed the title fix(kumactl): make check timeout configurable feat(kumactl): add --api-timeout flag Jan 19, 2022
Copy link
Contributor

@jakubdyszkiewicz jakubdyszkiewicz left a comment

Choose a reason for hiding this comment

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

thanks for iterating on this

app/kumactl/cmd/root.go Outdated Show resolved Hide resolved
Signed-off-by: Charly Molter <charly.molter@konghq.com>
Signed-off-by: Charly Molter <charly.molter@konghq.com>
@lahabana lahabana merged commit 2bd33f5 into kumahq:master Jan 20, 2022
@lahabana lahabana deleted the fixMacTest branch March 29, 2024 12:45
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