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: added update-status handler #197

Merged
merged 41 commits into from
Apr 18, 2023

Conversation

i-chvets
Copy link
Contributor

#188

Summary of changes:

  • Added update-status handler.
  • Agreed design with just status check and no updates to resources.
  • Added unit test.

Ivan Chvets and others added 30 commits April 12, 2023 19:47
#188

Summary of changes:
- Updated tox.ini to run test properly.
Summary of changes:
- Updated libraries.
#188

Summary of changes:
- Modified charm code to use sidecar pattern as per approved
  specification.
- Added required manigests.
- Modified existing tests to work with new charm.
- Modified test bundle definitions and helpers.
- Added requirements.*

NOTE: Additional integration and unit tests, upgrade and update status
handlers, aggregation rules will be added in another PRs.
…om:canonical/kfp-operators into kf-1668-gh188-feat-kfp-api-sidecar-rewrite
Summary of changes:
- Added service patch lib needed by charm.
Co-authored-by: Maksim Beliaev <beliaev.m.s@gmail.com>
Co-authored-by: Maksim Beliaev <beliaev.m.s@gmail.com>
Co-authored-by: Maksim Beliaev <beliaev.m.s@gmail.com>
Summary of changes:
- Added missing lib files.
- Updated code according to code review comments.
Summary of changes:
- Removed not needed exception handling.
Summary of changes:
- Modified error handling and added log message for failed configuration
  generation.
- Removed note needed default.
- Modified unit tests accordingly.
Summary of changes:
- Added mock to unit test.
Summary of changes:
- Modified code to use pathlib.
Summary of changes:
- Integration tests were failing due to missing 'series'. Added
  'series=kubernetes'
Summary of changes:
- Pinned Juju version in workflow. See integrate.yaml for more details.
Summary of changes:
- Remvoed pinning to 2.9.34.
- Added model-config to set default series to focal.
Co-authored-by: Maksim Beliaev <beliaev.m.s@gmail.com>
Co-authored-by: Maksim Beliaev <beliaev.m.s@gmail.com>
Co-authored-by: Maksim Beliaev <beliaev.m.s@gmail.com>
Co-authored-by: Maksim Beliaev <beliaev.m.s@gmail.com>
Co-authored-by: Maksim Beliaev <beliaev.m.s@gmail.com>
Co-authored-by: Maksim Beliaev <beliaev.m.s@gmail.com>
charms/kfp-api/src/charm.py Outdated Show resolved Hide resolved
Summary of changes:
- Removed leader check from update status handler. It is done in check
  status function.
- Added proper handlign of error and logging.
i-chvets and others added 2 commits April 17, 2023 10:53
Co-authored-by: Maksim Beliaev <beliaev.m.s@gmail.com>
Co-authored-by: Maksim Beliaev <beliaev.m.s@gmail.com>
@i-chvets i-chvets dismissed stale reviews from ca-scribner and beliaev-maksim April 17, 2023 14:54

Addressed comments.

ca-scribner
ca-scribner previously approved these changes Apr 17, 2023
Copy link
Contributor

@ca-scribner ca-scribner left a comment

Choose a reason for hiding this comment

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

lgtm!

beliaev-maksim
beliaev-maksim previously approved these changes Apr 17, 2023
ca-scribner
ca-scribner previously approved these changes Apr 17, 2023
beliaev-maksim and others added 4 commits April 18, 2023 00:19
Summary of changes:
- Updated checks settings.
- Modified integration tests to wait for all applications explicitly.
…om:canonical/kfp-operators into kf-1668-gh188-feat-kfp-api-status-update
Summary of changes:
- Increased timeout and threshold.
@i-chvets i-chvets merged commit da5f40d into main Apr 18, 2023
@i-chvets i-chvets deleted the kf-1668-gh188-feat-kfp-api-sidecar-rewrite branch April 18, 2023 09:43
DnPlas added a commit that referenced this pull request Jul 31, 2023
The kfp-api individual tests were failing due to a number of reasons, mainly caused by how
this charm's dependencies are deployed and the time it takes for those to be up and ready.
This commit ensures those dependencies (mysql, minio, prometheus) are active and idle within
a reasonable time to avoid timeouts and charms misconfigurations.
1. For mysql-k8s, the charm is now deployed from channel 8.0/edge, a version that contains the testing
profile option, which constraints the charm in a recommended way to deploy on GitHub runners.
2. For prometheus-k8s, since this charms requires a significant amount of time to deploy, the wait
for idle timeout is increased to 90*20. This change was introduced by #178,
but incorrectly reverted by #197.

Part of #243
DnPlas added a commit that referenced this pull request Jul 31, 2023
…on tests (#273)

* ci: increase GitHub runners storage space for individual integration tests

Increasing the storage space will prevent individual charms to fail by ensuring
charms can be deployed in an environment with enough storage space.

* tests: fix kfp-api integration tests in multiple places

The kfp-api individual tests were failing due to a number of reasons, mainly caused by how
this charm's dependencies are deployed and the time it takes for those to be up and ready.
This commit ensures those dependencies (mysql, minio, prometheus) are active and idle within
a reasonable time to avoid timeouts and charms misconfigurations.
1. For mysql-k8s, the charm is now deployed from channel 8.0/edge, a version that contains the testing
profile option, which constraints the charm in a recommended way to deploy on GitHub runners.
2. For prometheus-k8s, since this charms requires a significant amount of time to deploy, the wait
for idle timeout is increased to 90*20. This change was introduced by #178,
but incorrectly reverted by #197.

Fixes: #243
DnPlas added a commit that referenced this pull request Aug 4, 2023
…on tests (#273)

* ci: increase GitHub runners storage space for individual integration tests

Increasing the storage space will prevent individual charms to fail by ensuring
charms can be deployed in an environment with enough storage space.

* tests: fix kfp-api integration tests in multiple places

The kfp-api individual tests were failing due to a number of reasons, mainly caused by how
this charm's dependencies are deployed and the time it takes for those to be up and ready.
This commit ensures those dependencies (mysql, minio, prometheus) are active and idle within
a reasonable time to avoid timeouts and charms misconfigurations.
1. For mysql-k8s, the charm is now deployed from channel 8.0/edge, a version that contains the testing
profile option, which constraints the charm in a recommended way to deploy on GitHub runners.
2. For prometheus-k8s, since this charms requires a significant amount of time to deploy, the wait
for idle timeout is increased to 90*20. This change was introduced by #178,
but incorrectly reverted by #197.

Fixes: #243
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants