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

Migrate lifecycle commands #366

Merged
merged 9 commits into from
Oct 6, 2023

Conversation

tigarmo
Copy link
Collaborator

@tigarmo tigarmo commented Oct 2, 2023

  • Have you signed the CLA?

@tigarmo tigarmo force-pushed the migrate-lifecycle-commands branch 4 times, most recently from 0a391aa to a3644f1 Compare October 2, 2023 22:19
With the move to craft-application, the base instances got renamed from
base-instance-rockcraft to base-instance-buildd, so update the regex.
@tigarmo tigarmo force-pushed the migrate-lifecycle-commands branch from a3644f1 to 14bc847 Compare October 4, 2023 12:42
@tigarmo tigarmo marked this pull request as ready for review October 4, 2023 14:00
tools/docs/gen_cli_docs.py Outdated Show resolved Hide resolved
@tigarmo tigarmo added the run-manual-spread Run large/flaky spread tests label Oct 4, 2023
@tigarmo tigarmo requested review from cmatsuoka and lengau October 4, 2023 14:48
Copy link
Contributor

@cmatsuoka cmatsuoka left a comment

Choose a reason for hiding this comment

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

This is a large changeset but the guided tour was very informative and the implementation seems consistent with no obvious issues. Just added a few nitpicking notes.

tests/integration/conftest.py Outdated Show resolved Hide resolved
tests/testing/project.py Outdated Show resolved Hide resolved
requirements-dev.txt Outdated Show resolved Hide resolved
Copy link
Collaborator

@sergiusens sergiusens left a comment

Choose a reason for hiding this comment

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

if the nits are made to bits, then all good

This removes all commands in rockcraft.commands.lifecycle, in preference
of the default commands from craft-application.
The unit tests are dropped too. Most of them test basic funcionality
that is already test in craft-application, and the remaining
rockcraft-specific features (like package repositories) are already
tested in tests.unit.services.test_lifecycle.
This is a bit more involved because the previous tests were heavily tied
to the previous code, so it's done as a separate commit. There is no
change in functionality, just some cleaning-up and updating of the code.
@tigarmo tigarmo force-pushed the migrate-lifecycle-commands branch from 3207a1f to 3d0bf47 Compare October 6, 2023 20:52
Copy link
Contributor

@lengau lengau left a comment

Choose a reason for hiding this comment

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

This is very impressive work!

@tigarmo tigarmo merged commit 4120fb1 into feature/craft-application Oct 6, 2023
14 checks passed
@tigarmo tigarmo deleted the migrate-lifecycle-commands branch October 6, 2023 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-manual-spread Run large/flaky spread tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants