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

Move charm building from pytest tests to separate workflow jobs to increase CI stability #448

Open
ca-scribner opened this issue May 1, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@ca-scribner
Copy link
Contributor

Context

We've encountered a lot of instability in the kfp CI of late, including oddly flaky charmcraft builds for some of the charms. For some unknown reasons, standalone charmcraft seems to build things more reliably than building them in the pytest file directly using the pytest-operator.

Proposed here is that we move the building for these charms out of the pytest files and into their own jobs, then pass the .charm files as artifacts to the tests/publish jobs. This would hopefully add stability just from using charmcraft, but also we can have retry logic around failed build jobs (build jobs could auto-retry X times, so flakes could be mitigated)

What needs to get done

  1. refactor the pytest tests to optionally build the charms or accept their artifacts as inputs. We might be able to use some data platform CI as inspiration here
  2. refactor the CI workflows to build the charms separately and pass them to integration tests

Definition of Done

  1. kfp integration test CI does not build its own charms, but instead uses those built in separate jobs
@ca-scribner ca-scribner added the enhancement New feature or request label May 1, 2024
Copy link

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/KF-5618.

This message was autogenerated

@ca-scribner
Copy link
Contributor Author

canonical/bundle-kubeflow#1005 discusses instability that feels related to this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant