Skip to content

Conversation

@abhijat
Copy link
Contributor

@abhijat abhijat commented Dec 8, 2025

Package installer tests routinely fail due to throttling on docker registry.

These tests also do not make sense when run as part of CI suite, they should only be run when new releases are created. Here these tests are skipped in CI. In the next PR they will be wired to run only as part of the action which sets up the package repository.

@abhijat
Copy link
Contributor Author

abhijat commented Dec 8, 2025

The module is skipped now on running pytest

SKIPPED [1] tests/dragonfly/package_install_test.py:6: These tests will only be run for the action that generates the package repository

@abhijat abhijat marked this pull request as ready for review December 8, 2025 06:41
Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

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

Review completed. 2 suggestions posted.

Comment augment review to trigger a new review at any time.

import pytest
from testcontainers.core.container import DockerContainer

pytest.skip(
Copy link

Choose a reason for hiding this comment

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

Because the module-level skip runs after imports, from testcontainers.core.container import DockerContainer (line 4) will still execute; in environments without this dependency, collection will error instead of skipping. Consider ensuring the skip occurs before optional imports so the file reliably skips when intended.

🤖 Was this useful? React with 👍 or 👎

from testcontainers.core.container import DockerContainer

pytest.skip(
"These tests will only be run for the action that generates the package repository",
Copy link

Choose a reason for hiding this comment

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

This unconditionally skips the module in all environments; if you intend these tests to run in a dedicated release workflow, they will be skipped there as well. You could gate the skip on a CI-specific condition so the tests still run when triggered by the release action.

🤖 Was this useful? React with 👍 or 👎

@romange
Copy link
Collaborator

romange commented Dec 8, 2025

@abhijat lets wait with this. I tried to fix it here:
https://github.com/dragonflydb/dragonfly/pull/6171/files#diff-84a1dffad3636502d8db6b1e152f90fe0ab18249563aaba59862894f3cf8cb12

let's see if it helps

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