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

ci: use get_charms_build_with_cache.yaml workflow and use charm artefacts for individual tests #645

Closed
wants to merge 12 commits into from

Conversation

DnPlas
Copy link
Contributor

@DnPlas DnPlas commented Jan 6, 2025

This PR merges KF-6684-refactor-ci-with-build branch into main. These are the changes:

  • ci: use get_charms_build_with_cache.yaml workflow

This workflow enables the usage of canonical/charmed-kubeflow-workflows/.github/workflows/get_charms_build_with_cache.yaml for this CI, meaning that the integration tests and publish jobs are now able to download charm artefacts and use them consistently throught the various operations of this CI.

Fixes #641

  • ci, tests: pass charm artefacts to deploy and test charms

This commit enables the "--charm-path" option to pass .charm artefacts
to be deployed and tested at an individual level.
This change enables the option to pass pre-built charms to the tests
to avoid building them on the same test. It also ensures compatibility
with the build_charm.py reusable workflow (from canonical/data-platform-workflows).

Fixes: #639

* ci: use get_charms_build_with_cache.yaml workflow

This workflow enables the usage of canonical/charmed-kubeflow-workflows/.github/workflows/get_charms_build_with_cache.yaml
for this CI, meaning that the integration tests and publish jobs are now able to download charm artefacts and use them
consistently throught the various operations of this CI.

Fixes #641
@DnPlas DnPlas marked this pull request as ready for review January 6, 2025 17:37
@DnPlas DnPlas marked this pull request as draft January 6, 2025 17:38
* ci, tests: pass charm artefacts to deploy and test charms

This commit enables the "--charm-path" option to pass .charm artefacts
to be deployed and tested at an individual level.
This change enables the option to pass pre-built charms to the tests
to avoid building them on the same test. It also ensures compatibility
with the build_charm.py reusable workflow (from canonical/data-platform-workflows).

Fixes: #639
@DnPlas DnPlas changed the title ci: use get_charms_build_with_cache.yaml workflow (#642) ci: use get_charms_build_with_cache.yaml workflow and use charm artefacts for individual tests Jan 9, 2025
NohaIhab and others added 3 commits January 17, 2025 18:05
…ation (#648)

* use python plugin and add licenses to charms
* use charmcraft channel 3.x/edge
* use branch for quality checks workflow with charmcraft 3.x/edge
* update charmcraft channel to latest/candidate
…ows (#651)

* ci: remove wrapper around get charm paths and build with cache workflows

This commit removes the extra abstraction of the get-charm-paths action and
build_charm.yaml reusable workflow to avoid potential incompatibilities
and sync issues with the data platforms workflows.

* update workflows for dpw v29

* fix: use correct artifact name

* nit: address comments for consistency with data repos
---------

Co-authored-by: NohaIhab <[email protected]>
Use single (cached) build for integration tests & release

Fix hardcoded path for `platforms` syntax

remove workflow dispatch from release.yaml not needed

add description for outputs

rename get charm paths job and channel output

pin quality checks back to main due to merging canonical/charmed-kubeflow-workflows#95

Use stage instead of prime in charmcraft files part (#658)

Co-authored-by: Daniela Plascencia <[email protected]>
NohaIhab and others added 6 commits January 29, 2025 16:04
* init: pass cached charms to v1 bundle tests

* add build dependency for bundle tests

* add step to download packed charms

* fix: wait-for units instead of applications (#659)

* remove no_build option and refactor v1 tests

* update v2 bundle tests

* implement helper function to update context + comments

* fix: update logs action (#663)

Ref canonical/kubeflow-ci#152

* fix: modify ci.yaml release job to need get-charm-paths-channel

* update tests README

---------

Co-authored-by: Orfeas Kourkakis <[email protected]>
@NohaIhab NohaIhab marked this pull request as ready for review January 29, 2025 14:33
@NohaIhab NohaIhab closed this Jan 29, 2025
@NohaIhab
Copy link
Contributor

closed in favor of #665

@NohaIhab NohaIhab deleted the KF-6684-refactor-ci-with-build branch January 30, 2025 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants