Skip to content

Conversation

@dragomirp
Copy link
Contributor

@dragomirp dragomirp commented May 5, 2025

Stabilise smoke test for storage.

Checklist

  • I have added or updated any relevant documentation.
  • I have cleaned any remaining cloud resources from my accounts.

marceloneppel and others added 16 commits April 23, 2025 08:55
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
…ools

Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
…ools

Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
@dragomirp dragomirp added the not bug or enhancement PR is not 'bug' or 'enhancement'. For release notes label May 5, 2025
@codecov
Copy link

codecov bot commented May 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.83%. Comparing base (ff02253) to head (2c94668).
Report is 1 commits behind head on 16/edge.

Additional details and impacted files
@@           Coverage Diff            @@
##           16/edge     #869   +/-   ##
========================================
  Coverage    70.83%   70.83%           
========================================
  Files           15       15           
  Lines         3888     3888           
  Branches       580      580           
========================================
  Hits          2754     2754           
  Misses         949      949           
  Partials       185      185           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dragomirp dragomirp changed the title [DPE-6965] Reduce smoke test volume size [DPE-6965] Manually attach storage in smoke test May 5, 2025
timeout-minutes: 1
if: ${{ !contains(matrix.job.spread_job, 'juju29') && (success() || (failure() && steps.spread.outcome == 'failure')) }}
run: sudo juju status --color --relations | tee ~/logs/juju-status.txt
run: sudo juju status --color --relations --storage | tee ~/logs/juju-status.txt
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For easier debug in the future.

Comment on lines +45 to +48
"archive": {"pool": "lxd-btrfs", "size": 2048},
"data": {"pool": "lxd-btrfs", "size": 2048},
"logs": {"pool": "lxd-btrfs", "size": 2048},
"temp": {"pool": "lxd-btrfs", "size": 2048},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reduce volume sizes, we may run into disk space issues in the future.

Comment on lines +109 to +110
assert len(garbage_storages) == 4
logger.info(f"Collected storages: {garbage_storages}")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Before we waited for a single storage to detach, but now we need all four of them to redeploy.

Copy link
Member

Choose a reason for hiding this comment

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

Good check.

Comment on lines -165 to -173
await ops_test.model.set_config({"update-status-hook-interval": "10s"})

logger.info("waiting for duplicate application to be blocked")
try:
async with ops_test.fast_forward("60s"):
logger.info("waiting for duplicate application to be waiting")
await ops_test.model.wait_for_idle(
apps=[DUP_APPLICATION_NAME], timeout=1000, status="blocked"
apps=[DUP_APPLICATION_NAME], timeout=1000, status="waiting", idle_period=30
)
except asyncio.TimeoutError:
logger.info("Application is not in blocked state. Checking logs...")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't actually block here. The test just spend a bunch of time in waiting for idle.

Copy link
Contributor

Choose a reason for hiding this comment

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

@dragomirp dragomirp marked this pull request as ready for review May 5, 2025 17:27
@dragomirp dragomirp requested review from a team, marceloneppel and taurus-forever and removed request for a team May 5, 2025 17:27
Copy link
Member

@marceloneppel marceloneppel 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 so much!

Comment on lines +109 to +110
assert len(garbage_storages) == 4
logger.info(f"Collected storages: {garbage_storages}")
Copy link
Member

Choose a reason for hiding this comment

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

Good check.

@dragomirp dragomirp changed the title [DPE-6965] Manually attach storage in smoke test [DPE-6965] Wait for all storages to detatch in smoke test May 5, 2025
@marceloneppel marceloneppel merged commit 1425f6d into 16/edge May 6, 2025
70 checks passed
@marceloneppel marceloneppel deleted the dpe-6965-storage-pools-smoke branch May 6, 2025 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Libraries: Out of sync not bug or enhancement PR is not 'bug' or 'enhancement'. For release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants