-
Notifications
You must be signed in to change notification settings - Fork 20
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
Clean lxd code #423
Clean lxd code #423
Conversation
Co-authored-by: Christopher Bartz <christopher.bartz@canonical.com>
This reverts commit d730cbf.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you Javi!
@@ -726,7 +670,7 @@ async def basic_app_fixture(request: pytest.FixtureRequest) -> Application: | |||
|
|||
|
|||
@pytest_asyncio.fixture(scope="function", name="instance_helper") | |||
async def instance_helper_fixture(request: pytest.FixtureRequest) -> InstanceHelper: | |||
async def instance_helper_fixture(request: pytest.FixtureRequest) -> OpenStackInstanceHelper: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the dynamic fixture request is no longer required
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
license-eye has checked 207 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
0 | 46 | 161 | 0 |
Click to see the invalid file list
- actions.yaml
- charmcraft.yaml
- config.yaml
- metadata.yaml
- pyproject.toml
- scripts/setup-lxd.sh
- src/charm.py
- src/charm_state.py
- src/errors.py
- src/event_timer.py
- src/logrotate.py
- src/utilities.py
- tests/init.py
- tests/conftest.py
- tests/integration/init.py
- tests/integration/conftest.py
- tests/integration/data/clouds.yaml.tmpl
- tests/integration/helpers/init.py
- tests/integration/helpers/charm_metrics.py
- tests/integration/helpers/common.py
- tests/integration/helpers/openstack.py
- tests/integration/test_charm_fork_path_change.py
- tests/integration/test_charm_fork_repo.py
- tests/integration/test_charm_metrics_failure.py
- tests/integration/test_charm_metrics_success.py
- tests/integration/test_charm_no_runner.py
- tests/integration/test_charm_runner.py
- tests/integration/test_charm_scheduled_events.py
- tests/integration/test_charm_upgrade.py
- tests/integration/test_debug_ssh.py
- tests/integration/test_e2e.py
- tests/integration/test_reactive.py
- tests/integration/test_runner_manager_openstack.py
- tests/status_name.py
- tests/unit/init.py
- tests/unit/conftest.py
- tests/unit/factories.py
- tests/unit/mock.py
- tests/unit/mock_runner_managers.py
- tests/unit/test_charm.py
- tests/unit/test_charm_state.py
- tests/unit/test_event_timer.py
- tests/unit/test_logrotate.py
- tests/unit/test_runner_scaler.py
- tests/unit/test_utilities.py
- tox.ini
Use this command to fix any missing license headers
```bash
docker run -it --rm -v $(pwd):/github/workspace apache/skywalking-eyes header fix
</details>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
license-eye has checked 207 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
0 | 46 | 161 | 0 |
Click to see the invalid file list
- actions.yaml
- charmcraft.yaml
- config.yaml
- metadata.yaml
- pyproject.toml
- scripts/setup-lxd.sh
- src/charm.py
- src/charm_state.py
- src/errors.py
- src/event_timer.py
- src/logrotate.py
- src/utilities.py
- tests/init.py
- tests/conftest.py
- tests/integration/init.py
- tests/integration/conftest.py
- tests/integration/data/clouds.yaml.tmpl
- tests/integration/helpers/init.py
- tests/integration/helpers/charm_metrics.py
- tests/integration/helpers/common.py
- tests/integration/helpers/openstack.py
- tests/integration/test_charm_fork_path_change.py
- tests/integration/test_charm_fork_repo.py
- tests/integration/test_charm_metrics_failure.py
- tests/integration/test_charm_metrics_success.py
- tests/integration/test_charm_no_runner.py
- tests/integration/test_charm_runner.py
- tests/integration/test_charm_scheduled_events.py
- tests/integration/test_charm_upgrade.py
- tests/integration/test_debug_ssh.py
- tests/integration/test_e2e.py
- tests/integration/test_reactive.py
- tests/integration/test_runner_manager_openstack.py
- tests/status_name.py
- tests/unit/init.py
- tests/unit/conftest.py
- tests/unit/factories.py
- tests/unit/mock.py
- tests/unit/mock_runner_managers.py
- tests/unit/test_charm.py
- tests/unit/test_charm_state.py
- tests/unit/test_event_timer.py
- tests/unit/test_logrotate.py
- tests/unit/test_runner_scaler.py
- tests/unit/test_utilities.py
- tox.ini
Use this command to fix any missing license headers
```bash
docker run -it --rm -v $(pwd):/github/workspace apache/skywalking-eyes header fix
</details>
Test coverage for d59e5cb
Static code analysis report
|
Applicable spec:
Overview
This PR removed LXD runners from the main branch. The reason for this is that there were really two different code paths without a common interface in the charm.
LXD
runners will still be supported in the tracklocal-lxd
(see announcement) https://discourse.charmhub.io/t/important-update-new-track-local-lxd-for-lxd-runners-in-the-github-runner-charm/16139.This PR has also strong implications for documentation, as lot of information is now outdated. As a first step it has been removed, but some of it, like a tutorial, will have to be created in following PRs.
Rationale
Maintaining two codepaths inhibits big refactors and also is a risk for regression, as we are concentrating our development in openstack runners and we can break lxd. Having two different tracks brings clarity and reduces risks and improves maintanability.
If in the future lxd support is required in the main branch, it could be better added using a common interface for both types of runners, using an external lxc cluster (or microcloud cluster).
Juju Events Changes
Module Changes
Library Changes
Checklist
src-docs
.urgent
,trivial
,complex
).