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

[DPE-4867] - Release new rock and fix broken CI #35

Merged
merged 10 commits into from
Jul 19, 2024
Merged

Conversation

MiaAltieri
Copy link
Contributor

@MiaAltieri MiaAltieri commented Jul 15, 2024

Issue

  1. a new rock has not been released in a few months
  2. it is not possible to release a new rock since the rock / ci is out of date

How is the integration portion of CI out of date

The CI was only ever meant to test these three test from Charmed MongoDB K8s

  1. Basic charm test
  2. TLS tests
  3. HA test

However, Charmed MongoDB K8s own CI / tox file got updated a few months ago to a different format. This meant that the rock was (incorrectly) attempting to run all integration tests. Instead of just the three it was meant to test.

Solution

  1. Update Rock to fix issues with dependencies
  2. Update build CI to be up to date
  3. Update tox file + CI so that it runs its intended tests

Future work

HA tests on network cut tests need to be re-enabled

@MiaAltieri MiaAltieri force-pushed the update-rock-ci branch 2 times, most recently from 22fefb0 to bd8c1e1 Compare July 15, 2024 08:54
@MiaAltieri MiaAltieri changed the title fix broken int tests fix broken CI Jul 15, 2024
@MiaAltieri MiaAltieri force-pushed the update-rock-ci branch 4 times, most recently from c5bfb2a to 9a88163 Compare July 15, 2024 09:20
@MiaAltieri MiaAltieri force-pushed the update-rock-ci branch 2 times, most recently from 35824a9 to 9c7ca20 Compare July 15, 2024 11:53
@MiaAltieri MiaAltieri changed the title fix broken CI [DPE-4867] - Release new rock and fix broken CI Jul 15, 2024
@MiaAltieri MiaAltieri force-pushed the update-rock-ci branch 5 times, most recently from 8b58667 to b3f6088 Compare July 15, 2024 14:22
Copy link
Contributor

@Mehdi-Bendriss Mehdi-Bendriss left a comment

Choose a reason for hiding this comment

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

Thank you Mia!

@MiaAltieri MiaAltieri force-pushed the update-rock-ci branch 4 times, most recently from e2de378 to 759f9ee Compare July 18, 2024 08:16
@@ -45,7 +45,7 @@ commands =
bash -ec 'microk8s ctr image import {env:name}_*-$(yq .base rockcraft.yaml | \
cut -c 8-)_edge_amd64.rock --base-name {env:registry_namespace}/{env:name}'
bash -ec 'if ! [ -d operator ]; then git clone --single-branch --branch {env:branch} {env:repo} operator; fi' {posargs}
tox --workdir operator -c operator -e ha-integration -- --keep-models
tox --workdir operator -c operator -e integration -- tests/integration/ha_tests/test_ha.py --deselect tests/integration/ha_tests/test_ha.py::test_network_cut
Copy link
Contributor

Choose a reason for hiding this comment

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

Note - we should remember to re-enable the network cut tests

@MiaAltieri MiaAltieri merged commit 120ca52 into 6-22.04 Jul 19, 2024
6 checks passed
@MiaAltieri MiaAltieri deleted the update-rock-ci branch July 19, 2024 15:25
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