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

build: refactor charmcraft.yaml to use st124 notation #158

Merged

Conversation

DnPlas
Copy link
Contributor

@DnPlas DnPlas commented Jan 22, 2025

In order to be able to use the data-platform-workflows, specially to be compatible with charmcraft cache, the charmcraft.yaml files of all charms in this repository need to follow st124 notation.

Fixes #154

Please NOTE this PR targets a dev branch as there is still pending work:

Manual testing

  1. Install charmcraft 3.x/edge
  2. Build charms
  3. They should successfully be built

In order to be able to use the data-platform-workflows, specially to be
compatible with charmcraft cache, the charmcraft.yaml files of all charms
in this repository need to follow st124 notation.

Fixes #154
Copy link
Contributor

@NohaIhab NohaIhab left a comment

Choose a reason for hiding this comment

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

thanks @DnPlas, a few comments

.github/workflows/integrate.yaml Outdated Show resolved Hide resolved
.github/workflows/integrate.yaml Outdated Show resolved Hide resolved
charms/tensorboard-controller/charmcraft.yaml Outdated Show resolved Hide resolved
charms/tensorboards-web-app/charmcraft.yaml Outdated Show resolved Hide resolved
Copy link
Contributor

@NohaIhab NohaIhab left a comment

Choose a reason for hiding this comment

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

thanks @DnPlas, a few comments

Copy link
Contributor

@NohaIhab NohaIhab left a comment

Choose a reason for hiding this comment

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

LGTM, note that the publish job is failing due to --destructive-mode but we shouldn't care about that since that job will be refactored in #157 before merging the dev branch to main. Thanks @DnPlas !

@DnPlas DnPlas merged commit 4abe7fe into KF-6217-use-cache-builds-dev-branch Jan 24, 2025
18 of 20 checks passed
@DnPlas DnPlas deleted the KF-6743-use-st124-charmcraft branch January 24, 2025 22:24
DnPlas added a commit that referenced this pull request Jan 30, 2025
* build: refactor charmcraft.yaml to use st124 notation (#158)

* build: refactor charmcraft.yaml to use st124 notation

In order to be able to use the data-platform-workflows, specially to be
compatible with charmcraft cache, the charmcraft.yaml files of all charms
in this repository need to follow st124 notation.

Fixes #154

* ci, refactor: use data-platform-workflows in on_pull/push workflows (#159)

* ci, refactor: use data-platform-workflows in on_pull/push workflows

This commit enables the usage of build_charm.yaml workflow, which allows independent and cached charm
builds, making the CI more efficient and fast.
This commit also refactors the tests and the integrate workflow to be able to use the charm artefacts
generated by the build_charm.yaml workflow.
In summary this change:
1. Uses build_charm.yaml in on_{pull&push}.yaml to enable individual cached builds
2. Refactors individual and repository level integration tests to be able to use charm artefacts besides building them
3. Modifies integrate.yaml to download the charm artefacts and uses them in the tox integrate command

Fixes #155

* ci: replaces publish.yaml workflow with promote.yaml workflow (#161)

* ci: replaces publish.yaml workflow with promote.yaml workflow

The promote.yaml workflow replaces the old release workflow dispatch (previously known as
release.yaml).
This commit removes the publish.yaml workflow as the release process
is all handled by a recently refactored release.yaml, and promoting
charms is done in a simple workflow dispatch coming from promote.yaml.

Fixes #157
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.

2 participants